Nextcloud 20.xx Minor Upgrade stuck

Nextcloud version (eg, 20.0.5): 20.0.9 to 20.0.14
Operating system and version (eg, Ubuntu 20.04): Gentoo
Apache or nginx version (eg, Apache 2.4.25): 2.4.46
PHP version (eg, 7.4): 7.4.11

The issue you are facing:
Upgrade Process on the WebGui get Stuck and exit on timeout. Upgrade process occ on command line also just get stuck.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

Run System Upgrade

The output of your Nextcloud log in Admin > Logging:

No access to the GUI at the moment

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

/var/www/localhost/htdocs/nextcloud

The output of your Apache/nginx/system log in /var/log/____:

192.168.20.226 - - [04/Apr/2022:10:46:36 +0200] "GET /nice%20ports%2C/Tri%6Eity.txt%2ebak HTTP/1.0" 404 255
192.168.20.226 - - [04/Apr/2022:10:46:36 +0200] "GET / HTTP/1.0" 200 45
192.168.20.226 - - [04/Apr/2022:10:53:28 +0200] "GET / HTTP/1.1" 200 45
192.168.20.226 - - [04/Apr/2022:10:53:28 +0200] "GET /nice%20ports%2C/Tri%6Eity.txt%2ebak HTTP/1.0" 404 255
192.168.20.226 - - [04/Apr/2022:10:53:28 +0200] "GET / HTTP/1.0" 200 45
192.168.20.49 - - [05/Apr/2022:19:47:59 +0200] "GET / HTTP/1.1" 200 45
192.168.20.49 - - [05/Apr/2022:19:48:00 +0200] "GET /nice%20ports%2C/Tri%6Eity.txt%2ebak HTTP/1.0" 404 255
192.168.20.49 - - [05/Apr/2022:19:48:00 +0200] "GET / HTTP/1.0" 200 45
192.168.20.226 - - [06/Apr/2022:14:36:10 +0200] "GET / HTTP/1.1" 200 45
192.168.20.226 - - [06/Apr/2022:14:36:10 +0200] "GET /nice%20ports%2C/Tri%6Eity.txt%2ebak HTTP/1.0" 404 255
192.168.20.226 - - [06/Apr/2022:14:36:10 +0200] "GET / HTTP/1.0" 200 45
192.168.20.226 - - [19/Apr/2022:10:05:35 +0200] "GET / HTTP/1.1" 200 45
192.168.20.226 - - [19/Apr/2022:10:05:35 +0200] "GET /nice%20ports%2C/Tri%6Eity.txt%2ebak HTTP/1.0" 404 255
192.168.20.226 - - [19/Apr/2022:10:05:35 +0200] "GET / HTTP/1.0" 200 45
192.168.20.226 - - [19/Apr/2022:10:12:01 +0200] "GET / HTTP/1.1" 200 45
192.168.20.226 - - [19/Apr/2022:10:12:02 +0200] "GET /nice%20ports%2C/Tri%6Eity.txt%2ebak HTTP/1.0" 404 255
192.168.20.226 - - [19/Apr/2022:10:12:02 +0200] "GET / HTTP/1.0" 200 45

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::advance: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::advance: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::advance: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::advance: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::advance: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::advance: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::advance: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::advance: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::advance: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::advance: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::advance: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::advance: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::advance: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::advance: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::advance: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::advance: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::advance: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::finishProgress: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::info: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"6akhQq7pzplY51bDdsiy","level":1,"time":"2022-04-21T11:49:15+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"8lAWlTTIcrcP9JVv3PJ3","level":1,"time":"2022-04-21T11:52:10+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::setDebugLogLevel: Set log level to debug","userAgent":"--","version":"20.0.9.1"}
{"reqId":"8lAWlTTIcrcP9JVv3PJ3","level":0,"time":"2022-04-21T11:52:10+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"starting upgrade from 20.0.9.1 to 20.0.14.2","userAgent":"--","version":"20.0.9.1"}
{"reqId":"8lAWlTTIcrcP9JVv3PJ3","level":1,"time":"2022-04-21T11:52:10+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"8lAWlTTIcrcP9JVv3PJ3","level":1,"time":"2022-04-21T11:52:10+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Repair MySQL collation","userAgent":"--","version":"20.0.9.1"}
{"reqId":"8lAWlTTIcrcP9JVv3PJ3","level":1,"time":"2022-04-21T11:52:10+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::info: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"8lAWlTTIcrcP9JVv3PJ3","level":1,"time":"2022-04-21T11:52:10+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::info: Repair info: Not a mysql database -> nothing to do","userAgent":"--","version":"20.0.9.1"}
{"reqId":"8lAWlTTIcrcP9JVv3PJ3","level":1,"time":"2022-04-21T11:52:10+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.9.1"}
{"reqId":"8lAWlTTIcrcP9JVv3PJ3","level":1,"time":"2022-04-21T11:52:10+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Repair SQLite autoincrement","userAgent":"--","version":"20.0.9.1"}

I have tried several Fixes I found like:

I also ran occ maintenance:repair
Disabled activity app and accessibility, because they were mentioned to cause trouble.

Any help is much appreciated.

Hmm, I’m looking for a truncated version of your error and here are the results.

And forum results:

https://help.nextcloud.com/search?q=nextcloud%20%5C%5COC%5C%5CRepair::step:%20Symfony%5C%5CComponent%5C%5CEventDispatcher%5C%5CGenericEvent%20is%20used

Thank you @just for your reply.
I found that also but I’m not sureif I understand it correct, your first link more or less says log level is too high. So Ok, I can igonre the 2nd last line but what about the last line?

\\OC\\Repair::step: Repair step: Repair SQLite autoincrement

It is still not clear to me how to fix this issue. Can you give me some hints, to get back on track?

I am a Sysadmin, not a software developer and I have just taken over this installation and forst thing I want to do is bring it to the newest version of NC.

I am unsure. I’m a volunteer and do not have this issue myself. Searched for related issues to send your way, which is what I recommend doing from log output.

https://help.nextcloud.com/search?q=Repair%20step:%20Repair%20SQLite%20autoincrement

A laudable goal. You’ll to update through each major version. 20 to 21, 21 to 22, etc.
fyi for after you figure this out: SQlite has weak performance so documentation recommends to a more robust database like mariadb, mysql or postgresql.