nginx-proxy: Mac m1 Http works but https is broken?
Hi,
on http is everything it fine. But on https i got this:
nginx.1 | 2021/06/20 18:51:26 [notice] 30#30: signal 17 (SIGCHLD) received from 99
nginx.1 | 2021/06/20 18:51:26 [alert] 30#30: worker process 99 exited on signal 11
nginx.1 | 2021/06/20 18:51:26 [notice] 30#30: start worker process 103
nginx.1 | 2021/06/20 18:51:26 [notice] 30#30: signal 29 (SIGIO) received
nginx.1 | 2021/06/20 18:51:26 [notice] 30#30: signal 17 (SIGCHLD) received from 100
nginx.1 | 2021/06/20 18:51:26 [alert] 30#30: worker process 100 exited on signal 11
nginx.1 | 2021/06/20 18:51:26 [notice] 30#30: start worker process 104
nginx.1 | 2021/06/20 18:51:26 [notice] 30#30: signal 29 (SIGIO) received
nginx.1 | 2021/06/20 18:51:27 [notice] 30#30: signal 17 (SIGCHLD) received from 101
nginx.1 | 2021/06/20 18:51:27 [alert] 30#30: worker process 101 exited on signal 11
nginx.1 | 2021/06/20 18:51:27 [notice] 30#30: start worker process 105
nginx.1 | 2021/06/20 18:51:27 [notice] 30#30: signal 29 (SIGIO) received
nginx.1 | 2021/06/20 18:51:27 [notice] 30#30: signal 17 (SIGCHLD) received from 102
nginx.1 | 2021/06/20 18:51:27 [alert] 30#30: worker process 102 exited on signal 11
nginx.1 | 2021/06/20 18:51:27 [notice] 30#30: start worker process 106
nginx.1 | 2021/06/20 18:51:27 [notice] 30#30: signal 29 (SIGIO) received
nginx.1 | 2021/06/20 18:51:27 [notice] 30#30: signal 17 (SIGCHLD) received from 103
nginx.1 | 2021/06/20 18:51:27 [alert] 30#30: worker process 103 exited on signal 11
nginx.1 | 2021/06/20 18:51:27 [notice] 30#30: start worker process 107
nginx.1 | 2021/06/20 18:51:27 [notice] 30#30: signal 29 (SIGIO) received
nginx.1 | 2021/06/20 18:51:28 [notice] 30#30: signal 17 (SIGCHLD) received from 104
nginx.1 | 2021/06/20 18:51:28 [alert] 30#30: worker process 104 exited on signal 11
nginx.1 | 2021/06/20 18:51:28 [notice] 30#30: start worker process 108
nginx.1 | 2021/06/20 18:51:28 [notice] 30#30: signal 29 (SIGIO) received
nginx.1 | 2021/06/20 18:51:28 [notice] 30#30: signal 17 (SIGCHLD) received from 105
nginx.1 | 2021/06/20 18:51:28 [alert] 30#30: worker process 105 exited on signal 11
nginx.1 | 2021/06/20 18:51:28 [notice] 30#30: start worker process 109
nginx.1 | 2021/06/20 18:51:28 [notice] 30#30: signal 29 (SIGIO) received
here is the docker-compose.yml
version: '3'
services:
#######################################
# Delegate requests to container via
# Nginx reverse proxy
#######################################
nginx-proxy:
container_name: nginx-proxy
image: jwilder/nginx-proxy
build:
context: docker/nginx-proxy
ports:
- "80:80"
- "443:443"
networks:
- default
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./docker/nginx-proxy/nginx.tmpl:/app/nginx.tmpl:ro
- ./docker/nginx-proxy/certs/default.key:/etc/nginx/certs/default.key:ro
- ./docker/nginx-proxy/certs/default.crt:/etc/nginx/certs/default.crt:ro
networks:
default:
external:
name: kult-dev-network
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (9 by maintainers)
tl;dr – a possible work-around would be to use
nginxproxy/nginx-proxy:alpine
image instead of a debian-based one.@buchdag sorry for the late reply, was busy week 😅
Yea, I thought about http1.1 as well, however forcing that doesn’t seem to change anything. And nginx debug mode doesn’t seem to log anything extra.
Now the interesting bit is that this doesn’t manifest if I use alpine flavour of nginx image (i.o.w.
nginx:alpine
)! The output looks quite close to the “broken” one:While researching this I’ve stumbled upon a rather old, but very similar issue in nginx issue tracker, that claims the problem to happen due to
-O2
optimisation flags.Now, looking at the
nginx -V
output from docker image, it seems that it used-O2
during compilation, so that might be what causing this issue? And since alpine builds don’t use gcc, this doesn’t manifest?Anyhoo to sum up, using alpine-based nginx-proxy build instead of debian one solves the issue for my local env, which is good enough for me 😅
Feel free to ping me if you want to test something!
@kblcuk thanks for investigating this, seems there isn’t much we can do from this project end. 😒
At least the alpine based image is working. 👍
Inactive issue, closing.
I think next step would be running the three container setup (nginx and docker-gen in split containers) with nginx in debug mode. Do you know how to do this or do you need assistance ?