View Issue Details

IDProjectCategoryView StatusLast Update
0001649XdebugRemote Debuggingpublic2019-03-10 16:54
ReporterdinuAssigned Toderick 
PrioritynormalSeveritymajorReproducibilityalways
Status feedbackResolutionopen 
Platformphp7 + php-fpmOSCentOSOS Version
Product Version2.7.0 
Target VersionFixed in Version 
Summary0001649: Cannot write to log file
DescriptionWARNING: [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.
TagsNo tags attached.
Operating System
PHP Version7.2.10-7.2.14

Activities

derick

2019-03-10 16:54

administrator   ~0004954

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.

Issue History

Date Modified Username Field Change
2019-03-08 02:05 dinu New Issue
2019-03-10 16:54 derick Assigned To => derick
2019-03-10 16:54 derick Status new => feedback
2019-03-10 16:54 derick Note Added: 0004954