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

Can't upgrade from 9.0.51 to 10.0.0 #35

Closed
marcal opened this issue Sep 25, 2016 · 25 comments
Closed

Can't upgrade from 9.0.51 to 10.0.0 #35

marcal opened this issue Sep 25, 2016 · 25 comments

Comments

@marcal
Copy link

marcal commented Sep 25, 2016

Hello,

I have a virtual machine with 9.0.51 (stable). I have chosen the Stable release channel (it doesn't speak about 9.0.53).
I have decided to make the update to version 10.0.0
So I have downloaded the last version of the update script

After that, I run the command
sudo nextcloud_update.sh
And I have an error message

Updated database ==> Green so OK
Exception: files can't be disabled. ==> RED
Update failed ==> RED

The command sudo -u www-data php /var/www/nextcloud/occ upgrade

will always have the problem
Can you please tell me what I am missing?
My Nextcloud is completely empty (I only installed it and never made anything with it).

I have no idea about what log I can provide.

Thank you
Marc

@enoch85
Copy link
Member

enoch85 commented Sep 25, 2016

sudo nextcloud_update.sh

I'm surprised that the script even runs with just sudo. You need to type sudo bash nextcloud_update.sh

But as this is a brand new install I'd recomend to just wipe the 9.0.51 VM and start over with the newest version instead. The newest version is 10.0.0 and with some other updates as well, so that would be the best option.

@WaaromZoMoeilijk
Copy link
Member

WaaromZoMoeilijk commented Sep 25, 2016

I can verify the issue same here. Workaround is to move dav, files,
federate to ander folder upgrade and move them back. This throws invalid
hash warnings for the mentioned folders

@enoch85
Copy link
Member

enoch85 commented Sep 25, 2016

Gaah, everything is so much easier to script with apt-get.

@enoch85
Copy link
Member

enoch85 commented Sep 25, 2016

@ezraholm50 Sure this is a VM issue and not a Nextcloud issue? I'm on IRC btw.

@WaaromZoMoeilijk
Copy link
Member

WaaromZoMoeilijk commented Sep 25, 2016

I suppose this is a NC issue.

@enoch85
Copy link
Member

enoch85 commented Sep 25, 2016

@MorrisJobke Have you seen this before?

@marcal
Copy link
Author

marcal commented Sep 26, 2016

Hello,
Yes, I did sudo bash and not sudo directly (as it is necessary for the scripts I didn't write it. Im am sorry about it.
I will make a new virtual machine with 10 later.

@enoch85
Copy link
Member

enoch85 commented Sep 26, 2016

Ok, please test the new version and see if the same issue appears, then repoen this issue if it does. Thank you!

@enoch85 enoch85 closed this as completed Sep 26, 2016
@WaaromZoMoeilijk
Copy link
Member

Issue is persistent on 2 machines

@enoch85
Copy link
Member

enoch85 commented Sep 26, 2016

@ezraholm50 with the update script?

Have you tested without?

@WaaromZoMoeilijk
Copy link
Member

Haven't tested without, but the only fail will be the occ upgrade command. Can't think of any other command that would let it fail. only the rsync lines are ran before it.

@enoch85
Copy link
Member

enoch85 commented Sep 26, 2016

Please test and get post your findings here @marcal @ezraholm50 Thanks!

@marcal
Copy link
Author

marcal commented Sep 27, 2016

Hello,

I can confirm that the fail is with the occ upgrade command

@enoch85
Copy link
Member

enoch85 commented Sep 27, 2016

@marcal Have you tested without running the update script and just manually upgraded with the occ command? Please provide the exact steps.

Steps to reproduce

@enoch85 enoch85 reopened this Sep 27, 2016
@Pe46dro
Copy link
Collaborator

Pe46dro commented Sep 27, 2016

I suppose it can be the same problem I found in #29 with file owner and file group

I didn't tried to reproduce the problem but this is only a suggestion.

@marcal
Copy link
Author

marcal commented Sep 28, 2016

Hello,

Here is what I did (and the result like you requested)

  1. sudo apt-get update

  2. sudo apt-get upgrade

  3. sudo aptitude full-upgrade

  4. sudo wget https://download.nextcloud.com/server/releases/nextcloud-10.0.0.tar.bz2 -P /var/www

  5. sudo tar -xjf /var/www/nextcloud-10.0.0.tar.bz2 -C /var/www

#6 Necessary or won't work
6) sudo bash /var/scripts/setup_secure_permissions_nextcloud.sh

  1. sudo -u www-data php /var/www/nextcloud/occ upgrade

As a result, I have (the 4 first lines are green so it is OK

Before the error

Updated <provisioning_api> to 1.0.0
Updating ...
Updated to 1.0.1
Updating ...

The real error

An unhandled exception has been thrown:
Error: Call to undefined method OCA\Federation\AppInfo\Application::setupCron() in /var/www/nextcloud/apps/federation/appinfo/update.php:23
Stack trace:
#0 /var/www/nextcloud/lib/private/legacy/app.php(1220): include()
#1 /var/www/nextcloud/lib/private/Updater.php(375): OC_App::updateApp('federation')
#2 /var/www/nextcloud/lib/private/Updater.php(252): OC\Updater->doAppUpgrade()
#3 /var/www/nextcloud/lib/private/Updater.php(151): OC\Updater->doUpgrade('9.1.0.16', '9.0.51.0')
#4 /var/www/nextcloud/core/Command/Upgrade.php(292): OC\Updater->upgrade()
#5 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(259): OC\Core\Command\Upgrade->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/nextcloud/3rdparty/symfony/console/Application.php(844): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/nextcloud/3rdparty/symfony/console/Application.php(192): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\Upgrade), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/nextcloud/3rdparty/symfony/console/Application.php(123): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/nextcloud/lib/private/Console/Application.php(146): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/nextcloud/console.php(90): OC\Console\Application->run()
#11 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')

Marc

@Pe46dro
Copy link
Collaborator

Pe46dro commented Sep 28, 2016

A similar issue was reported at nextcloud/server#531 they suggest to follow the manual installation guide

@enoch85
Copy link
Member

enoch85 commented Sep 28, 2016

Question remains; is this an issue with the VM, or a user error, or a error with Nextcloud itself?

@enoch85
Copy link
Member

enoch85 commented Sep 29, 2016

Updated the update script and tested it. This is not an issue in the VM anymore --> close

To get the latest update script and update, run: sudo bash /var/scripts/update.sh

@enoch85 enoch85 closed this as completed Sep 29, 2016
@WaaromZoMoeilijk
Copy link
Member

As for me this is a VM/script issue. Just tried it again, script fails, manual upgrade works.

@enoch85
Copy link
Member

enoch85 commented Sep 29, 2016

@ezraholm50 Have you tried the latest script?

@WaaromZoMoeilijk
Copy link
Member

dont think so, wget it 2 days back.

@enoch85
Copy link
Member

enoch85 commented Sep 29, 2016

Made changes today, so you script is old.

@marcal
Copy link
Author

marcal commented Sep 30, 2016

Hello,

I made a test with the command and it didn't work. Am I doing something wrong?

sudo bash /var/scripts/update.sh

Updating database schema (green so ok)
Updated database (green so ok)
Exception: files can't be disabled. (RED)
Update failed (RED)

After that, I went to the website (my nextcloud server)
and did the update (button)

Préparation de la mise à jour
Réglage du niveau de log à "debug"
Mode de maintenance activé
Vérification de la possibilité de mettre à jour le schéma de la base de données (cela peut prendre un certain temps selon la taille de la base de données)
[1 / 27]: Vérification de la table oc_appconfig
[2 / 27]: Vérification de la table oc_storages
[3 / 27]: Vérification de la table oc_mounts
[4 / 27]: Vérification de la table oc_mimetypes
[5 / 27]: Vérification de la table oc_filecache
[6 / 27]: Vérification de la table oc_group_user
[7 / 27]: Vérification de la table oc_group_admin
[8 / 27]: Vérification de la table oc_groups
[9 / 27]: Vérification de la table oc_preferences
[10 / 27]: Vérification de la table oc_properties
[11 / 27]: Vérification de la table oc_share
[12 / 27]: Vérification de la table oc_jobs
[13 / 27]: Vérification de la table oc_users
[14 / 27]: Vérification de la table oc_authtoken
[15 / 27]: Vérification de la table oc_bruteforce_attempts
[16 / 27]: Vérification de la table oc_vcategory
[17 / 27]: Vérification de la table oc_vcategory_to_object
[18 / 27]: Vérification de la table oc_systemtag
[19 / 27]: Vérification de la table oc_systemtag_object_mapping
[20 / 27]: Vérification de la table oc_systemtag_group
[21 / 27]: Vérification de la table oc_privatedata
[22 / 27]: Vérification de la table oc_file_locks
[23 / 27]: Vérification de la table oc_comments
[24 / 27]: Vérification de la table oc_comments_read_markers
[25 / 27]: Vérification de la table oc_credentials
[26 / 27]: Vérification de la table oc_admin_sections
[27 / 27]: Vérification de la table oc_admin_settings
Mise à jour du schéma de la base de données vérifiée
Recherche de mises à jour d'applications
Mise à jour du schéma de la base de données pour les applications vérifiée
Mise à jour du schéma de la base de données
Base de données mise à jour
Exception: files can't be disabled.

It seems to be the same problem

@enoch85
Copy link
Member

enoch85 commented Sep 30, 2016

@marcal Strange, I just tested to upgrade from 10.0.0 to 10.0.1 with the script (the old one before the upgrade, and also the new one) and it worked both times.

We can't control the occ stuff, please report this bug in https://github.com/nextcloud/server instead.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants