( ! ) Warning: fopen(/home/bitrix/www/bitrix/error.log): Failed to open stream: Read-only file system in /home/bitrix/shared/bitrix/modules/main/lib/diag/filelogger.php on line 35
Call Stack
#TimeMemoryFunctionLocation
10.0001448336{main}( ).../urlrewrite.php:0
20.0001449104include_once( '/home/bitrix/shared/bitrix/modules/main/include/urlrewrite.php ).../urlrewrite.php:2
30.0042716272include_once( '/home/bitrix/www/pub/site/index.php ).../urlrewrite.php:128
40.0042716632require( '/home/bitrix/shared/bitrix/header.php ).../index.php:4
50.0042717024require_once( '/home/bitrix/shared/bitrix/modules/main/include/prolog.php ).../header.php:1
60.0042717376require_once( '/home/bitrix/shared/bitrix/modules/main/include/prolog_before.php ).../prolog.php:10
70.0042725944require_once( '/home/bitrix/shared/bitrix/modules/main/include.php ).../prolog_before.php:19
80.0053745968Bitrix\Main\Application->initializeExtendedKernel( $params = ['get' => ['path' => '8/sitemap.php'], 'post' => [], 'files' => [], 'cookie' => [], 'server' => ['REDIRECT_UNIQUE_ID' => 'aOVyFsfFfWzRAkeAEKwDrQAAABE', 'REDIRECT_SCRIPT_URL' => '/pub/site/8/sitemap.php', 'REDIRECT_SCRIPT_URI' => 'http://crm.unionservice.net:443/pub/site/8/sitemap.php', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_BITRIX_VA_VER' => '7.5.5', 'REDIRECT_BITRIX_ENV_TYPE' => 'general', 'REDIRECT_AUTHBIND_UNAVAILABLE' => 'yes', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'aOVyFsfFfWzRAkeAEKwDrQAAABE', 'SCRIPT_URL' => '/pub/site/8/sitemap.php', 'SCRIPT_URI' => 'http://crm.unionservice.net:443/pub/site/8/sitemap.php', 'HTTPS' => 'on', 'REMOTE_USER' => '', 'BITRIX_VA_VER' => '7.5.5', 'BITRIX_ENV_TYPE' => 'general', 'AUTHBIND_UNAVAILABLE' => 'yes', 'HTTP_X_FORWARDED_FOR' => '216.73.216.108, 216.73.216.108, 185.137.235.2', 'HTTP_HOST' => 'crm.unionservice.net:443', 'HTTP_HTTPS' => 'YES', 'HTTP_CONNECTION' => 'close', 'HTTP_X_FORWARDED_HOST' => 'crm.unionservice.net', 'HTTP_X_FORWARDED_SCHEME' => 'http', 'HTTP_X_AFTER_LB' => '1', 'HTTP_FORWARDED' => 'NOSSL', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '<address>Apache Server at crm.unionservice.net Port 443</address>\n', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'crm.unionservice.net', 'SERVER_ADDR' => '127.0.0.1', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '185.137.235.2', 'DOCUMENT_ROOT' => '/home/bitrix/www', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/home/bitrix/www', 'SERVER_ADMIN' => 'webmaster@localhost', 'SCRIPT_FILENAME' => '/home/bitrix/www/bitrix/urlrewrite.php', 'REMOTE_PORT' => '54350', 'REDIRECT_URL' => '/pub/site/8/sitemap.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.0', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'path=8/sitemap.php', 'REQUEST_URI' => '/pub/site/8/sitemap.php', 'SCRIPT_NAME' => '/bitrix/urlrewrite.php', 'PHP_SELF' => '/bitrix/urlrewrite.php', 'REQUEST_TIME_FLOAT' => 1759867414.8158, 'REQUEST_TIME' => 1759867414, 'REAL_FILE_PATH' => '/pub/site/index.php'], 'env' => []] ).../include.php:17
90.0053745968Bitrix\Main\HttpApplication->initializeContext( $params = ['get' => ['path' => '8/sitemap.php'], 'post' => [], 'files' => [], 'cookie' => [], 'server' => ['REDIRECT_UNIQUE_ID' => 'aOVyFsfFfWzRAkeAEKwDrQAAABE', 'REDIRECT_SCRIPT_URL' => '/pub/site/8/sitemap.php', 'REDIRECT_SCRIPT_URI' => 'http://crm.unionservice.net:443/pub/site/8/sitemap.php', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_BITRIX_VA_VER' => '7.5.5', 'REDIRECT_BITRIX_ENV_TYPE' => 'general', 'REDIRECT_AUTHBIND_UNAVAILABLE' => 'yes', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'aOVyFsfFfWzRAkeAEKwDrQAAABE', 'SCRIPT_URL' => '/pub/site/8/sitemap.php', 'SCRIPT_URI' => 'http://crm.unionservice.net:443/pub/site/8/sitemap.php', 'HTTPS' => 'on', 'REMOTE_USER' => '', 'BITRIX_VA_VER' => '7.5.5', 'BITRIX_ENV_TYPE' => 'general', 'AUTHBIND_UNAVAILABLE' => 'yes', 'HTTP_X_FORWARDED_FOR' => '216.73.216.108, 216.73.216.108, 185.137.235.2', 'HTTP_HOST' => 'crm.unionservice.net:443', 'HTTP_HTTPS' => 'YES', 'HTTP_CONNECTION' => 'close', 'HTTP_X_FORWARDED_HOST' => 'crm.unionservice.net', 'HTTP_X_FORWARDED_SCHEME' => 'http', 'HTTP_X_AFTER_LB' => '1', 'HTTP_FORWARDED' => 'NOSSL', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '<address>Apache Server at crm.unionservice.net Port 443</address>\n', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'crm.unionservice.net', 'SERVER_ADDR' => '127.0.0.1', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '185.137.235.2', 'DOCUMENT_ROOT' => '/home/bitrix/www', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/home/bitrix/www', 'SERVER_ADMIN' => 'webmaster@localhost', 'SCRIPT_FILENAME' => '/home/bitrix/www/bitrix/urlrewrite.php', 'REMOTE_PORT' => '54350', 'REDIRECT_URL' => '/pub/site/8/sitemap.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.0', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'path=8/sitemap.php', 'REQUEST_URI' => '/pub/site/8/sitemap.php', 'SCRIPT_NAME' => '/bitrix/urlrewrite.php', 'PHP_SELF' => '/bitrix/urlrewrite.php', 'REQUEST_TIME_FLOAT' => 1759867414.8158, 'REQUEST_TIME' => 1759867414, 'REAL_FILE_PATH' => '/pub/site/index.php'], 'env' => []] ).../application.php:130
100.0053749176Bitrix\Main\HttpRequest->__construct( $server = class Bitrix\Main\Server { protected $values = ['REDIRECT_UNIQUE_ID' => 'aOVyFsfFfWzRAkeAEKwDrQAAABE', 'REDIRECT_SCRIPT_URL' => '/pub/site/8/sitemap.php', 'REDIRECT_SCRIPT_URI' => 'http://crm.unionservice.net:443/pub/site/8/sitemap.php', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_BITRIX_VA_VER' => '7.5.5', 'REDIRECT_BITRIX_ENV_TYPE' => 'general', 'REDIRECT_AUTHBIND_UNAVAILABLE' => 'yes', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'aOVyFsfFfWzRAkeAEKwDrQAAABE', 'SCRIPT_URL' => '/pub/site/8/sitemap.php', 'SCRIPT_URI' => 'http://crm.unionservice.net:443/pub/site/8/sitemap.php', 'HTTPS' => 'on', 'REMOTE_USER' => '', 'BITRIX_VA_VER' => '7.5.5', 'BITRIX_ENV_TYPE' => 'general', 'AUTHBIND_UNAVAILABLE' => 'yes', 'HTTP_X_FORWARDED_FOR' => '216.73.216.108, 216.73.216.108, 185.137.235.2', 'HTTP_HOST' => 'crm.unionservice.net:443', 'HTTP_HTTPS' => 'YES', 'HTTP_CONNECTION' => 'close', 'HTTP_X_FORWARDED_HOST' => 'crm.unionservice.net', 'HTTP_X_FORWARDED_SCHEME' => 'http', 'HTTP_X_AFTER_LB' => '1', 'HTTP_FORWARDED' => 'NOSSL', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '<address>Apache Server at crm.unionservice.net Port 443</address>\n', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'crm.unionservice.net', 'SERVER_ADDR' => '127.0.0.1', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '185.137.235.2', 'DOCUMENT_ROOT' => '/home/bitrix/www', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/home/bitrix/www', 'SERVER_ADMIN' => 'webmaster@localhost', 'SCRIPT_FILENAME' => '/home/bitrix/www/bitrix/urlrewrite.php', 'REMOTE_PORT' => '54350', 'REDIRECT_URL' => '/pub/site/8/sitemap.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.0', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'path=8/sitemap.php', 'REQUEST_URI' => '/pub/site/8/sitemap.php', 'SCRIPT_NAME' => '/bitrix/urlrewrite.php', 'PHP_SELF' => '/bitrix/urlrewrite.php', 'REQUEST_TIME_FLOAT' => 1759867414.8158, 'REQUEST_TIME' => 1759867414, 'REAL_FILE_PATH' => '/pub/site/index.php']; protected $rawValues = NULL }, $queryString = ['path' => '8/sitemap.php'], $postData = [], $files = [], $cookies = [] ).../httpapplication.php:39
110.0054749576Bitrix\Main\HttpRequest->prepareCookie( $cookies = [] ).../httprequest.php:70
120.0054749984Bitrix\Main\Config\Option::get( $moduleId = 'main', $name = 'cookie_name', $default = 'BITRIX_SM', $siteId = ??? ).../httprequest.php:422
130.0054749984Bitrix\Main\Config\Option::getRealValue( $moduleId = 'main', $name = 'cookie_name', $siteId = FALSE ).../option.php:32
140.0054750016Bitrix\Main\Config\Option::load( $moduleId = 'main' ).../option.php:83
150.0058756424Bitrix\Main\DB\MysqliSqlHelper->forSql( $value = 'main', $maxLength = ??? ).../option.php:210
160.0058756424Bitrix\Main\Data\Connection->getResource( ).../mysqlisqlhelper.php:409
170.0058756424Bitrix\Main\DB\MysqliConnection->connectInternal( ).../connection.php:53
180.0059756888real_connect( $hostname = 'localhost', $username = 'bitrix0', $password = '[Sensitive Parameter]', $database = 'sitemanager' ).../mysqliconnection.php:81
190.0059757472Bitrix\Main\Diag\ExceptionHandler->handleError( $code = 2, $message = 'mysqli::real_connect(): (HY000/2002): Connection refused', $file = '/home/bitrix/shared/bitrix/modules/main/lib/db/mysqliconnection.php', $line = 81 ).../mysqliconnection.php:81
200.0060766424Bitrix\Main\Diag\ExceptionHandler->writeToLog( $exception = class ErrorException { protected $message = 'mysqli::real_connect(): (HY000/2002): Connection refused'; private string ${Exception}string = ''; protected $code = 0; protected string $file = '/home/bitrix/shared/bitrix/modules/main/lib/db/mysqliconnection.php'; protected int $line = 81; private array ${Exception}trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...], 9 => [...], 10 => [...], 11 => [...], 12 => [...], 13 => [...], 14 => [...], 15 => [...], 16 => [...], 17 => [...]]; private ?Throwable ${Exception}previous = NULL; protected int $severity = 2 }, $logType = 3 ).../exceptionhandler.php:318
210.0063771640Bitrix\Main\Diag\FileExceptionHandlerLog->write( $exception = class ErrorException { protected $message = 'mysqli::real_connect(): (HY000/2002): Connection refused'; private string ${Exception}string = ''; protected $code = 0; protected string $file = '/home/bitrix/shared/bitrix/modules/main/lib/db/mysqliconnection.php'; protected int $line = 81; private array ${Exception}trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...], 9 => [...], 10 => [...], 11 => [...], 12 => [...], 13 => [...], 14 => [...], 15 => [...], 16 => [...], 17 => [...]]; private ?Throwable ${Exception}previous = NULL; protected int $severity = 2 }, $logType = 3 ).../exceptionhandler.php:405
220.0066777144Bitrix\Main\Diag\Logger->log( $level = 'warning', $message = '{date} - Host: {host} - {type} - [ErrorException] E_WARNING\nmysqli::real_connect(): (HY000/2002): Connection refused (0)\n/home/bitrix/shared/bitrix/modules/main/lib/db/mysqliconnection.php:81\n#0: mysqli->real_connect\n\t/home/bitrix/shared/bitrix/modules/main/lib/db/mysqliconnection.php:81\n#1: Bitrix\\Main\\DB\\MysqliConnection->connectInternal\n\t/home/bitrix/shared/bitrix/modules/main/lib/data/connection.php:53\n#2: Bitrix\\Main\\Data\\Connection->getResource\n\t/home/bitrix/shared/bitrix/modules/main/lib/db/mysqlisql'..., $context = ['type' => 'LOW_PRIORITY_ERROR'] ).../fileexceptionhandlerlog.php:61
230.0067783304Bitrix\Main\Diag\FileLogger->logMessage( $level = 'warning', $message = '2025-10-07 16:03:34 - Host: crm.unionservice.net:443 - LOW_PRIORITY_ERROR - [ErrorException] E_WARNING\nmysqli::real_connect(): (HY000/2002): Connection refused (0)\n/home/bitrix/shared/bitrix/modules/main/lib/db/mysqliconnection.php:81\n#0: mysqli->real_connect\n\t/home/bitrix/shared/bitrix/modules/main/lib/db/mysqliconnection.php:81\n#1: Bitrix\\Main\\DB\\MysqliConnection->connectInternal\n\t/home/bitrix/shared/bitrix/modules/main/lib/data/connection.php:53\n#2: Bitrix\\Main\\Data\\Connection->getResource\n\t/home/bitrix/'... ).../logger.php:82
240.0068783336fopen( $filename = '/home/bitrix/www/bitrix/error.log', $mode = 'ab' ).../filelogger.php:35

( ! ) Warning: fopen(/home/bitrix/www/bitrix/error.log): Failed to open stream: Read-only file system in /home/bitrix/shared/bitrix/modules/main/lib/diag/filelogger.php on line 35
Call Stack
#TimeMemoryFunctionLocation
10.0083821168Bitrix\Main\Diag\ExceptionHandler->handleException( $exception = class Bitrix\Main\DB\ConnectionException { protected $message = 'Mysql connect error [localhost]: (2002) Connection refused'; private string ${Exception}string = ''; protected $code = 400; protected string $file = '/home/bitrix/shared/bitrix/modules/main/lib/db/mysqliconnection.php'; protected int $line = 86; private array ${Exception}trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...], 9 => [...], 10 => [...], 11 => [...], 12 => [...], 13 => [...], 14 => [...], 15 => [...]]; private ?Throwable ${Exception}previous = NULL; protected $databaseMessage = '(2002) Connection refused' }, $logType = ??? ).../exceptionhandler.php:0
20.0083821168Bitrix\Main\Diag\ExceptionHandler->writeToLog( $exception = class Bitrix\Main\DB\ConnectionException { protected $message = 'Mysql connect error [localhost]: (2002) Connection refused'; private string ${Exception}string = ''; protected $code = 400; protected string $file = '/home/bitrix/shared/bitrix/modules/main/lib/db/mysqliconnection.php'; protected int $line = 86; private array ${Exception}trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...], 9 => [...], 10 => [...], 11 => [...], 12 => [...], 13 => [...], 14 => [...], 15 => [...]]; private ?Throwable ${Exception}previous = NULL; protected $databaseMessage = '(2002) Connection refused' }, $logType = 0 ).../exceptionhandler.php:272
30.0083821168Bitrix\Main\Diag\FileExceptionHandlerLog->write( $exception = class Bitrix\Main\DB\ConnectionException { protected $message = 'Mysql connect error [localhost]: (2002) Connection refused'; private string ${Exception}string = ''; protected $code = 400; protected string $file = '/home/bitrix/shared/bitrix/modules/main/lib/db/mysqliconnection.php'; protected int $line = 86; private array ${Exception}trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...], 9 => [...], 10 => [...], 11 => [...], 12 => [...], 13 => [...], 14 => [...], 15 => [...]]; private ?Throwable ${Exception}previous = NULL; protected $databaseMessage = '(2002) Connection refused' }, $logType = 0 ).../exceptionhandler.php:405
40.0084825384Bitrix\Main\Diag\Logger->log( $level = 'error', $message = '{date} - Host: {host} - {type} - [Bitrix\\Main\\DB\\ConnectionException] \nMysql connect error [localhost]: (2002) Connection refused (400)\n/home/bitrix/shared/bitrix/modules/main/lib/db/mysqliconnection.php:86\n#0: Bitrix\\Main\\DB\\MysqliConnection->connectInternal\n\t/home/bitrix/shared/bitrix/modules/main/lib/data/connection.php:53\n#1: Bitrix\\Main\\Data\\Connection->getResource\n\t/home/bitrix/shared/bitrix/modules/main/lib/db/mysqlisqlhelper.php:409\n#2: Bitrix\\Main\\DB\\MysqliSqlHelper->forSql\n\t/home/bitrix/shared/bit'..., $context = ['type' => 'UNCAUGHT_EXCEPTION'] ).../fileexceptionhandlerlog.php:61
50.0085825384Bitrix\Main\Diag\FileLogger->logMessage( $level = 'error', $message = '2025-10-07 16:03:34 - Host: crm.unionservice.net:443 - UNCAUGHT_EXCEPTION - [Bitrix\\Main\\DB\\ConnectionException] \nMysql connect error [localhost]: (2002) Connection refused (400)\n/home/bitrix/shared/bitrix/modules/main/lib/db/mysqliconnection.php:86\n#0: Bitrix\\Main\\DB\\MysqliConnection->connectInternal\n\t/home/bitrix/shared/bitrix/modules/main/lib/data/connection.php:53\n#1: Bitrix\\Main\\Data\\Connection->getResource\n\t/home/bitrix/shared/bitrix/modules/main/lib/db/mysqlisqlhelper.php:409\n#2: Bitrix\\Main\\DB\\Mysql'... ).../logger.php:82
60.0085825384fopen( $filename = '/home/bitrix/www/bitrix/error.log', $mode = 'ab' ).../filelogger.php:35
70.0085825608Bitrix\Main\Diag\ExceptionHandler->handleError( $code = 2, $message = 'fopen(/home/bitrix/www/bitrix/error.log): Failed to open stream: Read-only file system', $file = '/home/bitrix/shared/bitrix/modules/main/lib/diag/filelogger.php', $line = 35 ).../filelogger.php:35
80.0085828648Bitrix\Main\Diag\ExceptionHandler->writeToLog( $exception = class ErrorException { protected $message = 'fopen(/home/bitrix/www/bitrix/error.log): Failed to open stream: Read-only file system'; private string ${Exception}string = ''; protected $code = 0; protected string $file = '/home/bitrix/shared/bitrix/modules/main/lib/diag/filelogger.php'; protected int $line = 35; private array ${Exception}trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...]]; private ?Throwable ${Exception}previous = NULL; protected int $severity = 2 }, $logType = 3 ).../exceptionhandler.php:318
90.0085828648Bitrix\Main\Diag\FileExceptionHandlerLog->write( $exception = class ErrorException { protected $message = 'fopen(/home/bitrix/www/bitrix/error.log): Failed to open stream: Read-only file system'; private string ${Exception}string = ''; protected $code = 0; protected string $file = '/home/bitrix/shared/bitrix/modules/main/lib/diag/filelogger.php'; protected int $line = 35; private array ${Exception}trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...]]; private ?Throwable ${Exception}previous = NULL; protected int $severity = 2 }, $logType = 3 ).../exceptionhandler.php:405
100.0086830560Bitrix\Main\Diag\Logger->log( $level = 'warning', $message = '{date} - Host: {host} - {type} - [ErrorException] E_WARNING\nfopen(/home/bitrix/www/bitrix/error.log): Failed to open stream: Read-only file system (0)\n/home/bitrix/shared/bitrix/modules/main/lib/diag/filelogger.php:35\n#0: fopen\n\t/home/bitrix/shared/bitrix/modules/main/lib/diag/filelogger.php:35\n#1: Bitrix\\Main\\Diag\\FileLogger->logMessage\n\t/home/bitrix/shared/bitrix/modules/main/lib/diag/logger.php:82\n#2: Bitrix\\Main\\Diag\\Logger->log\n\t/home/bitrix/shared/bitrix/modules/main/lib/diag/fileexceptionhandlerlog.p'..., $context = ['type' => 'LOW_PRIORITY_ERROR'] ).../fileexceptionhandlerlog.php:61
110.0086831328Bitrix\Main\Diag\FileLogger->logMessage( $level = 'warning', $message = '2025-10-07 16:03:34 - Host: crm.unionservice.net:443 - LOW_PRIORITY_ERROR - [ErrorException] E_WARNING\nfopen(/home/bitrix/www/bitrix/error.log): Failed to open stream: Read-only file system (0)\n/home/bitrix/shared/bitrix/modules/main/lib/diag/filelogger.php:35\n#0: fopen\n\t/home/bitrix/shared/bitrix/modules/main/lib/diag/filelogger.php:35\n#1: Bitrix\\Main\\Diag\\FileLogger->logMessage\n\t/home/bitrix/shared/bitrix/modules/main/lib/diag/logger.php:82\n#2: Bitrix\\Main\\Diag\\Logger->log\n\t/home/bitrix/shared/bitrix/modu'... ).../logger.php:82
120.0087831328fopen( $filename = '/home/bitrix/www/bitrix/error.log', $mode = 'ab' ).../filelogger.php:35

( ! ) Warning: fopen(/home/bitrix/www/bitrix/error.log): Failed to open stream: Read-only file system in /home/bitrix/shared/bitrix/modules/main/lib/diag/filelogger.php on line 35
Call Stack
#TimeMemoryFunctionLocation
10.0083821168Bitrix\Main\Diag\ExceptionHandler->handleException( $exception = class Bitrix\Main\DB\ConnectionException { protected $message = 'Mysql connect error [localhost]: (2002) Connection refused'; private string ${Exception}string = ''; protected $code = 400; protected string $file = '/home/bitrix/shared/bitrix/modules/main/lib/db/mysqliconnection.php'; protected int $line = 86; private array ${Exception}trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...], 9 => [...], 10 => [...], 11 => [...], 12 => [...], 13 => [...], 14 => [...], 15 => [...]]; private ?Throwable ${Exception}previous = NULL; protected $databaseMessage = '(2002) Connection refused' }, $logType = ??? ).../exceptionhandler.php:0
20.0093820416Bitrix\Main\Diag\HttpExceptionHandlerOutput->renderExceptionMessage( $exception = class Bitrix\Main\DB\ConnectionException { protected $message = 'Mysql connect error [localhost]: (2002) Connection refused'; private string ${Exception}string = ''; protected $code = 400; protected string $file = '/home/bitrix/shared/bitrix/modules/main/lib/db/mysqliconnection.php'; protected int $line = 86; private array ${Exception}trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...], 8 => [...], 9 => [...], 10 => [...], 11 => [...], 12 => [...], 13 => [...], 14 => [...], 15 => [...]]; private ?Throwable ${Exception}previous = NULL; protected $databaseMessage = '(2002) Connection refused' }, $debug = TRUE ).../exceptionhandler.php:274
30.0094820688Bitrix\Main\HttpResponse->writeHeaders( ).../httpexceptionhandleroutput.php:20
40.0094820688Bitrix\Main\HttpResponse->flushStatus( ).../httpresponse.php:173
50.0094820808header( $header = 'HTTP/1.0 500 Internal Server Error' ).../httpresponse.php:236
60.0094821032Bitrix\Main\Diag\ExceptionHandler->handleError( $code = 2, $message = 'Cannot modify header information - headers already sent by (output started at /home/bitrix/shared/bitrix/modules/main/lib/diag/filelogger.php:35)', $file = '/home/bitrix/shared/bitrix/modules/main/lib/httpresponse.php', $line = 236 ).../httpresponse.php:236
70.0094823696Bitrix\Main\Diag\ExceptionHandler->writeToLog( $exception = class ErrorException { protected $message = 'Cannot modify header information - headers already sent by (output started at /home/bitrix/shared/bitrix/modules/main/lib/diag/filelogger.php:35)'; private string ${Exception}string = ''; protected $code = 0; protected string $file = '/home/bitrix/shared/bitrix/modules/main/lib/httpresponse.php'; protected int $line = 236; private array ${Exception}trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...]]; private ?Throwable ${Exception}previous = NULL; protected int $severity = 2 }, $logType = 3 ).../exceptionhandler.php:318
80.0094823696Bitrix\Main\Diag\FileExceptionHandlerLog->write( $exception = class ErrorException { protected $message = 'Cannot modify header information - headers already sent by (output started at /home/bitrix/shared/bitrix/modules/main/lib/diag/filelogger.php:35)'; private string ${Exception}string = ''; protected $code = 0; protected string $file = '/home/bitrix/shared/bitrix/modules/main/lib/httpresponse.php'; protected int $line = 236; private array ${Exception}trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...]]; private ?Throwable ${Exception}previous = NULL; protected int $severity = 2 }, $logType = 3 ).../exceptionhandler.php:405
90.0095825736Bitrix\Main\Diag\Logger->log( $level = 'warning', $message = '{date} - Host: {host} - {type} - [ErrorException] E_WARNING\nCannot modify header information - headers already sent by (output started at /home/bitrix/shared/bitrix/modules/main/lib/diag/filelogger.php:35) (0)\n/home/bitrix/shared/bitrix/modules/main/lib/httpresponse.php:236\n#0: header\n\t/home/bitrix/shared/bitrix/modules/main/lib/httpresponse.php:236\n#1: Bitrix\\Main\\HttpResponse->flushStatus\n\t/home/bitrix/shared/bitrix/modules/main/lib/httpresponse.php:173\n#2: Bitrix\\Main\\HttpResponse->writeHeaders\n\t/home/bi'..., $context = ['type' => 'LOW_PRIORITY_ERROR'] ).../fileexceptionhandlerlog.php:61
100.0095825864Bitrix\Main\Diag\FileLogger->logMessage( $level = 'warning', $message = '2025-10-07 16:03:34 - Host: crm.unionservice.net:443 - LOW_PRIORITY_ERROR - [ErrorException] E_WARNING\nCannot modify header information - headers already sent by (output started at /home/bitrix/shared/bitrix/modules/main/lib/diag/filelogger.php:35) (0)\n/home/bitrix/shared/bitrix/modules/main/lib/httpresponse.php:236\n#0: header\n\t/home/bitrix/shared/bitrix/modules/main/lib/httpresponse.php:236\n#1: Bitrix\\Main\\HttpResponse->flushStatus\n\t/home/bitrix/shared/bitrix/modules/main/lib/httpresponse.php:173\n#2: Bitri'... ).../logger.php:82
110.0095825864fopen( $filename = '/home/bitrix/www/bitrix/error.log', $mode = 'ab' ).../filelogger.php:35
[Bitrix\Main\DB\ConnectionException] 
Mysql connect error [localhost]: (2002) Connection refused (400)
/home/bitrix/shared/bitrix/modules/main/lib/db/mysqliconnection.php:86
#0: Bitrix\Main\DB\MysqliConnection->connectInternal
	/home/bitrix/shared/bitrix/modules/main/lib/data/connection.php:53
