Code Monkey home page Code Monkey logo

Comments (14)

natethinks avatar natethinks commented on June 2, 2024 1

I was running into this. I had made some new services and forgotten to put EXPOSE in the dockerfile. I tried adding EXPOSE, which didn't help, I also tried renaming the process in the Procfile to "web", which also didn't work. I ended up just recreated the app in deis under a different name which fixed the issue.

from workflow.

Cryptophobia avatar Cryptophobia commented on June 2, 2024

From @olalonde on October 24, 2016 11:55

Fixed by adding a Procfile with web process and deis ps:scale cmd=0 web=1

from workflow.

Cryptophobia avatar Cryptophobia commented on June 2, 2024

From @olalonde on October 24, 2016 20:8

@bacongobbler is this a new requirement? I thought it was fine to use cmd as the web process.

from workflow.

Cryptophobia avatar Cryptophobia commented on June 2, 2024

From @bacongobbler on October 24, 2016 20:12

Nope! It should be fine with cmd as the web process. I just closed it as I assumed it was an app issue with booting the process. Please re-open if you have more logs to share about how it failed to return a 200 OK with the cmd process

from workflow.

Cryptophobia avatar Cryptophobia commented on June 2, 2024

From @kmala on October 24, 2016 20:16

do you have a procfile with web type during the deis pull?

from workflow.

Cryptophobia avatar Cryptophobia commented on June 2, 2024

From @olalonde on October 24, 2016 20:37

I didn't have a Procfile when it failed. But it was the first deis pull for that app, previously I did git push deploys, maybe that's the reason? Maybe this should be tested in e2e tests (git push deploy followed by deis pull deploy)? I don't think it was a booting error because I could see the successful health check requests in my app logs. Anyways, I'm going to comment here if I have this issue again.

from workflow.

Cryptophobia avatar Cryptophobia commented on June 2, 2024

From @davidchua on April 8, 2017 8:5

I am having this issue as well.

I've tried with both having a Procfile with a cmd calling the same CMD in the dockerfile and also without a Procfile.

Application is running. Like @olalonde, previously I was git pushing from a buildpack before switching to a Dockerfile method.

from workflow.

Cryptophobia avatar Cryptophobia commented on June 2, 2024

From @jdotjdot on July 3, 2017 20:19

I'm also having this issue. Is there any resolution?

from workflow.

Cryptophobia avatar Cryptophobia commented on June 2, 2024

This is issue is fucking insane. 🔫 💀 :

from workflow.

Cryptophobia avatar Cryptophobia commented on June 2, 2024

I was able to reproduce this after many hours. Please reopen for the record!

When a push with a Procfile/Heroku buildpack and then with Dockerfile happen on the same application, the service can reach a state 503 Service Unavailable. I had to recreate the app with a new name and then push there only with the relevant Dockerfile.

Seems like Procfile/Heroku Buildpack pushes can make the application have a dirty state.

The whole time I was trying to deploy for hours and thinking this was host-header problem with my application and the server hosting it inside the docker container. But it turns out the 503 Service Temporarily Unavailable is a problem with Deis.

from workflow.

Cryptophobia avatar Cryptophobia commented on June 2, 2024

From @jdotjdot on November 23, 2017 17:55

I would second reopening the issue. We literally have had to avoid using Deis because of it, and instead are using vanilla Kubernetes.

from workflow.

Cryptophobia avatar Cryptophobia commented on June 2, 2024

From @bacongobbler on November 23, 2017 18:2

This should've been fixed with deis/controller#1201 and we closed this because it was a duplicate of #658. I'd take a look at that PR and see if there's some edge case missed there.

The code in question would be here: https://github.com/mboersma/controller/blob/master/rootfs/api/models/app.py#L478-L492

from workflow.

Cryptophobia avatar Cryptophobia commented on June 2, 2024

This is a nasty issue and we need to take a look at this one right away on the controller.

from workflow.

Cryptophobia avatar Cryptophobia commented on June 2, 2024

@natethinks Thank you for reporting this. I will try to run some tests to see what happens when EXPOSE is not in the Dockerfile. Did you try setting the ENV variable PORT via the deis cli?

deis config:set PORT={your exposed docker port here}

This is might have helped as it would hopefully reset the PORT on the controller API to whatever port you specify there. The API defaults to exposing port 5000 so if you tried to expose any other port within your Dockerfile your app would have failed with 503 Service Temporarily Unavailable as the controller-api would not have been able to hit the healthcheck endpoint.

from workflow.

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.