Hi everyone, I recently installed osTicket 1.14.2 on CentOS 7. I'm getting occasional "502 bad gateway" errors.
Attached are logs and related settings.
Thanks in advance for any help you can give me.
Best regards
Gabriel
osticket.conf
server {
listen 80;
server_name support.nuevenet.medios;
root /var/www/osticket/upload;
index index.php index.html;
set $path_info "";
location ~ /include {
deny all;
return 403;
}
if ($request_uri ~ "/api(/[\?]+)") {
set $path_info $1;
}
location ~ /api/(?:tickets|tasks).*$ {
try_files $uri $uri/ /api/http.php?$query_string;
}
if ($request_uri ~ "/scp/.*.php(/[\?]+)") {
set $path_info $1;
}
if ($request_uri ~ "/.*.php(/[\?]+)") {
set $path_info $1;
}
location ~ /scp/ajax.php/.*$ {
try_files $uri $uri/ /scp/ajax.php?$query_string;
}
location ~ /ajax.php/.*$ {
try_files $uri $uri/ /ajax.php?$query_string;
}
location / {
try_files $uri $uri/ index.php;
}
location ~ .php$ {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_param PATH_INFO $path_info;
fastcgi_pass 127.0.0.1:9000;
}
}
opcache.ini
; Enable Zend OPcache extension module
zend_extension=opcache.so
; Determines if Zend OPCache is enabled
opcache.enable=1
; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=0
; The OPcache shared memory storage size.
opcache.memory_consumption=128
; The amount of memory for interned strings in Mbytes.
opcache.interned_strings_buffer=8
; The maximum number of keys (scripts) in the OPcache hash table.
; Only numbers between 200 and 100000 are allowed.
opcache.max_accelerated_files=4000
; The maximum percentage of "wasted" memory until a restart is scheduled.
;opcache.max_wasted_percentage=5
; When this directive is enabled, the OPcache appends the current working
; directory to the script key, thus eliminating possible collisions between
; files with the same name (basename). Disabling the directive improves
; performance, but may break existing applications.
;opcache.use_cwd=1
; When disabled, you must reset the OPcache manually or restart the
; webserver for changes to the filesystem to take effect.
;opcache.validate_timestamps=1
; How often (in seconds) to check file timestamps for changes to the shared
; memory storage allocation. ("1" means validate once per second, but only
; once per request. "0" means always validate)
;opcache.revalidate_freq=2
; Enables or disables file search in include_path optimization
;opcache.revalidate_path=0
; If disabled, all PHPDoc comments are dropped from the code to reduce the
; size of the optimized code.
;opcache.save_comments=1
; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments"
; may be always stored (save_comments=1), but not loaded by applications
; that don't need them anyway.
;opcache.load_comments=1
; If enabled, a fast shutdown sequence is used for the accelerated code
opcache.fast_shutdown=1
; Allow file existence override (file_exists, etc.) performance feature.
;opcache.enable_file_override=0
; A bitmask, where each bit enables or disables the appropriate OPcache
; passes
;opcache.optimization_level=0xffffffff
;opcache.inherited_hack=1
;opcache.dups_fix=0
; The location of the OPcache blacklist file (wildcards allowed).
; Each OPcache blacklist file is a text file that holds the names of files
; that should not be accelerated. The file format is to add each filename
; to a new line. The filename may be a full path or just a file prefix
; (i.e., /var/www/x blacklists all the files and directories in /var/www
; that start with 'x'). Line starting with a ; are ignored (comments).
opcache.blacklist_filename=/etc/php.d/opcache*.blacklist
; Allows exclusion of large files from being cached. By default all files
; are cached.
;opcache.max_file_size=0
; Check the cache checksum each N requests.
; The default value of "0" means that the checks are disabled.
;opcache.consistency_checks=0
; How long to wait (in seconds) for a scheduled restart to begin if the cache
; is not being accessed.
;opcache.force_restart_timeout=180
; OPcache error_log file name. Empty string assumes "stderr".
;opcache.error_log=
; All OPcache errors go to the Web server log.
; By default, only fatal errors (level 0) or errors (level 1) are logged.
; You can also enable warnings (level 2), info messages (level 3) or
; debug messages (level 4).
;opcache.log_verbosity_level=1
; Preferred Shared Memory back-end. Leave empty and let the system decide.
;opcache.preferred_memory_model=
; Protect the shared memory from unexpected writing during script execution.
; Useful for internal debugging only.
;opcache.protect_memory=0
; Allows calling OPcache API functions only from PHP scripts which path is
; started from specified string. The default "" means no restriction
;opcache.restrict_api=
; Mapping base of shared memory segments (for Windows only). All the PHP
; processes have to map shared memory into the same address space. This
; directive allows to manually fix the "Unable to reattach to base address"
; errors.
;opcache.mmap_base=
php-fpm error.log
[20-May-2020 09:18:33] WARNING: [pool www] child 4353 exited on signal 6 (SIGABRT) after 37274.474030 seconds from start
[20-May-2020 09:18:33] NOTICE: [pool www] child 8022 started
[20-May-2020 10:01:35] WARNING: [pool www] child 4380 exited on signal 6 (SIGABRT) after 39083.982189 seconds from start
[20-May-2020 10:01:35] NOTICE: [pool www] child 8046 started
[20-May-2020 10:01:44] WARNING: [pool www] child 4377 exited on signal 6 (SIGABRT) after 39208.846394 seconds from start
[20-May-2020 10:01:44] NOTICE: [pool www] child 8047 started
[20-May-2020 10:01:44] WARNING: [pool www] child 4376 exited on signal 6 (SIGABRT) after 39214.910592 seconds from start
[20-May-2020 10:01:44] NOTICE: [pool www] child 8048 started
[20-May-2020 10:10:48] WARNING: [pool www] child 8046 exited on signal 6 (SIGABRT) after 552.872777 seconds from start
[20-May-2020 10:10:48] NOTICE: [pool www] child 8050 started
[20-May-2020 10:10:51] WARNING: [pool www] child 4381 exited on signal 6 (SIGABRT) after 39640.048881 seconds from start
[20-May-2020 10:10:51] NOTICE: [pool www] child 8051 started
[20-May-2020 10:10:55] WARNING: [pool www] child 8047 exited on signal 6 (SIGABRT) after 551.030996 seconds from start
[20-May-2020 10:10:55] NOTICE: [pool www] child 8052 started
[20-May-2020 10:26:27] WARNING: [pool www] child 4379 exited on signal 6 (SIGABRT) after 40581.928028 seconds from start
[20-May-2020 10:26:27] NOTICE: [pool www] child 8169 started
[20-May-2020 10:32:15] NOTICE: Terminating ...
[20-May-2020 10:32:15] NOTICE: exiting, bye-bye!
[20-May-2020 10:38:14] NOTICE: fpm is running, pid 937
[20-May-2020 10:38:14] NOTICE: ready to handle connections
[20-May-2020 10:38:14] NOTICE: systemd monitor interval set to 10000ms
[20-May-2020 11:09:34] NOTICE: Terminating ...
[20-May-2020 11:09:34] NOTICE: exiting, bye-bye!
[20-May-2020 11:09:57] NOTICE: fpm is running, pid 938
[20-May-2020 11:09:57] NOTICE: ready to handle connections
[20-May-2020 11:09:57] NOTICE: systemd monitor interval set to 10000ms
[20-May-2020 11:35:16] WARNING: [pool www] child 1286 exited on signal 6 (SIGABRT) after 1123.709018 seconds from start
[20-May-2020 11:35:16] NOTICE: [pool www] child 1300 started
[20-May-2020 11:35:16] WARNING: [pool www] child 1086 exited on signal 6 (SIGABRT) after 1519.103929 seconds from start
[20-May-2020 11:35:16] NOTICE: [pool www] child 1301 started
[20-May-2020 11:35:21] WARNING: [pool www] child 1088 exited on signal 6 (SIGABRT) after 1523.972176 seconds from start
[20-May-2020 11:35:21] NOTICE: [pool www] child 1302 started
[20-May-2020 12:19:17] NOTICE: Terminating ...
[20-May-2020 12:19:17] NOTICE: exiting, bye-bye!
[20-May-2020 12:19:17] NOTICE: fpm is running, pid 1595
[20-May-2020 12:19:17] NOTICE: ready to handle connections
[20-May-2020 12:19:17] NOTICE: systemd monitor interval set to 10000ms
[20-May-2020 12:25:25] WARNING: [pool www] child 1598 exited on signal 6 (SIGABRT) after 367.697982 seconds from start
[20-May-2020 12:25:25] NOTICE: [pool www] child 1638 started
[20-May-2020 12:25:58] WARNING: [pool www] child 1596 exited on signal 6 (SIGABRT) after 400.476633 seconds from start
[20-May-2020 12:25:58] NOTICE: [pool www] child 1640 started
[20-May-2020 12:26:02] WARNING: [pool www] child 1638 exited on signal 6 (SIGABRT) after 36.662871 seconds from start
[20-May-2020 12:26:02] NOTICE: [pool www] child 1641 started
[20-May-2020 12:39:30] WARNING: [pool www] child 1640 exited on signal 6 (SIGABRT) after 812.500850 seconds from start
[20-May-2020 12:39:30] NOTICE: [pool www] child 1643 started
[20-May-2020 12:39:44] WARNING: [pool www] child 1641 exited on signal 6 (SIGABRT) after 822.255581 seconds from start
[20-May-2020 12:39:44] NOTICE: [pool www] child 1644 started
[20-May-2020 12:39:45] WARNING: [pool www] child 1597 exited on signal 6 (SIGABRT) after 1227.768616 seconds from start
[20-May-2020 12:39:45] NOTICE: [pool www] child 1645 started
[20-May-2020 12:40:03] NOTICE: Terminating ...
[20-May-2020 12:40:03] NOTICE: exiting, bye-bye!
[20-May-2020 12:40:03] NOTICE: fpm is running, pid 1679
[20-May-2020 12:40:03] NOTICE: ready to handle connections
[20-May-2020 12:40:03] NOTICE: systemd monitor interval set to 10000ms
[20-May-2020 12:40:29] WARNING: [pool www] child 1686 exited on signal 6 (SIGABRT) after 19.110854 seconds from start
[20-May-2020 12:40:29] NOTICE: [pool www] child 1687 started
[20-May-2020 12:53:43] WARNING: [pool www] child 1687 exited on signal 6 (SIGABRT) after 794.948388 seconds from start
[20-May-2020 12:53:43] NOTICE: [pool www] child 1690 started
[20-May-2020 12:55:50] WARNING: [pool www] child 1682 exited on signal 6 (SIGABRT) after 946.269986 seconds from start
[20-May-2020 12:55:50] NOTICE: [pool www] child 1691 started
[20-May-2020 12:56:22] WARNING: [pool www] child 1683 exited on signal 6 (SIGABRT) after 978.281061 seconds from start
[20-May-2020 12:56:22] NOTICE: [pool www] child 1692 started
[20-May-2020 12:58:01] WARNING: [pool www] child 1681 exited on signal 6 (SIGABRT) after 1077.554180 seconds from start
[20-May-2020 12:58:01] NOTICE: [pool www] child 1694 started
[20-May-2020 12:58:01] WARNING: [pool www] child 1691 exited on signal 6 (SIGABRT) after 131.340304 seconds from start
[20-May-2020 12:58:01] NOTICE: [pool www] child 1695 started
[20-May-2020 12:58:04] WARNING: [pool www] child 1692 exited on signal 6 (SIGABRT) after 101.938358 seconds from start
[20-May-2020 12:58:04] NOTICE: [pool www] child 1696 started
[20-May-2020 13:01:56] WARNING: [pool www] child 1696 exited on signal 6 (SIGABRT) after 232.794515 seconds from start
[20-May-2020 13:01:56] NOTICE: [pool www] child 1709 started
[20-May-2020 13:04:38] WARNING: [pool www] child 1694 exited on signal 6 (SIGABRT) after 396.974448 seconds from start
[20-May-2020 13:04:38] NOTICE: [pool www] child 1711 started
nginx error.log
2020/05/20 12:39:30 [error] 1632#0: *170 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.10.9.250, server: support.nuevenet.medios, request: "GET /scp/index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "support.nuevenet.medios", referrer: "http://support.nuevenet.medios/scp/login.php"
2020/05/20 12:39:44 [error] 1632#0: *170 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.10.9.250, server: support.nuevenet.medios, request: "GET /scp/index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "support.nuevenet.medios", referrer: "http://support.nuevenet.medios/scp/login.php"
2020/05/20 12:39:45 [error] 1632#0: *170 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.10.9.250, server: support.nuevenet.medios, request: "GET /scp/index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "support.nuevenet.medios", referrer: "http://support.nuevenet.medios/scp/login.php"
2020/05/20 12:40:29 [error] 1669#0: *1 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.10.9.250, server: support.nuevenet.medios, request: "GET /scp/ajax.php/queue/counts HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "support.nuevenet.medios", referrer: "http://support.nuevenet.medios/scp/index.php"
2020/05/20 12:53:43 [error] 1667#0: *38 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.10.9.250, server: support.nuevenet.medios, request: "GET /scp/ajax.php/queue/counts HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "support.nuevenet.medios", referrer: "http://support.nuevenet.medios/scp/index.php"
2020/05/20 12:55:50 [error] 1667#0: *38 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.10.9.250, server: support.nuevenet.medios, request: "GET /scp/index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "support.nuevenet.medios", referrer: "http://support.nuevenet.medios/scp/settings.php?t=users"
2020/05/20 12:56:22 [error] 1667#0: *38 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.10.9.250, server: support.nuevenet.medios, request: "GET /scp/index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "support.nuevenet.medios", referrer: "http://support.nuevenet.medios/scp/settings.php?t=users"
2020/05/20 12:58:01 [error] 1669#0: *121 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.10.9.250, server: support.nuevenet.medios, request: "GET /scp/?_pjax=%23pjax-container HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "support.nuevenet.medios", referrer: "http://support.nuevenet.medios/scp/"
2020/05/20 12:58:01 [error] 1669#0: *121 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.10.9.250, server: support.nuevenet.medios, request: "GET /scp/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "support.nuevenet.medios", referrer: "http://support.nuevenet.medios/scp/"
2020/05/20 12:58:04 [error] 1669#0: *121 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.10.9.250, server: support.nuevenet.medios, request: "GET /scp/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "support.nuevenet.medios", referrer: "http://support.nuevenet.medios/scp/"