olragon / heroku-buildpack-node-plus

Heroku buildpack NodeJS with battery included: PhantomJS, CasperJS
MIT License
0 stars 1 forks source link

Error while pushing heroku app with buildpack #1

Open micheltem opened 10 years ago

micheltem commented 10 years ago

Hi, I am trying to use this buildpack as it would solve the issue I am facing of deploying a casperjs/phantomjs nodejs app to Heroku. Unfortunately its failing with this error:

...
-----> Installing dependencies with npm
+ run_npm 'install --production'
+ command='install --production'
+ cd /tmp/build_15575922-2894-432d-9760-39afa10c4b5b
+ HOME=/tmp/build_15575922-2894-432d-9760-39afa10c4b5b
+ /tmp/node-node-zSqe/bin/node /tmp/node-npm-JzV9/cli.js install --production
+ indent
+ c='s/^/       /'
+ case $(uname) in
++ uname
+ sed -u 's/^/       /'
+ '[' '0 0' '!=' '0 0' ']'
+ run_npm rebuild
+ command=rebuild
+ cd /tmp/build_15575922-2894-432d-9760-39afa10c4b5b
+ HOME=/tmp/build_15575922-2894-432d-9760-39afa10c4b5b
+ /tmp/node-node-zSqe/bin/node /tmp/node-npm-JzV9/cli.js rebuild
+ indent
+ c='s/^/       /'
+ case $(uname) in
++ uname
+ sed -u 's/^/       /'

       > sqlite3@2.2.3 install /tmp/build_15575922-2894-432d-9760-39afa10c4b5b/node_modules/lockit-auth/node_modules/sqlite3
       > node-pre-gyp install --fallback-to-build

       node-pre-gyp http GET https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz
       node-pre-gyp http 200 https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.3-node-v11-linux-x64.tar.gz
       [sqlite3] Command failed:
       module.js:356
         Module._extensions[extension](this, filename);
                                      ^
       Error: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /tmp/build_15575922-2894-432d-9760-39afa10c4b5b/node_modules/lockit-auth/node_modules/sqlite3/lib/binding/node-v11-linux-x64/node_sqlite3.node)
           at Module.load (module.js:356:32)
           at Function.Module._load (module.js:312:12)
           at Module.require (module.js:364:17)
           at require (module.js:380:17)
           at [eval]:1:1
           at Object.<anonymous> ([eval]-wrapper:6:22)
           at Module._compile (module.js:456:26)
           at evalScript (node.js:532:25)
           at startup (node.js:80:7)
           at node.js:901:3

       node-pre-gyp ERR! Testing pre-built binary failed, attempting to source compile
       gyp http GET http://nodejs.org/dist/v0.10.21/node-v0.10.21.tar.gz
       gyp http 200 http://nodejs.org/dist/v0.10.21/node-v0.10.21.tar.gz

...

../src/thread.cc:12: error: variable or field 'HandleStreamEvents' declared void
       ../src/thread.cc:12: error: 'ConstFSEventStreamRef' was not declared in this scope
       ../src/thread.cc:12: error: expected primary-expression before 'void'
       ../src/thread.cc:12: error: expected primary-expression before 'numEvents'
       ../src/thread.cc:12: error: expected primary-expression before 'void'
       ../src/thread.cc:12: error: expected primary-expression before 'const'
       In file included from ../fsevents.cc:81:
       ../src/thread.cc:12: error: expected primary-expression before 'const'
       make: *** [Release/obj.target/fse/fsevents.o] Error 1
       make: Leaving directory `/tmp/build_15575922-2894-432d-9760-39afa10c4b5b/node_modules/karma/node_modules/chokidar/node_modules/fsevents/build'
       gyp ERR! build error
       gyp ERR! stack Error: `make` failed with exit code: 2
       gyp ERR! stack     at ChildProcess.onExit (/tmp/node-npm-JzV9/node_modules/node-gyp/lib/build.js:267:23)
       gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
       gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
       gyp ERR! System Linux 3.8.11-ec2
       gyp ERR! command "node" "/tmp/node-npm-JzV9/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
       gyp ERR! cwd /tmp/build_15575922-2894-432d-9760-39afa10c4b5b/node_modules/karma/node_modules/chokidar/node_modules/fsevents
       gyp ERR! node -v v0.10.21
       gyp ERR! node-gyp -v v0.10.10
       gyp ERR! not ok
       npm ERR! weird error 1
       npm ERR! not ok code 0
+ '[' '1 0' '!=' '0 0' ']'
+ echo ' !     Failed to rebuild dependencies with npm'
 !     Failed to rebuild dependencies with npm
+ exit 1

 !     Push rejected, failed to compile Node.js app

Any ideas what this could be?

Thanks, any help is appreciated

olragon commented 10 years ago

Reading your error log, I can see Heroku cannot build SQLite3. Read more at https://devcenter.heroku.com/articles/sqlite3

You can try to compile SQLite3 in Heroku's dyno with hacks from https://github.com/yotsumoto/heroku-buildpack-ruby-with-sqlite3


Heroku does not recommend using SQLite3 on the system; for more information, please refer Heroku's document page SQLite on Heroku and read it carefully. The reason is that Heroku's Cedar stack has an ephemeral filesystem. This means that SQLite3's database contents will be cleared periodically. Therefore Heroku deliberately restricts the SQLite3 deploy.