-
Notifications
You must be signed in to change notification settings - Fork 73
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
Database error when running migration 050100Date20230515083001 for app polls Column "oc_polls_options"."poll_option_hash" is NotNull #3067
Comments
Yes, unfortunately polls must be enabled for that. Comming from 3.8.4 is a huge step. But I got behind that: The default for option_hash is set to an empty string which obviously also forbidden when null is not allowed. I guess we have to set |
Many Thanks @dartcafe - I can confirm updating to 5.3.2 and then enabling polls app resolve my problem. |
Good news. And thank you for that very detailed report. That helped a lot! I wish everybody reports that good. |
@bastianlstrube (here again for others having this problem) yes, if you have console access to the server that the nextcloud is installed on you can use the occ script in the nextcloud folder to update only the polls app (which is blocking the update) and afterwards continue with the update. On my server this was (run in the nextcloud folder):
|
I got the exact same issue
it works |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What went wrong, what did you observe?
Issue #2884 seems to have re-appear in a slightly different form...
I've just updated from NC24 to NC25.0.10:
From looking at discussion above this looks like similar problem relating to poll_option_hash. My guess is that the migration fix added to 5.0.5 added as result of discussion above is failing because neither hash is present or column is null...
These are Nextcloud error log enteries:
Just logged into the database, and it would appear that 'poll_option_hash' column doesn't exist...
https://user-images.githubusercontent.com/64636731/266703706-679b5df2-d671-45dc-91cc-81997b206a17.png
https://user-images.githubusercontent.com/64636731/266703714-f79c25da-a5c9-4d52-b769-2aaf38521e02.png
What did you expect, how polls should behave instead?
When you try and re-enable poll after updating from Nextcloud 24 to 25, the migration process should run to completion and polls should end up enabled.
What steps does it need to replay this bug?
Difficult to say whether this would be re-produced with fresh install of nextcloud 24, install of polls (version from release of NC24?) and then update to NC25, upgrade polls and try to enable polls...
However these were circumstances in which I can re-reproduce issue:
Installation method
Installed/updated from the appstore (Apps section of your site)
Installation type
Updated from a minor version within same major version (i.e. 4.0.0 to 4.1.1)
Affected polls version
Upgrade to 5.3.0
Which browser did you use, when experiencing the bug?
Other browser
No response
Add your browser log here
Additional client environment information
No response
NC version
Nextcloud 25 (Nextcloud Hub 3)
Other Nextcloud version
25.0.10
PHP engine version
PHP 8.1
Other PHP version
No response
Database engine
MariaDB
Database Engine version or other Database
10.5.22
Which user-backends are you using?
Add your nextcloud server log here
![Screenshot 2023-09-08 at 13 02 50](https://github.com/nextcloud/polls/assets/64636731/a1a9d863-4e74-437b-8f68-469e73e5acea)
Additional environment informations
No response
Configuration report
List of activated Apps
Nextcloud Signing status
Additional Information
As suggested by @dartcafe I've tried running polls:db:rebuild but apparently command isn't know in the name space...
The text was updated successfully, but these errors were encountered: