Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AGD binary error if not run from right dir #7825

Open
mindstyle85 opened this issue May 23, 2023 · 6 comments
Open

AGD binary error if not run from right dir #7825

mindstyle85 opened this issue May 23, 2023 · 6 comments
Assignees
Labels
agd Agoric (Golang) Daemon bug Something isn't working v1_triaged DO NOT USE

Comments

@mindstyle85
Copy link

Describe the bug

The new devnet binary (agoricdev-18) has an error i didnt see before, if its not being called directly from agoric-sdk/bin folder

To Reproduce

Steps to reproduce the behavior:

  1. Install agoricdev-18 binary

  2. /home/pops/go/bin$ ./agd version
    ./agd: line 31: /home/pops/go/bin/../repoconfig.sh: No such file or directory

It is the same if the binary is called for example from /usr/local/bin

Expected behavior

The compiled binary should work from any directory.

/home/pops/agoric-sdk/bin$ ./agd version
0.34.0

@mindstyle85 mindstyle85 added the bug Something isn't working label May 23, 2023
@dckc dckc added the agd Agoric (Golang) Daemon label May 23, 2023
@ivanlei ivanlei added the v1_triaged DO NOT USE label May 23, 2023
@ivanlei
Copy link
Contributor

ivanlei commented May 23, 2023

Does using a filesystem link help alleviate the issue?

@mindstyle85
Copy link
Author

ill try, but i dont think that would be a solution here

@mindstyle85
Copy link
Author

tried it, works with a link

@michaelfig
Copy link
Member

So, just to clarify: bin/agd is a shell script wrapper for the actual binary. The reason we no longer install the actual agd binary is that it has always relied on other parts of the Agoric SDK which we tried to make convenient to install, but which would give even harder-to-diagnose errors if installed on a machine that had references to an older SDK.

@mindstyle85
Copy link
Author

i see, this might be then worthy to be updated in all docs etc so others are aware

@dckc
Copy link
Member

dckc commented May 23, 2023

worthy to be updated in all docs

yes... I added a troubleshooting section to https://github.com/Agoric/agoric-sdk/releases/tag/mainnet1B-rc0 about this issue. @michaelfig I'd like to talk with you about one or two details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agd Agoric (Golang) Daemon bug Something isn't working v1_triaged DO NOT USE
Projects
None yet
Development

No branches or pull requests

4 participants