Nextcloud version (eg, 20.0.5): 26.0.1 (NextcloudPi Installation)
Operating system and version (eg, Ubuntu 20.04): Debian GNU/Linux 11 (bullseye)
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.56
PHP version (eg, 7.4): PHP 8.1.18
The issue you are facing:
As in the title I am having this issue which has been reported in the past.
Creating a new address book under contact settings, as suggested here, does not fix the issue since every time I refresh the page after doing so, I am once again greeted by importing is disabled because there are no address books available
with a greyed out “New Contact” button.
When I try to add a new contact after creating an address book and not refreshing the page I get a pop up notification stating unable to update contact
The problem started after a recent update to the contacts app in late June 2023, which I was forced to undertake because I could not access the login screen or exit maintenance mode without proceeding. All of my contacts also vanished after this update, but luckily i had backups.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Navigate to contacts section in Nextcloud GUI
- Under contact settings, add a new address book
3a. Refresh the page, or navigate elsewhere and then back to contacts
-or-
3b. Without refreshing the page or navigating away, create a new contact.
Upon attempting to save get a notificationunable to update contact
The most significant log entry I have found, which occurs constantly whenever I attempt any of the above steps, is in the the system log viewed with tail -f /var/log/syslog
:
NOTE: There is no user ncadmin
on my box as I renamed this user within ncp-config
during initial setup with no issues. The issues occurred after an update to the contacts app several weeks later.
Jul 6 11:51:34 nextcloudpi mariadbd[872]: 2023-07-06 11:51:34 646 [Warning] Aborted connection 646 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
Jul 6 11:51:34 nextcloudpi mariadbd[872]: 2023-07-06 11:51:34 649 [Warning] Aborted connection 649 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
Jul 6 11:51:34 nextcloudpi mariadbd[872]: 2023-07-06 11:51:34 650 [Warning] Aborted connection 650 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
Jul 6 11:51:34 nextcloudpi mariadbd[872]: 2023-07-06 11:51:34 651 [Warning] Aborted connection 651 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
Jul 6 11:51:34 nextcloudpi mariadbd[872]: 2023-07-06 11:51:34 652 [Warning] Aborted connection 652 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
Jul 6 11:51:35 nextcloudpi mariadbd[872]: 2023-07-06 11:51:35 662 [Warning] Aborted connection 662 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
Jul 6 11:51:35 nextcloudpi mariadbd[872]: 2023-07-06 11:51:35 663 [Warning] Aborted connection 663 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
Jul 6 11:51:36 nextcloudpi mariadbd[872]: 2023-07-06 11:51:36 664 [Warning] Aborted connection 664 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
Jul 6 11:52:40 nextcloudpi mariadbd[872]: 2023-07-06 11:52:40 673 [Warning] Aborted connection 673 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
The permissions for the contacts app directory are set to www-data.
If this is a permission or database issue, how can I tell nextcloud to purge the contacts database and make a new one for my user?
Any assistance is deeply appreciated. Thank you all.
Other logs
Summary
The output of your Nextcloud log in Admin > Logging:
OC\Files\View->changeLock()
/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php - line 191:
OCA\DAV\Connector\Sabre\Node->changeLock()
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1137:
OCA\DAV\Connector\Sabre\File->put()
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 492:
Sabre\DAV\Server->updateFile("*** sensiti ... *")
/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89:
Sabre\DAV\CorePlugin->httpPut()
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'datadirectory' => '/var/www/nextcloud/data/data',
'dbtype' => 'mysql',
'version' => '26.0.1.1',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'ncadmin',
'installed' => true,
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
),
'tempdirectory' => '/var/www/nextcloud/data/data/tmp',
'mail_smtpmode' => 'sendmail',
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => 'admin',
'mail_domain' => 'ownyourbits.com',
'preview_max_x' => '2048',
'preview_max_y' => '2048',
'jpeg_quality' => '60',
'overwriteprotocol' => 'https',
'maintenance' => false,
'logfile' => '/var/www/nextcloud/data/data/nextcloud.log',
'theme' => '',
'loglevel' => '2',
'log_type' => 'file',
'enforce_theme' => '',
);
The output of your Apache/nginx/system log in /var/log/____
:
ul 6 12:32:40 nextcloudpi mariadbd[872]: 2023-07-06 12:32:40 1119 [Warning] Aborted connection 1119 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
Jul 6 12:32:40 nextcloudpi mariadbd[872]: 2023-07-06 12:32:40 1123 [Warning] Aborted connection 1123 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
Jul 6 12:32:40 nextcloudpi mariadbd[872]: 2023-07-06 12:32:40 1122 [Warning] Aborted connection 1122 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
Jul 6 12:32:40 nextcloudpi mariadbd[872]: 2023-07-06 12:32:40 1120 [Warning] Aborted connection 1120 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
Jul 6 12:32:40 nextcloudpi mariadbd[872]: 2023-07-06 12:32:40 1124 [Warning] Aborted connection 1124 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
Jul 6 12:32:40 nextcloudpi mariadbd[872]: 2023-07-06 12:32:40 1125 [Warning] Aborted connection 1125 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
Jul 6 12:32:41 nextcloudpi mariadbd[872]: 2023-07-06 12:32:41 1126 [Warning] Aborted connection 1126 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
Jul 6 12:32:41 nextcloudpi mariadbd[872]: 2023-07-06 12:32:41 1127 [Warning] Aborted connection 1127 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
Jul 6 12:32:42 nextcloudpi mariadbd[872]: 2023-07-06 12:32:42 1135 [Warning] Aborted connection 1135 to db: 'nextcloud' user: 'ncadmin' host: 'localhost' (Got an error reading communication packets)
Jul 6 12:35:01 nextcloudpi CRON[6337]: (www-data) CMD (php -f /var/www/nextcloud/cron.php)