Skip to content

Commit

Permalink
docs & debugging with this
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Oct 11, 2024
1 parent fe711b1 commit 1619d65
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 12 additions & 0 deletions docs/versioned_docs/version-v0.50.x/01-setup/03-debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,15 @@ reboot # if you still get the error
```

Technically you can also `sudo chmod 666 /var/run/docker.sock` but this is NOT advised. -->

## Generation

### remote: Repository not found. fatal: reposity not found

This error is due to not having properly `make proto-gen`ed the project. View the [Application](#running-the-binary-gives-me-panic-reflect-newnil) section for the solution.

## Application

### Running the binary gives me `panic: reflect: New(nil)`

The `make proto-gen` command was either not run, or is causing issues. This could be due to your users permissions or the filesystem. By default, the protoc docker image uses your current users id and group. Try switching as a super user (i.e. `su -`) or fixing your permissions. A very ugly hack is to run `chmod a+rwx -R ./rollchain` where `./rollchain` is the project you generated. This will cause git to change all files, but it does fix it. Unsure of the long term side effects that may come up from this.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ proto/nameservice/v1/query.proto
These .proto file templates will be converted into Golang source code for you to use. Build the Go source code using the command:

```bash
go clean -modcache

make proto-gen
```

Expand Down

0 comments on commit 1619d65

Please sign in to comment.