-
Notifications
You must be signed in to change notification settings - Fork 322
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
Error 503, PHP #1314
Comments
Are you getting coredumps? (might not be enabled) I would really like to see a backtrace from one $ gdb /path/to/unitd /path/to/coredump
(gdb) bt full Or if your running systemd then it may be intercepting the core dumps,
If that shows a list, good stuff
Will launch gdb on the most recent coredump... |
How I can enable coredumps in unitd processes? |
Not really a Unit specific thing... In the container what does $ cat /proc/sys/kernel/core_pattern return? When unit is running what does $ cat /proc/`pidof -s unitd`/limits show? |
cat /proc/sys/kernel/core_pattern cat /proc/ Limit Soft Limit Hard Limit Units |
OK, so according to that you should be betting core dumps in /tmp/ named |
If you find a core file. You can do $ gdb /path/to/uniid /path/to/corefile
(gdb) bt full
"Might need to press 'c' to get the full thing" Alternatively if you are able to create a minimal reproducer... |
Thanks for the answer. Another question, are dumps uploaded only when a unitd crashes or can they be uploaded when some process crashes? |
Coredumps are a standard UNIX (and other OS's) feature and will generally be generated for any processes that crash, or when receiving a signal whose default action is to coredump, (SIGABRT, SIGBUS, SIGFPE, SIGILL, SIGQUIT, SIGSEGV, SIGSYS, SIGTRAP, SIGXCPU, SIGXFSZ). You can also force a running process to coredump via gcore(1) |
For some reason, error 503 appears periodically, and after that it does not go away until the next restart of the container, what could be the problem?
Logs:
There is more than 100 GB of free RAM on the server, there are no restrictions in the container.
Unit config:
PHP 8.3
unit version: 1.32.1
PHP ini memory limit increased to 10 GB.
The text was updated successfully, but these errors were encountered: