Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest image from docker hub seems to be broken #180

Closed
seletskiy opened this issue Sep 1, 2017 · 3 comments
Closed

Latest image from docker hub seems to be broken #180

seletskiy opened this issue Sep 1, 2017 · 3 comments

Comments

@seletskiy
Copy link
Contributor

I'm trying to use nginxdemos/nginx-ingress:latest (or 1.0.0-beta0) and container refuses to start with following messages (note SSL error):

I0901 11:16:30.936556       1 nginx.go:371] The main NGINX configuration file had been updated
nginx: [emerg] BIO_new_file("/etc/nginx/secrets/default") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/secrets/default','r') error:2006D080:BIO routines:BIO_new_file:no such file)
I0901 11:16:30.942754       1 reflector.go:198] Starting reflector *v1.ConfigMap (30s) from github.com/nginxinc/kubernetes-ingress/nginx-controller/controller/controller.go:318
I0901 11:16:30.942845       1 reflector.go:236] Listing and watching *v1.ConfigMap from github.com/nginxinc/kubernetes-ingress/nginx-controller/controller/controller.go:318
I0901 11:16:30.943015       1 reflector.go:198] Starting reflector *v1beta1.Ingress (30s) from github.com/nginxinc/kubernetes-ingress/nginx-controller/controller/controller.go:312
I0901 11:16:30.943074       1 reflector.go:236] Listing and watching *v1beta1.Ingress from github.com/nginxinc/kubernetes-ingress/nginx-controller/controller/controller.go:312
E0901 11:16:30.943434       1 main.go:146] nginx command exited with an error: exit status 1
I0901 11:16:30.943476       1 main.go:156] Shutting down the controller
I0901 11:16:30.943493       1 main.go:131] Waiting for the controller to exit...
@pleshakov
Copy link
Contributor

@seletskiy
Since 1.0.0 it is required to provide a TLS Secret for the default NGINX server. Please see https://github.com/nginxinc/kubernetes-ingress/tree/master/examples/complete-example

@seletskiy
Copy link
Contributor Author

@pleshakov: Hmmm, thanks. Maybe, it's good idea to add some kind of pre-start check with good error message to make it more obvious.

@pleshakov
Copy link
Contributor

@seletskiy that is a good point. thanks. however, just to be more clear, if you add a cert and a key into the /etc/nginx/secrets/default file in the image, you don't have to provide any TLS Secret.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants