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 | derick | ||
| 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. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2014-07-15 16:29 | handongwang | New Issue | |
| 2014-07-15 19:29 | handongwang | Note Added: 0002867 | |
| 2014-07-15 19:47 | derick | Note Added: 0002868 | |
| 2014-07-15 19:47 | derick | Assigned To | => derick |
| 2014-07-15 19:47 | derick | Status | new => feedback |
| 2014-07-15 19:50 | handongwang | Note Added: 0002869 | |
| 2014-07-15 19:50 | handongwang | Status | feedback => assigned |
| 2014-07-15 20:53 | derick | Note Added: 0002870 | |
| 2014-07-15 20:53 | derick | Status | assigned => feedback |
| 2014-07-15 22:11 | handongwang | Note Added: 0002871 | |
| 2014-07-15 22:11 | handongwang | Status | feedback => assigned |
| 2014-07-15 23:01 | derick | Note Added: 0002872 | |
| 2014-07-15 23:01 | derick | Status | assigned => feedback |
| 2014-11-11 19:47 | derick | Note Added: 0002893 | |
| 2015-01-07 00:05 | derick | Note Added: 0002961 | |
| 2015-02-14 00:09 | derick | Note Added: 0002991 | |
| 2015-02-14 00:09 | derick | Status | feedback => closed |
| 2015-02-14 00:09 | derick | Resolution | open => fixed |
| 2015-02-14 00:09 | derick | Fixed in Version | => 2.2.8 |
| 2015-02-22 14:29 | derick | Fixed in Version | 2.2.8 => 2.3.0 |
| 2016-07-31 12:36 | derick | Category | Usage problems => Usage problems (Crashes) |
| 2016-07-31 12:38 | derick | Category | Usage problems (Crashes) => Usage problems (Wrong Results) |
| 2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
| 2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |