cli
cli copied to clipboard
Scaffolding fails with error running command inside /tmp folder
Describe the bug Attempting to scaffold fails with an error. A scaffold directory is created but when trying to serve, a similar error occurs.
To Reproduce Steps to reproduce the behavior:
- Run
starport app github.com/ORG/REPO
- Verify error -
error while running command /tmp/2803504060: : exit status 4
- Attempt to
starport serve
within scaffolded project dir - Verify error -
Cosmos SDK's version is: Stargate v0.40.0 (or later)
🛠️ Building proto...
cannot build app:
error while running command /tmp/435490484: : exit status 4
Waiting for a fix before retrying...
- Neither
/tmp/XXX
files exist
Please provide output of commands
-
starport version
starport version v0.16.0 linux/amd64 -build date: 2021-05-24T12:32:18Z
-
go version
go version go1.16.4 linux/amd64
-
uname -a
Linux pop-os 5.8.0-7642-generic #47~1614007149~20.10~82fb226-Ubuntu SMP Tue Feb 23 02:59:01 UTC x86_64 x86_64 x86_64 GNU/Linux
@notbdu can you try scaffolding a chain in an empty directory?
That's what I am doing. Removed the folder each attempt as well as ~/.starport
.
Tried downgrading to starport v.0.15.1
and get a slightly different error now.
error while running command /tmp/nodetime: : exit status 4
I couldn't reproduce this. Does it work when you're outside of /tmp
?
Also, can you try using github.com/test/test
to see if this is relavent with the Git address or not? e.g. starport app github.com/test/test
.
Hmm, same error :/.
XXX@~/go/src/github.com/test-[]$ starport app github.com/test/test
error while running command /tmp/nodetime: : exit status 4
Is there potentially any bad cached build state from prior runs that could cause this?
I tried removing everything in ~/.starport
and doing a fresh install each time. Also tried building from source.
Only other thing I can think of is my linux distro - I'm running a system76 laptop. They have their own ubuntu based linux distro (pop os).
It might be due to that. Starport is actually starting a child process (nodejs) to generate some code for you. But this process seems to be returning with exit code 4 which mainly stands for interrupted system calls. Maybe Pop OS has some kind of restrictions for child processes?
Btw, this is definitely not related to .starport
dir, we don't have any spesific caching for the app
command except Go's own cache for modules which isn't related with this problem.
Will just run in a vanilla ubuntu VM :+1: , thanks for the quick responses guys!
I'm also experiencing this issue on NixOS. Can we reopen the issue and try to investigate further?
@ruhatch this might be a permissions issue. Can you try running with sudo
?
Related: https://github.com/tendermint/starport/issues/1205
I ran it with sudo
and it didn't have the same failure, but it did end with exit status 1
, so now seems like a slightly different issue.
Then if I run sudo starport serve
, I get the no such file error again, so that's not fixing it unfortunately.
Any thoughts?
Looks like this is still a problem. Let's try debugging this in the next iteration.
Closing due to stale nature, please reopen if otherwise.