Giter Club home page Giter Club logo

Comments (4)

Abhishek-AC avatar Abhishek-AC commented on May 29, 2024

Facing Errors while deploying the app using a docker container.

Steps to replicate the issue

  1. Clone the repo and checkout to master branch
  2. Install Heroku CLI
  3. On the local environment, using a terminal window on a mac go to the website folder where the repo is cloned
heroku login
heroku container:login

On Login Succeeded message,

docker build -t webmasterimage .
heroku container:push web -a cti-dev
heroku container:release web -a cti-dev
heroku open -a cti-dev

Leads to:
image

On Debugging,

heroku logs --tail -a cti-dev

Error Message:

2020-05-17T23:40:08.123266+00:00 app[api]: Release v1 created by user [email protected]
2020-05-17T23:40:08.123266+00:00 app[api]: Initial release by user [email protected]
2020-05-17T23:40:08.836798+00:00 app[api]: Release v2 created by user [email protected]
2020-05-17T23:40:08.836798+00:00 app[api]: Enable Logplex by user [email protected]
2020-05-18T23:45:17.564803+00:00 app[api]: Deployed web (96b052ed03cf) by user [email protected]
2020-05-18T23:45:17.564803+00:00 app[api]: Release v3 created by user [email protected]
2020-05-18T23:45:17.591933+00:00 app[api]: Scaled to web@1:Hobby by user [email protected]
2020-05-18T23:45:20.605212+00:00 heroku[web.1]: State changed from starting to crashed
2020-05-18T23:45:20.608217+00:00 heroku[web.1]: State changed from crashed to starting
2020-05-18T23:45:20.540370+00:00 app[web.1]: 2020/05/18 23:45:20 [warn] 4#4: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2
2020-05-18T23:45:20.540391+00:00 app[web.1]: nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2
2020-05-18T23:45:20.541562+00:00 app[web.1]: 2020/05/18 23:45:20 [emerg] 4#4: bind() to 0.0.0.0:80 failed (13: Permission denied)
2020-05-18T23:45:20.541562+00:00 app[web.1]: nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
2020-05-18T23:45:23.591426+00:00 heroku[web.1]: State changed from starting to crashed
2020-05-18T23:45:23.516925+00:00 app[web.1]: 2020/05/18 23:45:23 [warn] 4#4: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2
2020-05-18T23:45:23.516945+00:00 app[web.1]: nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2
2020-05-18T23:45:23.518137+00:00 app[web.1]: 2020/05/18 23:45:23 [emerg] 4#4: bind() to 0.0.0.0:80 failed (13: Permission denied)
2020-05-18T23:45:23.518138+00:00 app[web.1]: nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
2020-05-18T23:46:58.957338+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cti-dev.herokuapp.com request_id=99014836-d102-4851-a8fc-6a14d944f829 fwd="104.32.171.52" dyno= connect= service= status=503 bytes= protocol=https
2020-05-18T23:46:59.615920+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=cti-dev.herokuapp.com request_id=88855350-2aac-49bb-afb9-779cf963534f fwd="104.32.171.52" dyno= connect= service= status=503 bytes= protocol=https
2020-05-18T23:56:52.492026+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cti-dev.herokuapp.com request_id=746d4f08-a0c6-48fc-a364-201c38144826 fwd="104.32.171.52" dyno= connect= service= status=503 bytes= protocol=https
2020-05-18T23:56:53.741810+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=cti-dev.herokuapp.com request_id=89abc1af-ce34-439f-ae3d-d08a595da1f7 fwd="104.32.171.52" dyno= connect= service= status=503 bytes= protocol=https
2020-05-18T23:59:14.490837+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cti-dev.herokuapp.com request_id=efea27c7-2264-4a8f-8f7e-8961a8637e4a fwd="104.32.171.52" dyno= connect= service= status=503 bytes= protocol=https
2020-05-18T23:59:15.053352+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=cti-dev.herokuapp.com request_id=e05a2b81-99dd-4ee8-9528-2a0de462ceae fwd="104.32.171.52" dyno= connect= service= status=503 bytes= protocol=https
2020-05-19T00:03:30.254166+00:00 app[api]: Starting process with command `rails console` by user [email protected]
2020-05-19T00:03:31.850821+00:00 heroku[run.2764]: State changed from starting to up
2020-05-19T00:03:37.091069+00:00 heroku[run.2764]: State changed from up to complete
2020-05-19T00:03:55.926615+00:00 heroku[web.1]: State changed from crashed to starting
2020-05-19T00:04:00.649682+00:00 heroku[web.1]: State changed from starting to crashed
2020-05-19T00:04:00.653287+00:00 heroku[web.1]: State changed from crashed to starting
2020-05-19T00:04:00.510263+00:00 app[web.1]: 2020/05/19 00:04:00 [warn] 4#4: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2
2020-05-19T00:04:00.510286+00:00 app[web.1]: nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2
2020-05-19T00:04:00.514371+00:00 app[web.1]: 2020/05/19 00:04:00 [emerg] 4#4: bind() to 0.0.0.0:80 failed (13: **Permission denied**)
2020-05-19T00:04:00.514384+00:00 app[web.1]: nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
2020-05-19T00:04:03.989925+00:00 heroku[web.1]: State changed from starting to crashed
2020-05-19T00:04:03.903366+00:00 app[web.1]: 2020/05/19 00:04:03 [warn] 4#4: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2
2020-05-19T00:04:03.903403+00:00 app[web.1]: nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2
2020-05-19T00:04:03.905651+00:00 app[web.1]: 2020/05/19 00:04:03 [emerg] 4#4: bind() to 0.0.0.0:80 failed (13: Permission denied)
2020-05-19T00:04:03.905715+00:00 app[web.1]: nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
2020-05-19T00:04:36.033089+00:00 heroku[web.1]: State changed from crashed to down
2020-05-19T00:04:35.581995+00:00 app[api]: Scaled to web@0:Hobby by user [email protected]
2020-05-19T00:07:38.763732+00:00 app[api]: Rollback to v1 by user [email protected]
2020-05-19T00:07:38.763732+00:00 app[api]: Release v4 created by user [email protected]
2020-05-19T00:09:25.541439+00:00 heroku[router]: **at=error code=H10 desc="App crashed" method=GET path="/"** host=cti-dev.herokuapp.com request_id=6f6354de-e8c8-4729-87c1-21fa7050f6bc fwd="104.32.171.52" dyno= connect= service= status=503 bytes= protocol=https
2020-05-19T00:09:26.486905+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=cti-dev.herokuapp.com request_id=dba5d9fb-4fbd-44c3-ac01-4ea2fcb9f2f6 fwd="104.32.171.52" dyno= connect= service= status=503 bytes= protocol=https
2020-05-19T00:10:15.976942+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cti-dev.herokuapp.com request_id=0b497a14-be23-40bc-8842-564403820afc fwd="3.91.241.10" dyno= connect= service= status=503 bytes= protocol=https

