Giter Club home page Giter Club logo

Comments (12)

jparyani avatar jparyani commented on May 22, 2024

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 run rm -rf /opt/sandstorm/var/sandstorm/apps/$ID*

After this, you should be able to install the app like normal.

from sandstorm.

lofidevops avatar lofidevops commented on May 22, 2024

Submitted log. I'll give feedback as soon as I get a chance to try the workaround. Thanks!

from sandstorm.

lofidevops avatar lofidevops commented on May 22, 2024

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.

ocdtrekkie avatar ocdtrekkie commented on May 22, 2024

(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.

lofidevops avatar lofidevops commented on May 22, 2024

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.

ocdtrekkie avatar ocdtrekkie commented on May 22, 2024

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.

lofidevops avatar lofidevops commented on May 22, 2024

This is the URL I am on when the error occurs:

http://localhost:6080/install/4f0278fcda80492b8d23398692c7326d?url=http://sandstorm.io/apps/mediagoblin.spk

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.

lofidevops avatar lofidevops commented on May 22, 2024

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.

kentonv avatar kentonv commented on May 22, 2024

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.

  1. Use sudo sandstorm mongo to open the database viewer, and do:

    db.packages.remove({_id: "$PACKAGE_HASH"})
    
  2. 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.

lofidevops avatar lofidevops commented on May 22, 2024

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.

lofidevops avatar lofidevops commented on May 22, 2024

"New instance" works too. :)

from sandstorm.

kentonv avatar kentonv commented on May 22, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.