-
-
Notifications
You must be signed in to change notification settings - Fork 710
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
Uncaught exception with spk pack #3535
Comments
I feel like I saw this recently sometime too and was too tired or busy to remember to investigate it. Thanks for the report. |
Ok, yeah, I can reproduce this with the currrent master of https://github.com/zenhack/ttrss-sandstorm/. Notably, doing spk pack for Sandcal works fine. Sandcal doesn't use vagrant-spk. I don't have time to do a deep-dive debugging right now, will get back to it later, but some things worth looking into:
@ankitmhn, am I reading correctly that you're running |
That is right. I am running |
Ok, I finally got around to digging into this one in order to ship a ttrss update. It looks like what happens is:
I managed to work around this by just deleting all of the entries in my sandstorm-files.list that were underneath symlinks; the correct versions were already in the file. Probably the right fix here is that spk should treat files in sandstom-files.list that are under symlinks as being "missing" and delete them as it does for other missing files. |
Was this also @orblivion's issue with Etherpad packaging? |
It's been a while but from my recollection I tried deleting those symlinks
based on someone out there having figured that out before. However, I had
other problems after.
However I'll take a look tomorrow to confirm. I'll post whatever errors I
see in case it's related to the OP's issue.
…On Sat, Jan 1, 2022 at 1:13 AM Jacob Weisz ***@***.***> wrote:
Was this also @orblivion <https://github.com/orblivion>'s issue with
Etherpad packaging?
—
Reply to this email directly, view it on GitHub
<#3535 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAKH6CNOCLO7457NDF7ZWTUT2LQPANCNFSM47BKW3LA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I had previously only tried deleting the symlinks (bin, lib, lib64) but not
everything underneath them. I tried again, and none the less it doesn't
work.
Initially it complained that it couldn't find bin/bash, presumably because
it's used my launcher.sh or sandstorm-pkgdef. I updated everything to refer
explicitly to /usr/bin/bash. Now it says:
```
*** Uncaught exception ***
sandstorm/sandstorm-http-bridge.c++:2889: failed: execvp(argvp[0], argvp):
No such file or directory; argvp[0] = /usr/bin/bash
```
usr/bin/bash is in my sandstorm-files. Looking in the app directory under
/opt/sandstorm after installing, indeed usr/bin/bash does exist and is an
ELF. (in fact bin/bash likewise was an ELF before I switched to
usr/bin/bash).
Interestingly, this happened within the same OS that was used to generate
the spk in the first place. I wonder what that says about the OS
compatibility explanation?
Since @zenhack got it to work I'm hoping there's just something simple I'm
missing.
…On Sat, Jan 1, 2022 at 2:11 PM Daniel Krol ***@***.***> wrote:
It's been a while but from my recollection I tried deleting those symlinks
based on someone out there having figured that out before. However, I had
other problems after.
However I'll take a look tomorrow to confirm. I'll post whatever errors I
see in case it's related to the OP's issue.
On Sat, Jan 1, 2022 at 1:13 AM Jacob Weisz ***@***.***> wrote:
> Was this also @orblivion <https://github.com/orblivion>'s issue with
> Etherpad packaging?
>
> —
> Reply to this email directly, view it on GitHub
> <
#3535 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAAKH6CNOCLO7457NDF7ZWTUT2LQPANCNFSM47BKW3LA
>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
>
> or Android
> <
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
>.
>
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#3535 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAKH6BZNOQQZZRVLO5EMTDUT5GWPANCNFSM47BKW3LA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Note that in this instance I was talking about ttrss; I'm having other problems with the etherpad build which are not resolved, but they seem unrelated. |
I just spent way too long figuring out behavior that seemed rather unpredictable to me. However most of it was related to a simple misunderstanding on my part of @zenhack's solution (which seems pretty dumb of me in retrospect). So, lest anybody else waste this time, I'll clarify: In your
For entertainment's sake: If you do delete the symlinks, what will happen is that your spk will build. When you run it, you will find that not only can it not find anything under the There's still something I have to figure out related to generating |
Was getting errors from spk pack due to sandstorm-io/sandstorm#3535
I just hit this issue today, though I built on an older sandstorm-files list to start from and upgraded the base box. The old package didn't have the issue (and didn't have the |
I'm running into a an error when trying to package an app.
spk dev
seems to work fine and I can interact with the app within my sandstorm environment but I get the following when I try to run thespk dev my-app.spk
command:*** Uncaught exception *** sandstorm/spk.c++:1171: failed: expected children.empty(); got symlink, expected directory; target = /lib stack: 61306d 61186a 61094e 61089c 662ce3 663246
The text was updated successfully, but these errors were encountered: