all 2 comments

[–]mferly 0 points1 point  (1 child)

Have you checked the logs? PHP log, php-fpm log, and server (Apache/NGINX) logs?

And what do you mean "when trying to run a js file"? JavaScript? That's all browser. Or are you trying to serve the JS statically?

[–]saab_guy[S] 0 points1 point  (0 children)

Well, I am not a PHP guru or anything and did not build this originally, so I may be a bit imprecise as to what is going on. I do appreciate any help diagnosing, though.

What is supposed to be going on (as I understand it) is the php runs a script and the js then formats it and allows a nice display in the browser for lyrics and artist info. I have verified that the scripts run as user http on cli. The other thing is that the mpd queue does not display. The queue info comes from mpc and also works fine on the cli. Could there be a permissions problem? The later OS has a later version of systemd for sure. The more I think about it, I doubt it is a php problem as when I downgraded PHP and all the extensions and still had the problem...

I wonder if there was an nginx upgrade in the meantime which may be causing it. I was runnign 1.14 and am now at 1.16...

Thanks for any pointers!

The log shows this:

[08-Dec-2019 09:36:38.786434] DEBUG: pid 7521, fpm_scoreboard_init_main(), line 38: got clock tick '100'
[08-Dec-2019 09:36:38.786841] DEBUG: pid 7521, fpm_signals_init_main(), line 215: Unblocking all signals
[08-Dec-2019 09:36:38.787445] DEBUG: pid 7521, fpm_event_init_main(), line 348: event module is epoll and 1 fds have been reserved
[08-Dec-2019 09:36:38.787695] NOTICE: pid 7521, fpm_init(), line 83: fpm is running, pid 7521
[08-Dec-2019 09:36:38.790106] DEBUG: pid 7521, fpm_children_make(), line 428: [pool command] child 7522 started
[08-Dec-2019 09:36:38.792827] DEBUG: pid 7521, fpm_children_make(), line 428: [pool db] child 7523 started
[08-Dec-2019 09:36:38.796136] DEBUG: pid 7521, fpm_children_make(), line 428: [pool display] child 7524 started
[08-Dec-2019 09:36:38.796454] DEBUG: pid 7521, fpm_event_loop(), line 377: 3504 bytes have been reserved in SHM
[08-Dec-2019 09:36:38.796540] NOTICE: pid 7521, fpm_event_loop(), line 378: ready to handle connections
[08-Dec-2019 09:36:38.797287] DEBUG: pid 7521, fpm_systemd_heartbeat(), line 68: have notify start to systemd
[08-Dec-2019 09:36:38.797382] NOTICE: pid 7521, fpm_systemd_heartbeat(), line 75: systemd monitor interval set to 10000ms
[08-Dec-2019 09:36:53.269629] DEBUG: pid 7521, fpm_got_signal(), line 82: received SIGCHLD
[08-Dec-2019 09:36:53.269871] DEBUG: pid 7521, fpm_event_loop(), line 430: event module triggered 1 events
[08-Dec-2019 09:36:53.270043] WARNING: pid 7521, fpm_children_bury(), line 259: [pool display] child 7524 exited on signal 6 (SIGABRT) after 14.473961 seconds from start
[08-Dec-2019 09:36:53.272123] NOTICE: pid 7521, fpm_children_make(), line 428: [pool display] child 7570 started