I currently have version 25.0.3.2 and am trying to update to the latest version, 27.1.4, but with every attempt using the web and command line to update, I get an error stating that there can’t be major upgrades and downgrades…My strategy is to update to each new build one by one until I reach the latest.
Is there a command line /occ upgrade for a specific build?
Is there a work around this issue?
Is there way to upload a installation file into the shell?
You can’t skip major versions. You can use the command-line updater:
sudo -u www-data php updater/updater.phar
This looks, downloads and extracts the code of the new version. In the end, it asks you if you want to execute the occ upgrade command which eventually runs the update itself. It should respect the supported upgrade path.
That is true on plain setup. If there is something in the background for the packaging, the upgrade path might be different and you have to go through the package manager of what you are using.
I need to update Nextcloud from 25.0.2 to the latest version. I understand I must update incrementally through all the versions. However, while doing the research to update from 25.0.2 to the latest version it seems the Nextcloud manual and what you suggest differ.
You suggest: sudo -u www-data php updater/updater.phar, will update to the next proper update. So one could move along the update path incrementally by repeating the command until the latest version is reached.
I seems like it. But does the Updater in command line mode update incrementally? So starting with version 25.0.2, I would repeat the Updater in command line mode until reaching the the latest version?
Does the Web-base Updater update incrementally? So starting with version 25.0.2, I would repeat the Web-base Updater until reaching the the latest version?
The update went OK until version 28.03. Any advice is welcomed.
I tried running occ db:add-missing-indices which returned: occ not found. I noticed file ownership is root:root.
I also noticed the following files in nextcloud/config …
-rw-r–r-- root root 0 Mar 11 2020 CAN_INSTALL
-rw-r–r-- root root 54131 Mar 11 2020 config.sample.php
… but not config.php.
Well after some time all the files in nextcloud/config have appeared and the file ownership is correct www-data www-data and config.php is there also.
There is the error message:
Security & setup warnings
It’s important for the security and performance of your instance that everything is configured correctly. To help you with that we are doing some automatic checks. Please see the linked documentation for more information.
Server has no maintenance window start time configured. This means resource intensive daily background jobs will also be executed during your main usage time. We recommend to set it to a time of low usage, so users are less impacted by the load caused from these heavy tasks. For more details see the documentation .
The database is missing some indexes. Due to the fact that adding indexes on big tables could take some time they were not added automatically. By running “occ db:add-missing-indices” those missing indexes could be added manually while the instance keeps running. Once the indexes are added queries to those tables are usually much faster. Missing optional index “textstep_session” in table “text_steps”. Missing optional index “fs_parent” in table “filecache”. Missing optional index “mounts_user_root_path_index” in table “mounts”. Missing optional index “systag_by_tagid” in table “systemtag_object_mapping”.
The PHP OPcache module is not properly configured. The OPcache interned strings buffer is nearly full. To assure that repeating strings can be effectively cached, it is recommended to apply “opcache.interned_strings_buffer” to your PHP configuration with a value higher than “8”… For more details see the documentation .
The database is used for transactional file locking. To enhance performance, please configure memcache, if available. For more details see the documentation .
Please double check the installation guides , and check for any errors or warnings in the log.
I ran sudo -u www0data php /path/to/nextcloud/occ db:add-missing-indices. Most of the Security & setup warnings were resolved except for this one:
There are some errors regarding your setup.
Some files have not passed the integrity check. [List of invalid files…] [Rescan…] For more details see the [documentation ].
The List of invalid files is drawio and other problems associated with it. I have an elaborate drawio document I do not want to lose or corrupt. In addition, version 28.0.4 will be available Mar-28-2024 maybe it will address a fix.
However, what can be done to solve the problem with drawio?
Technical information
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.
Now, as shown below core/js/mimetypelist.js is INVALID HASH. Is there a replacement hash?
Thanks!
Technical information
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.