Closed sushifrick closed 4 years ago
Since I don't operate a scalelite server, I'm depending on you for debugging this issue :wink:
"the server responded with a status of 500" indicates that Nextcloud is throwing an error, so I'm wondering why you see no related error message in your logs. If you enable debug mode and look at your network tab in your chrome dev console, you should see the error message in the xhr response.
Hi @sualko, thank you for the quick response. I only looked at the console output, not the network tab before. Now I did find a request id fot the error with an entry in the nextcloud log. Also I increased the log level to debug. I piped the output through jq
to make it more readable, although it is quite long now.
```{ "reqId": "X1X5ZBAHpj92bMvlRQ6k7wAAAIo", "level": 3, "time": "2020-09-07T09:12:05+00:00", "remoteAddr": "123.123.7.6", "user": "abc123", "app": "PHP", "method": "DELETE", "url": "/index.php/apps/bbb/server/record/a0aef0848fb387b45d52c3d576a532088aa07394-1598959374014", "message": "Trying to access array offset on value of type null at /var/www/html/nextcloud-19.0.2/nextcloud/apps/bbb/lib/Controller/ServerController.php#68", "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36", "version": "19.0.2.2" } { "reqId": "X1X5ZBAHpj92bMvlRQ6k7wAAAIo", "level": 3, "time": "2020-09-07T09:12:05+00:00", "remoteAddr": "123.123.7.6", "user": "abc123", "app": "index", "method": "DELETE", "url": "/index.php/apps/bbb/server/record/a0aef0848fb387b45d52c3d576a532088aa07394-1598959374014", "message": { "Exception": "Exception", "Message": "Argument 1 passed to OCA\\BigBlueButton\\Db\\RoomMapper::findByUid() must be of the type string, null given, called in /var/www/html/nextcloud-19.0.2/nextcloud/apps/bbb/lib/Service/RoomService.php on line 53", "Code": 0, "Trace": [ { "file": "/var/www/html/nextcloud-19.0.2/nextcloud/lib/private/AppFramework/App.php", "line": 137, "function": "dispatch", "class": "OC\\AppFramework\\Http\\Dispatcher", "type": "->", "args": [ { "__class__": "OCA\\BigBlueButton\\Controller\\ServerController" }, "deleteRecord" ] }, { "file": "/var/www/html/nextcloud-19.0.2/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php", "line": 47, "function": "main", "class": "OC\\AppFramework\\App", "type": "::", "args": [ "OCA\\BigBlueButton\\Controller\\ServerController", "deleteRecord", { "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer" }, { "recordId": "a0aef0848fb387b45d52c3d576a532088aa07394-1598959374014", "_route": "bbb.server.delete_record" } ] }, { "function": "__invoke", "class": "OC\\AppFramework\\Routing\\RouteActionHandler", "type": "->", "args": [ { "recordId": "a0aef0848fb387b45d52c3d576a532088aa07394-1598959374014", "_route": "bbb.server.delete_record" } ] }, { "file": "/var/www/html/nextcloud-19.0.2/nextcloud/lib/private/Route/Router.php", "line": 297, "function": "call_user_func", "args": [ { "__class__": "OC\\AppFramework\\Routing\\RouteActionHandler" }, { "recordId": "a0aef0848fb387b45d52c3d576a532088aa07394-1598959374014", "_route": "bbb.server.delete_record" } ] }, { "file": "/var/www/html/nextcloud-19.0.2/nextcloud/lib/base.php", "line": 1012, "function": "match", "class": "OC\\Route\\Router", "type": "->", "args": [ "/apps/bbb/server/record/a0aef0848fb387b45d52c3d576a532088aa07394-1598959374014" ] }, { "file": "/var/www/html/nextcloud-19.0.2/nextcloud/index.php", "line": 37, "function": "handleRequest", "class": "OC", "type": "::", "args": [] } ], "File": "/var/www/html/nextcloud-19.0.2/nextcloud/lib/private/AppFramework/Http/Dispatcher.php", "Line": 110, "Previous": { "Exception": "TypeError", "Message": "Argument 1 passed to OCA\\BigBlueButton\\Db\\RoomMapper::findByUid() must be of the type string, null given, called in /var/www/html/nextcloud-19.0.2/nextcloud/apps/bbb/lib/Service/RoomService.php on line 53", "Code": 0, "Trace": [ { "file": "/var/www/html/nextcloud-19.0.2/nextcloud/apps/bbb/lib/Service/RoomService.php", "line": 53, "function": "findByUid", "class": "OCA\\BigBlueButton\\Db\\RoomMapper", "type": "->", "args": [ null ] }, { "file": "/var/www/html/nextcloud-19.0.2/nextcloud/apps/bbb/lib/Controller/ServerController.php", "line": 68, "function": "findByUid", "class": "OCA\\BigBlueButton\\Service\\RoomService", "type": "->", "args": [ null ] }, { "file": "/var/www/html/nextcloud-19.0.2/nextcloud/lib/private/AppFramework/Http/Dispatcher.php", "line": 170, "function": "deleteRecord", "class": "OCA\\BigBlueButton\\Controller\\ServerController", "type": "->", "args": [ "a0aef0848fb387b45d52c3d576a532088aa07394-1598959374014" ] }, { "file": "/var/www/html/nextcloud-19.0.2/nextcloud/lib/private/AppFramework/Http/Dispatcher.php", "line": 100, "function": "executeController", "class": "OC\\AppFramework\\Http\\Dispatcher", "type": "->", "args": [ { "__class__": "OCA\\BigBlueButton\\Controller\\ServerController" }, "deleteRecord" ] }, { "file": "/var/www/html/nextcloud-19.0.2/nextcloud/lib/private/AppFramework/App.php", "line": 137, "function": "dispatch", "class": "OC\\AppFramework\\Http\\Dispatcher", "type": "->", "args": [ { "__class__": "OCA\\BigBlueButton\\Controller\\ServerController" }, "deleteRecord" ] }, { "file": "/var/www/html/nextcloud-19.0.2/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php", "line": 47, "function": "main", "class": "OC\\AppFramework\\App", "type": "::", "args": [ "OCA\\BigBlueButton\\Controller\\ServerController", "deleteRecord", { "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer" }, { "recordId": "a0aef0848fb387b45d52c3d576a532088aa07394-1598959374014", "_route": "bbb.server.delete_record" } ] }, { "function": "__invoke", "class": "OC\\AppFramework\\Routing\\RouteActionHandler", "type": "->", "args": [ { "recordId": "a0aef0848fb387b45d52c3d576a532088aa07394-1598959374014", "_route": "bbb.server.delete_record" } ] }, { "file": "/var/www/html/nextcloud-19.0.2/nextcloud/lib/private/Route/Router.php", "line": 297, "function": "call_user_func", "args": [ { "__class__": "OC\\AppFramework\\Routing\\RouteActionHandler" }, { "recordId": "a0aef0848fb387b45d52c3d576a532088aa07394-1598959374014", "_route": "bbb.server.delete_record" } ] }, { "file": "/var/www/html/nextcloud-19.0.2/nextcloud/lib/base.php", "line": 1012, "function": "match", "class": "OC\\Route\\Router", "type": "->", "args": [ "/apps/bbb/server/record/a0aef0848fb387b45d52c3d576a532088aa07394-1598959374014" ] }, { "file": "/var/www/html/nextcloud-19.0.2/nextcloud/index.php", "line": 37, "function": "handleRequest", "class": "OC", "type": "::", "args": [] } ], "File": "/var/www/html/nextcloud-19.0.2/nextcloud/apps/bbb/lib/Db/RoomMapper.php", "Line": 34 }, "CustomMessage": "--" }, "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36", "version": "19.0.2.2" } ```
Thanks for the nice log entry. Can you try to apply 4d9a7b8a793b776122bdf051b2ef2ac7c8a7ef36 by hand and report if it is working?
Hi @sualko,
i patched the two files by hand and it works without a problem now, thank you very much!
it works without a problem now
Glad to hear. Thanks for testing.
Describe the bug When using a loadbalanced BBB setup with the scalelite balancer, recordings cannot be deleted. I testet the setup using the Api backend of a single server and it works well, when using the scaler, I get the error message "Server error. Could not delete record". The scaler acts as a BBB Server as a "normal" Api end point and underneath delegated to different BBB servers itself. The default frontend Greenlight works with the scaler, including deleting recordings. I am not sure if this is a scalelite, or a cloud_bbb bug. I am happy to provide additional logs if needed.
To Reproduce Steps to reproduce the behavior:
Expected behavior The recording is deleted
System (please complete the following information):
Nextcloud log:
Javascript log:
Scalelite logs: When trying to delete a recording, the Logs on the scaler show a list request, but no delete request.
Scalelite logs using greenlight: When using the greenlight frontend /bigbluebutton/api/deleteRecordings is called, but not using cloud_bbb due to the prior server error?