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

Happens on every Update, so does on update from 13.0.6 to 14.0.1 #11648

Closed
cpu2910 opened this issue Oct 5, 2018 · 8 comments
Closed

Happens on every Update, so does on update from 13.0.6 to 14.0.1 #11648

cpu2910 opened this issue Oct 5, 2018 · 8 comments

Comments

@cpu2910
Copy link

cpu2910 commented Oct 5, 2018

Update failed with message:
notifications: Failed to enable app notifications

notifications app wasn't enabled before the update.

I reported this issue many time before, but nothing happened.

And I bet that the error happened on the next update again...

@violoncelloCH
Copy link
Member

without filling in the issue template, we can't even try to reproduce your issue
please give some detailed information

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #8912 (Upgrade from 12.0.6 to 13.0.1 failed), #8894 (GUI: No update available from 12.0.6 to 13.0.1), #6039 (Update from 12.0.0 to 12.0.1), #8969 (theming app not working after update from 12.0.6 to 13.0.1), and #10932 (13.0.6).

@cpu2910
Copy link
Author

cpu2910 commented Oct 5, 2018

Sorry, here's some more info:

It's the same error as #6140 and #10453, both reported by me and describing the same behaviour.

Server configuration
debian 9.5 stretch

Apache 2.4.25

Maria-DB 10.1.26

PHP 7.0.30

14.0.1 (after the update)
Updated from 13.0.6

From the log:
Error | notifications | OC\HintException: Failed to enable app notifications-- | -- | --

That's all.
The notification wasn't enabled before the update and isn't after the update.

All other features in my nextcloud are running fine.

My suggestion: Check whether the notification is enabled before the update and do not try to activate it when not necessary?

@kesselb
Copy link
Contributor

kesselb commented Oct 7, 2018

You are running into this case

} catch (TableExistsException $e) {
throw new HintException(
'Failed to enable app ' . $app,
'Please ask for help via one of our <a href="https://nextcloud.com/support/" target="_blank" rel="noreferrer noopener">support channels</a>.',
0, $e
);
}

Installer tries to enable the app but table already exist. Could you check your database server for a table notification or notifications_pushtokens. If the app is disabled but these exist something went wrong.

If these tables exist i would create a backup before the next update, delete the tables (only notification and notifications_pushtokens), run update and see what happens 😄

You could try php occ app:enable notifications and php occ app:disable notifications? Maybe there is some helpful output 🙈

@cpu2910
Copy link
Author

cpu2910 commented Oct 8, 2018

There is an empty table named 'oc_notifications'. Could it be this one?

Then I'll try with the next update...

@kesselb
Copy link
Contributor

kesselb commented Oct 8, 2018

There is an empty table named 'oc_notifications'. Could it be this one?

Yes

@cpu2910
Copy link
Author

cpu2910 commented Oct 8, 2018

Thank you, I'll report after next update.

@cpu2910
Copy link
Author

cpu2910 commented Oct 18, 2018

Today I dropped empty table 'oc_notifications' from the database.
Then updated from 14.0.1 to 14.0.3 and the update runs flawlessly.
Thanks for your help!

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

4 participants