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

Update for NC20 and 21 to v2.0.2 #1732

Closed
dartcafe opened this issue Jun 11, 2021 · 12 comments
Closed

Update for NC20 and 21 to v2.0.2 #1732

dartcafe opened this issue Jun 11, 2021 · 12 comments
Milestone

Comments

@dartcafe
Copy link
Collaborator

dartcafe commented Jun 11, 2021

This is a bugfix which addresses the problem for the falsely released version 2.0.0

Pre-Release: https://github.com/nextcloud/polls/releases/tag/v2.0.2
Download ZIP: https://github.com/nextcloud/polls/releases/download/v2.0.2/polls-2.0.2.zip
Download TAR.GZ: https://github.com/nextcloud/polls/releases/download/v2.0.2/polls-2.0.2.tar.gz

Details:

  • this version is identically to version 1.9.6 (downgrade)
  • only compatible with Nextcloud 20 and 21
  • No changes to the database

more

To update the polls version manually:

  • disable polls
  • delete ../apps/polls in your Nextcloud installation
  • extract the contents of the package (after it is available) to ../apps in your Nextcloud installation, You should find a fresh created folder pollsin your apps folder
  • enable polls

Tested on NC21 with upgrade path 1.8.3 -> 1.9.5 -> 2.0.0 -> 2.0.1

@dartcafe dartcafe added this to the 1.9 milestone Jun 11, 2021
@dartcafe dartcafe pinned this issue Jun 11, 2021
@dartcafe
Copy link
Collaborator Author

dartcafe commented Jun 11, 2021

@v1r0x This worked, too. The CI test were all good and I saw no issues, since it is just a drop in replacement. Actually it is identically with version 1.9.6 and there were no database changes so far.

You can build this release from the head of branch stable-1.9 and fire it up to the appstore (tag v2.0.1)

🙏 Thanks to the stable-* branches this was less complex than feared. 😅

@nursoda
Copy link

nursoda commented Jun 11, 2021

Worked for me on NC21 with upgrade path 1.8.3 -> 1.9.5 -> 2.0.0 -> 2.0.1, too. (Arch, NGINX, PHP8, MariaDB)

@dartcafe dartcafe changed the title Update for NC20 and 21 to v2.0.1 - Help wanted for testing Update for NC20 and 21 to v2.0.2 - Help wanted for testing Jun 11, 2021
@solracsf
Copy link
Member

Tested 🆗 here, 21.0.2.

@FPasca
Copy link

FPasca commented Jun 12, 2021

worked for me too, NC21 and polls from 2.0.0 to 2.0.2, I changed ownership of extracted file to www-data (apache2 user).

@mMuck
Copy link

mMuck commented Jun 12, 2021

Worked.
Updated manually from 2.0.0 to 2.0.2 on NC21.
👍 Thanks

@dartcafe
Copy link
Collaborator Author

dartcafe commented Jun 12, 2021

Thanks for feedback. I changed the status from re-release to release

@dartcafe
Copy link
Collaborator Author

@v1r0x 2.0.2 (stable-1.9) is also ready for release as 1.9.7 (stable-1.8)

@schmidchr
Copy link

schmidchr commented Jun 13, 2021

update of polls app on Nextcloud 21.0.2 -> message on 'unsuccessful' update and recommendation to upgrade via command line:
sudo -u www-data php /var/www/nextcloud/occ upgrade

Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Updating <polls> ...
InvalidArgumentException: Column name "oc_polls_options"."owner" is NotNull, but has empty string or null as default.
Update failed
Maintenance mode is kept active
Resetting log level

=> stuck in maintenance mode

temporary solution to disable polls app (as described in #1723)
sudo -u www-data php /var/www/nextcloud/occ app:disable polls

manually turning off maintenance mode
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off

@szaimen
Copy link
Contributor

szaimen commented Jun 13, 2021

  • disable polls
  • delete ../apps/polls in your Nextcloud installation
  • extract the contents of the package (after it is available) to ../apps in your Nextcloud installation, You should find a fresh created folder pollsin your apps folder
  • enable polls

Also worked for me

@brtptrs
Copy link

brtptrs commented Jun 13, 2021

Manual upgrade to 2.0.2 on NC21.0.2 is working for us as well.
Thank you.

@dartcafe dartcafe changed the title Update for NC20 and 21 to v2.0.2 - Help wanted for testing Update for NC20 and 21 to v2.0.2 Jun 14, 2021
@dartcafe
Copy link
Collaborator Author

Version is released to appstore

@dartcafe dartcafe unpinned this issue Jun 14, 2021
@schmidchr
Copy link

confirmed, update via appstore to 2.0.2 and re-enabling the app:
sudo -u www-data php /var/www/nextcloud/occ app:enable polls

issue solved, thanks :)

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

8 participants