我正在使用docker进行开发,直到我的磁盘上没有剩余空间(我的Ubuntu分区只有30G)时,它完全没有任何问题。所以我删除了所有没有运行/使用的容器和图像,并且有足够的空间。
再次启动我的应用程序后,我现在收到ContextErrorException
,其中包含以下消息
Warning: Header may not contain more than a single header, new line detected
当我查看error.log
时,这是内容
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"
我在两种环境(docker-container和host system)中都执行了以下步骤
我进入了/var/log/
并看到没有文件xdebug.log
所以我创建了文件并且 - 仅用于测试目的 - 给了他们777
权限并将所有者/组更改为相同的我的项目文件/泊坞文件
但错误仍然存在。我甚至删除了所有容器和图像,不仅是未使用的容器和图像,而是从头开始完全构建它。这似乎不是一个Docker错误,因为它在磁盘空间已满之前没有问题,对吧?
这是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
有人有任何想法吗?