-
Notifications
You must be signed in to change notification settings - Fork 262
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
Mail App can't be enabled any more after upgrade to 1.11.0 #5755
Comments
Hello all, I have the same issue. Log-File
Logging[index] Error: Exception: Too few arguments to function OCA\Mail\Migration\ProvisionAccounts::__construct(), 0 passed in XXX/nextcloud/lib/private/Repair.php on line 129 and exactly 1 expected at <>
POST /nextcloud/index.php/settings/apps/enable Server configurationNextcloud 20.0.14 This is the first time I am reporting a bug. I hope I have shared the correct log file. Thanks and Regards Thomas P. |
nextcloud/server#29974 should help debug this. @camouflage81 note that Nextcloud 20 has reached EOL: https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule. Consider upgrading to 21 or newer. |
@steglicd how familiar are you with php development? You might have to debug something for me. |
Bad news: I'm not able to reproduce this error yet. On a clean CI installation the app can be installed without any error. |
|
I was just able to trigger this with Nextcloud 20. 21 and newer are still not reproducible.
|
Possible explanations for this:
|
Next test will be against nextcloud/server#29974 so we can see the original error trace. |
@ChristophWurst tell me what you need. Maybe I can help. |
Hello, I would like to update the "Nextcloud" to version 21. I will try the repair tonight. I hope I understand the instructions. Thanks and Greetings |
Understandable. Time to get a new hoster :) |
I upgraded one of my instances to NC 22.2.3. With Nextcloud 22.2.3 issue is gone. So for user which are able to upgrade, this is a good workaround. But still one bad thing in my opinion is that the mail app upgrade broke the whole instance. Don't know if this is more a issue of NC or if the mail app can fix this. My 21.0.0 Instance still is affected if @ChristophWurst needs some debug data. |
I tested with the latest 21.0.x. Will test again with 21.0.0. |
I'm guessing that due to it's EOL status, this is not going to be fixed for NC 20? I ask because I'm still running Nextcloud on Ubuntu 18.04 LTS which has a MariaDB version that's too old to be supported by NC 21. I was hoping to ride it out until Ubuntu 22.04 LTS was released, but now it seems like I can't wait that long. |
Correct. I'll see what needs to be fixed for 21, if anything. What I've tested so far
|
Just for the record... I'm having the same issue. And I'm also on a shared hosting provider that won't upgrade to MySQL8 anytime soon since it isn't backwards compatible. I'm planning to migrate my Nextcloud to another provider, but that will take me quite some time so I would be very happy about a fix for NC 20 since I'm using the Mail app as my main email application for some time now... |
There won't be another 20 release and I can't change that. If you are lucky there might be a patch. But you are running outdated software that does not only not get any more bugfixes but also no security patches. Don't stay on outdated Nextcloud 20 lightly. @bendilobi what precise version of Nextcloud do you use? |
Test results are in. This is only reproducible with 21.0.0, anything newer works. Could you all affected please confirm that you run 21.0.0 and nothing more recent? Thanks. |
If someone wants to help narrow this down please study all PRs in https://github.com/nextcloud/server/issues?page=1&q=is%3Aclosed+milestone%3A%22Nextcloud+21.0.1%22. I'm unable to find the one that fixed this issue. To sum things up I'll fix this bug as a wontfix because it only happens on largely outdated installations of Nextcloud. Stay save, friends. Update your Nextcloud regularly ✌️ You can use https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule as the main source for releases, versions and EOL. |
Well, updating my Nextcloud means moving my domain and all my other projects to another provider, so that sucks... I'm currently on NC 20.0.14... |
Fair point btw. This was addressed with nextcloud/server#25112. Failing repair steps no longer bring down the whole instance. |
@bendilobi I understand the frustration. But there really isn't anything I can do to improve this. I've spent half my work day on this. |
@bendilobi you could dig through this, find the fix and port it for your version. https://github.com/nextcloud/server/compare/v21.0.0..v21.0.1 can also be used to only compare code changes. |
@ChristophWurst thanks for looking into this. And thanks for all the work you're putting into the mail app, it's really getting more and more useful. |
NC upgrade fixed it. |
Expected behavior
upgraded Mail app
Actual behavior
I was notified about a pending update of Mail app. I pressed the update button in the apps menu and got:
"Es ist ein Fehler aufgetreten. Es kann nicht fortgefahren werden"
After reloading the page, my nextcloud instance was in maintenance mode.
Then I ran on console:
docker exec --user www-data nextcloud php occ maintenance:mode --off
WEB UI now told me I need to perform a Nextcloud upgrade and that Mail app will be upgraded (did not take a screenshot but it looked similar to this: #5741 (comment))
then I'm back in maintenance mode.
To get Nextcloud up and running again I needed this:
docker exec --user www-data nextcloud php occ app:disable mail
Now back to the apps Menu -> enable Mail app -> "Es ist ein Fehler aufgetreten. Es kann nicht fortgefahren werden"
logs:
Server configuration
Debian 10
Nginx (docker)
mysql
PHP 7.4.16
Nextcloud 21.0.0
The text was updated successfully, but these errors were encountered: