I’m running Nextcloud from FreeBSD @Ports collection however, I haven’t upgraded the system for a while and as a result things are quite out of sync.
Trying to upgrade now and there was a problem stating that the ‘lazy’ and ‘type’ columns in the table ‘oc_appconfig’ were missing.
I am running Postgresql version 12. I logged into the db server and created the columns as such:
alter table oc_appconfig add lazy VARCHAR(255);
alter table oc_appconfig add type VARCHAR(255);
and now I’m getting this error:
Exception: Updates between multiple major versions and downgrades are unsupported.
Update failed
From what the DB states, the version of Nextcloud seems to be 26 while the webapp claiming 29.
After reading a little it seems that ‘skipping’ versions isn’t supported in NC, so I am not really sure what to do?
At this point I am wondering if there are any files with the DB upgrade commands available like some webapps have which of the type .sql format?
Basically so that I can manually run the necessary DB update steps to get the version to the current one without having to pull different versions of the webapp in then upgrade accordingly?
Or if the update commands are available elsewhere like github or something?? I’m trying to search but not having much luck unfortunately.
Reading around and I did find a forum posting about this however, the versions were so old the thread got closed
If I run the occ upgrade command I get:
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
Setting 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
Resetting log level
occ upgrade
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
Setting log level to debug
Exception: Updates between multiple major versions and downgrades are unsupported.
Update failed
Maintenance mode is kept active
Resetting log level
I wonder if there is a way to either log or see the output of the: occ upgrade command??
I did check the nextlcoud.log file but it isn’t coming up with anything usable for me.
Is there anything that can be done or that I can try to get my NC instance upgraded?
Like I mentioned it would really help if the ‘occ upgrade’ command would log information or using the -vvv switch would provide a sequence of what was going on.
I even tried setting debug mode to on but it didn’t seem to do anything.
Any ideas would be great right now…
I’m not using Docker so anything related to that won’t exactly work, it’s more an issue with my NC instance I think as I’ve been upgrading from many previous versions. But then why could I get on to version 28.0.9 pulling the code from here then extracting into my web server: https://nextcloud.com/changelog/#latest27
but then going to version 29.0.0 or 29.0.5 just doesn’t work at all???