doupin8555 2017-04-29 13:03
浏览 121

从上游读取响应头时,XDebug无法打开远程调试文件'/var/log/xdebug.log'

I am using docker for developing, which worked without any problems at all until I had no space left on my disk (my Ubuntu partition is only 30G). So I deleted all containers and images which weren't running/used anymore and had enough space.

After starting my application again, I'm now getting a ContextErrorException with the following message

Warning: Header may not contain more than a single header, new line detected

When I look into the error.log, this is the content

2017/04/29 12:53:13 [error] 13#13: *1 FastCGI sent in stderr: "PHP message: XDebug could not open the remote debug file '/var/log/xdebug.log'" while reading response header from upstream, client: 172.17.0.1, server: app, request: "GET /admin/dashboard HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost:8080"
2017/04/29 12:53:24 [error] 13#13: *1 FastCGI sent in stderr: "PHP message: XDebug could not open the remote debug file '/var/log/xdebug.log'.
PHP message: XDebug could not open the remote debug file '/var/log/xdebug.log'.
PHP message: XDebug could not open the remote debug file '/var/log/xdebug.log'.
PHP message: XDebug could not open the remote debug file '/var/log/xdebug.log'.
PHP message: XDebug could not open the remote debug file '/var/log/xdebug.log'.
PHP message: XDebug could not open the remote debug file '/var/log/xdebug.log'.
PHP message: XDebug could not open the remote debug file '/var/log/xdebug.log'.
PHP message: XDebug could not open the remote debug file '/var/log/xdebug.log'.
PHP message: XDebug could not open the remote debug file '/var/log/xdebug.log'.
PHP message: XDebug could not open the remote debug file '/var/log/xdebug.log'.
PHP message: XDebug could not open the remote debug file '/var/log/xdebug.log'.
PHP message: XDebug could not open the remote debug file '/var/log/xdebug.log'.
PHP message: XDebug could not open the remote debug file '/var/log/xdebug.log'.
PHP message: XDebug could not open the remote debug file '/var/log/xdebug.log'" while reading response header from upstream, client: 172.17.0.1, server: app, request: "GET /admin/dashboard HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost:8080"

I did the following steps in both environments (docker-container and host system)
I went into /var/log/ and saw that there was no file xdebug.log so I created the file and - just for testing purpose - gave them 777 rights and changed the owner/group to the same as my project files/docker files

The error still exists, however. I even deleted ALL container and images, not only the unused one, and built it completely from scratch. This doesn't seem like a Docker error, because it worked without problems until the disk space was full, right?

This is the result of php -i | grep xdebug

xdebug
xdebug support => enabled
xdebug.auto_trace => Off => Off
xdebug.cli_color => 0 => 0
xdebug.collect_assignments => Off => Off
xdebug.collect_includes => On => On
xdebug.collect_params => 0 => 0
xdebug.collect_return => Off => Off
xdebug.collect_vars => Off => Off
xdebug.coverage_enable => On => On
xdebug.default_enable => On => On
xdebug.dump.COOKIE => * => *
xdebug.dump.ENV => no value => no value
xdebug.dump.FILES => no value => no value
xdebug.dump.GET => * => *
xdebug.dump.POST => * => *
xdebug.dump.REQUEST => * => *
xdebug.dump.SERVER => * => *
xdebug.dump.SESSION => * => *
xdebug.dump_globals => On => On
xdebug.dump_once => On => On
xdebug.dump_undefined => Off => Off
xdebug.extended_info => On => On
xdebug.file_link_format => no value => no value
xdebug.force_display_errors => Off => Off
xdebug.force_error_reporting => 0 => 0
xdebug.halt_level => 0 => 0
xdebug.idekey => php-debug => php-debug
xdebug.max_nesting_level => 250 => 250
xdebug.max_stack_frames => -1 => -1
xdebug.overload_var_dump => On => On
xdebug.profiler_aggregate => Off => Off
xdebug.profiler_append => Off => Off
xdebug.profiler_enable => Off => Off
xdebug.profiler_enable_trigger => Off => Off
xdebug.profiler_enable_trigger_value => no value => no value
xdebug.profiler_output_dir => /tmp => /tmp
xdebug.profiler_output_name => cachegrind.out.%p => cachegrind.out.%p
xdebug.remote_addr_header => no value => no value
xdebug.remote_autostart => Off => Off
xdebug.remote_connect_back => Off => Off
xdebug.remote_cookie_expire_time => 3600 => 3600
xdebug.remote_enable => On => On
xdebug.remote_handler => dbgp => dbgp
xdebug.remote_host => 192.168.0.10 => 192.168.0.10
xdebug.remote_log => /var/log/xdebug.log => /var/log/xdebug.log
xdebug.remote_mode => req => req
xdebug.remote_port => 9000 => 9000
xdebug.scream => Off => Off
xdebug.show_error_trace => Off => Off
xdebug.show_exception_trace => Off => Off
xdebug.show_local_vars => Off => Off
xdebug.show_mem_delta => Off => Off
xdebug.trace_enable_trigger => Off => Off
xdebug.trace_enable_trigger_value => no value => no value
xdebug.trace_format => 0 => 0
xdebug.trace_options => 0 => 0
xdebug.trace_output_dir => /tmp => /tmp
xdebug.trace_output_name => trace.%c => trace.%c
xdebug.var_display_max_children => 128 => 128
xdebug.var_display_max_data => 512 => 512
xdebug.var_display_max_depth => 4 => 4

Anyone got any idea?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 C++使用Gunplot
    • ¥15 这个电路是如何实现路灯控制器的,原理是什么,怎么求解灯亮起后熄灭的时间如图?
    • ¥15 matlab数字图像处理频率域滤波
    • ¥15 在abaqus做了二维正交切削模型,给刀具添加了超声振动条件后输出切削力为什么比普通切削增大这么多
    • ¥15 ELGamal和paillier计算效率谁快?
    • ¥15 file converter 转换格式失败 报错 Error marking filters as finished,如何解决?
    • ¥15 Arcgis相交分析无法绘制一个或多个图形
    • ¥15 关于#r语言#的问题:差异分析前数据准备,报错Error in data[, sampleName1] : subscript out of bounds请问怎么解决呀以下是全部代码:
    • ¥15 seatunnel-web使用SQL组件时候后台报错,无法找到表格
    • ¥15 fpga自动售货机数码管(相关搜索:数字时钟)