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

Suppress or handle: Uncaught signal: 13, pid=3, tid=3, fault_addr=0. #1599

Open
piotrekkr opened this issue Aug 23, 2023 · 0 comments
Open
Labels

Comments

@piotrekkr
Copy link

piotrekkr commented Aug 23, 2023

Hello. I'm using supervisor with nginx and php-fpm, all packed in one docker container and deployed to GCP Cloud Run.

supervisord config /etc/supervisor/supervisord.conf:

[supervisord]
loglevel=warn
logfile=/proc/self/fd/1
logfile_maxbytes = 0
nodaemon=true
user=root
pidfile=/var/run/supervisord.pid

[include]
files=conf.d/*.conf

[unix_http_server]
file=/tmp/supervisor.sock
username = dummy
password = dummy

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///tmp/supervisor.sock
username = dummy
password = dummy

Program configs /etc/supervisor/conf.d/app.conf:

[program:php-fpm]
command=/usr/local/sbin/php-fpm
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
loglevel=debug

[program:nginx]
command=/usr/local/bin/wait-for-php-and-run-nginx.sh
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
loglevel=debug

entrypoint:

echo "[INFO] Executing container command"

exec "$@"

Docker command:

ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

CMD [ "supervisord", "-c", "/etc/supervisor/supervisord.conf" ]

Even tho all works fine, I keep getting those errors in cloud run logs:

Uncaught signal: 13, pid=3, tid=3, fault_addr=0.

This probably happens because cloud run is closing unneeded app instances when scaling but I'm not sure. Also, based on https://man7.org/linux/man-pages/man7/signal.7.html , signal 13 seems to be SIGPIPE which is weird.

Is there a way to suppress those error logs in supervisor or maybe to handle them somehow so they will not show as errors?

Thank you.

@piotrekkr piotrekkr changed the title Uncaught signal: 13, pid=3, tid=3, fault_addr=0. Supress or handle: Uncaught signal: 13, pid=3, tid=3, fault_addr=0. Aug 23, 2023
@piotrekkr piotrekkr changed the title Supress or handle: Uncaught signal: 13, pid=3, tid=3, fault_addr=0. Suppress or handle: Uncaught signal: 13, pid=3, tid=3, fault_addr=0. Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants