server icon indicating copy to clipboard operation
server copied to clipboard

[Bug]: Database error when running migration for app polls

Open mylaeus opened this issue 1 year ago • 5 comments

⚠️ This issue respects the following points: ⚠️

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.

Image

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

mylaeus avatar Aug 23 '25 08:08 mylaeus

Please check and report if needed in the Polls app repo.

solracsf avatar Aug 23 '25 12:08 solracsf

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

Architecttheday avatar Aug 23 '25 12:08 Architecttheday

Similar problem on my site

Image

EmPeWe avatar Aug 23 '25 17:08 EmPeWe

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

EmPeWe avatar Aug 23 '25 17:08 EmPeWe

To get the server running again, I deleted the app Polls and will reinstall it later.

mylaeus avatar Aug 23 '25 18:08 mylaeus