Hello people,
I have a problem, I log in to the administrator account, the initial information is loaded, but if I want to go to the administration, an error pops up immediately. I haven’t figured out how to solve the problem anywhere.
you should review your nextcloud.log for details
→ install jq
← if not present on your system
Run
jq 'select(.reqId == "gnxegghbjQgdEF3AcUEt")' /path/to/your/nextcloud.log
and post its output here in a → fenced codeblock ←
Much and good luck,
ernolf
Hello,
I am attaching data from the log. And thanks for the advice.
Bloková citace
{"reqId":"R294WIVNCAlecZwtfMo8","level":3,"time":"2021-12-02T10:55:11+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"An exception occurred while executing a query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away","userAgent":"--","version":"22.2.1.2","exception":{"Exception":"Doctrine\\DBAL\\Exception\\ConnectionLost","Message":"An exception occurred while executing a query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away","Code":2006,"Trace":[{"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1728,"function":"convert","class":"Doctrine\\DBAL\\Driver\\API\\MySQL\\ExceptionConverter","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1667,"function":"handleDriverException","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1146,"function":"convertExceptionDuringQuery","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/DB/Connection.php","line":262,"function":"executeStatement","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php","line":213,"function":"executeStatement","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":287,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppConfig.php","line":258,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AllConfig.php","line":231,"function":"deleteKey","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/html/nextcloud/lib/base.php","line":688,"function":"deleteAppValue","class":"OC\\AllConfig","type":"->"},{"file":"/var/www/html/nextcloud/lib/base.php","line":1089,"function":"init","class":"OC","type":"::"},{"file":"/var/www/html/nextcloud/cron.php","line":42,"args":["/var/www/html/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php","Line":101,"Previous":{"Exception":"Doctrine\\DBAL\\Driver\\PDO\\Exception","Message":"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away","Code":2006,"Trace":[{"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php","line":84,"function":"new","class":"Doctrine\\DBAL\\Driver\\PDO\\Exception","type":"::"},{"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1138,"function":"execute","class":"Doctrine\\DBAL\\Driver\\PDO\\Statement","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/DB/Connection.php","line":262,"function":"executeStatement","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php","line":213,"function":"executeStatement","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":287,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppConfig.php","line":258,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AllConfig.php","line":231,"function":"deleteKey","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/html/nextcloud/lib/base.php","line":688,"function":"deleteAppValue","class":"OC\\AllConfig","type":"->"},{"file":"/var/www/html/nextcloud/lib/base.php","line":1089,"function":"init","class":"OC","type":"::"},{"file":"/var/www/html/nextcloud/cron.php","line":42,"args":["/var/www/html/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Exception.php","Line":26,"Previous":{"Exception":"PDOException","Message":"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away","Code":"HY000","Trace":[{"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php","line":82,"function":"execute","class":"PDOStatement","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1138,"function":"execute","class":"Doctrine\\DBAL\\Driver\\PDO\\Statement","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/DB/Connection.php","line":262,"function":"executeStatement","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php","line":213,"function":"executeStatement","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":287,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppConfig.php","line":258,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AllConfig.php","line":231,"function":"deleteKey","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/html/nextcloud/lib/base.php","line":688,"function":"deleteAppValue","class":"OC\\AllConfig","type":"->"},{"file":"/var/www/html/nextcloud/lib/base.php","line":1089,"function":"init","class":"OC","type":"::"},{"file":"/var/www/html/nextcloud/cron.php","line":42,"args":["/var/www/html/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php","Line":82}},"CustomMessage":"--"}}
Yes, but unfortunately not how I explained it.
I had to edit your post because you didn’t post it in a fenced code block, despite the linked explanation. And that log entry is not about "reqId" "gnxegghbjQgdEF3AcUEt"
as you described but about a complete different issue:
"reqId": "R294WIVNCAlecZwtfMo8",
"level": 3,
"time": "2021-12-02T10:55:11+00:00",
"remoteAddr": "",
"user": "--",
"app": "cron",
"method": "",
"url": "--",
"message": "An exception occurred while executing a query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away",
"userAgent": "--",
"version": "22.2.1.2",
Here your cron did not work because the database server was down.
Additionally I noticed, that your nextcloud version is VERY old and not even the latest patch level. → Nextcloud 22 is not supported any more since more than 2 years! ←
With all due respect, but to be honest I can’t take that too seriously. So make sure you get your server up to date and when I explain. how you can get a specific message from the log file, then provide exactly THAT message and not just any message you get.
Much and good luck,
ernolf
Hello,
sorry i loaded the old log. I am attaching the data from the new log and I hope it is correct.
{"reqId":"CMpksGGuVoiaoPvBPH4t","level":3,"time":"2024-07-31T09:37:12+00:00","remoteAddr":"192.168.1.171","user":"admin","app":"index","method":"GET","url":"/index.php/apps/side_menu/css/stylesheet?v=7","message":"syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36","version":"25.0.13.2","exception":{"Exception":"ParseError","Message":"syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/composer/composer/ClassLoader.php","line":428,"function":"Composer\\Autoload\\includeFile"},{"function":"loadClass","class":"Composer\\Autoload\\ClassLoader","type":"->"},{"function":"spl_autoload_call"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"__construct","class":"ReflectionClass","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":134,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":466,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":438,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":159,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/nextcloud/lib/base.php","line":1053,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/nextcloud/apps/side_menu/lib/Controller/CssController.php","Line":40,"CustomMessage":"--"}}
{"reqId":"Omie5lHnQrVHJpsIVEzH","level":3,"time":"2024-07-31T09:37:12+00:00","remoteAddr":"192.168.1.171","user":"admin","app":"index","method":"GET","url":"/index.php/apps/side_menu/js/script?v=7","message":"syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36","version":"25.0.13.2","exception":{"Exception":"ParseError","Message":"syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/composer/composer/ClassLoader.php","line":428,"function":"Composer\\Autoload\\includeFile"},{"function":"loadClass","class":"Composer\\Autoload\\ClassLoader","type":"->"},{"function":"spl_autoload_call"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"__construct","class":"ReflectionClass","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":134,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":466,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":438,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":159,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/nextcloud/lib/base.php","line":1053,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/nextcloud/apps/side_menu/lib/Controller/JsController.php","Line":40,"CustomMessage":"--"}}
{"reqId":"fVBp8qQriODvPUgbrbPQ","level":3,"time":"2024-07-31T09:37:13+00:00","remoteAddr":"149.50.183.244","user":"Woehrmann","app":"PHP","method":"PUT","url":"/remote.php/dav/files/Woehrmann/WEST_ONLINE/Transfer/AHUman%20-Auslegungssoftware/AHUman-rev.%201677/AHUman-rev.%201677/data/fans_za/sqlite2ps.dll","message":"rename(/mnt/222shares/_SPOLECNA_DATA/ONLINE_DATA/Transfer/AHUman -Auslegungssoftware/AHUman-rev. 1677/AHUman-rev. 1677/data/fans_za/sqlite2ps.dll.ocTransferId465279521.part,/mnt/222shares/_SPOLECNA_DATA/ONLINE_DATA/Transfer/AHUman -Auslegungssoftware/AHUman-rev. 1677/AHUman-rev. 1677/data/fans_za/sqlite2ps.dll): Permission denied at /var/www/html/nextcloud/lib/private/Files/Storage/Local.php#377","userAgent":"Mozilla/5.0 (Windows) mirall/3.13.23.12-Win64 (build 20240708) (Nextcloud, windows-10.0.22631 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"25.0.13.2","exception":{"Exception":"Error","Message":"rename(/mnt/222shares/_SPOLECNA_DATA/ONLINE_DATA/Transfer/AHUman -Auslegungssoftware/AHUman-rev. 1677/AHUman-rev. 1677/data/fans_za/sqlite2ps.dll.ocTransferId465279521.part,/mnt/222shares/_SPOLECNA_DATA/ONLINE_DATA/Transfer/AHUman -Auslegungssoftware/AHUman-rev. 1677/AHUman-rev. 1677/data/fans_za/sqlite2ps.dll): Permission denied at /var/www/html/nextcloud/lib/private/Files/Storage/Local.php#377","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Local.php","line":377,"function":"rename"},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":279,"function":"rename","class":"OC\\Files\\Storage\\Local","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/PermissionsMask.php","line":84,"function":"rename","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":279,"function":"rename","class":"OC\\Files\\Storage\\Wrapper\\PermissionsMask","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":279,"function":"rename","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/html/nextcloud/apps/files_accesscontrol/lib/StorageWrapper.php","line":208,"function":"rename","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":279,"function":"rename","class":"OCA\\FilesAccessControl\\StorageWrapper","type":"->"},{"file":"/var/www/html/nextcloud/apps/ransomware_protection/lib/StorageWrapper.php","line":275,"function":"rename","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/html/nextcloud/apps/ransomware_protection/lib/StorageWrapper.php","line":589,"function":"rename","class":"OCA\\RansomwareProtection\\StorageWrapper","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":350,"function":"moveFromStorage","class":"OCA\\RansomwareProtection\\StorageWrapper","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":151,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/lib/Server.php","line":361,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/remote.php","line":172,"args":["/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
At least one of your problems is that you’re running such an outdated system that some of the apps you have deployed are getting to the point that when they update they don’t work with your version of PHP.
e.g. the side_menu
app:
/index.php/apps/side_menu/css/stylesheet?v=7","message":"syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)
Good day,
I know the system is older, I will update it now. Thanks for the advice, it was really the apicing that caused the problem. I thought so, but so far she has been normally active and no problem. Everything is okay now.
Thanks for your help, I appreciate it.