S
S
Shurik2022-02-02 21:34:52
PHP
Shurik, 2022-02-02 21:34:52

Why is there an error when processing a script when moving a project from one container to another?

Hello. I decided to move the project to another container (more precisely, there are several of them in docker-compose). It was decided to do this due to the fact that Xdebug was configured in the new ones. Everything was transferred ok and everything seemed to work, but as it turned out, one script gives an error (PHPExcel library).
In the logs:

2022/02/02 18:20:34 [error] 30#30: *12 FastCGI sent in stderr: "PHP message: Xdebug: [Step Debug] Could not connect to debugging client. Tried: 172.22.0.1:9003 (from REMOTE_ADDR HTTP header), 172.17.0.1:9003 (fallback through xdebug.client_host/xdebug.client_port) :-(PHP message: Xdebug: [Step Debug] Could not connect to debugging client. Tried: 172.22.0.1:9003 (from REMOTE_ADDR HTTP header), 172.17.0.1:9003 (fallback through xdebug.client_host/xdebug.client_port) :-(PHP message: Xdebug: [Step Debug] Could not connect to debugging client. Tried: 172.22.0.1:9003 (from REMOTE_ADDR HTTP header), 172.17.0.1:9003 (fallback through xdebug.client_host/xdebug.client_port) :-(PHP message: Xdebug: [Step Debug] Could not connect to debugging client. Tried: 172.22.0.1:9003 (from REMOTE_ADDR HTTP header), 172.17.0.1:9003 (fallback through xdebug.client_host/xdebug.client_port) :-(" while reading upstream, client: 172.22.0.1, server: localhost, request: "GET /index.php?r=report%2Findex HTTP/1.1", upstream: "fastcgi://172.22.0.3:9000", host: "localhost", referrer: "http://localhost/"

It can be seen that this whole story is somehow connected with xdebug, but I have no idea how and why! Maybe someone will have some thoughts on this? And then I’m not very strong in the docker, as in the rest in general))))
I’m ready to provide additional information on the configuration of containers!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shurik, 2022-02-03
@svisch

It turned out to be the version of php. Downgraded from 7.4 to 7.2 and it worked. Apparently xdebug and docker had nothing to do with it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question