NethServer Version: 7.7.1908
Hi
Not sure what have happend with my nextcloud but I get his error when I tryint to access from the webinterface
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
Not sure what to do.
At first I was thinking it maybe was my MySQL but my MySQL server I canât see anything that is connected to Nextcloud and in the Nethserver applications I canât see MySQL and I do not remember how I did install nextcloud.
SQLSTATE[42S02]: Base table or view not found: 1146 Table ânextcloud.oc_filecache_extendedâ doesnât exist"
I think there was a problem when upgrading Nextcloud and at least a migration script was unsuccessful.
Which Nextcloud version do you have?
rpm -q nethserver-nextcloud nextcloud
Can you search logs or yum history to find out what version you had and the version you upgraded to? Maybe you upgraded Nextcloud skipping some major version (like version 17).
sudo -u apache scl enable rh-php72 -- php -dmemory_limit=512M /usr/share/nextcloud/occ migrations:status core
give me
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
>> App: core
>> Version Table Name: oc_migrations
>> Migrations Namespace: OC\Core\Migrations
>> Migrations Directory: /usr/share/nextcloud/core/Migrations
>> Previous Version: 16000Date20190427105638
>> Current Version: 16000Date20190428150708
>> Next Version: 17000Date20190514105811
>> Latest Version: 18000Date20191204114856
>> Executed Migrations: 20
>> Executed Unavailable Migrations: 20
>> Available Migrations: 24
>> New Migrations: 24
>> Pending Migrations: None
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Set log level to debug
Turned on maintenance mode
Exception: Updates between multiple major versions and downgrades are unsupported.
Update failed
Maintenance mode is kept active
Reset log level
The problem is that Nextcloud doesnât like upgrading skipping major versions (for example, like in your case, upgrading from 16.x to 18.x, skipping 17.x). One possible solution could be to downgrade \*nextcloud packages from 18.x to 17.x , then upgrade from 17.x to 18.x . Check the process described in the wiki.
Another solution could be to manually execute the previous migration scripts, but havenât tested if it works, so if you try have a backup at least of the database an tell us if it worked:
If it stills fails after executing that migration, maybe other migrations steps shall be ran. I think you can tell that by running again the core status command and looking at the Next Version line, which might describe the next migration step to run. I believe the next steps would be:
Well I did trying the first one and it set me in maintenance mode and after I turn it off I get âUpdates between multiple major versions are unsupportedâ.
So I think is easy for me is to reinstall a new nethserver and new nextcloud.
Just out of curiosity tested option 2. Apparently worked in this way but cannot recommend it as Iâm unsure if thereâs any step missing using this method and it is supposed to be used for development and debugging purposes:
While Next Version was different from Already at latest migration step, got next version:
Then manually edited nextcloud config.php file faking the Version number to the next major release (i.e., if you had 16.x.x.x, use 17.0.0.0).
Then executed occ upgrade command:
Moreover, after updating some apps and checking nextcloud log, it was flooded with Deprecated event type for OCA\User_LDAP\User\User::postLDAPBackendAdded: null. This Info message flooding the logs is probably unrelated to the upgrade method:
Didnât work for me⌠As I still have few users, is it possible to completely delete the package and install version 18? Do I have to drop nextcloud database after deleting the package?