Comments (12)
Sorry, this is a known issue with installing new apps. We've had some trouble tracking it down, and if it's not too much trouble, could you email your sandstorm log (by default at /opt/sandstorm/var/log/sandstorm.log) to me ([email protected]).
For a temporary fix, you can do the following:
- First, run
sudo sandstorm mongo
to connect to the database. Then in the mongo shell run the following two commands::
db.packages.find({appId: "70awyqss6jq2gkz7dwzsnvumzr07256pzdt3hda9acfuxwh6uh7h"})
# save the results from the find somewhere
db.packages.remove({appId: "70awyqss6jq2gkz7dwzsnvumzr07256pzdt3hda9acfuxwh6uh7h"})
- Then you need to delete the app's folder on the filesystem. To do this, take the results from the
find
command above and look at the _id field. Then runrm -rf /opt/sandstorm/var/sandstorm/apps/$ID*
After this, you should be able to install the app like normal.
from sandstorm.
Submitted log. I'll give feedback as soon as I get a chance to try the workaround. Thanks!
from sandstorm.
I didn't get any results for the db.packages.find command. I inspected /opt/sandstorm/var/sandstorm and deleted the app that was named MediaGoblin in its sandstorm manifest. Sandstorm isn't starting now, presumably because I shouldn't have done that ;) - I'll try a restart, then a reinstall and then try installing MediaGoblin again.
from sandstorm.
(Complete sidebar) As a future suggestion, it might be ideal to submit app issues on the apps themselves for cleanliness and such (for instance https://github.com/jparyani/mediagoblin/issues for MediaGoblin).
from sandstorm.
I had no idea! I'll do that in future (happy to close this and take up discussion there).
After a restart, Sandstorm still starts, same error when trying to install MediaGoblin.
from sandstorm.
I don't think there's any need to close/reopen the issue now that it's here, just a thought for the future. :)
from sandstorm.
This is the URL I am on when the error occurs:
At this point no sandstorm manifest says "MediaGoblin":
me@host /o/s/v/s/apps> cat 5e88e0479075ad0408a71af73b906729/sandstorm-manifest
��%*%*PATH/usr/local/bin:/usr/bin:/bin:/opt/app/sandstorm/binHOME/var⏎
me@host /o/s/v/s/apps> cat 9e3c9db17606b138b087535b0b187ea1/sandstorm-manifest
��*����/sandstorm-http-bridge8888--./run-notebook.sh��*�PATH/usr/local/bin:/usr/bin:/bin⏎
me@host /o/s/v/s/apps> cat c38aa9f0811d1164bdd7746b30f0badb/sandstorm-manifest
��2����/sandstorm-http-bridge33411--/run-sandstorm.sh��*�PATH/usr/local/bin:/usr/bin:/bin⏎
me@host /o/s/v/s/apps> cat 992eb56f773d67f6c56abd88b00b089e/sandstorm-manifest
��2����/sandstorm-http-bridge33411--/run-sandstorm.sh��*�PATH/usr/local/bin:/usr/bin:/bin⏎
me@host /o/s/v/s/apps> cat a487cd628c051e2de9e12b2651ace994/sandstorm-manifest
�/legacy-bridgez :127.0.0.1:8080/shell⏎
from sandstorm.
Same error ("Failed to install app! Somehow this package has been unpacked previously but we don't have its appId.") if I download the SPK and upload it using the "Upload" button.
(URL is http://localhost:6080/install/4f0278fcda80492b8d23398692c7326d in this case)
from sandstorm.
Failed to install app! Somehow this package has been unpacked previously but we don't have its appId.
This suggests that you didn't fully delete the app before re-installing it. You need to delete it both from the filesystem and from the database before retrying.
-
Use
sudo sandstorm mongo
to open the database viewer, and do:db.packages.remove({_id: "$PACKAGE_HASH"})
-
Delete
/opt/sandstorm/var/sandstorm/$PACKAGE_HASH
.
Replace $PAKCAGE_HASH
with the long hex string you see in the URL when trying to install the package.
Of course, even after un-sticking one install, the same problem can still happen again on a future install. We're working on tracking this down for real...
BTW, this bug is not specific to MediaGoblin, so it's completely appropriate to report it here.
from sandstorm.
I'm not sure if this is helpful... after an (unrelated?) fight with the RequestPolicy add-on in Firefox I opened my local Sandstorm in Chromium and tried this again. The first time I got the same error message, and I clicked on "Try again". This time it took longer... and worked. I am presented with MediaGoblin in the app list, and the option to create "New MediaGoblin Instace".
These logs may help? ...
** Restarting
** Starting MongoDB...
note: noprealloc may hurt performance in many applications
about to fork child process, waiting until server is ready for connections.
forked process: 129
all output going to: /var/log/mongo.log
log file [/var/log/mongo.log] exists; copied to temporary file [/var/log/mongo.log.2014-08-12T14-20-28]
child process started successfully, parent exiting
** Mongo started; now starting front-end...
Error: Unauthorized [403]
at Proxy.makeContext (app/server/proxy.js:713:11)
at app/server/proxy.js:798:17
at invokeCallback (/programs/server/npm/es6-promise/main/node_modules/es6-promise/dist/commonjs/promise/promise.js:53:15)
at publish (/programs/server/npm/es6-promise/main/node_modules/es6-promise/dist/commonjs/promise/promise.js:98:5)
at publishFulfillment (/programs/server/npm/es6-promise/main/node_modules/es6-promise/dist/commonjs/promise/promise.js:204:3)
at flush (/programs/server/npm/es6-promise/main/node_modules/es6-promise/dist/commonjs/promise/asap.js:35:5)
at process._tickCallback (node.js:419:13)
Error: Unauthorized [403]
at Proxy.makeContext (app/server/proxy.js:713:11)
at app/server/proxy.js:798:17
at invokeCallback (/programs/server/npm/es6-promise/main/node_modules/es6-promise/dist/commonjs/promise/promise.js:53:15)
at publish (/programs/server/npm/es6-promise/main/node_modules/es6-promise/dist/commonjs/promise/promise.js:98:5)
at publishFulfillment (/programs/server/npm/es6-promise/main/node_modules/es6-promise/dist/commonjs/promise/promise.js:204:3)
at flush (/programs/server/npm/es6-promise/main/node_modules/es6-promise/dist/commonjs/promise/asap.js:35:5)
at process._tickCallback (node.js:419:13)
Error: Grain Not Found [404]
at continueGrain (app/server/proxy.js:234:11)
at app/server/proxy.js:634:7
at app/server/proxy.js:55:17
at app/server/proxy.js:47:3
at runWithEnvironment (packages/meteor/dynamics_nodejs.js:108)
Error: Grain Not Found [404]
at continueGrain (app/server/proxy.js:234:11)
at app/server/proxy.js:634:7
at app/server/proxy.js:55:17
at app/server/proxy.js:47:3
at runWithEnvironment (packages/meteor/dynamics_nodejs.js:108)
Unpacking app: /var/sandstorm/downloads/4f0278fcda80492b8d23398692c7326d.verified
Analyzing app: /var/sandstorm/downloads/4f0278fcda80492b8d23398692c7326d.verified
App ready: /var/sandstorm/apps/4f0278fcda80492b8d23398692c7326d
from sandstorm.
"New instance" works too. :)
from sandstorm.
@kwill error messages will sometimes stick around until you click "try again", even if you've deleted stuff from disk in the meantime. That's expected.
The main bug we want to track down is where it gets stuck in "analyzing", but we haven't managed to figure that out yet.
from sandstorm.
Related Issues (20)
- Error reinstalling sandstorm HOT 6
- Automatic Grain Backups HOT 1
- Etherpad grains not working after upgrade to 0.304 HOT 7
- Email delivery failure messages no such grain with email not configured HOT 12
- Scheduled Tasks view in Grain Settings appears broken HOT 3
- Installer and docs disagree on which port the incoming mail SMTP service lives on HOT 5
- Can't turn off app updates in App Sources panel HOT 3
- Building Sandstorm in a Debian Bullseye VM fails due to old golang-go version HOT 4
- "App market" shortcut leads to invalid URL HOT 2
- 404 on token setup page HOT 2
- Anything important worth saving at Google Groups? HOT 4
- able to Install Apps from https://apps.sandstorm.io/ But Grains were loading for ever HOT 22
- Perfect Configuration in Nginx for Sandstorm *.Wildcard Setup HOT 3
- docker compose unshare(CLONE_NEWPID) HOT 4
- Lengthy Powerbox requests cannot be read in full
- Failed to renew Let's Encrypt certificate HOT 12
- sandstorm.conf for non-standard TLD? HOT 6
- I used HTTPS-verified install, But open site ,it is blank? HOT 3
- Upgrade Meteor Testapp to Meteor 3.0 (Beta) HOT 7
- Preventing access to client local network? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sandstorm.