Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

NextCloud conferecing dropping connections #4

Closed
jakubgs opened this issue Oct 6, 2021 · 6 comments
Closed

NextCloud conferecing dropping connections #4

jakubgs opened this issue Oct 6, 2021 · 6 comments
Assignees
Labels
performance Scaling, speed, and latency issues

Comments

@jakubgs
Copy link
Member

jakubgs commented Oct 6, 2021

As reported by @jarradh our NextCloud instance was misbehaving during a call with 3 people on 27th September, at 8pm GMT+7.

https://grafana.infra.status.im/d/QCTZ8-Vmk/single-host-dashboard?orgId=1&var-host=node-01.do-ams3.nextcloud.office&from=1632745808858&to=1632753004260

@jakubgs jakubgs self-assigned this Oct 6, 2021
@jakubgs
Copy link
Member Author

jakubgs commented Oct 6, 2021

We can see the call starting slightly before 8pm GMT+7:

image

Not a huge amount of traffic:

image

@jakubgs
Copy link
Member Author

jakubgs commented Oct 6, 2021

Peak load average on a 2 core machine was 1.83, while memory looked stable with little swapping:

image

But if we look at CPU usage itself it's mostly idle:

image

And containers themselves don't appear to be starving for CPU time:

image

@jakubgs
Copy link
Member Author

jakubgs commented Oct 6, 2021

The only error I found in the NextCloud logs at the time was this:

{"reqId":"iOYAjRvI9f0L5aX811XI","level":3,"time":"2021-09-27T12:56:42+00:00","remoteAddr":"172.17.1.1","user":"corey","app":"no app in context","method":"GET","url":"/ocs/v2.php/core/autocomplete/get?search=&itemType=call&itemId=new&shareTypes[]=0&shareTypes[]=1&shareTypes[]=7","message":"in_array() expects parameter 2 to be array, null given","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36","version":"22.1.0.1","exception":{"Exception":"Exception","Message":"in_array() expects parameter 2 to be array, null given","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\AutoCompleteController"},"get"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":301,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\AutoCompleteController","get",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.core.AutoComplete.get"}]},{"file":"/var/www/html/ocs/v1.php","line":62,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/core/autocomplete/get"]},{"file":"/var/www/html/ocs/v2.php","line":23,"args":["/var/www/html/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":158,"Previous":{"Exception":"TypeError","Message":"in_array() expects parameter 2 to be array, null given","Code":0,"Trace":[{"file":"/var/www/html/apps/circles/lib/Collaboration/v2/CollaboratorSearchPlugin.php","line":101,"function":"in_array","args":[10,null]},{"file":"/var/www/html/lib/private/Collaboration/Collaborators/Search.php","line":72,"function":"search","class":"OCA\\Circles\\Collaboration\\v2\\CollaboratorSearchPlugin","type":"->","args":["",10,0,{"__class__":"OC\\Collaboration\\Collaborators\\SearchResult"}]},{"file":"/var/www/html/core/Controller/AutoCompleteController.php","line":77,"function":"search","class":"OC\\Collaboration\\Collaborators\\Search","type":"->","args":["",["0","1","7"],false,10,0]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"get","class":"OC\\Core\\Controller\\AutoCompleteController","type":"->","args":["","call","new",null,["0","1","7"],10]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\AutoCompleteController"},"get"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\AutoCompleteController"},"get"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":301,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\AutoCompleteController","get",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.core.AutoComplete.get"}]},{"file":"/var/www/html/ocs/v1.php","line":62,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/core/autocomplete/get"]},{"file":"/var/www/html/ocs/v2.php","line":23,"args":["/var/www/html/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/html/apps/circles/lib/Collaboration/v2/CollaboratorSearchPlugin.php","Line":101},"CustomMessage":"--"}}

Where the principal error is:

  "message": "in_array() expects parameter 2 to be array, null given",
  "File": "/var/www/html/apps/circles/lib/Collaboration/v2/CollaboratorSearchPlugin.php",

But this error was already reported:

And fixed in nextcloud/circles#781 which was included in 22.1.1, so my upgrade to 22.2.0 covers it.

And anyway, that was related to search, not conferencing.

@jakubgs
Copy link
Member Author

jakubgs commented Oct 6, 2021

I've also temporarily increased verbosity level to DEBUG, we'll see what we can find out.

I also checked access logs for the app container but couldn't find any clear errors.

@jakubgs
Copy link
Member Author

jakubgs commented Oct 6, 2021

Also increased host size to s-4vcpu-8gb: https://github.com/status-im/infra-office/commit/780cfc6f

Thought ultimately once we decide to switch fully I'd like a beefy Hetzner host for NextCloud.

@jakubgs jakubgs added the performance Scaling, speed, and latency issues label May 10, 2022
@jakubgs jakubgs closed this as completed May 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
performance Scaling, speed, and latency issues
Projects
None yet
Development

No branches or pull requests

1 participant