Phoenix1.3 heroku project compiles but Application error

Hi I’m trying deploy to heroku my phoenix 1.3 app but I’m got error and it’s says that build is successful…

git push heroku master
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 407 bytes | 0 bytes/s, done.
Total 4 (delta 1), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Elixir app detected
remote: -----> Checking Erlang and Elixir versions
remote:        Will use the following versions:
remote:        * Stack cedar-14
remote:        * Erlang 19.3
remote:        * Elixir 1.4.1 
remote: -----> Will export the following config vars:
remote: DATABASE_URL
remote: POOL_SIZE
remote: SECRET_KEY_BASE
remote:        * MIX_ENV=prod
remote: -----> Using cached Erlang 19.3
remote: -----> Installing Erlang 19.3 
remote: 
remote: -----> Fetching Elixir v1.4.1
remote: -----> Installing Elixir v1.4.1 (changed)
remote: -----> Installing Hex
remote: * creating /app/.mix/archives/hex-0.15.0
remote: -----> Installing rebar
remote: * creating /app/.mix/rebar
remote: * creating /app/.mix/rebar3
remote: -----> Fetching app dependencies with mix
remote: Running dependency resolution...
remote: All dependencies up to date
remote: -----> Copying hex from /app/.mix/archives/hex-0.15.0
remote: -----> Compiling
remote: ==> base64url (compile)
remote: ==> connection
remote: Compiling 1 file (.ex)
remote: Generated connection app
remote: ==> gettext
remote: Compiling 1 file (.erl)
remote: Compiling 20 files (.ex)
remote: Generated gettext app
remote: ==> jose
remote: Compiling 87 files (.erl)
remote: Compiling 8 files (.ex)
remote: warning: HashDict.size/1 is deprecated, use maps and the Map module instead
remote:   lib/jose/poison/lexical_encoder.ex:199
remote: 
remote: Generated jose app
remote: ===> Compiling ranch
remote: ===> Failed to restore /tmp/build_c3b0e47bc8455e54efb6933d8aef13c3/deps/ranch/.rebar3/erlcinfo file. Discarding it.
remote: 
remote: ==> poolboy (compile)
remote: ==> decimal
remote: Compiling 1 file (.ex)
remote: Generated decimal app
remote: ==> poison
remote: Compiling 4 files (.ex)
remote: Generated poison app
remote: ==> elixir_make
remote: Compiling 1 file (.ex)
remote: Generated elixir_make app
remote: ==> comeonin
remote: make: Nothing to be done for `all'.
remote: Compiling 8 files (.ex)
remote: Generated comeonin app
remote: ==> db_connection
remote: Compiling 23 files (.ex)
remote: Generated db_connection app
remote: ==> phoenix_pubsub
remote: Compiling 12 files (.ex)
remote: Generated phoenix_pubsub app
remote: ===> Compiling cowlib
remote: ===> Failed to restore /tmp/build_c3b0e47bc8455e54efb6933d8aef13c3/deps/cowlib/.rebar3/erlcinfo file. Discarding it.
remote: 
remote: src/cow_multipart.erl:392: Warning: crypto:rand_bytes/1 is deprecated and will be removed in a future release; use crypto:strong_rand_bytes/1
remote: 
remote: ===> Compiling cowboy
remote: ===> Failed to restore /tmp/build_c3b0e47bc8455e54efb6933d8aef13c3/deps/cowboy/.rebar3/erlcinfo file. Discarding it.
remote: 
remote: ==> uuid
remote: Compiling 1 file (.ex)
remote: Generated uuid app
remote: ==> mime
remote: Compiling 1 file (.ex)
remote: Generated mime app
remote: ==> plug
remote: Compiling 44 files (.ex)
remote: Generated plug app
remote: ==> phoenix_html
remote: Compiling 8 files (.ex)
remote: Generated phoenix_html app
remote: ==> phoenix
remote: Compiling 71 files (.ex)
remote: Generated phoenix app
remote: ==> guardian
remote: Compiling 21 files (.ex)
remote: Generated guardian app
remote: ==> postgrex
remote: Compiling 62 files (.ex)
remote: Generated postgrex app
remote: ==> ecto
remote: Compiling 69 files (.ex)
remote: Compiling lib/ecto/query/builder/lock.ex (it's taking more than 10s)
remote: Compiling lib/ecto/repo/queryable.ex (it's taking more than 10s)
remote: Compiling lib/ecto/query/builder/filter.ex (it's taking more than 10s)
remote: Compiling lib/ecto/repo/preloader.ex (it's taking more than 10s)
remote: Compiling lib/ecto/migration/runner.ex (it's taking more than 10s)
remote: Compiling lib/ecto/repo/schema.ex (it's taking more than 10s)
remote: Compiling lib/ecto/migration/schema_migration.ex (it's taking more than 10s)
remote: Compiling lib/ecto/adapters/postgres/connection.ex (it's taking more than 10s)
remote: Generated ecto app
remote: ==> phoenix_ecto
remote: Compiling 4 files (.ex)
remote: Generated phoenix_ecto app
remote: ==> taskarr
remote: Compiling 34 files (.ex)
remote: warning: unused alias UserView
remote:   lib/taskarr/web/views/user_view.ex:3
remote: 
remote: warning: unused alias SessionView
remote:   lib/taskarr/web/views/session_view.ex:3
remote: 
remote: Generated taskarr app
remote: -----> Creating .profile.d with env vars
remote: -----> Writing export for multi-buildpack support
remote: -----> Phoenix app detected
remote: 
remote: -----> Loading configuration and environment
remote:        Loading config...
remote:        Detecting assets directory
remote:        * package.json found in custom directory
remote:        Will use phoenix configuration:
remote:        * assets path assets
remote:        * mix tasks namespace phx
remote:        Will use the following versions:
remote:        * Node 7.7.3
remote:        Will export the following config vars:
remote:        * Config vars DATABASE_URL
remote:        * MIX_ENV=prod
remote: 
remote: -----> Installing binaries
remote:        Downloading node 7.7.3...
remote:        Installing Node 7.7.3...
remote:        Using default npm version
remote: Downloading and installing yarn...
remote: Installed yarn 0.21.3
remote: 
remote: -----> Building dependencies
remote:        Installing and caching node modules
remote: yarn install v0.21.3
remote: [1/4] Resolving packages...
remote: [2/4] Fetching packages...
remote: warning fsevents@1.1.1: The platform "linux" is incompatible with this module.
remote: info "fsevents@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
remote: [3/4] Linking dependencies...
remote: [4/4] Building fresh packages...
remote: $ ln -s ../js/date_picker/picker.js node_modules/materialize-css/bin/picker.js
remote: Done in 17.18s.
remote:        Restoring cached assets
remote: sending incremental file list
remote: ./
remote: cache_manifest.json
remote: favicon-a8ca4e3a2bb8fea46a9ee9e102e7d3eb.ico
remote: favicon.ico
remote: robots-067185ba27a5d9139b10a759679045bf.txt
remote: robots-067185ba27a5d9139b10a759679045bf.txt.gz
remote: robots.txt
remote: robots.txt.gz
remote: css/
remote: css/app-719401008d5a1f36831f32223be751a3.css
remote: css/app-719401008d5a1f36831f32223be751a3.css.gz
remote: css/app.css
remote: css/app.css.gz
remote: fonts/
remote: fonts/FontAwesome-0d2717cd5d853e5c765ca032dfd41a4d.otf
remote: fonts/MaterialIcons-Regular-012cf6a10129e2275d79d6adac7f3b02.woff
remote: fonts/MaterialIcons-Regular-570eb83859dc23dd0eec423a49e147fe.woff2
remote: fonts/MaterialIcons-Regular-a37b0c01c0baf1888ca812cc0508f6e2.ttf
remote: fonts/MaterialIcons-Regular-e79bfd88537def476913f3ed52f4f4b3.eot
remote: fonts/fontawesome-webfont-674f50d287a8c48dc19ba404d20fe713.eot
remote: fonts/fontawesome-webfont-912ec66d7572ff821749319396470bde.svg
remote: fonts/fontawesome-webfont-912ec66d7572ff821749319396470bde.svg.gz
remote: fonts/fontawesome-webfont-af7ae505a9eed503f8b8e6982036873e.woff2
remote: fonts/fontawesome-webfont-b06871f281fee6b241d60582ae9369b9.ttf
remote: fonts/fontawesome-webfont-fee66e712a8a08eef5805a46892932ad.woff
remote: fonts/fontawesome-webfont.svg.gz
remote: fonts/roboto/
remote: fonts/roboto/Roboto-Bold-39b2c3031be6b4ea96e2e3e95d307814.woff2
remote: fonts/roboto/Roboto-Bold-dc81817def276b4f21395f7ea5e88dcd.woff
remote: fonts/roboto/Roboto-Bold-e31fcf1885e371e19f5786c2bdfeae1b.ttf
remote: fonts/roboto/Roboto-Bold-ecdd509cadbf1ea78b8d2e31ec52328c.eot
remote: fonts/roboto/Roboto-Light-3b813c2ae0d04909a33a18d792912ee7.woff
remote: fonts/roboto/Roboto-Light-46e48ce0628835f68a7369d0254e4283.ttf
remote: fonts/roboto/Roboto-Light-69f8a0617ac472f78e45841323a3df9e.woff2
remote: fonts/roboto/Roboto-Light-a990f611f2305dc12965f186c2ef2690.eot
remote: fonts/roboto/Roboto-Medium-4d9f3f9e5195e7b074bb63ba4ce42208.eot
remote: fonts/roboto/Roboto-Medium-574fd0b50367f886d359e8264938fc37.woff2
remote: fonts/roboto/Roboto-Medium-894a2ede85a483bf9bedefd4db45cdb9.ttf
remote: fonts/roboto/Roboto-Medium-fc78759e93a6cac50458610e3d9d63a0.woff
remote: fonts/roboto/Roboto-Regular-2751ee43015f9884c3642f103b7f70c9.woff2
remote: fonts/roboto/Roboto-Regular-30799efa5bf74129468ad4e257551dc3.eot
remote: fonts/roboto/Roboto-Regular-ba3dcd8903e3d0af5de7792777f8ae0d.woff
remote: fonts/roboto/Roboto-Regular-df7b648ce5356ea1ebce435b3459fd60.ttf
remote: fonts/roboto/Roboto-Thin-7500519de3d82e33d1587f8042e2afcb.woff
remote: fonts/roboto/Roboto-Thin-94998475f6aea65f558494802416c1cf.ttf
remote: fonts/roboto/Roboto-Thin-954bbdeb86483e4ffea00c4591530ece.woff2
remote: fonts/roboto/Roboto-Thin-dfe56a876d0282555d1e2458e278060f.eot
remote: images/
remote: images/bedge-grunge-9aecd722536af2e90ed8102b881347ff.png
remote: images/phoenix-5bd99a0d17dd41bc9d9bf6840abcc089.png
remote: images/phoenix.png
remote: js/
remote: js/app-9b498b7ed70a453286e25e2c3f9c5e0e.js
remote: js/app-9b498b7ed70a453286e25e2c3f9c5e0e.js.gz
remote: js/app.js
remote: js/app.js.gz
remote: 
remote: sent 5,954,303 bytes  received 1,013 bytes  3,970,210.67 bytes/sec
remote: total size is 8,794,952  speedup is 1.48
remote:        Running default compile
remote:        18:47:52 - info: compiling
remote:        18:47:57 - info: compiling.
remote:        18:48:26 - info: compiling..
remote:        18:48:26 - info: compiled 526 files into 2 files, copied 3 in 38.8 sec
remote:        Check your digested files at "priv/static"
remote:        Clean complete for "priv/static"
remote:        Caching assets
remote: sending incremental file list
remote: cache_manifest.json
remote: favicon-a8ca4e3a2bb8fea46a9ee9e102e7d3eb.ico
remote: favicon.ico
remote: robots-067185ba27a5d9139b10a759679045bf.txt
remote: robots-067185ba27a5d9139b10a759679045bf.txt.gz
remote: robots.txt
remote: robots.txt.gz
remote: css/app-719401008d5a1f36831f32223be751a3.css
remote: css/app-719401008d5a1f36831f32223be751a3.css.gz
remote: css/app.css
remote: css/app.css.gz
remote: fonts/FontAwesome-0d2717cd5d853e5c765ca032dfd41a4d.otf
remote: fonts/FontAwesome.otf
remote: fonts/MaterialIcons-Regular-012cf6a10129e2275d79d6adac7f3b02.woff
remote: fonts/MaterialIcons-Regular-570eb83859dc23dd0eec423a49e147fe.woff2
remote: fonts/MaterialIcons-Regular-a37b0c01c0baf1888ca812cc0508f6e2.ttf
remote: fonts/MaterialIcons-Regular-e79bfd88537def476913f3ed52f4f4b3.eot
remote: fonts/MaterialIcons-Regular.eot
remote: fonts/MaterialIcons-Regular.ttf
remote: fonts/MaterialIcons-Regular.woff
remote: fonts/MaterialIcons-Regular.woff2
remote: fonts/fontawesome-webfont-674f50d287a8c48dc19ba404d20fe713.eot
remote: fonts/fontawesome-webfont-912ec66d7572ff821749319396470bde.svg
remote: fonts/fontawesome-webfont-912ec66d7572ff821749319396470bde.svg.gz
remote: fonts/fontawesome-webfont-af7ae505a9eed503f8b8e6982036873e.woff2
remote: fonts/fontawesome-webfont-b06871f281fee6b241d60582ae9369b9.ttf
remote: fonts/fontawesome-webfont-fee66e712a8a08eef5805a46892932ad.woff
remote: fonts/fontawesome-webfont.eot
remote: fonts/fontawesome-webfont.svg
remote: fonts/fontawesome-webfont.svg.gz
remote: fonts/fontawesome-webfont.ttf
remote: fonts/fontawesome-webfont.woff
remote: fonts/fontawesome-webfont.woff2
remote: fonts/roboto/Roboto-Bold-39b2c3031be6b4ea96e2e3e95d307814.woff2
remote: fonts/roboto/Roboto-Bold-dc81817def276b4f21395f7ea5e88dcd.woff
remote: fonts/roboto/Roboto-Bold-e31fcf1885e371e19f5786c2bdfeae1b.ttf
remote: fonts/roboto/Roboto-Bold-ecdd509cadbf1ea78b8d2e31ec52328c.eot
remote: fonts/roboto/Roboto-Bold.eot
remote: fonts/roboto/Roboto-Bold.ttf
remote: fonts/roboto/Roboto-Bold.woff
remote: fonts/roboto/Roboto-Bold.woff2
remote: fonts/roboto/Roboto-Light-3b813c2ae0d04909a33a18d792912ee7.woff
remote: fonts/roboto/Roboto-Light-46e48ce0628835f68a7369d0254e4283.ttf
remote: fonts/roboto/Roboto-Light-69f8a0617ac472f78e45841323a3df9e.woff2
remote: fonts/roboto/Roboto-Light-a990f611f2305dc12965f186c2ef2690.eot
remote: fonts/roboto/Roboto-Light.eot
remote: fonts/roboto/Roboto-Light.ttf
remote: fonts/roboto/Roboto-Light.woff
remote: fonts/roboto/Roboto-Light.woff2
remote: fonts/roboto/Roboto-Medium-4d9f3f9e5195e7b074bb63ba4ce42208.eot
remote: fonts/roboto/Roboto-Medium-574fd0b50367f886d359e8264938fc37.woff2
remote: fonts/roboto/Roboto-Medium-894a2ede85a483bf9bedefd4db45cdb9.ttf
remote: fonts/roboto/Roboto-Medium-fc78759e93a6cac50458610e3d9d63a0.woff
remote: fonts/roboto/Roboto-Medium.eot
remote: fonts/roboto/Roboto-Medium.ttf
remote: fonts/roboto/Roboto-Medium.woff
remote: fonts/roboto/Roboto-Medium.woff2
remote: fonts/roboto/Roboto-Regular-2751ee43015f9884c3642f103b7f70c9.woff2
remote: fonts/roboto/Roboto-Regular-30799efa5bf74129468ad4e257551dc3.eot
remote: fonts/roboto/Roboto-Regular-ba3dcd8903e3d0af5de7792777f8ae0d.woff
remote: fonts/roboto/Roboto-Regular-df7b648ce5356ea1ebce435b3459fd60.ttf
remote: fonts/roboto/Roboto-Regular.eot
remote: fonts/roboto/Roboto-Regular.ttf
remote: fonts/roboto/Roboto-Regular.woff
remote: fonts/roboto/Roboto-Regular.woff2
remote: fonts/roboto/Roboto-Thin-7500519de3d82e33d1587f8042e2afcb.woff
remote: fonts/roboto/Roboto-Thin-94998475f6aea65f558494802416c1cf.ttf
remote: fonts/roboto/Roboto-Thin-954bbdeb86483e4ffea00c4591530ece.woff2
remote: fonts/roboto/Roboto-Thin-dfe56a876d0282555d1e2458e278060f.eot
remote: fonts/roboto/Roboto-Thin.eot
remote: fonts/roboto/Roboto-Thin.ttf
remote: fonts/roboto/Roboto-Thin.woff
remote: fonts/roboto/Roboto-Thin.woff2
remote: images/bedge-grunge-9aecd722536af2e90ed8102b881347ff.png
remote: images/bedge-grunge.png
remote: images/phoenix-5bd99a0d17dd41bc9d9bf6840abcc089.png
remote: images/phoenix.png
remote: js/app-9b498b7ed70a453286e25e2c3f9c5e0e.js
remote: js/app-9b498b7ed70a453286e25e2c3f9c5e0e.js.gz
remote: js/app.js
remote: js/app.js.gz
remote: 
remote: sent 8,803,511 bytes  received 1,584 bytes  17,610,190.00 bytes/sec
remote: total size is 8,794,952  speedup is 1.00
remote: 
remote: -----> Finalizing build
remote:        Caching versions for future builds
remote:        Creating runtime environment
remote: -----> Discovering process types
remote:        Procfile declares types -> web
remote: 
remote: -----> Compressing...
remote:        Done: 122.7M
remote: -----> Launching...
remote:        Released v11
remote:        https://taskarr.herokuapp.com/ deployed to Heroku
remote: 
remote: Verifying deploy... done.
To https://git.heroku.com/taskarr.git
   81d00ed..8f6a6c6  master -> master

Can one of this cause error?

    ...
    remote: ===> Compiling ranch
    remote: ===> Failed to restore /tmp/build_c3b0e47bc8455e54efb6933d8aef13c3/deps/ranch/.rebar3/erlcinfo file. Discarding it.
    ...
    remote: ===> Compiling cowlib
    remote: ===> Failed to restore /tmp/build_c3b0e47bc8455e54efb6933d8aef13c3/deps/cowlib/.rebar3/erlcinfo file. Discarding it.
    ...
    remote: ===> Compiling cowboy
    remote: ===> Failed to restore /tmp/build_c3b0e47bc8455e54efb6933d8aef13c3/deps/cowboy/.rebar3/erlcinfo file. Discarding it.
    ...
    remote: info "fsevents@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
    ...
1 Like

can you also attach output from: heroku logs --tail? And if you have elixir/phoenix-static buildpack configs please attach them as well.

2 Likes
heroku logs --tail
2017-03-30T18:28:33.404856+00:00 app[web.1]:                  {'Elixir.Phoenix.Endpoint.Supervisor',init,1,
2017-03-30T18:28:33.404857+00:00 app[web.1]:                   [{file,"lib/phoenix/endpoint/supervisor.ex"},{line,31}]},
2017-03-30T18:28:33.404857+00:00 app[web.1]:                  {supervisor,init,1,[{file,"supervisor.erl"},{line,294}]},
2017-03-30T18:28:33.404858+00:00 app[web.1]:                  {gen_server,init_it,6,[{file,"gen_server.erl"},{line,328}]},
2017-03-30T18:28:33.404858+00:00 app[web.1]:                  {proc_lib,init_p_do_apply,3,
2017-03-30T18:28:33.404859+00:00 app[web.1]:                   [{file,"proc_lib.erl"},{line,247}]}]}}},
2017-03-30T18:28:33.404860+00:00 app[web.1]:              {'Elixir.Taskarr.Application',start,[normal,[]]}}
2017-03-30T18:28:33.404860+00:00 app[web.1]:     type: permanent
2017-03-30T18:28:33.446107+00:00 app[web.1]: ** (exit) exited in: GenServer.call(Mix.State, {:get, {Map, :get, [:debug, false]}}, 5000)
2017-03-30T18:28:33.446110+00:00 app[web.1]:     ** (EXIT) no process
2017-03-30T18:28:33.446111+00:00 app[web.1]:     (elixir) lib/gen_server.ex:596: GenServer.call/3
2017-03-30T18:28:33.446112+00:00 app[web.1]:     (mix) lib/mix/cli.ex:65: Mix.CLI.run_task/2
2017-03-30T18:28:33.446112+00:00 app[web.1]:     (elixir) lib/code.ex:363: Code.require_file/2
2017-03-30T18:28:33.446113+00:00 app[web.1]: 
2017-03-30T18:28:33.446308+00:00 app[web.1]: {"init terminating in do_boot",{noproc,{gen_server,call,[elixir_config,{get_and_put,at_exit,[]}]}}}
2017-03-30T18:28:33.446330+00:00 app[web.1]: init terminating in do_boot ()
2017-03-30T18:28:33.446558+00:00 app[web.1]: 
2017-03-30T18:28:34.479151+00:00 heroku[web.1]: State changed from starting to crashed
2017-03-30T18:29:11.000000+00:00 app[api]: Build started by user chernyshovdima40@gmail.com
2017-03-30T18:30:43.954312+00:00 app[api]: Release v9 created by user chernyshovdima40@gmail.com
2017-03-30T18:30:44.295147+00:00 heroku[web.1]: State changed from crashed to starting
2017-03-30T18:30:44.171518+00:00 app[api]: Release v9 created by user chernyshovdima40@gmail.com
2017-03-30T18:30:57.951175+00:00 app[web.1]: Crash dump is being written to: erl_crash.dump...done
2017-03-30T18:30:58.022033+00:00 heroku[web.1]: State changed from starting to crashed
2017-03-30T18:30:59.561709+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=taskarr.herokuapp.com request_id=0e623493-697a-4942-b561-cf12ddc1daae fwd="77.120.151.253" dyno= connect= service= status=503 bytes= protocol=https
2017-03-30T18:35:11.000000+00:00 app[api]: Build started by user chernyshovdima40@gmail.com
2017-03-30T18:36:51.289758+00:00 app[api]: Release v10 created by user chernyshovdima40@gmail.com
2017-03-30T18:36:51.289758+00:00 app[api]: Deploy 81d00ed by user chernyshovdima40@gmail.com
2017-03-30T18:36:52.603171+00:00 heroku[web.1]: State changed from crashed to starting
2017-03-30T18:37:00.448906+00:00 heroku[web.1]: Starting process with command `MIX_ENV=prod mix phx.server`
2017-03-30T18:37:04.181942+00:00 heroku[web.1]: Process exited with status 1
2017-03-30T18:38:32.776376+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=taskarr.herokuapp.com request_id=61fdcb89-7cd4-438c-8b83-56dc3505c5d4 fwd="77.120.151.253" dyno= connect= service= status=503 bytes= protocol=https
2017-03-30T18:38:47.533684+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=taskarr.herokuapp.com request_id=e58e68aa-db63-4c1b-b150-fc41e580c045 fwd="77.120.151.253" dyno= connect= service= status=503 bytes= protocol=https
2017-03-30T18:48:45.472580+00:00 app[api]: Release v11 created by user chernyshovdima40@gmail.com
2017-03-30T18:46:07.000000+00:00 app[api]: Build succeeded
2017-03-30T18:48:53.728451+00:00 app[web.1]: 
2017-03-30T18:48:53.728470+00:00 app[web.1]: =INFO REPORT==== 30-Mar-2017::18:48:53 ===
2017-03-30T18:48:53.728471+00:00 app[web.1]:     application: taskarr
2017-03-30T18:48:53.728473+00:00 app[web.1]:               {failed_to_start_child,'Elixir.Taskarr.Web.Endpoint',
2017-03-30T18:48:53.728472+00:00 app[web.1]:     exited: {{shutdown,
2017-03-30T18:48:53.728474+00:00 app[web.1]:                {undef,
2017-03-30T18:48:53.728474+00:00 app[web.1]:                 [{'Elixir.Demo.Web.Endpoint',load_from_system_env,
2017-03-30T18:48:53.728475+00:00 app[web.1]:                   [[{endpoint_id,<<"Z3EW/UulK/N+Xx3jGyLpYg==">>},
2017-03-30T18:48:53.728475+00:00 app[web.1]:                     {otp_app,taskarr},
2017-03-30T18:48:53.728476+00:00 app[web.1]:                     {handler,'Elixir.Phoenix.Endpoint.CowboyHandler'},
2017-03-30T18:48:53.728477+00:00 app[web.1]:                     {debug_errors,false},
2017-03-30T18:48:53.728476+00:00 app[web.1]:                     {code_reloader,false},
2017-03-30T18:48:53.728478+00:00 app[web.1]:                     {check_origin,true},
2017-03-30T18:48:53.728478+00:00 app[web.1]:                     {https,false},
2017-03-30T18:48:53.728479+00:00 app[web.1]:                     {reloadable_compilers,[gettext,phoenix,elixir]},
2017-03-30T18:48:53.728479+00:00 app[web.1]:                     {static_url,nil},
2017-03-30T18:48:53.728480+00:00 app[web.1]:                     {watchers,[]},
2017-03-30T18:48:53.728480+00:00 app[web.1]:                     {render_errors,
2017-03-30T18:48:53.728481+00:00 app[web.1]:                       {view,'Elixir.Taskarr.Web.ErrorView'},
2017-03-30T18:48:53.728481+00:00 app[web.1]:                      [{layout,false},
2017-03-30T18:48:53.728482+00:00 app[web.1]:                       {accepts,[<<"html">>,<<"json">>]}]},
2017-03-30T18:48:53.728483+00:00 app[web.1]:                     {pubsub,
2017-03-30T18:48:53.728484+00:00 app[web.1]:                       {name,'Elixir.Taskarr.PubSub'},
2017-03-30T18:48:53.728483+00:00 app[web.1]:                      [{pool_size,1},
2017-03-30T18:48:53.728485+00:00 app[web.1]:                     {on_init,
2017-03-30T18:48:53.728486+00:00 app[web.1]:                      {'Elixir.Demo.Web.Endpoint',load_from_system_env,[]}},
2017-03-30T18:48:53.728484+00:00 app[web.1]:                       {adapter,'Elixir.Phoenix.PubSub.PG2'}]},
2017-03-30T18:48:53.728486+00:00 app[web.1]:                     {http,[{port,{system,<<"PORT">>}}]},
2017-03-30T18:48:53.728487+00:00 app[web.1]:                     {url,
2017-03-30T18:48:53.728487+00:00 app[web.1]:                      [{path,<<"/">>},
2017-03-30T18:48:53.728488+00:00 app[web.1]:                       {scheme,<<"https">>},
2017-03-30T18:48:53.728488+00:00 app[web.1]:                       {host,<<"taskarr.herokuapp.com">>},
2017-03-30T18:48:53.728489+00:00 app[web.1]:                       {port,443}]},
2017-03-30T18:48:53.728489+00:00 app[web.1]:                     {force_ssl,[{rewrite_on,[x_forwarded_proto]}]},
2017-03-30T18:48:53.728490+00:00 app[web.1]:                     {cache_static_manifest,
2017-03-30T18:48:53.728491+00:00 app[web.1]:                      <<"priv/static/cache_manifest.json">>},
2017-03-30T18:48:53.728491+00:00 app[web.1]:                     {secret_key_base,
2017-03-30T18:48:53.728492+00:00 app[web.1]:                      <<"gWRlO69J3CnhFyhiyiOxZ0wn1WAKvkatkQbJcEFX1rJLsgYdv3UmQjJKPBP4RBEk">>}]],
2017-03-30T18:48:53.728493+00:00 app[web.1]:                  {'Elixir.Phoenix.Endpoint.Supervisor',init,1,
2017-03-30T18:48:53.728493+00:00 app[web.1]:                   []},
2017-03-30T18:48:53.728494+00:00 app[web.1]:                   [{file,"lib/phoenix/endpoint/supervisor.ex"},{line,31}]},
2017-03-30T18:48:53.728496+00:00 app[web.1]:                  {proc_lib,init_p_do_apply,3,
2017-03-30T18:48:53.728494+00:00 app[web.1]:                  {supervisor,init,1,[{file,"supervisor.erl"},{line,294}]},
2017-03-30T18:48:53.728495+00:00 app[web.1]:                  {gen_server,init_it,6,[{file,"gen_server.erl"},{line,328}]},
2017-03-30T18:48:53.728496+00:00 app[web.1]:                   [{file,"proc_lib.erl"},{line,247}]}]}}},
2017-03-30T18:48:53.782909+00:00 app[web.1]: ** (exit) exited in: GenServer.call(Mix.State, {:get, {Map, :get, [:debug, false]}}, 5000)
2017-03-30T18:48:53.728497+00:00 app[web.1]:              {'Elixir.Taskarr.Application',start,[normal,[]]}}
2017-03-30T18:48:53.728498+00:00 app[web.1]:     type: permanent
2017-03-30T18:48:53.782913+00:00 app[web.1]:     ** (EXIT) no process
2017-03-30T18:48:53.782919+00:00 app[web.1]:     (elixir) lib/gen_server.ex:596: GenServer.call/3
2017-03-30T18:48:53.782920+00:00 app[web.1]:     (mix) lib/mix/cli.ex:65: Mix.CLI.run_task/2
2017-03-30T18:48:53.782921+00:00 app[web.1]:     (elixir) lib/code.ex:363: Code.require_file/2
2017-03-30T18:48:53.782922+00:00 app[web.1]: 
2017-03-30T18:48:53.783353+00:00 app[web.1]: {"init terminating in do_boot",{noproc,{gen_server,call,[elixir_config,{get_and_put,at_exit,[]}]}}}
2017-03-30T18:48:53.783415+00:00 app[web.1]: init terminating in do_boot ()
2017-03-30T18:48:53.783700+00:00 app[web.1]: 
2017-03-30T18:48:54.765935+00:00 app[web.1]: Crash dump is being written to: erl_crash.dump...done
2017-03-30T18:49:00.701309+00:00 heroku[web.1]: State changed from starting to crashed
2017-03-30T18:49:01.227482+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=taskarr.herokuapp.com request_id=f6250743-e334-4971-8174-148eb60cfae0 fwd="77.120.151.253" dyno= connect= service= status=503 bytes= protocol=https
2017-03-30T19:05:33.864012+00:00 heroku[web.1]: State changed from crashed to starting
2017-03-30T19:06:03.468571+00:00 heroku[web.1]: State changed from starting to crashed
2017-03-30T19:28:58.905998+00:00 heroku[web.1]: Starting process with command `MIX_ENV=prod mix phx.server`
2017-03-30T19:29:07.941070+00:00 app[web.1]: {"Kernel pid terminated",application_controller,"{application_start_failure,taskarr,{{shutdown,{failed_to_start_child,'Elixir.Taskarr.Web.Endpoint',{undef,[{'Elixir.Demo.Web.Endpoint',load_from_system_env,[[{endpoint_id,<<\"X2ZAkxXDXvDl06iNjD8BoQ==\">>},{otp_app,taskarr},{handler,'Elixir.Phoenix.Endpoint.CowboyHandler'},{code_reloader,false},{debug_errors,false},{check_origin,true},{https,false},{reloadable_compilers,[gettext,phoenix,elixir]},{static_url,nil},{watchers,[]},{render_errors,[{layout,false},{view,'Elixir.Taskarr.Web.ErrorView'},{accepts,[<<\"html\">>,<<\"json\">>]}]},{pubsub,[{pool_size,1},{name,'Elixir.Taskarr.PubSub'},{adapter,'Elixir.Phoenix.PubSub.PG2'}]},{on_init,{'Elixir.Demo.Web.Endpoint',load_from_system_env,[]}},{http,[{port,{system,<<\"PORT\">>}}]},{url,[{path,<<\"/\">>},{scheme,<<\"https\">>},{host,<<\"taskarr.herokuapp.com\">>},{port,443}]},{force_ssl,[{rewrite_on,[x_forwarded_proto]}]},{cache_static_manifest,<<\"priv/static/cache_manifest.json\">>},{secret_key_base,<<\"gWRlO69J3CnhFyhiyiOxZ0wn1WAKvkatkQbJcEFX1rJLsgYdv3UmQjJKPBP4RBEk\">>}]],[]},{'Elixir.Phoenix.Endpoint.Supervisor',init,1,[{file,\"lib/supervisor.ex\"},{line,31}]},{supervisor,init,1,[{file,\"supervisor.erl\"},{line,294}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,328}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,247}]}]}}},{'Elixir.Taskarr.Application',start,[normal,[]]}}}"}
2017-03-30T19:29:07.943284+00:00 app[web.1]: Kernel pid terminated (application_controller) ({application_start_failure,taskarr,{{shutdown,{failed_to_start_child,'Elixir.Taskarr.Web.Endpoint',{undef,[{'Elixir.Demo.Web.Endpoint',load_from_system_
2017-03-30T19:29:07.943653+00:00 app[web.1]: 
2017-03-30T19:29:09.798342+00:00 app[web.1]: Crash dump is being written to: erl_crash.dump...done
phoenix_static_buildpack.config
node_version=7.7.3
npm_version=4.1.2
assets_path=assets
phoenix_ex=phx
1 Like
2017-03-30T18:48:53.728472+00:00 app[web.1]:     exited: {{shutdown,
2017-03-30T18:48:53.728474+00:00 app[web.1]:                {undef,
2017-03-30T18:48:53.728474+00:00 app[web.1]:                 [{'Elixir.Demo.Web.Endpoint',load_from_system_env,

This tells us, that it tries to call the function load_from_system_env in the module Demo.Web.Endpoint, does such a module/function exist? “Demo” sounds not correct…

2 Likes

That’s it!
I’m just folow this
https://www.phoenixdiff.org/diffs/1.3.0-rc.0/1.3.0-rc.1
here’s my commit https://github.com/chernyshof/taskarr/commit/1293e86b7f011ba33c9c3f611a59983e9fc191c7

1 Like

You need to include this function in your endpoint: