При выполнении скрипта возникла ошибка. Включить расширенный вывод ошибок можно в файле настроек .settings.php
Fatal error: Uncaught Bitrix\Main\DB\ConnectionException: Mysql connect error [localhost]: (2002) No such file or directory in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php:65 Stack trace: #0 /home/bitrix/www/bitrix/modules/main/lib/db/mysqlcommonconnection.php(130): Bitrix\Main\DB\MysqliConnection->connectInternal() #1 /home/bitrix/www/bitrix/modules/main/lib/db/connection.php(715): Bitrix\Main\DB\MysqlCommonConnection->getTableFields('b_sec_session') #2 /home/bitrix/www/bitrix/modules/main/lib/db/sqlhelper.php(387): Bitrix\Main\DB\Connection->getTableField('b_sec_session', 'SESSION_ID') #3 /home/bitrix/www/bitrix/modules/main/lib/entity/datamanager.php(830): Bitrix\Main\DB\SqlHelper->prepareAssignment('b_sec_session', 'SESSION_ID', 'mW8Mo8j7JBRUvxf...') #4 /home/bitrix/www/bitrix/modules/security/classes/general/session_db.php(92): Bitrix\Main\Entity\DataManager::delete(Array) #5 [internal function]: CSecuritySessionDB::write('mW8Mo8j7JBRUvxf...', '') #6 [internal function]: session_write_close() #7 { in /home/bitrix/www/bitrix/modules/main/lib/db/mysqliconnection.php on line 65