On Tue, Sep 22, 2020 at 10:32 AM Lakshay Chopra
<
lakshay...@gmail.com> wrote:
>
> On Mon, Sep 21, 2020 at 6:52 PM Ian Denhardt <
i...@zenhack.net> wrote:
> >
> > A couple things to check:
<snip>
> > 2. Can you confirm that the built spk actually contains the file? If you
> > do an spk unpack and inspect the resulting directory, is it indeed
> > there?
>
> Did spk unpack and in the bin folder run.sh file is present.
Today I tried the following changes,
I renamed the bin folder in etherpad-lite dir to bin-eth so it might
not conflict with the bin folder in "/"
Changed accordingly in sandstrom-pkgdef.capnp files.
After running spk dev, sandstorm-files.list was generated. I checked
and the bin-eth/run.sh file was present.
After that I ran spk pack, now that packaged app still showed this error
<q>
...** SANDSTORM SUPERVISOR: Starting up grain. Sandbox type: userns
*** Uncaught exception ***
sandstorm/sandstorm-http-bridge.c++:2878: failed: execvp(argvp[0],
argvp): No such file or directory; argvp[0] = bin-eth/run.sh
stack: 543ccc 5e8804
</q>
I did spk unpack and checked /bin-eth/run.sh file was present.
Next I did changes in sandstrom-pkgdef.capnp and changed line
argv = ["/sandstorm-http-bridge", "9001", "--", "bin-eth/run.sh"],
to
argv = ["/sandstorm-http-bridge", "9001", "--", "/bin-eth/run.sh"],
and again packed it, but the results were the same.
I am unable to infer why spk pack or sandstorm-http-bridge is unable
to find that file while it is there. Why is it showing this behaviour?