Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed update to 10.0.9 #32388

Closed
pichtj opened this issue Aug 20, 2018 · 18 comments
Closed

Failed update to 10.0.9 #32388

pichtj opened this issue Aug 20, 2018 · 18 comments

Comments

@pichtj
Copy link

pichtj commented Aug 20, 2018

When updating from 10.8.5 to 10.0.9, the system stayed in maintenance mode. After manually leaving maintenance mode and starting the update with the button "Aktualisierung starten", I received the following error message:

OC\RepairException: Upgrade is not possible
Reperaturwarnung:You have incompatible or missing apps enabled that could not be found or updated via the marketplace.
Reperaturwarnung:Please install or update the following apps manually or disable them with: occ app:disable activity occ app:disable files_pdfviewer occ app:disable files_texteditor occ app:disable gallery occ app:disable templateeditor
Reperaturwarnung:For manually updating, see https://doc.owncloud.org/server/10.0/go.php?to=admin-marketplace-apps

And detailed error message:

Update vorbereiten
Log-Level auf "debug" gesetzt
Wartungsmodus eingeschaltet
Reperaturwarnung:You have incompatible or missing apps enabled that could not be found or updated via the marketplace.
Reperaturwarnung:Please install or update the following apps manually or disable them with: occ app:disable activity occ app:disable files_pdfviewer occ app:disable files_texteditor occ app:disable gallery occ app:disable templateeditor
Reperaturwarnung:For manually updating, see https://doc.owncloud.org/server/10.0/go.php?to=admin-marketplace-apps
OC\RepairException: Upgrade is not possible

Side note to the translator: "Reperaturwarnung" is a spelling error and should be "Reparaturwarnung".

Server configuration

Operating system:
Linux dd8102 3.13.0-153-generic #203-Ubuntu SMP Thu Jun 14 08:52:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Web server:
Apache

Database:
mysql

PHP version:
7.1

Where did you install ownCloud from:
hoster provided version, then many upgrades

Signing status (ownCloud 9.0 and above):
I fixed the signing status errors before the upgrade.

The content of config/config.php:
'dbtype' => 'mysql',
'version' => '10.0.9.5',
'logtimezone' => 'Europe/Berlin',
'installed' => true,
'theme' => '',
'loglevel' => 2,
'maintenance' => false,
'mail_smtpmode' => 'php',

@ownclouders
Copy link
Contributor

GitMate.io thinks possibly related issues are #23107 (New Install Problems (9.0.0)), #32376 (unable to update to 10.0.9), #23238 (Failure during upgrade to 9.0), #32374 (Fehler beim Update auf 10.0.9 Error while Update to 10.0.9), and #23244 (Update to 9.0.0 failed).

@pichtj
Copy link
Author

pichtj commented Aug 20, 2018

After manually disabling the modules via the database, the update completed successfully and the apps could be updated manually via the market, except for templateeditor.

@pichtj
Copy link
Author

pichtj commented Aug 20, 2018

BTW this instance is also hosted at all-inkl.com. Still would be good to understand the root cause.

@Schladihps
Copy link

Dear pichtj, guess what i have exactly the same issue after upgrade like you described. But i have no idea about coding. I tried to check the ticket numbers above but no result. Would you please so kind and explain in small steps how you did "manually disabling the modules via db"
thanks in advance

@pichtj
Copy link
Author

pichtj commented Aug 23, 2018

  1. From your config/config.php, find your dbtableprefix and your connection details
  2. Connect to your database
  3. Run the following SQL statements, e.g. from phpMyAdmin (on all-inkl.com, phpMyAdmin is reachable via KAS):
    UPDATE <dbtableprefix>_appconfig SET configvalue = 'no' WHERE configkey = 'enabled' AND appid IN ('activity', 'files_pdfviewer', 'files_texteditor', 'gallery', 'templateeditor');

@Schladihps
Copy link

Yes, very cool ! I had to replace dbtableprefix_appconfig with oc_appconfig and the upgrade finished.
Want touch it anymore. You safed my day. Thanks.

@PVince81
Copy link
Contributor

Are your OC instances able to connect to the Internet ?

Normally when you run the upgrade, OC will connect to the marketplace and will download a recent version of all the listed apps, like activity, etc.

In case your OC instances are offline, in an intranet or for some reason they are not allowed to connect to outside servers, then you'd need to go through the manual update procedure as described in https://doc.owncloud.org/server/10.0/go.php?to=admin-marketplace-apps

@PVince81
Copy link
Contributor

Are there more messages before the one ?
There should be some additional messages about why it cannot update, some marketplace checks, etc

@Schladihps
Copy link

Dear PVince81, to be honest i trust in the craft of the programer who does prepare the upgrade script. But to answer your question yes the page is in the internet reachable. And the message was OC\RepairException: Upgrade is not possible
Reperaturwarnung:You have incompatible or missing apps enabled that could not be found or updated via the marketplace.
Reperaturwarnung:Please install or update the following apps manually or disable them with: occ app:disable activity occ app:disable files_pdfviewer occ app:disable files_texteditor occ app:disable gallery occ app:disable templateeditor
So i oppened my provider access and went to the db there i could open myphpadmin. Then i entered the SQL statement from pichtj. And over ftp i changed the maintenance value to false. So the upgrade could finish.
I'm a System Engineer / Network Tech with no deep programing skills.
But after the upgrade finished i was able to update the marketplace over the apps gui from 2.x to somethng new.
I would suggest to do a wireshark session to find out whether the gui / upgrade script or the db direct needs internet connectivity.
I hope you can digest my writing and it would give you a hint.

@PVince81
Copy link
Contributor

occ upgrade works fine on our local environments, so not sure what is different in yours

Hmm, it is possible that the useful debug messages actually appear if you run the update with occ upgrade on the CLI. It is possible that the messages I was expecting are not propagated when updating in the web UI.

@pichtj
Copy link
Author

pichtj commented Aug 24, 2018

Unfortunately, my web hoster does not allow me to run occ from the command line, so I must rely on the web interface. Any idea where I could look for the log messages?

@PVince81
Copy link
Contributor

now thinking, did you guys actually use the web updater to upgrade (especially if you have no CLI acess) ? this could have other side effects.

the web updater aka updater app is located in the settings page of the admin in a running instance.

@pichtj
Copy link
Author

pichtj commented Aug 24, 2018

Yes, I updated through the settings page, logged in as the admin user.

@PVince81
Copy link
Contributor

@VicDeo ^

@Farbauti
Copy link

Thanks pichtj,
I ran into the same problem (funny I host on all-inkl too) and was able to finish the update with your fix.

@nibbsification
Copy link

Hi everyone. Is there a similar way for an SQlite database?
phpliteadmin finds the owncloud.db, but tells me No table in database.

@nibbsification
Copy link

It worked with phpliteadmin too. Same command as @pichtj wrote:
UPDATE oc_appconfig SET configvalue = 'no' WHERE configkey = 'enabled' AND appid IN ('activity', 'calendar', 'files_pdfviewer', 'files_texteditor', 'gallery', 'templateeditor', 'tasks');
Thank you sooooo much.

@stale
Copy link

stale bot commented Sep 20, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants