cloudfoundry-incubator / cflocal

Stage and launch CF apps, push and pull droplets, and connect to real CF services -- in Docker
Apache License 2.0
178 stars 27 forks source link

Error when staging with nginx because of inability to open /dev/stdout #23

Closed ssisil closed 6 years ago

ssisil commented 6 years ago

Staged an nginx app and consistently see this error -

Buildpack: https://github.com/cloudfoundry/nginx-buildpack#develop
[nginx] 2018-03-29T19:39:53.243125600Z -----> Download go 1.9.1
[nginx] 2018-03-29T19:40:08.167983541Z -----> Running go build supply
[nginx] 2018-03-29T19:40:14.746564406Z -----> Nginx Buildpack version 0.0.4
[nginx] 2018-03-29T19:40:14.752543615Z -----> Supplying nginx
[nginx] 2018-03-29T19:40:14.752737718Z -----> No nginx version specified - using mainline => 1.13.10
[nginx] 2018-03-29T19:40:14.752774600Z -----> Installing nginx 1.13.10
[nginx] 2018-03-29T19:40:14.752814680Z        Download [https://buildpacks.cloudfoundry.org/dependencies/nginx/nginx-1.13.10-linux-x64-69d36c67.tgz]
[nginx] 2018-03-29T19:40:15.725469709Z nginx: the configuration file /tmp/conf120673671/nginx.conf syntax is ok
[nginx] 2018-03-29T19:40:15.732597343Z 2018/03/29 19:40:15 [emerg] 167#0: open() "/dev/stdout" failed (13: Permission denied)
[nginx] 2018-03-29T19:40:15.732681202Z nginx: configuration file /tmp/conf120673671/nginx.conf test failed
[nginx] 2018-03-29T19:40:15.736316083Z        **ERROR** Could not validate nginx.conf: nginx.conf contains syntax errors: exit status 1
[nginx] 2018-03-29T19:40:15.774639812Z Failed to compile droplet: Failed to run all supply scripts: exit status 14
[nginx] 2018-03-29T19:40:15.942972703Z Error: failed to build: exit status 223Error: container exited with status 3
FAILED
sclevine commented 6 years ago

@ssisil try it now with v0.19.0 -- I patched the latest packs/cflinuxfs2 base images.

ssisil commented 6 years ago

@sclevine - Tested out and it looks good