Code Monkey home page Code Monkey logo

heroku-buildpack-elixir-mix-release's People

Contributors

chrismcg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

heroku-buildpack-elixir-mix-release's Issues

App crashing following deployment - no child process

Hello, thank you so much for all of your hard work on this project. I've recently started experimenting with using mix releases for my Phoenix app on Heroku, and I have been trying to deploy using this buildpack. However, while my app is in the process of starting up, I'm getting an "Error waiting for process to terminate: No child processes" and the app is crashing. I'm wondering if you've experienced this before, and if you have any insight into how I might address it...

First off, my buildpacks are as follows:

1. https://gitlab.com/my_name/ssh-key-private-buildpack.git
2. https://github.com/HashNuke/heroku-buildpack-elixir.git
3. https://github.com/gjaldon/heroku-buildpack-phoenix-static.git
4. https://github.com/heroku/exec-buildpack
5. https://github.com/chrismcg/heroku-buildpack-elixir-mix-release.git

And my Elixir buildpack config:

erlang_version=22.3
elixir_version=1.10.2
always_rebuild=false

Immediately after the deployment process finished, I ran heroku logs --tail to watch what was happening - here are some excerpts from the logs:

2020-09-01T18:37:54.866744+00:00 app[api]: Deploy f9fdcadd by user [email protected]:37:54.866744+00:00 app[api]: Release v509 created by user [email protected]:38:07.148587+00:00 app[web.1]: [heroku-exec] Starting
2020-09-01T18:38:12.000000+00:00 app[api]: Build succeeded2020-09-01T18:38:17.082248+00:00 app[web.1]: 18:38:17.082 [error] calling logger:remove_handler(default) failed: :error {:badmatch, {:error, {:not_found, :default}}}
2020-09-01T18:38:17.111338+00:00 app[web.1]: 18:38:17.111 [info] Application lager started on node 'my_app@af5ab302-038e-4599-8633-b5add9b8a2a3'
2020-09-01T18:38:17.112393+00:00 app[web.1]: 18:38:17.112 [info] Application postgrex started on node 'my_app@af5ab302-038e-4599-8633-b5add9b8a2a3'
2020-09-01T18:38:17.112481+00:00 app[web.1]: 18:38:17.112 [info] Application jsx started on node 'my_app@af5ab302-038e-4599-8633-b5add9b8a2a3'
2020-09-01T18:38:17.112805+00:00 app[web.1]: 18:38:17.112 [info] Application util_lib started on node 'my_app@af5ab302-038e-4599-8633-b5add9b8a2a3'
2020-09-01T18:38:17.115758+00:00 app[web.1]: 18:38:17.115 [info] {"module":"Elixir.Analytics.Log","message":"Starting log write cache service","line":83,"function":"init","app":"analytics_data"}
2020-09-01T18:38:17.116040+00:00 app[web.1]: 18:38:17.115 [info] {"tables":["event","stream","network"],"module":"Elixir.Analytics.DB.Writer","message":"Starting db writer service","line":42,"function":"init","directory":"./analytics_data_cache","app":"analytics_data"}
2020-09-01T18:38:17.116265+00:00 app[web.1]: 18:38:17.116 [info] Application analytics_data started on node 'my_app@af5ab302-038e-4599-8633-b5add9b8a2a3'
2020-09-01T18:38:17.116717+00:00 app[web.1]: 18:38:17.116 [info] Application auth started on node 'my_app@af5ab302-038e-4599-8633-b5add9b8a2a3'
2020-09-01T18:38:17.117060+00:00 app[web.1]: 18:38:17.116 [info] Application ex_aws started on node 'my_app@af5ab302-038e-4599-8633-b5add9b8a2a3'
2020-09-01T18:38:17.117154+00:00 app[web.1]: 18:38:17.116 [info] Application ex_aws_dynamo started on node 'my_app@af5ab302-038e-4599-8633-b5add9b8a2a3'
2020-09-01T18:38:17.117265+00:00 app[web.1]: 18:38:17.116 [info] Application jason started on node 'my_app@af5ab302-038e-4599-8633-b5add9b8a2a3'
2020-09-01T18:38:17.117535+00:00 app[web.1]: 18:38:17.117 [info] Application ecto_adapters_dynamodb started on node 'my_app@af5ab302-038e-4599-8633-b5add9b8a2a3'
2020-09-01T18:38:18.038472+00:00 app[web.1]: 18:38:18.038 [warning] lager_error_logger_h dropped 73 messages in the last second that exceeded the limit of 50 messages/sec
2020-09-01T18:38:20.474657+00:00 app[web.1]: 18:38:20.474 [info] tzdata release in place is from a file last modified Tue, 26 Mar 2019 05:40:14 GMT. Release file on server was last modified Fri, 24 Apr 2020 04:15:20 GMT.
2020-09-01T18:38:22.300606+00:00 app[web.1]: 18:38:22.300 [info] Tzdata has updated the release from 2019a to 2020a
2020-09-01T18:39:05.453594+00:00 app[web.1]: Error waiting for process to terminate: No child processes
2020-09-01T18:39:05.519132+00:00 heroku[web.1]: State changed from starting to crashed

Let me know if there's anything else I can provide to help illustrate my issue. Again, thanks so much!

Some issues using this buildpack

Hi, first off thanks for creating this buildpack! As I am using heroku-buildpack-phoenix-static it sems that I need to use this.

However I'm running into some problems.

The bin/detect script is failing because I don't have a rel directory in the root of my repository. But I wouldn't expect to have one there anyway, if anything I'd expect to have _build/rel, but that would only be there if the release was already built in a different buildpack (and I'd rather just build the release once). Shouldn't bin/detect basically look identical to https://github.com/HashNuke/heroku-buildpack-elixir/blob/a0fd1ce618761c745a8c3d6fe2bb6ba1fb220906/bin/detect ?

I'm also getting this error:

remote: Elixir Mix Release script compile running
remote: ** (RuntimeError) environment variable SECRET_KEY_BASE is missing.

So imported the export_env_vars function which fixes that. But now I'm having trouble with phoenix binding to the incorrect port which is probably related to configuration again, although perhaps it's just normal release configuration issues.

So my question is if you've seen these same issues and should I push up a PR that fixes some of them?

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.