View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001066 | Xdebug | Uncategorized | public | 2014-07-15 16:29 | 2015-02-22 14:29 |
| Reporter | handongwang | Assigned To | |||
| Priority | high | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | LAMP | OS | centos | OS Version | 6.3 |
| Product Version | 2.2.5 | ||||
| Fixed in Version | 2.3.0 | ||||
| Summary | 0001066: E: Could not connect to client. :-( | ||||
| Description | xdebugger log message shows Log opened at 2014-07-15 15:29:40 although I can telnet to 127.0.0.1:9000: [handongw@torlx-handongw www]$ telnet -e p localhost 9000 telnet> quit PS: more details of my environement and configuration: phpstorm 7.1.3, Drupal 7.28, Centos 6.3, PHP 5.4.30, i installed xdebugger based on the customized installation instruction at http://xdebug.org/wizard.php I use xdegger help chrome extension to enable debugging. I tried jetbrain's bookmarklet too. /etc/php.ini settings: I tried port 10000 and it didnt work either. | ||||
| Steps To Reproduce | I followed the zero-configuration instructions in http://confluence.jetbrains.com/display/PhpStorm/Zero-configuration+Web+Application+Debugging+with+Xdebug+and+PhpStorm?_ga=1.103683840.107492228.1404018833 to debug drupal 7 module. phpstorm starts listening at localhost:9000. | ||||
| Tags | No tags attached. | ||||
| Operating System | centos 6.3 | ||||
| PHP Version | 5.4.3 | ||||
|
|
xdebug_com.c: status = connect(sockfd, (struct sockaddr*)&address, sizeof(address)); failed. the errno is "Permission denied". |
|
|
I think this could be SELinux being in the way. Can you turn it off (temporarily) by running as root: echo 0 >/selinux/enforce And then try debugging again? Could you also use strace? (I think you've already done that to get to "permission denied"). But having a full trace (strace -o /tmp/strace.log php ...) would be handy. |
|
|
the root cause is that Centos 6.3 does not allow httpd to make tcp connection by default. still xdebugger should put more detailed messages should error happened. |
|
|
Yeah, I agree. As I can't reproduce this (no CentOS here), an strace log would be extremely helpful to add that warning. |
|
|
Derick: many thanks for your quick reply and provided us xdebugger! |
|
|
No problem. But I am really asking whether you please could provide an strace log showing exactly which error code you get back from connect(). Can you make one to help me? |
|
|
I can not reproduce this, and because of that I would really like an strace |
|
|
Ping? |
|
|
I've added an extra warning in the log file for 2.2.8 and 2.3dev. |