Insights

? Permission Denied
? at=error code=H10 desc="App crashed" method=GET path="/"

Next Steps

  1. Rolled back to v1 from Heroku Dashboard
  2. Debugging the issue when trying to deploy the app using docker container
  3. Will try to deploy the application using GitHub
    image
  4. @ExperimentsInHonesty Could you approve my request to connect the cti-dev (heroku-app) to Github civictechindex organization

from cti-website-frontend.

Abhishek-AC avatar Abhishek-AC commented on May 29, 2024

The most stable version is deployed BUT switched off purposely.

Current State

image

Previous State

image

But there is a catch here, the dyno associated with it is a paid version - Dyno Hobby.
Researched online, how to downgrade dyno hobby to dyno free?

From the reply in the question from stackoverflow Turns out that if the Heroku app is created under a team $7 per month(hobby) is the lowest you can go.

@ExperimentsInHonesty I have switched to 0$(No Dyno associated) now so that we aren't billed.
We can use a personal account to spin up the website with zero charges.

Let me know whatever sounds feasible to you.

from cti-website-frontend.

ExperimentsInHonesty avatar ExperimentsInHonesty commented on May 29, 2024

I authorized the $7 a month version. So we are now live. @Abhishek-AC is there anything else left to do on this issue or can we close it?

from cti-website-frontend.

Abhishek-AC avatar Abhishek-AC commented on May 29, 2024

We can close this issue. I will reach out to someone in the ops team, to verify the creation of a pipeline and standards that should be followed while deploying the app to Heroku.

from cti-website-frontend.

Related Issues (20)

Recommend Projects

  • React photo React

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

  • Vue.js photo Vue.js

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

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

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

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.