documentserver_community icon indicating copy to clipboard operation
documentserver_community copied to clipboard

0.1.10 Error: "The community document server only supports up to 20 concurrent sessions"

Open adi-dev opened this issue 4 years ago • 24 comments

I have a strange error after upgrading my Nextcloud to v22 (Community Document Server automatically updated to 0.1.10): The community document server only supports up to 20 concurrent sessions even though I'm only user at this moment and I have 3 total users on my instance. Tried issue #188 - 'dirty fix' but no effect. I'm using PostgreSQL. There are no logs in error registered when this happens.

adi-dev avatar Jul 09 '21 10:07 adi-dev

Same issue for Community server 0.1.10 under NC Version 21.03 - after update we still get message "The community document server only supports up to 20 concurrent sessions" Anyone an idea how to rollback to the former version of app?

ThoBunte avatar Jul 09 '21 14:07 ThoBunte

Hello, same here. The error is

"Message":"Use of undefined constant EXPIRED_SESSION_TIMEOUT - assumed 'EXPIRED_SESSION_TIMEOUT' (this will throw an Error in a future version o f PHP) at /nextcloud/apps/documentserver_community/lib/Channel/SessionManager.php#134","Code":0,"Trace":[{"file":"/nextcloud/apps/documentserver_community/lib/Channel/SessionManager.php","line":134

A non-numeric value encountered at /nextcloud/apps/documentserver_community/lib/Channel/SessionManager.php #134

pushakk2 avatar Jul 12 '21 10:07 pushakk2

Same issue for Community server 0.1.10 under NC Version 21.03 - after update we still get message "The community document server only supports up to 20 concurrent sessions" Anyone an idea how to rollback to the former version of app?

I check a bit occ cli options and it doesn't seems to support app version. It would be nice feature to have built into this tool.

I have a strange error after upgrading my Nextcloud to v22 (Community Document Server automatically updated to 0.1.10): The community document server only supports up to 20 concurrent sessions even though I'm only user at this moment and I have 3 total users on my instance. Tried issue #188 - 'dirty fix' but no effect. I'm using PostgreSQL. There are no logs in error registered when this happens.

Onlyoffice simply doesn't work anymore for me (probably since last update). You may try a workaround playing with licence variable as describe here : https://help.nextcloud.com/t/onlyoffice-community-edition-without-20-connections-limitation/59269/43. Not sure if it will work if the browser is kind of looping on openning connections.

chadek avatar Jul 12 '21 10:07 chadek

I already tried increasing and remove the connection limit by editing the php files and restart the server after, but that has no affect. Even after the restart the "connection limit", but it can't be true.

Maybe related to #223 ?

Sorry for the ping, but maybe you @icewind1991 can help?

Pilzinsel64 avatar Jul 13 '21 07:07 Pilzinsel64

Confirm, this bug occured on NC 21.0.3 and with CDS 0.1.10.

Hypothesis: It seems as version 0.1.10 does not close or delete sessions when a document is closed. In the database, table "oc_documentserver_sess" had over 1200 entries after one day. (i manually augmented the 20 connections limit by editing the PHP files as suggested as 'dirty fix', but this can't be the solution). We observed that sometimes, not even the error message was displayed and overall performance of NC instance was compromised.

With Version 0.1.9, the table oc_documentserver_sess has zero or just some entries.

Workaround: Downgrade to 0.1.9 manually. First uninstall Community Document Server, then download version 0.1.9 ZIP and extract to nextcloud/apps folder. Activate via console with occ command. On my install, I had to deactivate and activate again.

Command: sudo -u www-data php occ app:disable documentserver_community And re-activate: sudo -u www-data php occ app:enable documentserver_community

In my apps overview, it still displayed version 0.1.10 as installed although 0.1.9 was.

DO NOT occ app:update, it will update to 0.1.10 again. And of course do not update via GUI.

whyronimus avatar Jul 13 '21 07:07 whyronimus

~Sadly, your solution didn't work. I already tried it multiple times, once again now. Removed CDS app, placed v0.1.9 in /apps, cleared the "oc_documentserver_sess" table, restarted the server, enabled the app, and still the 20 connection limit message. The table "oc_documentserver_sess" stay at zero entries.~

Pilzinsel64 avatar Jul 13 '21 08:07 Pilzinsel64

Did you try log out, clearing all browser data and log in again before first-time accessing CDS? This is usually necessary when upgrading, so most probably when downgrading.

whyronimus avatar Jul 13 '21 08:07 whyronimus

Oh sorry, right... Cleared the whole browser cache and now it works again (why didn't I get this idea myself?). Thank you very much! That's the workaround for now until the "bug" has been fixed.

Pilzinsel64 avatar Jul 13 '21 08:07 Pilzinsel64

@whyronimus thanks for the tip mate !

chadek avatar Jul 13 '21 09:07 chadek

hello friends then we have to clear the cache in the browsers of all the users that connect to nextcloud?

igherardia avatar Jul 13 '21 16:07 igherardia

Coming back to the original issue with 0.1.10 - just tested, the oc_documentserver_sess table is being populated with new records, but it doesn't get cleared once the page is closed/left. Truncate table does help for a short time.

adi-dev avatar Jul 13 '21 18:07 adi-dev

Comparing v0.1.9 and v0.1.10 it appears that EXPIRED_SESSION_TIMEOUT constant is being added to compute cutoffTime like so: https://github.com/nextcloud/documentserver_community/blob/v0.1.10/lib/Channel/SessionManager.php

		$cutoffTime = $this->timeFactory->getTime() -
		        EXPIRED_SESSION_TIMEOUT;

cleanSessions function (which should help us here) calls getExpiredSessions where this change is made. I really don't know php so can't really play with that code but I'm pretty sure this might be a lead

chadek avatar Jul 13 '21 18:07 chadek

Probably it's also related to the issue I found on my instance since 0.1.10: https://github.com/nextcloud/documentserver_community/issues/220 (solution: I reinstalled the version before)

Der-K-2000 avatar Jul 14 '21 19:07 Der-K-2000

Deleted and installed 0.1.11,The problem still exists:The community document server only supports up to 20 concurrent sessions. the logs: GuzzleHttp\Exception\ClientException: Client error: GET http://192.168.50.66/nextcloud/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.oAoRPm5DpEA3wc9OfJYl4C99XMbsXwbZGnDMYVpTKgc resulted in a 404 Not Found response:

404 Not Found

Not Found (truncated...)

comannd: sudo -u www-data php occ onlyoffice:documentserver --check Error connection: Client error: GET http://192.168.50.66/nextcloud/index.php/apps/onlyoffice/empty?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhY3Rpb24iOiJlbXB0eSJ9.oAoRPm5DpEA3wc9OfJYl4C99XMbsXwbZGnDMYVpTKgc resulted in a 404 Not Found response:

404 Not Found

Not Found (truncated...)

ariesbi avatar Jul 15 '21 14:07 ariesbi

That is very very annoying!

Der-K-2000 avatar Jul 15 '21 18:07 Der-K-2000

Did anyone here upgrade to version 0.1.11? According to developers, this should be fixed: https://github.com/nextcloud/documentserver_community/releases/tag/v0.1.11

whyronimus avatar Jul 16 '21 19:07 whyronimus

I think it is fixed. I cannot confirm fully as two of three of my machines' Google Chrome is refusing to purge cache. It works on my personal, Firefox and Chrome okay but two others, I do full refresh, remove cache and cookies, clear app storage but no success, every time the app loads skeleton and that's it. When I will have bit more time, I'll check the console.

adi-dev avatar Jul 16 '21 19:07 adi-dev

Did anyone here upgrade to version 0.1.11? According to developers, this should be fixed: https://github.com/nextcloud/documentserver_community/releases/tag/v0.1.11

Yes, but the same issues: https://github.com/nextcloud/documentserver_community/issues/220

Der-K-2000 avatar Jul 17 '21 10:07 Der-K-2000

I upgraded and it work fine for me but I didn't tried ms documents. I think this issue might be close.

chadek avatar Jul 20 '21 08:07 chadek

Updated, to version 0.1.11 - but the message with 20 concurrent Sessions was still there (also if on document only was opened). So no difference to situation before updating.

ThoBunte avatar Jul 23 '21 12:07 ThoBunte

I can't reproduce this problem with 0.1.11, sessions expire as expected

icewind1991 avatar Aug 03 '21 13:08 icewind1991

It may be some weird stuff still inside the browser cache leading to this issue. Saying that because I still had the issue on an other device which somehow disappeared after a while not using it.

chadek avatar Aug 03 '21 14:08 chadek

After waiting (myaybe one Week after update to version 0.1.11) it works now, without any other changes on installation. Curious ;-)

ThoBunte avatar Aug 03 '21 14:08 ThoBunte

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 60 days. Thank you for your contribution!

Retaking repo management include inheritance of old, not treated, and probablty obsolete issues, this is why it was decided to mark issues as stale.

github-actions[bot] avatar Sep 09 '24 00:09 github-actions[bot]

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

github-actions[bot] avatar Nov 11 '24 00:11 github-actions[bot]