nextcloud-docker-dev
nextcloud-docker-dev copied to clipboard
blackfire connection errors in the log file
My log file is polluted with these errors:
{
"reqId": "ErAZBSfz8BcrItdKUwe0",
"level": 3,
"time": "2022-02-08T10:07:41+00:00",
"remoteAddr": "192.168.21.2",
"user": "admin",
"app": "PHP",
"method": "PUT",
"url": "/index.php/apps/user_status/heartbeat",
"message": "Unknown: php_network_getaddresses: getaddrinfo for blackfire failed: Temporary failure in name resolution at Unknown#0",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Falkon/3.2.0 Chrome/87.0.4280.144 Safari/537.36",
"version": "24.0.0.4",
"exception": {
"Exception": "Error",
"Message": "Unknown: php_network_getaddresses: getaddrinfo for blackfire failed: Temporary failure in name resolution at Unknown#0",
"Code": 0,
"Trace": [
{
"function": "onAll",
"class": "OC\\Log\\ErrorHandler",
"type": "::",
"args": [
2,
"Unknown: php_network_getaddresses: getaddrinfo for blackfire failed: Temporary failure in name resolution",
"Unknown",
0
]
}
],
"File": "/var/www/html/lib/private/Log/ErrorHandler.php",
"Line": 99,
"CustomMessage": "--"
}
}
I do not use blackfire so I do not pass it to docker-compose up, but it should not be mandatory (or if it is it should be setup by default).
We probably need to dynamically enabled/disable the php module during container start :+1:
Workaround: docker exec /nextcloud_nextcloud_1 rm /usr/local/etc/php/conf.d/blackfire.ini
I'd say we can have it disabled by default and add a script in https://github.com/juliushaertl/nextcloud-docker-dev/tree/master/scripts to enable/disable by commenting out the content of blackfire.ini
Blackfire and xdebug are now disabled by default and can be turned on if required as described in https://github.com/juliushaertl/nextcloud-docker-dev/issues/104#issuecomment-1328220796