Comments (25)
Made changes today, so you script is old.
from vm.
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.
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.
Gaah, everything is so much easier to script with apt-get.
from vm.
@ezraholm50 Sure this is a VM issue and not a Nextcloud issue? I'm on IRC btw.
from vm.
I suppose this is a NC issue.
from vm.
@MorrisJobke Have you seen this before?
from vm.
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.
Ok, please test the new version and see if the same issue appears, then repoen this issue if it does. Thank you!
from vm.
Issue is persistent on 2 machines
from vm.
@ezraholm50 with the update script?
Have you tested without?
from vm.
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.
Please test and get post your findings here @marcal @ezraholm50 Thanks!
from vm.
Hello,
I can confirm that the fail is with the occ upgrade command
from vm.
@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.
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.
Hello,
Here is what I did (and the result like you requested)
-
sudo apt-get update
-
sudo apt-get upgrade
-
sudo aptitude full-upgrade
-
sudo wget https://download.nextcloud.com/server/releases/nextcloud-10.0.0.tar.bz2 -P /var/www
-
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
- 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.
A similar issue was reported at nextcloud/server#531 they suggest to follow the manual installation guide
from vm.
Question remains; is this an issue with the VM, or a user error, or a error with Nextcloud itself?
from vm.
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.
As for me this is a VM/script issue. Just tried it again, script fails, manual upgrade works.
from vm.
@ezraholm50 Have you tried the latest script?
from vm.
dont think so, wget it 2 days back.
from vm.
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.
@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)
- Error installing nextcloud HOT 4
- Adminer css url changed HOT 2
- Netdata installation fails HOT 6
- Adminer not being maintained anymore HOT 10
- Realtek Driver Update HOT 1
- NextCloud VM installation error -Adminer HOT 1
- Fail2ban fails on Ubuntu 24.04 HOT 2
- Installation doesn't work on Ubuntu 22.04 HOT 2
- /var/log/nextcloud/audit.log is not rotating
- Multiple available Nextcloud updates potentially lead to reboot during update process HOT 10
- Upgrade from Nextcloud 28.0.6 to 29.0.1 results in security warning HOT 20
- Cron <root@cloud> which zfs-auto-snapshot > /dev/null || exit 0 ; zfs-auto-snapshot --quiet --syslog --label=frequent --keep=4 // HOT 8
- Apache server startup failed after running Activate TLS script (Ubuntu 22.04 / Nextcloud 29.0.2) HOT 16
- Bitwarden - Error when updating using bitwarden.sh script HOT 4
- Script is not accessible HOT 2
- proxmox install (vz restore 29.0 - HUB 8), python3-distutils no install candidate HOT 7
- Sorry but something went wrong. HOT 10
- nextcloud_install_production.sh now missing? HOT 5
- Is https://download.nextcloudvm.com supposed to be online? HOT 9
- I'm "always welcomed" if accessing freshly installed NC via Proxy - Thus can't access NC itself. HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vm.