View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001649||Xdebug||Remote Debugging||public||2019-03-08 02:05||2019-03-10 16:54|
|Platform||php7 + php-fpm||OS||CentOS||OS Version|
|Target Version||Fixed in Version|
|Summary||0001649: Cannot write to log file|
|Description||WARNING: [pool www] child 9104 said into stderr: "NOTICE: PHP message: Xdebug could not open the remote debug file '/var/log/xdebug_log'."|
I get this if I turn on logging. I checked and said file is absolutely writeable by the FPM worker.
|Tags||No tags attached.|
I guess it's possible that there is some additional security policy in the way. I would try either using /tmp/xdebug.org to see if that works, and otherwise I would like to see an "strace log" from the specific worker. The easiest way to create such a thing is possibly to reconfigure FPM to only have one worker process, and then attach strace to the non-main FPM process with:
sudo strace -o /tmp/strace.log -e open -p <pid>
You can find the pid by using "ps aux | grep fpm". If there are two processes listed, it is likely the one with the lowest PID.
After strace has started, make a request to trigger the problem. Then stop strace (with Ctrl-C) and attach the /tmp/strace.log file, which should have an entry about "xdebug_log" in it.