#1: Bitrix\Main\Data\Connection->getResource
	/home/bitrix/shared/bitrix/modules/main/lib/db/mysqlisqlhelper.php:409
#2: Bitrix\Main\DB\MysqliSqlHelper->forSql
	/home/bitrix/shared/bitrix/modules/main/lib/config/option.php:210
#3: Bitrix\Main\Config\Option::load
	/home/bitrix/shared/bitrix/modules/main/lib/config/option.php:83
#4: Bitrix\Main\Config\Option::getRealValue
	/home/bitrix/shared/bitrix/modules/main/lib/config/option.php:32
#5: Bitrix\Main\Config\Option::get
	/home/bitrix/shared/bitrix/modules/main/lib/httprequest.php:422
#6: Bitrix\Main\HttpRequest->prepareCookie
	/home/bitrix/shared/bitrix/modules/main/lib/httprequest.php:70
#7: Bitrix\Main\HttpRequest->__construct
	/home/bitrix/shared/bitrix/modules/main/lib/httpapplication.php:39
#8: Bitrix\Main\HttpApplication->initializeContext
	/home/bitrix/shared/bitrix/modules/main/lib/application.php:130
#9: Bitrix\Main\Application->initializeExtendedKernel
	/home/bitrix/shared/bitrix/modules/main/include.php:17
#10: require_once(string)
	/home/bitrix/shared/bitrix/modules/main/include/prolog_before.php:19
#11: require_once(string)
	/home/bitrix/shared/bitrix/modules/main/include/prolog.php:10
#12: require_once(string)
	/home/bitrix/shared/bitrix/header.php:1
#13: require(string)
	/home/bitrix/www/pub/site/index.php:4
#14: include_once(string)
	/home/bitrix/shared/bitrix/modules/main/include/urlrewrite.php:128
#15: include_once(string)
	/home/bitrix/shared/bitrix/urlrewrite.php:2
----------