Comments (7)
Hi @debu66er, thanks for the report!
After some brief investigation, we think this may be an upstream bug with CC or routing. We have a story prioritized to investigate this further, and we'll let you know when we find out more.
from pcfdev.
Great! Thank you very much.
I tested also Tomcat, Jetty and Liberty docker containers. All of them finished with errors by timeout but the routes seem to be up. But when testing the home pages I always get 404. This doesn't happen if I test the docker containers in a local standard docker installation.
Not sure if it is related or not with NGinx docker container issue as I don't get any error about port used. But they are other docker samples that seems not working properly.
Let me know if I can share any kind of log or test that can help you with the issue.
from pcfdev.
i reviewed the docker containers you listed, i didn't have a problem started tomcat and jetty, although jetty doesn't seem to have any pages available by default so that 404 is from the app itself (could confirm with cf logs
)
liberty and nginx both have multiple EXPOSE
ports, which i need to do some checking to see where we're at on supporting that. i know the routing team has been involved. i notice on the logs for these that healthchecks are firing against both ports 80 and 443, and maybe something is happening at the cloud controller layer preventing routes to ports < 1024.
from pcfdev.
Thanks @davidwadden I revieved the tests with new v0.6.0 and:
Tomcat official Docker Image worked fine.
BTW, it is listening to port 80 although it exposes 8080. Is there anyway to specify a different port when deploying into CF?
NGinx official Docker image still failing with the same error:
Server error, status code: 400, error code: 100001, message: The app is invalid: ports Ports must be in the 1024-65535.
And WebSphere Liberty official Docker image tries to start because I get logs from it, but it seems it has a problem creating /log directory. Perhaps rights issues (although it runs fine in standard Docker runtime):
2016-02-10T21:09:22.31+0100 [CELL/0] OUT Creating container
2016-02-10T21:09:26.62+0100 [CELL/0] OUT Successfully created container
2016-02-10T21:09:26.62+0100 [CELL/0] OUT Starting health monitoring of container
2016-02-10T21:09:27.54+0100 [APP/0] OUT Launching defaultServer (WebSphere Application Server 8.5.5.8/wlp-1.0.11.cl50820151201-1942) on IBM J9 VM, version pxa6480sr1fp10-20150711_01 (SR1 FP10) (en_US)
2016-02-10T21:09:27.97+0100 [APP/0] ERR TRAS0037E: The system could not create new file /logs
2016-02-10T21:09:27.98+0100 [APP/0] OUT CWWKE0005E: The runtime environment could not be launched.
2016-02-10T21:09:27.98+0100 [APP/0] OUT CWWKE0018E: An exception occurred while launching the runtime environment: java.lang.NullPointerException
2016-02-10T21:09:27.98+0100 [APP/0] ERR com.ibm.ws.kernel.boot.LaunchException: Caught unexpected exception java.lang.NullPointerException
2016-02-10T21:09:27.98+0100 [APP/0] ERR at com.ibm.ws.kernel.boot.internal.KernelBootstrap.rethrowException(KernelBootstrap.java:524)
2016-02-10T21:09:27.98+0100 [APP/0] ERR at com.ibm.ws.kernel.boot.internal.KernelBootstrap.go(KernelBootstrap.java:207)
2016-02-10T21:09:27.98+0100 [APP/0] ERR at com.ibm.ws.kernel.boot.Launcher.handleActions(Launcher.java:245)
2016-02-10T21:09:27.98+0100 [APP/0] ERR at com.ibm.ws.kernel.boot.Launcher.createPlatform(Launcher.java:120)
2016-02-10T21:09:27.98+0100 [APP/0] ERR at com.ibm.ws.kernel.boot.Launcher.main(Launcher.java:55)
2016-02-10T21:09:27.98+0100 [APP/0] ERR at com.ibm.ws.kernel.boot.cmdline.EnvCheck.main(EnvCheck.java:61)
2016-02-10T21:09:27.98+0100 [APP/0] ERR at com.ibm.ws.kernel.boot.cmdline.EnvCheck.main(EnvCheck.java:37)
2016-02-10T21:09:27.98+0100 [APP/0] ERR Caused by: java.lang.NullPointerException
2016-02-10T21:09:27.98+0100 [APP/0] ERR at com.ibm.ws.logging.internal.impl.LogProviderConfigImpl$InitConfgAttribute.getLogDirectory(LogProviderConfigImpl.java:387)
2016-02-10T21:09:27.98+0100 [APP/0] ERR at com.ibm.ws.logging.internal.impl.LogProviderConfigImpl.doCommonInit(LogProviderConfigImpl.java:173)
2016-02-10T21:09:27.98+0100 [APP/0] ERR at com.ibm.ws.logging.internal.impl.LogProviderConfigImpl.<init>(LogProviderConfigImpl.java:117)
2016-02-10T21:09:27.98+0100 [APP/0] ERR at com.ibm.ws.logging.internal.impl.LogProviderImpl.configure(LogProviderImpl.java:32)
2016-02-10T21:09:27.98+0100 [APP/0] ERR at com.ibm.ws.kernel.launch.internal.LauncherDelegateImpl.getLogProviderImpl(LauncherDelegateImpl.java:186)
2016-02-10T21:09:27.98+0100 [APP/0] ERR at com.ibm.ws.kernel.launch.internal.LauncherDelegateImpl.launchFramework(LauncherDelegateImpl.java:92)
2016-02-10T21:09:27.98+0100 [APP/0] ERR at com.ibm.ws.kernel.boot.internal.KernelBootstrap.go(KernelBootstrap.java:201)
2016-02-10T21:09:27.99+0100 [APP/0] ERR ... 5 more
2016-02-10T21:09:28.02+0100 [APP/0] OUT Exit status 24
2016-02-10T21:09:28.02+0100 [CELL/0] OUT Exit status 0
2016-02-10T21:09:28.04+0100 [API/0] OUT App instance exited with guid efc25c36-8850-4c55-9517-e212807e84ee payload: {"instance"=>"b3978878-e91f-441a-4c55-1d6a2e5eb6d2", "index"=>0, "reason"=>"CRASHED", "exit_description"=>"2 error(s) occurred:\n\n* 2 error(s) occurred:\n\n* Exited with status 24\n* cancelled\n* cancelled", "crash_count"=>4, "crash_timestamp"=>1455134968030522274, "version"=>"9d78ff6c-2d1d-4e2d-96cc-450b145f5c25"}
`
from pcfdev.
Could you try with
cf push -o nginx ngx -u none
to disable health check?
I can't tell yet why health check does not pass but I could deploy the nginx official docker image this way.
I am curious about your use case though as Cloud Foundry provides an nginx buildpack already.
https://github.com/cloudfoundry/staticfile-buildpack
from pcfdev.
For the WebSphere Liberty I could test it onto a full Pivotal Cloud Foundry installation.
Startup took about 2 minutes given all the installation that happens in this WebSphere Liberty image (https://github.com/docker-library/docs/blob/master/websphere-liberty/tag-details.md#websphere-libertywebprofile7 ) - and that was a fast datacenter network to download from the internet.
I have used:
cf push -o websphere-liberty:webProfile7 ly
After startup I can see logs as well as the welcome page for the WAS Liberty.
I will try on PCFdev later.
Note that IBM has a WAS Liberty builpack for Cloud Foundry since some time so you may also want to try it (cf push .. -b ...)
(2013) https://blog.pivotal.io/pivotal-cloud-foundry/products/ibm-liberty-buildpack-on-cloud-foundry
https://github.com/cloudfoundry/ibm-websphere-liberty-buildpack
from pcfdev.
Closing this issue due to inactivity, and because we don't believe any remaining issues with the nginx Docker image are specific to PCF Dev.
from pcfdev.
Related Issues (20)
- Enabling nfs-volumes on PCF-DEV and / or PWS HOT 3
- Unable to register service broker with self-signed certificate HOT 2
- PCF-DEV and DELL ECS HOT 3
- Timed out waiting for the VM: rpc error HOT 13
- DELL ECS with PCFDEV HOT 2
- cf dev start fails HOT 7
- cf dev start: Failed to deploy the BOSH Director: Process exited with status 1 HOT 5
- pcfdev installation failed on Mac OS X version 10.13.6 HOT 5
- cf dev start stuck at 55, pcfdev ova ssl error on Windows with virtualbox environment. HOT 2
- PCDev Stale version of Bosh/PAS?? HOT 2
- vb ù ù HOT 1
- vb ù ù HOT 1
- vb ù ù ù HOT 1
- vb ù ù ù HOT 1
- vb ù ù ù HOT 1
- unable run the pcf dev -f filepath giving new object error in power shell HOT 2
- pcfdev scs fails to deploy. HOT 13
- pcfdev fails to deploy PAS HOT 2
- Download of PCF Dev v1.3.0 for PAS 2.5.7 not possible HOT 3
- [PCF-Dev v1.3.1]: Deployment of Spring Cloud Services (SCS) fails again - Service broker error: Could not find an available leader 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 pcfdev.