Hi..I was trying to fix a 502 Bad Gateway error, and changed files /etc/nginx/nginx.conf and /etc/php/7.3/fpm/pool.d/www.conf by following this post:
https://www.pbxforums.com/threads/nginx-504-gateway-time-out.4383/#post-19554 without success.
I also tried changing in /etc/ngingx/fusionpbx file, the value unix:/var/run/php5-fpm.sock to unix:/var/run/php/php7.1-fpm.sock under fastcgi_pass section, also without success
I then stopped service freeswitch to see if this could fix the problem, and when I tried to start it woulnd't .
When I type service freeswitch start, I get:
Job for freeswitch.service failed. See 'systemctl status freeswitch.service' and 'journalctl -xn' for details.
This is the result of "systemctl status freeswitch.service":
freeswitch.service - freeswitch
Loaded: loaded (/lib/systemd/system/freeswitch.service; enabled)
Active: failed (Result: start-limit) since Fri 2021-06-11 23:13:20 AST; 1min 58s ago
Process: 1676 ExecStart=/usr/bin/freeswitch -u www-data -g www-data -ncwait $DAEMON_OPTS (code=exited, status=203/EXEC)
Process: 1673 ExecStartPre=/bin/chown -R www-data:www-data /var/run/freeswitch/ (code=exited, status=0/SUCCESS)
Process: 1670 ExecStartPre=/bin/mkdir -p /var/run/freeswitch/ (code=exited, status=0/SUCCESS)
Jun 11 23:13:20 SERVER-NAME systemd[1]: Failed to start freeswitch.
Jun 11 23:13:20 SERVER-NAME systemd[1]: Unit freeswitch.service entered failed state.
Jun 11 23:13:20 SERVER-NAME systemd[1]: freeswitch.service holdoff time over, scheduling restart.
Jun 11 23:13:20 SERVER-NAME systemd[1]: Stopping freeswitch...
Jun 11 23:13:20 SERVER-NAME systemd[1]: Starting freeswitch...
Jun 11 23:13:20 SERVER-NAME systemd[1]: freeswitch.service start request repeated too quickly, refusing to start.
Jun 11 23:13:20 SERVER-NAME systemd[1]: Failed to start freeswitch.
Jun 11 23:13:20 SERVER-NAME systemd[1]: Unit freeswitch.service entered failed state.
This is the result of "journalctl -xn":
-- Logs begin at Sat 2021-06-12 20:31:03 AST, end at Fri 2021-06-11 23:17:01 AST. --
Jun 11 23:13:20 SERVER-NAME systemd[1]: Starting freeswitch...
-- Subject: Unit freeswitch.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit freeswitch.service has begun starting up.
Jun 11 23:13:20 SERVER-NAME systemd[1]: freeswitch.service start request repeated too quickly, refusing to start.
Jun 11 23:13:20 SERVER-NAME systemd[1]: Failed to start freeswitch.
-- Subject: Unit freeswitch.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit freeswitch.service has failed.
--
-- The result is failed.
Jun 11 23:13:20 SERVER-NAME systemd[1]: Unit freeswitch.service entered failed state.
Jun 11 23:15:01 SERVER-NAME CRON[1678]: pam_unix(cron:session): session opened for user root by (uid=0)
Jun 11 23:15:01 SERVER-NAME CRON[1679]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jun 11 23:15:01 SERVER-NAME CRON[1678]: pam_unix(cron:session): session closed for user root
Jun 11 23:17:01 SERVER-NAME CRON[1682]: pam_unix(cron:session): session opened for user root by (uid=0)
Jun 11 23:17:01 SERVER-NAME CRON[1683]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 11 23:17:01 SERVER-NAME CRON[1682]: pam_unix(cron:session): session closed for user root
I appreciate your help, thanks in advance
https://www.pbxforums.com/threads/nginx-504-gateway-time-out.4383/#post-19554 without success.
I also tried changing in /etc/ngingx/fusionpbx file, the value unix:/var/run/php5-fpm.sock to unix:/var/run/php/php7.1-fpm.sock under fastcgi_pass section, also without success
I then stopped service freeswitch to see if this could fix the problem, and when I tried to start it woulnd't .
When I type service freeswitch start, I get:
Job for freeswitch.service failed. See 'systemctl status freeswitch.service' and 'journalctl -xn' for details.
This is the result of "systemctl status freeswitch.service":
freeswitch.service - freeswitch
Loaded: loaded (/lib/systemd/system/freeswitch.service; enabled)
Active: failed (Result: start-limit) since Fri 2021-06-11 23:13:20 AST; 1min 58s ago
Process: 1676 ExecStart=/usr/bin/freeswitch -u www-data -g www-data -ncwait $DAEMON_OPTS (code=exited, status=203/EXEC)
Process: 1673 ExecStartPre=/bin/chown -R www-data:www-data /var/run/freeswitch/ (code=exited, status=0/SUCCESS)
Process: 1670 ExecStartPre=/bin/mkdir -p /var/run/freeswitch/ (code=exited, status=0/SUCCESS)
Jun 11 23:13:20 SERVER-NAME systemd[1]: Failed to start freeswitch.
Jun 11 23:13:20 SERVER-NAME systemd[1]: Unit freeswitch.service entered failed state.
Jun 11 23:13:20 SERVER-NAME systemd[1]: freeswitch.service holdoff time over, scheduling restart.
Jun 11 23:13:20 SERVER-NAME systemd[1]: Stopping freeswitch...
Jun 11 23:13:20 SERVER-NAME systemd[1]: Starting freeswitch...
Jun 11 23:13:20 SERVER-NAME systemd[1]: freeswitch.service start request repeated too quickly, refusing to start.
Jun 11 23:13:20 SERVER-NAME systemd[1]: Failed to start freeswitch.
Jun 11 23:13:20 SERVER-NAME systemd[1]: Unit freeswitch.service entered failed state.
This is the result of "journalctl -xn":
-- Logs begin at Sat 2021-06-12 20:31:03 AST, end at Fri 2021-06-11 23:17:01 AST. --
Jun 11 23:13:20 SERVER-NAME systemd[1]: Starting freeswitch...
-- Subject: Unit freeswitch.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit freeswitch.service has begun starting up.
Jun 11 23:13:20 SERVER-NAME systemd[1]: freeswitch.service start request repeated too quickly, refusing to start.
Jun 11 23:13:20 SERVER-NAME systemd[1]: Failed to start freeswitch.
-- Subject: Unit freeswitch.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit freeswitch.service has failed.
--
-- The result is failed.
Jun 11 23:13:20 SERVER-NAME systemd[1]: Unit freeswitch.service entered failed state.
Jun 11 23:15:01 SERVER-NAME CRON[1678]: pam_unix(cron:session): session opened for user root by (uid=0)
Jun 11 23:15:01 SERVER-NAME CRON[1679]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jun 11 23:15:01 SERVER-NAME CRON[1678]: pam_unix(cron:session): session closed for user root
Jun 11 23:17:01 SERVER-NAME CRON[1682]: pam_unix(cron:session): session opened for user root by (uid=0)
Jun 11 23:17:01 SERVER-NAME CRON[1683]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 11 23:17:01 SERVER-NAME CRON[1682]: pam_unix(cron:session): session closed for user root
I appreciate your help, thanks in advance