Giter Club home page Giter Club logo

Comments (25)

enoch85 avatar enoch85 commented on July 3, 2024 1

Made changes today, so you script is old.

from vm.

enoch85 avatar enoch85 commented on July 3, 2024

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.

from vm.

WaaromZoMoeilijk avatar WaaromZoMoeilijk commented on July 3, 2024

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

from vm.

enoch85 avatar enoch85 commented on July 3, 2024

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

from vm.

enoch85 avatar enoch85 commented on July 3, 2024

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

from vm.

WaaromZoMoeilijk avatar WaaromZoMoeilijk commented on July 3, 2024

I suppose this is a NC issue.

from vm.

enoch85 avatar enoch85 commented on July 3, 2024

@MorrisJobke Have you seen this before?

from vm.

marcal avatar marcal commented on July 3, 2024

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.

from vm.

enoch85 avatar enoch85 commented on July 3, 2024

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

from vm.

WaaromZoMoeilijk avatar WaaromZoMoeilijk commented on July 3, 2024

Issue is persistent on 2 machines

from vm.

enoch85 avatar enoch85 commented on July 3, 2024

@ezraholm50 with the update script?

Have you tested without?

from vm.

WaaromZoMoeilijk avatar WaaromZoMoeilijk commented on July 3, 2024

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.

from vm.

enoch85 avatar enoch85 commented on July 3, 2024

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

from vm.

marcal avatar marcal commented on July 3, 2024

Hello,

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

from vm.

enoch85 avatar enoch85 commented on July 3, 2024

@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

from vm.

Pe46dro avatar Pe46dro commented on July 3, 2024

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.

from vm.

marcal avatar marcal commented on July 3, 2024

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

from vm.

Pe46dro avatar Pe46dro commented on July 3, 2024

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

from vm.

enoch85 avatar enoch85 commented on July 3, 2024

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

from vm.

enoch85 avatar enoch85 commented on July 3, 2024

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

from vm.

WaaromZoMoeilijk avatar WaaromZoMoeilijk commented on July 3, 2024

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

from vm.

enoch85 avatar enoch85 commented on July 3, 2024

@ezraholm50 Have you tried the latest script?

from vm.

WaaromZoMoeilijk avatar WaaromZoMoeilijk commented on July 3, 2024

dont think so, wget it 2 days back.

from vm.

marcal avatar marcal commented on July 3, 2024

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

from vm.

enoch85 avatar enoch85 commented on July 3, 2024

@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!

from vm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.