Hey guys,
im updated our Nextcloud 17.0.5 instance on Cent Os 7 with Apache and PHP 7.1 to Nextcloud 18.0.3 on 03. April 2020.
Since this update all our shared folders in the Nextcloud are inaccessiable and lost.
I found this article:
But wondering about:
The error apperas on Updating to NC 18.0.0 and not 18.0.3.
So I just followed up with this post:
we merged oc_share , oc_mounts and oc_storages from our backup (with INSERT IGNORE
) and then scanned the files with .../occ files:scan --all
I took my backup.sql.gz from 02. April 2020, uncompressed it and copied the following SQL statements:
LOCK TABLES oc_share
WRITE;
/*!40000 ALTER TABLE oc_share
DISABLE KEYS /;
INSERT IGNORE oc_share
VALUES …;
/!40000 ALTER TABLE oc_share
ENABLE KEYS */;
UNLOCK TABLES;
LOCK TABLES oc_mounts
WRITE;
/*!40000 ALTER TABLE oc_mounts
DISABLE KEYS /;
INSERT IGNORE oc_mounts
VALUES …;
/!40000 ALTER TABLE oc_mounts
ENABLE KEYS */;
UNLOCK TABLES;
LOCK TABLES oc_storages
WRITE;
/*!40000 ALTER TABLE oc_storages
DISABLE KEYS /;
INSERT IGNORE oc_storages
VALUES…;
/!40000 ALTER TABLE oc_storages
ENABLE KEYS */;
UNLOCK TABLES;
The MySQL Import is running fine wihtout any errors.
If im running the following command on Nextcloud OCC
cd /var/www/html/nextcloud
sudo -u apache occ files:scan --all
The imported mysql entries from the backup are getting deleted in my mysql database.
Is there any chance to get the shared folders back?
Next problem I found:
If we are sharing now folders on the Nextcloud 18.0.3 release we just can add 10 users to the share…not more.
Any ideas?