Many errors but everything works fine, how to approach this?

Nextcloud version (eg, 29.0.5): 29.0.8

Operating system and version (eg, Ubuntu 24.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.58
PHP version (eg, 8.3): 8.1

The issue you are facing:
Upgraded nextcloud from v27 to 28 and 29, which produces many errors, however everything works perfectly

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

Steps to replicate it:

  1. upgrade nextcloud

The output of your Nextcloud log in Admin > Logging:

Error	no app in context	
Error
Call to undefined method OC\Server::getEventDispatcher()
App user_saml threw an error during app.php load: Call to undefined method OC\Server::getEventDispatcher()

"24 Oct 2024, 13:15:06"	

Fatal	spreed	
RuntimeException
There can only be one Talk backend
Error during app service registration: There can only be one Talk backend

"24 Oct 2024, 13:15:04"	

Fatal	no app in context	
Error
Call to undefined method OC\Server::getEventDispatcher()
Could not boot spreed: Call to undefined method OC\Server::getEventDispatcher()

"24 Oct 2024, 13:15:02"	

Fatal	no app in context	
TypeError
OCA\GroupFolders\ACL\ACLManagerFactory::__construct(): Argument #4 ($logger) must be of type Psr\Log\LoggerInterface, Closure given, called in /var/www/nextcloud/apps/groupfolders/lib/AppInfo/Application.php on line 216
Could not boot groupfolders: OCA\GroupFolders\ACL\ACLManagerFactory::__construct(): Argument #4 ($logger) must be of type Psr\Log\LoggerInterface, Closure given, called in /var/www/nextcloud/apps/groupfolders/lib/AppInfo/Application.php on line 216

"24 Oct 2024, 13:14:53"	

Error	no app in context	
Exception
App "Right click" cannot be installed because it is not compatible with this version of the server.

"24 Oct 2024, 13:14:51"	

Fatal	no app in context	
Error
Call to undefined method OC\Server::getEventDispatcher()
Could not boot drawio: Call to undefined method OC\Server::getEventDispatcher()

"24 Oct 2024, 13:14:17"	

Fatal	onlyoffice	
DbalException
An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'argument_hash' at row 1
Error during app service registration: An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'argument_hash' at row 1

"24 Oct 2024, 13:14:14"	

Error	core	
DbalException
An exception occurred while executing a query: SQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect DOUBLE value: 'tiy@user.com'

"24 Oct 2024, 13:06:21"	

Error	PHP	
exif_read_data(): File not supported at /var/www/nextcloud/lib/private/Metadata/Provider/ExifProvider.php#63



"24 Oct 2024, 12:45:05"	

Error	PHP	
ldap_read(): Search: No such object at /var/www/nextcloud/apps/user_ldap/lib/LDAP.php#307

"24 Oct 2024, 12:45:05"	

Error	PHP	
ldap_read(): Search: No such object at /var/www/nextcloud/apps/user_ldap/lib/LDAP.php#307

"24 Oct 2024, 12:42:19"	

Error	PHP	
ldap_read(): Search: No such object at /var/www/nextcloud/apps/user_ldap/lib/LDAP.php#307

"24 Oct 2024, 12:42:19"	

Fatal	spreed	
RuntimeException
There can only be one Talk backend
Error during app service registration: There can only be one Talk backend

"24 Oct 2024, 12:42:14"	

Fatal	onlyoffice	
AutoloadNotAllowedException
Autoload path not allowed: /var/www/nextcloud/apps/onlyoffice/appinfo/application.php
Error during app service registration: Autoload path not allowed: /var/www/nextcloud/apps/onlyoffice/appinfo/application.php

"24 Oct 2024, 12:41:03"	

Fatal	onlyoffice	
AutoloadNotAllowedException
Autoload path not allowed: /var/www/nextcloud/apps/onlyoffice/appinfo/application.php
Error during app service registration: Autoload path not allowed: /var/www/nextcloud/apps/onlyoffice/appinfo/application.php

"24 Oct 2024, 12:40:45"	

Error	PHP	
filemtime(): stat failed for /var/www/nextcloud/version.php at /var/www/nextcloud/lib/private/legacy/OC_Util.php#329

"24 Oct 2024, 12:40:02"	

Error	core	
Exception
File not found: /var/www/nextcloud/core/shipped.json
Exception thrown: Exception

"24 Oct 2024, 12:40:02"	

Error	core	
Exception
File not found: /var/www/nextcloud/core/shipped.json
Exception thrown: Exception

"24 Oct 2024, 12:40:02"	

Error	index	
Exception
File not found: /var/www/nextcloud/core/shipped.json
Exception thrown: Exception

"24 Oct 2024, 12:40:02"	

Fatal	no app in context	
Error
Class "OCA\Files\App" not found
Could not boot systemtags: Class "OCA\Files\App" not found

"24 Oct 2024, 12:39:59"	

Fatal	no app in context	
Error
Class "OCA\Files\App" not found
Could not boot systemtags: Class "OCA\Files\App" not found

"24 Oct 2024, 12:39:58"	

Fatal	no app in context	
Error
Class "OCA\Files\App" not found
Could not boot files_trashbin: Class "OCA\Files\App" not found

"24 Oct 2024, 12:39:58"	

Error	PHP	
ldap_read(): Search: No such object at /var/www/nextcloud/apps/user_ldap/lib/LDAP.php#307

"24 Oct 2024, 12:35:04"	

Error	PHP	
ldap_read(): Search: No such object at /var/www/nextcloud/apps/user_ldap/lib/LDAP.php#307



"24 Oct 2024, 12:35:04"	

Error	no app in context	
ServerNotAvailableException
Lost connection to LDAP server.
Exception thrown: OC\ServerNotAvailableException

"24 Oct 2024, 12:31:13"	

Error	PHP	
ldap_bind(): Unable to bind to server: Can't contact LDAP server at /var/www/nextcloud/apps/user_ldap/lib/LDAP.php#307

"24 Oct 2024, 12:31:13"	

Error	no app in context	
>> Member

"24 Oct 2024, 12:20:56"	

hi @virusfree100 welcome to the forum :handshake:

you are missing the required support template. Please fill this form out and edit into your post. This will give us the technical info and logs needed to help you. Thanks

At the first glance it looks you have many apps you don’t need e.g. ldap and saml integration, rightclick app and maybe (multiple) Talk apps. Otherwise I doubt *everything work perfectly" as you LDAP integration and many other apps seems non-functional

please post the list of apps and uninstall apps you don’t need.

Hey there, not sure if this will fix all the issues you’re facing, but I did run into an automatic update error which crashed nextcloud, and my error was very similar to yours:

An exception occurred while executing a query: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'argument_hash' at row 1

i checked my error logs and noticed the following:

[24-Oct-2024 17:14:02 UTC] PHP Warning:  Version warning: Imagick was compiled against ImageMagick version 1692 but version 1693 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0

Since I didn’t want to figure out how to change the imagemagick version or mess too heavily with my php configuration, i changed my php version from 8.1(what you’re using) to 8.3, and it now works just fine.

Hope that’s helpful in some way. check your /nextcloud/error_log file for additional errors, you might see one similar to what i described.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.