[Bug]: Database error when running migration for app polls
⚠️ This issue respects the following points: ⚠️
- [x] This is a bug, not a question or a configuration/webserver/proxy issue.
- [x] This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- [x] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- [x] I agree to follow Nextcloud's Code of Conduct.
Bug description
Nextcloud Server runs in Version 31.0.8. After updating the app polls, the server required to update the database. The process stopped with the error "Exception: Database error when running migration 080301 date 202508221 for app polls. An exception occured while executing a query: SQLSTATE[01000]: Warning 1265 Data truncated for column 'group_id' at row 1.
Steps to reproduce
1.When calling the server, it tries to update again with the same result. 2. 3.
Expected behavior
The update ends without error,
Nextcloud Server version
31
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- [x] Default user-backend (database)
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
Please check and report if needed in the Polls app repo.
Same here at the update. NC-Version is 30.0.13
Temporary fixed instance by disabling app polls on the comandline
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on
sudo -u www-data php /var/www/nextcloud/occ app:list
sudo -u www-data php /var/www/nextcloud/occ app:disable polls
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off
Similar problem on my site
My installation is snap based, so the commands from @Architecttheday are a little bit different:
sudo nextcloud.occ maintenance:mode --on
sudo nextcloud.occ app:list
sudo nextcloud.occ app:disable polls
sudo nextcloud.occ maintenance:mode --off
To get the server running again, I deleted the app Polls and will reinstall it later.