Closed iw0nderhow closed 2 years ago
I believe #457 should fix this issue. It's caused by some trace items missing the 'args' key.
@iw0nderhow Can you confirm this is fixed? Can we close this?
I've browsed around my instance a bit and haven't seen occ
crash yet. Looks like this is fixed.
Steps to reproduce
debug => true
in config.phpocc log:watch -vvv
Expected behaviour
occ
prints the error messages emitted.Actual behaviour
occ
crashes on messages that attach a Trace (.message.Trace
), e.g. this one:Show message
```json { "reqId": "ktbTTLCzWz2M3WUygv3o", "level": 3, "time": "2021-04-19T15:16:06+00:00", "remoteAddr": "1.2.3.4", "user": "christopher", "app": "core", "method": "PROPFIND", "url": "/remote.php/dav/files/christopher/Downloads/Archiv/", "message": { "Exception": "Doctrine\\DBAL\\Query\\QueryException", "Message": "More than 1000 expressions in a list are not allowed on Oracle.", "Code": 0, "Trace": [ { "file": "/var/www/html/lib/private/Comments/Manager.php", "line": 657, "function": "execute", "class": "OC\\DB\\QueryBuilder\\QueryBuilder", "type": "->" }, { "file": "/var/www/html/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php", "line": 89, "function": "getNumberOfUnreadCommentsForObjects", "class": "OC\\Comments\\Manager", "type": "->" }, { "file": "/var/www/html/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php", "line": 117, "function": "cacheDirectory", "class": "OCA\\DAV\\Connector\\Sabre\\CommentPropertiesPlugin", "type": "->" }, { "file": "/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php", "line": 89, "function": "handleGetProperties", "class": "OCA\\DAV\\Connector\\Sabre\\CommentPropertiesPlugin", "type": "->" }, { "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php", "line": 1052, "function": "emit", "class": "Sabre\\DAV\\Server", "type": "->" }, { "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php", "line": 984, "function": "getPropertiesByNode", "class": "Sabre\\DAV\\Server", "type": "->" }, { "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php", "line": 1661, "function": "getPropertiesIteratorForPath", "class": "Sabre\\DAV\\Server", "type": "->" }, { "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php", "line": 1646, "function": "writeMultiStatus", "class": "Sabre\\DAV\\Server", "type": "->" }, { "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php", "line": 346, "function": "generateMultiStatus", "class": "Sabre\\DAV\\Server", "type": "->" }, { "file": "/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php", "line": 89, "function": "httpPropFind", "class": "Sabre\\DAV\\CorePlugin", "type": "->" }, { "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php", "line": 472, "function": "emit", "class": "Sabre\\DAV\\Server", "type": "->" }, { "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php", "line": 253, "function": "invokeMethod", "class": "Sabre\\DAV\\Server", "type": "->" }, { "file": "/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php", "line": 321, "function": "start", "class": "Sabre\\DAV\\Server", "type": "->" }, { "file": "/var/www/html/apps/dav/lib/Server.php", "line": 332, "function": "exec", "class": "Sabre\\DAV\\Server", "type": "->" }, { "file": "/var/www/html/apps/dav/appinfo/v2/remote.php", "line": 35, "function": "exec", "class": "OCA\\DAV\\Server", "type": "->" }, { "file": "/var/www/html/remote.php", "line": 167, "args": [ "/var/www/html/apps/dav/appinfo/v2/remote.php" ], "function": "require_once" } ], "File": "/var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php", "Line": 268, "CustomMessage": "More than 1000 expressions in a list are not allowed on Oracle." }, "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0", "version": "21.0.1.1" } ```The web log interface, however, works.
Server configuration
Operating system: Ubuntu 20.04
Web server: Apache 2.4.41-4ubuntu3.1
Database: MariaDB 1:10.3.25-0ubuntu0.20.04.1
PHP version: 8.0.3 (from deb.sury.org)
Nextcloud version: 21.0.1
Where did you install Nextcloud from: ZIP package (continuously upgraded from ~v13)
List of activated apps:
Nextcloud configuration:
Client configuration
Browser: Firefox 87.0
Operating system: Windows 10 20H2
Logs
Output of
occ log:watch