I've managed to push https://github.com/hexojs/hexo to heroku but when I view app at http://warm-shelf-26895.herokuapp.com/ it failed completely.
I'm new to this can anybody tell me what went wrong and how to solve this ? TQ
$heroku logs
2016-04-08T09:04:12.913757+00:00 heroku[api]: Enable Logplex by kradzcalypse#icloud.com
2016-04-08T09:04:12.913787+00:00 heroku[api]: Release v2 created by kradzcalypse#icloud.com
2016-04-08T09:45:15.587805+00:00 heroku[api]: Scale to web=1 by kradzcalypse#icloud.com
2016-04-08T09:45:15.669657+00:00 heroku[api]: Deploy fcfe397 by kradzcalypse#icloud.com
2016-04-08T09:45:15.669657+00:00 heroku[api]: Release v3 created by kradzcalypse#icloud.com
2016-04-08T09:45:16.046236+00:00 heroku[slug-compiler]: Slug compilation started
2016-04-08T09:45:16.046251+00:00 heroku[slug-compiler]: Slug compilation finished
2016-04-08T09:45:17.763235+00:00 heroku[web.1]: Starting process with command `npm start`
2016-04-08T09:45:19.851147+00:00 app[web.1]: npm ERR! Linux 3.13.0-79-generic
2016-04-08T09:45:19.851749+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
2016-04-08T09:45:19.852084+00:00 app[web.1]: npm ERR! node v5.10.0
2016-04-08T09:45:19.852499+00:00 app[web.1]: npm ERR! npm v3.8.3
2016-04-08T09:45:19.853761+00:00 app[web.1]:
2016-04-08T09:45:19.854672+00:00 app[web.1]: npm ERR! missing script: start
2016-04-08T09:45:19.854860+00:00 app[web.1]: npm ERR!
2016-04-08T09:45:19.855012+00:00 app[web.1]: npm ERR! If you need help, you may report this error at:
2016-04-08T09:45:19.855162+00:00 app[web.1]: npm ERR! <https://github.com/npm/npm/issues>
2016-04-08T09:45:19.862944+00:00 app[web.1]:
2016-04-08T09:45:19.863162+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
2016-04-08T09:45:19.863322+00:00 app[web.1]: npm ERR! /app/npm-debug.log
2016-04-08T09:45:20.533551+00:00 heroku[web.1]: Process exited with status 1
2016-04-08T09:45:20.555438+00:00 heroku[web.1]: State changed from starting to crashed
2016-04-08T09:45:20.555438+00:00 heroku[web.1]: State changed from crashed to starting
2016-04-08T09:45:22.881666+00:00 heroku[web.1]: Starting process with command `npm start`
2016-04-08T09:45:26.272162+00:00 app[web.1]: npm ERR! Linux 3.13.0-79-generic
2016-04-08T09:45:26.273164+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
2016-04-08T09:45:26.273607+00:00 app[web.1]: npm ERR! node v5.10.0
2016-04-08T09:45:26.274846+00:00 app[web.1]: npm ERR! npm v3.8.3
2016-04-08T09:45:26.277179+00:00 app[web.1]:
2016-04-08T09:45:26.278900+00:00 app[web.1]: npm ERR! missing script: start
2016-04-08T09:45:26.279148+00:00 app[web.1]: npm ERR!
2016-04-08T09:45:26.279341+00:00 app[web.1]: npm ERR! If you need help, you may report this error at:
2016-04-08T09:45:26.281819+00:00 app[web.1]: npm ERR! <https://github.com/npm/npm/issues>
2016-04-08T09:45:26.292949+00:00 app[web.1]:
2016-04-08T09:45:26.293196+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
2016-04-08T09:45:26.293328+00:00 app[web.1]: npm ERR! /app/npm-debug.log
2016-04-08T09:45:27.124881+00:00 heroku[web.1]: Process exited with status 1
2016-04-08T09:45:27.140895+00:00 heroku[web.1]: State changed from starting to crashed
2016-04-08T09:45:30.487088+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=warm-shelf-26895.herokuapp.com request_id=e68542c6-df1f-45f4-9d91-db7b1d8dd946 fwd="175.140.32.164" dyno= connect= service= status=503 bytes=
2016-04-08T09:45:31.041140+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=warm-shelf-26895.herokuapp.com request_id=2de0617a-7eeb-48a9-b52d-b8a46173d937 fwd="175.140.32.164" dyno= connect= service= status=503 bytes=
2016-04-08T09:46:38.285172+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=warm-shelf-26895.herokuapp.com request_id=4b14dd49-1fdc-4875-ac22-824c5d37882e fwd="175.140.32.164" dyno= connect= service= status=503 bytes=
2016-04-08T09:46:38.945206+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=warm-shelf-26895.herokuapp.com request_id=ebf705e1-bdb6-4920-91c8-3a2c9ca6f886 fwd="175.140.32.164" dyno= connect= service= status=503 bytes=
2016-04-08T09:58:59.898426+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=warm-shelf-26895.herokuapp.com request_id=5b02691f-9a0a-417a-be78-6dad9cf03166 fwd="175.140.32.164" dyno= connect= service= status=503 bytes=
2016-04-08T09:59:00.442958+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=warm-shelf-26895.herokuapp.com request_id=eee3f185-f71b-416e-a0e8-2755b232029d fwd="175.140.32.164" dyno= connect= service= status=503 bytes=
2016-04-08T10:09:10.794586+00:00 heroku[web.1]: State changed from crashed to starting
2016-04-08T10:09:12.937261+00:00 heroku[web.1]: Starting process with command `npm start`
2016-04-08T10:09:15.021924+00:00 app[web.1]: npm ERR! Linux 3.13.0-79-generic
2016-04-08T10:09:15.022475+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
2016-04-08T10:09:15.022808+00:00 app[web.1]: npm ERR! node v5.10.0
2016-04-08T10:09:15.023416+00:00 app[web.1]: npm ERR! npm v3.8.3
2016-04-08T10:09:15.025088+00:00 app[web.1]:
2016-04-08T10:09:15.026532+00:00 app[web.1]: npm ERR! missing script: start
2016-04-08T10:09:15.026673+00:00 app[web.1]: npm ERR!
2016-04-08T10:09:15.026844+00:00 app[web.1]: npm ERR! <https://github.com/npm/npm/issues>
2016-04-08T10:09:15.026761+00:00 app[web.1]: npm ERR! If you need help, you may report this error at:
2016-04-08T10:09:15.035679+00:00 app[web.1]:
2016-04-08T10:09:15.035839+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
2016-04-08T10:09:15.035928+00:00 app[web.1]: npm ERR! /app/npm-debug.log
2016-04-08T10:09:15.765024+00:00 heroku[web.1]: State changed from starting to crashed
2016-04-08T10:09:15.740933+00:00 heroku[web.1]: Process exited with status 1
2016-04-08T10:25:12.503232+00:00 heroku[slug-compiler]: Slug compilation started
2016-04-08T10:25:12.503240+00:00 heroku[slug-compiler]: Slug compilation failed: failed to detect set buildpack heroku/nodejs
2016-04-08T10:25:12.503242+00:00 heroku[slug-compiler]: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
2016-04-08T10:26:22.776928+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=warm-shelf-26895.herokuapp.com request_id=74d90d49-75ed-4fbc-a0c6-b463bf599c8b fwd="175.140.32.164" dyno= connect= service= status=503 bytes=
2016-04-08T10:26:23.745972+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=warm-shelf-26895.herokuapp.com request_id=59c101ef-28af-4c01-bb9a-644e86077a01 fwd="175.140.32.164" dyno= connect= service= status=503 bytes=
You should include a scripts section in your package.json specifying the correct node command you use to start your application. e.g.:
scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node app.js"
},
Related
I created sinatra app and trying to deploy it on Heroku. When I push heroku with git push heroku master, it looks the app is successfully deployed but then when I implement heroku open it shows application error.
I created app using sinatra with postgresql DB.
I tried many stuffs but really can't figure out what actually causes the error.
I tried
・Destroyed and recreated heroku app.
・Uninstalled bundler and installed 1.15.2 since 1.17.2 which was installed at first did not work.
・Deleted Gem file and recreated.
・Tried puma.(also modified Procfile with web: bundle exec puma -C config/puma.rb)
etc..
$ git push heroku master
Enumerating objects: 573, done.
Counting objects: 100% (573/573), done.
Delta compression using up to 4 threads
Compressing objects: 100% (559/559), done.
Writing objects: 100% (573/573), 15.77 MiB | 219.00 KiB/s, done.
Total 573 (delta 314), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rack
remote: -----> Using Ruby version: ruby-2.6.3
remote: -----> Installing dependencies using bundler 1.15.2
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Fetching gem metadata from https://rubygems.org/.........
remote: Fetching backports 3.15.0
remote: Using bundler 1.17.2
remote: Fetching mustermann 1.0.3
remote: Fetching multi_json 1.13.1
remote: Installing mustermann 1.0.3
remote: Installing multi_json 1.13.1
remote: Installing backports 3.15.0
remote: Fetching nio4r 2.5.1
remote: Installing nio4r 2.5.1 with native extensions
remote: Fetching pg 1.1.4
remote: Installing pg 1.1.4 with native extensions
remote: Fetching rack 2.0.7
remote: Installing rack 2.0.7
remote: Fetching tilt 2.0.9
remote: Installing tilt 2.0.9
remote: Fetching rack-protection 2.0.7
remote: Installing rack-protection 2.0.7
remote: Fetching sinatra 2.0.7
remote: Installing sinatra 2.0.7
remote: Fetching sinatra-contrib 2.0.7
remote: Installing sinatra-contrib 2.0.7
remote: Fetching puma 4.1.1
remote: Installing puma 4.1.1 with native extensions
remote: Bundle complete! 5 Gemfile dependencies, 12 gems now installed.
remote: Gems in the groups development and test were not installed.
remote: Bundled gems are installed into `./vendor/bundle`
remote: Removing bundler (1.15.2)
remote: Bundle completed (20.07s)
remote: Cleaning up the bundler cache.
remote: -----> Writing config/database.yml to read from DATABASE_URL
remote: -----> Detecting rake tasks
remote:
remote:
remote: -----> Discovering process types
remote: Procfile declares types -> web
remote: Default types for buildpack -> console, rake
remote:
remote: -----> Compressing...
remote: Done: 30.1M
remote: -----> Launching...
remote: Released v6
remote: https://ancient-crag-43793.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/ancient-crag-43793.git
* [new branch] master -> master
$ heroku logs
2019-09-12T03:13:52.000000+00:00 app[api]: Build succeeded
2019-09-12T03:13:53.745451+00:00 heroku[web.1]: Starting process with command `bundle exec ruby app.rb -p 36930`
2019-09-12T03:13:56.583038+00:00 heroku[web.1]: State changed from starting to crashed
2019-09-12T03:13:56.587379+00:00 heroku[web.1]: State changed from crashed to starting
2019-09-12T03:13:56.555987+00:00 heroku[web.1]: Process exited with status 1
2019-09-12T03:13:56.503859+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `initialize': could not connect to server: Connection refused (PG::ConnectionBad)
2019-09-12T03:13:56.503879+00:00 app[web.1]: Is the server running on host "localhost" (127.0.0.1) and accepting
2019-09-12T03:13:56.503881+00:00 app[web.1]: TCP/IP connections on port 5432?
2019-09-12T03:13:56.503883+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `new'
2019-09-12T03:13:56.503885+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `connect'
2019-09-12T03:13:56.503887+00:00 app[web.1]: from app.rb:11:in `<main>'
2019-09-12T03:13:58.532988+00:00 heroku[web.1]: Starting process with command `bundle exec ruby app.rb -p 33962`
2019-09-12T03:14:01.220318+00:00 heroku[web.1]: State changed from starting to crashed
2019-09-12T03:14:01.136864+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `initialize': could not connect to server: Connection refused (PG::ConnectionBad)
2019-09-12T03:14:01.136884+00:00 app[web.1]: Is the server running on host "localhost" (127.0.0.1) and accepting
2019-09-12T03:14:01.136886+00:00 app[web.1]: TCP/IP connections on port 5432?
2019-09-12T03:14:01.136888+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `new'
2019-09-12T03:14:01.136890+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `connect'
2019-09-12T03:14:01.136892+00:00 app[web.1]: from app.rb:11:in `<main>'
2019-09-12T03:14:01.197593+00:00 heroku[web.1]: Process exited with status 1
2019-09-12T03:16:16.795355+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=ancient-crag-43793.herokuapp.com request_id=8859880d-47b9-49f9-b847-2a02099bc855 fwd="106.181.207.226" dyno= connect= service= status=503 bytes= protocol=https
2019-09-12T03:16:17.126133+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/robots.txt" host=ancient-crag-43793.herokuapp.com request_id=5d0bd878-aed7-4625-acc4-86f40c801a46 fwd="106.181.207.226" dyno= connect= service= status=503 bytes= protocol=https
2019-09-12T03:16:17.639402+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=ancient-crag-43793.herokuapp.com request_id=91cb566e-dc2c-4806-9790-3b3ba4b72ec3 fwd="106.181.207.226" dyno= connect= service= status=503 bytes= protocol=https
2019-09-12T03:20:09.313587+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=ancient-crag-43793.herokuapp.com request_id=9a8430b7-14c9-4794-9de1-69f319b7ec67 fwd="106.181.207.226" dyno= connect= service= status=503 bytes= protocol=https
2019-09-12T03:20:10.696885+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/robots.txt" host=ancient-crag-43793.herokuapp.com request_id=0a479063-1e8e-40bb-82c9-4d149150fe11 fwd="106.181.207.226" dyno= connect= service= status=503 bytes= protocol=https
2019-09-12T03:20:11.220968+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=ancient-crag-43793.herokuapp.com request_id=a74ee463-52af-458b-aab9-11181287089a fwd="106.181.207.226" dyno= connect= service= status=503 bytes= protocol=https
2019-09-12T03:38:07.360350+00:00 heroku[web.1]: State changed from crashed to starting
2019-09-12T03:38:09.195028+00:00 heroku[web.1]: Starting process with command `bundle exec ruby app.rb -p 21707`
2019-09-12T03:38:12.014593+00:00 heroku[web.1]: State changed from starting to crashed
2019-09-12T03:38:11.945704+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `initialize': could not connect to server: Connection refused (PG::ConnectionBad)
2019-09-12T03:38:11.945730+00:00 app[web.1]: Is the server running on host "localhost" (127.0.0.1) and accepting
2019-09-12T03:38:11.945732+00:00 app[web.1]: TCP/IP connections on port 5432?
2019-09-12T03:38:11.945778+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `new'
2019-09-12T03:38:11.945780+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `connect'
2019-09-12T03:38:11.945786+00:00 app[web.1]: from app.rb:11:in `<main>'
2019-09-12T03:38:11.997334+00:00 heroku[web.1]: Process exited with status 1
2019-09-12T03:42:21.000000+00:00 app[api]: Build started by user "my email address"
2019-09-12T03:42:28.853379+00:00 heroku[web.1]: State changed from crashed to starting
2019-09-12T03:42:28.539461+00:00 app[api]: Deploy 00584404 by user "my email address"
2019-09-12T03:42:28.539461+00:00 app[api]: Release v7 created by user "my email address"
2019-09-12T03:42:29.000000+00:00 app[api]: Build succeeded
2019-09-12T03:42:30.598759+00:00 heroku[web.1]: Starting process with command `bundle exec ruby app.rb -p 12078`
2019-09-12T03:42:33.295521+00:00 heroku[web.1]: State changed from starting to crashed
2019-09-12T03:42:33.282712+00:00 heroku[web.1]: Process exited with status 1
2019-09-12T03:42:33.217024+00:00 app[web.1]: /app/vendor/bundle/ruby/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `initialize': could not connect to server: Connection refused (PG::ConnectionBad)
2019-09-12T03:42:33.217056+00:00 app[web.1]: Is the server running on host "localhost" (127.0.0.1) and accepting
2019-09-12T03:42:33.217059+00:00 app[web.1]: TCP/IP connections on port 5432?
2019-09-12T03:42:33.217077+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `new'
2019-09-12T03:42:33.217080+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `connect'
2019-09-12T03:42:33.217087+00:00 app[web.1]: from app.rb:11:in `<main>'
2019-09-12T03:43:03.364089+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=ancient-crag-43793.herokuapp.com request_id=f70df879-4c32-4d96-a669-266609b48f93 fwd="106.181.207.226" dyno= connect= service= status=503 bytes= protocol=https
2019-09-12T03:43:04.119899+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=ancient-crag-43793.herokuapp.com request_id=fb27aee3-f2e8-4af8-98c1-ce9479052001 fwd="106.181.207.226" dyno= connect= service= status=503 bytes= protocol=https
could not connect to server: Connection refused (PG::ConnectionBad)
Is DB somehow causing the error..?
app.rb
require 'sinatra'
require 'sinatra/reloader'
require 'sinatra/cookies'
require 'pg'
require 'bundler/setup'
Bundler.require
enable :sessions
client = PG::connect(
:host => "localhost",
:user => 'tomoyo', :password => '',
:dbname => "myapp")
I deployed my yeoman fullstack app and I get an error:
An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details.
I am trying to deploy an application on heroku for the first time.Any pointers to fix this?
I have followed regular tutorials to get this up on heroky, used grunt build and grunt dist:serve and it runs just fine locally without any errors.
My logs look like this:
2016-03-31T01:04:08.910519+00:00 heroku[web.1]: State changed from starting to crashed
2016-03-31T02:27:45.799910+00:00 heroku[web.1]: State changed from crashed to starting
2016-03-31T02:27:47.434640+00:00 heroku[web.1]: Starting process with command `npm start`
2016-03-31T02:27:49.777251+00:00 app[web.1]:
2016-03-31T02:27:49.777274+00:00 app[web.1]: > angular-test#0.0.0 start /app
2016-03-31T02:27:49.777275+00:00 app[web.1]: > node server/app.js
2016-03-31T02:27:49.777275+00:00 app[web.1]:
2016-03-31T02:27:50.437299+00:00 app[web.1]: fs.js:892
2016-03-31T02:27:50.437312+00:00 app[web.1]: return binding.stat(pathModule._makeLong(path));
2016-03-31T02:27:50.437313+00:00 app[web.1]: ^
2016-03-31T02:27:50.437313+00:00 app[web.1]:
2016-03-31T02:27:50.437314+00:00 app[web.1]: Error: ENOENT: no such file or directory, stat '/app/public/favicon.ico'
2016-03-31T02:27:50.437314+00:00 app[web.1]: at Error (native)
2016-03-31T02:27:50.437315+00:00 app[web.1]: at Object.fs.statSync (fs.js:892:18)
2016-03-31T02:27:50.437316+00:00 app[web.1]: at favicon (/app/node_modules/serve-favicon/index.js:47:15)
2016-03-31T02:27:50.437316+00:00 app[web.1]: at module.exports (/app/server/config/express.js:35:13)
2016-03-31T02:27:50.437328+00:00 app[web.1]: at Object.<anonymous> (/app/server/app.js:27:28)
2016-03-31T02:27:50.437329+00:00 app[web.1]: at Module._compile (module.js:413:34)
2016-03-31T02:27:50.437330+00:00 app[web.1]: at Object.Module._extensions..js (module.js:422:10)
2016-03-31T02:27:50.437330+00:00 app[web.1]: at Module.load (module.js:357:32)
2016-03-31T02:27:50.437331+00:00 app[web.1]: at Function.Module._load (module.js:314:12)
2016-03-31T02:27:50.437331+00:00 app[web.1]: at Function.Module.runMain (module.js:447:10)
2016-03-31T02:27:50.437332+00:00 app[web.1]: at startup (node.js:142:18)
2016-03-31T02:27:50.437332+00:00 app[web.1]: at node.js:939:3
2016-03-31T02:27:50.446714+00:00 app[web.1]:
2016-03-31T02:27:50.455228+00:00 app[web.1]: npm ERR! Linux 3.13.0-79-generic
2016-03-31T02:27:50.455710+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
2016-03-31T02:27:50.455963+00:00 app[web.1]: npm ERR! node v5.9.1
2016-03-31T02:27:50.456507+00:00 app[web.1]: npm ERR! npm v3.7.3
2016-03-31T02:27:50.456774+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2016-03-31T02:27:50.456952+00:00 app[web.1]: npm ERR! angular-test#0.0.0 start: `node server/app.js`
2016-03-31T02:27:50.457115+00:00 app[web.1]: npm ERR! Exit status 1
2016-03-31T02:27:50.457427+00:00 app[web.1]: npm ERR!
2016-03-31T02:27:50.457580+00:00 app[web.1]: npm ERR! Failed at the angular-test#0.0.0 start script 'node server/app.js'.
2016-03-31T02:27:50.457778+00:00 app[web.1]: npm ERR! Make sure you have the latest version of node.js and npm installed.
2016-03-31T02:27:50.457968+00:00 app[web.1]: npm ERR! If you do, this is most likely a problem with the angular-test package,
2016-03-31T02:27:50.458168+00:00 app[web.1]: npm ERR! not with npm itself.
2016-03-31T02:27:50.458354+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:
2016-03-31T02:27:50.458728+00:00 app[web.1]: npm ERR! You can get information on how to open an issue for this project with:
2016-03-31T02:27:50.458538+00:00 app[web.1]: npm ERR! node server/app.js
2016-03-31T02:27:50.458921+00:00 app[web.1]: npm ERR! npm bugs angular-test
2016-03-31T02:27:50.459097+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via:
2016-03-31T02:27:50.460235+00:00 app[web.1]: npm ERR! There is likely additional logging output above.
2016-03-31T02:27:50.460234+00:00 app[web.1]: npm ERR! npm owner ls angular-test
2016-03-31T02:27:50.465300+00:00 app[web.1]:
2016-03-31T02:27:50.465522+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
2016-03-31T02:27:50.465631+00:00 app[web.1]: npm ERR! /app/npm-debug.log
2016-03-31T02:27:51.249320+00:00 heroku[web.1]: State changed from starting to crashed
2016-03-31T02:27:51.235239+00:00 heroku[web.1]: Process exited with status 1
2016-03-31T05:14:03.873070+00:00 heroku[web.1]: State changed from crashed to starting
2016-03-31T05:14:05.244594+00:00 heroku[web.1]: Starting process with command `npm start`
2016-03-31T05:14:07.170039+00:00 app[web.1]:
2016-03-31T05:14:07.170054+00:00 app[web.1]: > angular-test#0.0.0 start /app
2016-03-31T05:14:07.170055+00:00 app[web.1]: > node server/app.js
2016-03-31T05:14:07.170056+00:00 app[web.1]:
2016-03-31T05:14:07.671688+00:00 app[web.1]: fs.js:892
2016-03-31T05:14:07.671722+00:00 app[web.1]: return binding.stat(pathModule._makeLong(path));
2016-03-31T05:14:07.671723+00:00 app[web.1]: ^
2016-03-31T05:14:07.671724+00:00 app[web.1]:
2016-03-31T05:14:07.671731+00:00 app[web.1]: Error: ENOENT: no such file or directory, stat '/app/public/favicon.ico'
2016-03-31T05:14:07.671731+00:00 app[web.1]: at Error (native)
2016-03-31T05:14:07.671732+00:00 app[web.1]: at Object.fs.statSync (fs.js:892:18)
2016-03-31T05:14:07.671733+00:00 app[web.1]: at favicon (/app/node_modules/serve-favicon/index.js:47:15)
2016-03-31T05:14:07.671733+00:00 app[web.1]: at module.exports (/app/server/config/express.js:35:13)
2016-03-31T05:14:07.671734+00:00 app[web.1]: at Object.<anonymous> (/app/server/app.js:27:28)
2016-03-31T05:14:07.671734+00:00 app[web.1]: at Module._compile (module.js:413:34)
2016-03-31T05:14:07.671735+00:00 app[web.1]: at Object.Module._extensions..js (module.js:422:10)
2016-03-31T05:14:07.671735+00:00 app[web.1]: at Module.load (module.js:357:32)
2016-03-31T05:14:07.671736+00:00 app[web.1]: at Function.Module._load (module.js:314:12)
2016-03-31T05:14:07.671736+00:00 app[web.1]: at Function.Module.runMain (module.js:447:10)
2016-03-31T05:14:07.671737+00:00 app[web.1]: at startup (node.js:142:18)
2016-03-31T05:14:07.671738+00:00 app[web.1]: at node.js:939:3
2016-03-31T05:14:07.685504+00:00 app[web.1]:
2016-03-31T05:14:07.696144+00:00 app[web.1]: npm ERR! Linux 3.13.0-77-generic
2016-03-31T05:14:07.696638+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
2016-03-31T05:14:07.696930+00:00 app[web.1]: npm ERR! node v5.9.1
2016-03-31T05:14:07.697704+00:00 app[web.1]: npm ERR! npm v3.7.3
2016-03-31T05:14:07.697991+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2016-03-31T05:14:07.698208+00:00 app[web.1]: npm ERR! angular-test#0.0.0 start: `node server/app.js`
2016-03-31T05:14:07.698406+00:00 app[web.1]: npm ERR! Exit status 1
2016-03-31T05:14:07.698612+00:00 app[web.1]: npm ERR!
2016-03-31T05:14:07.698816+00:00 app[web.1]: npm ERR! Failed at the angular-test#0.0.0 start script 'node server/app.js'.
2016-03-31T05:14:07.699013+00:00 app[web.1]: npm ERR! Make sure you have the latest version of node.js and npm installed.
2016-03-31T05:14:07.699208+00:00 app[web.1]: npm ERR! If you do, this is most likely a problem with the angular-test package,
2016-03-31T05:14:07.699396+00:00 app[web.1]: npm ERR! not with npm itself.
2016-03-31T05:14:07.699601+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:
2016-03-31T05:14:07.699789+00:00 app[web.1]: npm ERR! node server/app.js
2016-03-31T05:14:07.700018+00:00 app[web.1]: npm ERR! You can get information on how to open an issue for this project with:
2016-03-31T05:14:07.700228+00:00 app[web.1]: npm ERR! npm bugs angular-test
2016-03-31T05:14:07.700419+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via:
2016-03-31T05:14:07.700613+00:00 app[web.1]: npm ERR! npm owner ls angular-test
2016-03-31T05:14:07.700803+00:00 app[web.1]: npm ERR! There is likely additional logging output above.
2016-03-31T05:14:07.706094+00:00 app[web.1]:
2016-03-31T05:14:07.706368+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
2016-03-31T05:14:07.706545+00:00 app[web.1]: npm ERR! /app/npm-debug.log
2016-03-31T05:14:08.424826+00:00 heroku[web.1]: State changed from starting to crashed
2016-03-31T05:14:08.402585+00:00 heroku[web.1]: Process exited with status 1
2016-03-31T08:32:27.825054+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mozzoweb.herokuapp.com request_id=28e3e7fd-8664-400b-8e78-8cf4809086ef fwd="120.59.15.145" dyno= connect= service= status=503 bytes=
2016-03-31T08:32:28.447942+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=mozzoweb.herokuapp.com request_id=3989001b-7a89-4aab-8461-e81d0dff0617 fwd="120.59.15.145" dyno= connect= service= status=503 bytes=
2016-03-31T08:32:38.385147+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mozzoweb.herokuapp.com request_id=098cabd0-15ed-43f3-98b9-01c3130b1420 fwd="120.59.15.145" dyno= connect= service= status=503 bytes=
2016-03-31T08:32:39.202068+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=mozzoweb.herokuapp.com request_id=003a4589-f69c-4219-86cf-5c8e85c1bfb9 fwd="120.59.15.145" dyno= connect= service= status=503 bytes=
2016-03-31T08:35:40.667394+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mozzoweb.herokuapp.com request_id=ad81d2ef-4452-434c-b8e1-bd4935b372b5 fwd="120.59.15.145" dyno= connect= service= status=503 bytes=
[10860:10860:0331/140541:ERROR:navigation_entry_screenshot_manager.cc(141)] Invalid entry with unique id: 252
2016-03-31T08:35:41.674390+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=mozzoweb.herokuapp.com request_id=44245240-90ba-4836-bd79-ee37d69ddfad fwd="120.59.15.145" dyno= connect= service= status=503 bytes=
I'm setting up a Spree Commerce site. I am running 2-4-Stable, as many of the extensions I need will not work on 3-0-Stable. I set up the site with everything but product_assembly and it works perfect. Add it and it runs fine on my nitriou.io box, push it to heroku and everything dies.
heroku log --tail
2015-09-10T02:50:47.477434+00:00 heroku[web.1]: State changed from crashed to starting
2015-09-10T02:50:52.594597+00:00 heroku[web.1]: Starting process with command `bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development}`
2015-09-10T02:50:55.340137+00:00 app[web.1]: Puma starting in single mode...
2015-09-10T02:50:55.340170+00:00 app[web.1]: * Version 2.13.4 (ruby 2.0.0-p645), codename: A Midsummer Code's Dream
2015-09-10T02:50:55.340172+00:00 app[web.1]: * Min threads: 5, max threads: 5
2015-09-10T02:50:55.340174+00:00 app[web.1]: * Environment: production
2015-09-10T02:51:04.290579+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/bundler/gems/spree-product-assembly-a932f58d19f2/app/serializers/spree/wombat/assembly_shipment_ser
ializer.rb:3:in `<module:Wombat>': uninitialized constant Spree::Wombat::ShipmentSerializer (NameError)
2015-09-10T02:51:04.290582+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/bundler/gems/spree-product-assembly-a932f58d19f2/app/serializers/spree/wombat/assembly_ship
ment_serializer.rb:2:in `<module:Spree>'
2015-09-10T02:51:04.290584+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/bundler/gems/spree-product-assembly-a932f58d19f2/app/serializers/spree/wombat/assembly_ship
ment_serializer.rb:1:in `<top (required)>'
2015-09-10T02:51:04.290585+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
2015-09-10T02:51:04.290588+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
2015-09-10T02:51:04.290590+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/engine.rb:468:in `block (2 levels) in eager_load!'
2015-09-10T02:51:04.290591+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/engine.rb:467:in `each'
2015-09-10T02:51:04.290592+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/engine.rb:467:in `block in eager_load!'
2015-09-10T02:51:04.290595+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/engine.rb:465:in `each'
2015-09-10T02:51:04.290597+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/engine.rb:465:in `eager_load!'
2015-09-10T02:51:04.290598+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/engine.rb:346:in `eager_load!'
2015-09-10T02:51:04.290601+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/application/finisher.rb:58:in `each'
2015-09-10T02:51:04.290602+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/application/finisher.rb:58:in `block in <module:Finisher>'
2015-09-10T02:51:04.290605+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/initializable.rb:30:in `instance_exec'
2015-09-10T02:51:04.290608+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/initializable.rb:30:in `run'
2015-09-10T02:51:04.289678+00:00 app[web.1]: ! Unable to load application: NameError: uninitialized constant Spree::Wombat::ShipmentSerializer
2015-09-10T02:51:04.290611+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/initializable.rb:55:in `block in run_initializers'
2015-09-10T02:51:04.290612+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
2015-09-10T02:51:04.290613+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
2015-09-10T02:51:04.290617+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
2015-09-10T02:51:04.290618+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
2015-09-10T02:51:04.290621+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each'
2015-09-10T02:51:04.290622+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
2015-09-10T02:51:04.290625+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
2015-09-10T02:51:04.290628+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/initializable.rb:54:in `run_initializers'
2015-09-10T02:51:04.290632+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/application.rb:300:in `initialize!'
2015-09-10T02:51:04.290633+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2015-09-10T02:51:04.290636+00:00 app[web.1]: from config.ru:3:in `require'
2015-09-10T02:51:04.290639+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2015-09-10T02:51:04.290642+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/puma-2.13.4/lib/puma/rack/builder.rb:184:in `instance_eval'
2015-09-10T02:51:04.290643+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/puma-2.13.4/lib/puma/rack/builder.rb:184:in `initialize'
2015-09-10T02:51:04.290646+00:00 app[web.1]: from config.ru:in `new'
2015-09-10T02:51:04.290649+00:00 app[web.1]: from config.ru:in `<main>'
2015-09-10T02:51:04.290650+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/puma-2.13.4/lib/puma/rack/builder.rb:170:in `eval'
2015-09-10T02:51:04.290653+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/puma-2.13.4/lib/puma/rack/builder.rb:170:in `new_from_string'
2015-09-10T02:51:04.290656+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/puma-2.13.4/lib/puma/rack/builder.rb:161:in `parse_file'
2015-09-10T02:51:04.290657+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/puma-2.13.4/lib/puma/configuration.rb:129:in `load_rackup'
2015-09-10T02:51:04.290660+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/puma-2.13.4/lib/puma/configuration.rb:96:in `app'
2015-09-10T02:51:04.290663+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/puma-2.13.4/lib/puma/runner.rb:113:in `load_and_bind'
2015-09-10T02:51:04.290664+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/puma-2.13.4/lib/puma/single.rb:79:in `run'
2015-09-10T02:51:04.290667+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/puma-2.13.4/lib/puma/cli.rb:215:in `run'
2015-09-10T02:51:04.290670+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/puma-2.13.4/bin/puma:10:in `<top (required)>'
2015-09-10T02:51:04.290673+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/bin/puma:23:in `load'
2015-09-10T02:51:04.290674+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/bin/puma:23:in `<main>'
2015-09-10T02:51:05.232991+00:00 heroku[web.1]: State changed from starting to crashed
2015-09-10T02:51:05.222998+00:00 heroku[web.1]: Process exited with status 1
2015-09-10T02:52:34.037523+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=shop-bedepraved.herokuapp.com request_id=dad14f43-4299-4ad3-867
8-d8459f39e5f7 fwd="75.63.145.154" dyno= connect= service= status=503 bytes=
2015-09-10T02:52:36.899552+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=shop-bedepraved.herokuapp.com request_id=bfa45de4-4e
27-43a1-ad9d-17966e1394a3 fwd="75.63.145.154" dyno= connect= service= status=503 bytes=
heroku console
Running `console` attached to terminal... up, run.6655
/app/vendor/bundle/ruby/2.0.0/bundler/gems/spree-product-assembly-a932f58d19f2/app/serializers/spree/wombat/assembly_shipment_serializer.rb:3:in `<module:Wombat>': uninitiali
zed constant Spree::Wombat::ShipmentSerializer (NameError)
from /app/vendor/bundle/ruby/2.0.0/bundler/gems/spree-product-assembly-a932f58d19f2/app/serializers/spree/wombat/assembly_shipment_serializer.rb:2:in `<module:Spree>'
from /app/vendor/bundle/ruby/2.0.0/bundler/gems/spree-product-assembly-a932f58d19f2/app/serializers/spree/wombat/assembly_shipment_serializer.rb:1:in `<top (required)
>'
from /app/vendor/bundle/ruby/2.0.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
from /app/vendor/bundle/ruby/2.0.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/engine.rb:468:in `block (2 levels) in eager_load!'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/engine.rb:467:in `each'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/engine.rb:467:in `block in eager_load!'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/engine.rb:465:in `each'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/engine.rb:465:in `eager_load!'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/engine.rb:346:in `eager_load!'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/application/finisher.rb:58:in `each'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/application/finisher.rb:58:in `block in <module:Finisher>'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/initializable.rb:30:in `instance_exec'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/initializable.rb:30:in `run'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/initializable.rb:55:in `block in run_initializers'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/initializable.rb:54:in `run_initializers'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/application.rb:300:in `initialize!'
from /app/config/environment.rb:5:in `<top (required)>'
from /app/vendor/bundle/ruby/2.0.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
from /app/vendor/bundle/ruby/2.0.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/application.rb:276:in `require_environment!'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/commands/commands_tasks.rb:147:in `require_application_and_environment!'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/commands/commands_tasks.rb:68:in `console'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.11/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:8:in `require'
from bin/rails:8:in `<main>'
Gemfile
source 'https://rubygems.org'
gem 'spree', github: 'spree/spree', branch: '2-4-stable'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '2-4-stable'
gem "figaro"
# Fix for Taxon issue not displaying selected taxons
gem 'select2-rails'
gem 'spree_reffiliate'
gem 'rails_12factor', group: :production
gem 'spree_bootstrap_frontend', github: '200Creative/spree_bootstrap_frontend', branch: 'master'
gem 'spree_product_assembly', github: 'spree-contrib/spree-product-assembly', branch: 'master'
gem 'puma'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.11'
# Use postgresql as the database for Active Record
gem 'pg'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring', group: :development
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
In my digging it does not look like I'm the only person who has run into this. https://github.com/spree-contrib/spree-product-assembly/issues/110
But it is closed and I'm not seeing a solution. I have tried to roll back to various commits, same issue. I switched to Puma, as I found somewhere saying to try that, it was not about my issue but it was close. This has been my headache for 4 days now, in desperate need of some help.
Thank you in advance!
Ian
Well I got a response from the developers. The issue was never really fixed! They just installed spree_womabat even if you don't need it. Took me 30 seconds arg! Hope this save someone some time. Happy coding!
I cannot get my app to deploy to Heroku. So frustrating.
Here is the repository: repository link
Things I have tried:
I have updated my config.ru with everything I need per the heroku deployment page found here
I have run heroku run rake db:migrate
I have run heroku restart
I have ensured I have an updated gemfile
I double checked that I have the 'require' statements in my app.rb
Any thoughts? My error logs I am getting are below:
2014-11-02T03:46:07.404128+00:00 heroku[api]: Deploy bbe19c1 by johnsalzarulo#gmail.com
2014-11-02T03:46:07.404202+00:00 heroku[api]: Release v17 created by johnsalzarulo#gmail.com
2014-11-02T03:46:08.439283+00:00 heroku[web.1]: State changed from crashed to starting
2014-11-02T03:46:11.353727+00:00 heroku[web.1]: Starting process with command `bundle exec rackup config.ru -p 43798`
2014-11-02T03:46:13.210413+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
2014-11-02T03:46:13.210411+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
2014-11-02T03:46:13.210388+00:00 app[web.1]: /app/config.ru:1:in `require': cannot load such file -- ./gifinder (LoadError)
2014-11-02T03:46:13.210410+00:00 app[web.1]: from /app/config.ru:1:in `block in <main>'
2014-11-02T03:46:13.210424+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
2014-11-02T03:46:13.210425+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
2014-11-02T03:46:13.210414+00:00 app[web.1]: from /app/config.ru:in `new'
2014-11-02T03:46:13.210415+00:00 app[web.1]: from /app/config.ru:in `<main>'
2014-11-02T03:46:13.210417+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
2014-11-02T03:46:13.210419+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
2014-11-02T03:46:13.210418+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
2014-11-02T03:46:13.210421+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
2014-11-02T03:46:13.210427+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:250:in `start'
2014-11-02T03:46:13.210430+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/server.rb:141:in `start'
2014-11-02T03:46:13.210432+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/bin/rackup:4:in `<top (required)>'
2014-11-02T03:46:13.210434+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/bin/rackup:23:in `load'
2014-11-02T03:46:13.210437+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/bin/rackup:23:in `<main>'
2014-11-02T03:46:13.977897+00:00 heroku[web.1]: State changed from starting to crashed
2014-11-02T03:46:13.970947+00:00 heroku[web.1]: Process exited with status 1
2014-11-02T03:46:15.252296+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=gifinder.herokuapp.com request_id=7106f663-fa15-4c74-ab8e-f5df75030a55 fwd="174.129.111.111" dyno= connect= service= status=503 bytes=
2014-11-02T03:46:42.265175+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=gifinder.herokuapp.com request_id=900cbb04-7ee9-4392-9f2f-7d4e833b15c0 fwd="24.43.108.83" dyno= connect= service= status=503 bytes=
2014-11-02T03:46:43.407062+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=gifinder.herokuapp.com request_id=ce46eed0-4a7f-4633-81ec-c826a3c90e30 fwd="24.43.108.83" dyno= connect= service= status=503 bytes=
Your config.ru file is trying to load a non-existent file with the require statement. Change this line require './gifinder' to:
require './app'
or, change the filename of app.rb to gifinder.rb. You should also follow iain's advice and remove the double Gemfile.lock because that's bound to cause problems.
Your require for HTTParty should also be lowercase. I fetched your repo and got it work on heroku by changing the require to all lowercase:
require 'httparty'
I don't know how you've done it, but you have two Gemfile.locks. I'd remove them both and re-run Bundler, and git rm the one that shouldn't be there.
Also note that Heroku now uses procfiles more extensively than previously, so get hold of Foreman and define a procfile.
In addition, when I run bundle install --binstubs --path=vendor I get this message:
Post-install message from heroku: ! The heroku gem has been
deprecated and replaced with the Heroku Toolbelt. ! Download and
install from: https://toolbelt.heroku.com ! For API access, see:
https://github.com/heroku/heroku.rb
so remove gem 'heroku', '~> 3.15.0' from the Gemfile and require 'heroku' (which was never needed in the app anyway) from app.rb. When I do that, the command bin/rackup config.ru runs the app for me on localhost:9292 just fine.
I am new to heroku and sinatra, but I have my app running locally just fine with sinatra and sqlite3. I know heroku doesn't support sqlite3, so I tried this answer: Deploy RoR to Heroku and Sqlite3 fails
When I pushed to heroku and tried to access it, I got an error. So I checked the logs. This is what I am seeing. I saw others on here with the same issue, but the resolutions have all been varied and I have tried restarting heroku:
2013-08-15T05:07:17+00:00 heroku[slug-compiler]: Slug compilation finished
2013-08-15T05:07:21.550961+00:00 heroku[web.1]: Starting process with command `bundle exec rackup config.ru -p 28820`
2013-08-15T05:07:25.339314+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sinatra-activerecord-1.2.3/lib/sinatra/activerecord.rb:23:in `database'
2013-08-15T05:07:25.339314+00:00 app[web.1]: from /app/app.rb:7:in `<top (required)>'
2013-08-15T05:07:25.339314+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sinatra-activerecord-1.2.3/lib/sinatra/activerecord.rb:17:in `database='
2013-08-15T05:07:25.339314+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
2013-08-15T05:07:25.339488+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
2013-08-15T05:07:25.339488+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
2013-08-15T05:07:25.339314+00:00 app[web.1]: from /app/config.ru:2:in `block in <main>'
2013-08-15T05:07:25.339488+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
2013-08-15T05:07:25.339770+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
2013-08-15T05:07:25.339314+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_handling.rb:39:in `establish_connection'
2013-08-15T05:07:25.339488+00:00 app[web.1]: from /app/config.ru:in `<main>'
2013-08-15T05:07:25.339770+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/bin/rackup:4:in `<top (required)>'
2013-08-15T05:07:25.339194+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/connection_specification.rb:46:in `resolve_string_connection'
2013-08-15T05:07:25.339488+00:00 app[web.1]: from /app/config.ru:in `new'
2013-08-15T05:07:25.339770+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/bin/rackup:23:in `load'
2013-08-15T05:07:25.339194+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/connection_specification.rb:32:in `spec'
2013-08-15T05:07:25.339314+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
2013-08-15T05:07:25.339488+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
2013-08-15T05:07:25.339079+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/connection_specification.rb:58:in `rescue in resolve_hash_connection': Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile. (Gem::LoadError)
2013-08-15T05:07:25.339314+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1191:in `set'
2013-08-15T05:07:25.339079+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/connection_specification.rb:55:in `resolve_hash_connection'
2013-08-15T05:07:25.339314+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1917:in `block (2 levels) in delegate'
2013-08-15T05:07:25.339488+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
2013-08-15T05:07:25.339314+00:00 app[web.1]: from /app/config.ru:2:in `require'
2013-08-15T05:07:25.339770+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:141:in `start'
2013-08-15T05:07:25.339770+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/bin/rackup:23:in `<main>'
2013-08-15T05:07:25.339770+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:250:in `start'
2013-08-15T05:07:27.328918+00:00 heroku[web.1]: Process exited with status 1
2013-08-15T05:07:27.341978+00:00 heroku[web.1]: State changed from starting to crashed
2013-08-15T05:07:28.551518+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=intense-depths-3455.herokuapp.com fwd="70.179.10.147" dyno= connect= service= status=503 bytes=
2013-08-15T05:07:29.149180+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=intense-depths-3455.herokuapp.com fwd="70.179.10.147" dyno= connect= service= status=503 bytes=
any ideas on how I can get this to work?
my config ru is:
#config.ru
require "./app"
run Sinatra::Application
and my gemfile is:
source 'https://rubygems.org'
gem "sinatra"
gem "activerecord"
gem "sinatra-activerecord"
gem "pony"
group :development do
gem "shotgun"
gem "tux"
gem "sqlite3", "~> 1.3.7", :require => "sqlite3"
end
I was able to get it to work by adding a line to use postgresql in production.