Comments (14)
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.
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.
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.
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.
From @kmala on October 24, 2016 20:16
do you have a procfile with web type during the deis pull?
from workflow.
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.
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.
From @jdotjdot on July 3, 2017 20:19
I'm also having this issue. Is there any resolution?
from workflow.
This is issue is fucking insane. 🔫 💀 :
from workflow.
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.
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.
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.
This is a nasty issue and we need to take a look at this one right away on the controller.
from workflow.
@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)
- Automated release of workflow/docs HOT 2
- Add x-forwarded-host to the nginx config in the deis-router for ruby apps issue HOT 12
- AWS ALB/NLB support?
- Docs: broken link(s) to Deis blog HOT 7
- ssh_exchange_identification: read: Connection reset by peer HOT 7
- There is an incredibly amount of verbose output when a buildpack is not matched HOT 5
- Helm install fails HOT 2
- Simple installation of Hephy wouldn't work. Client on Mac OS X and Cluster on AWS HOT 13
- Unable to install hephy workflow HOT 18
- How to manage application databases with workflow? HOT 6
- `deis certs` doesn't show certs added by another (admin) user HOT 2
- Unable to install onto Kubernetes 1.18.3 HOT 2
- ps:restart should rolling restart the pods HOT 2
- deis logs is not returning pod logs HOT 7
- Guide for Rancher HOT 6
- error upgrading from very old install, hephy/postgres:v2.7.3 boots but hephy/postgres:v2.7.6 does not. HOT 5
- Chart is broken. HOT 1
- [feature request] Enable to drop monitor HOT 1
- [feature support] Enable to add affinities. HOT 6
- Is this still actively maintained? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workflow.