-
Notifications
You must be signed in to change notification settings - Fork 45
Minimum Requirement Error
If you are attempting to install a release of the passwords app which requires a newer version of PHP or Nextcloud than in use on your server an exception prevents the upgrade.
Please note that PHP versions differ between the command line, the webserver and even different domains on your webserver.
Run php -v
as the the user executing cron command on your server to see which version of php is in use there.
Look at the "System" section in the Nextcloud admin area to see which version of PHP is used for your webserver.
Nextcloud 20.0.4 and before do not check PHP version requirements. They will install the latest available version of the app during the upgrade even if it does not work. This will leave your Nextcloud stuck in maintenance mode. You need to fulfill the PHP minimum requirement before updating Nextcloud. Nextcloud 21 and later seem to be not affected by this.
NOTE: The releases listed here are outdated and do not receive any support anymore!
NOTE: Only versions where your PHP version and your Nextcloud version are listed will work on your server.
PHP Version | Nextcloud Version | App Version | Download |
---|---|---|---|
7.1 | 12, 13, 14 | 2018.12.0 | download |
7.1 | 15, 16, 17 | 2019.12.1 | download |
7.2 | 16 | 2019.12.1 | download |
7.2 | 17, 18, 19, 20 | 2020.12.3 | download |
7.3 | 17, 18, 19, 20 | 2020.12.3 | download |
If you have already attempted to upgrade to an incompatible version of the app, you can still downgrade to the latest compatible version manually. You need command line access or file access to the installation folder of your Nextcloud for this
- Open the base folder of your Nextcloud installation
- Run
php ./occ config:app:get passwords installed_version
- Continue with the correct steps based on the version number
Example: You tried to upgrade from 2020.12.1 and the result of the previous command is 2020.12.1.
- Open the apps or custom_apps folder where the passwords app is installed
- Remove the current version with
rm -rf passwords
- Download the supported version for your server with
wget <copy link of compatible version listed above>
- Unpack the release with
tar -xf passwords.tar.gz
- Open the base folder of your Nextcloud installation
- Run
php ./occ maintenance:repair
- Run
php ./occ maintenance:mode
to see if your Nextcloud is still in maintenance mode - Run
php ./occ maintenance:mode --off
if your Nextcloud is stuck in maintenance mode
Example: You tried to upgrade from 2020.12.1 to 2021.1.0 and the result of the previous command is 2021.1.0.
- Open the apps or custom_apps folder where the passwords app is installed
- Remove the current version with
rm -rf passwords
- Download the supported version for your server with
wget <copy link of compatible version listed above>
- Unpack the release with
tar -xf passwords.tar.gz
- Open the base folder of your Nextcloud installation
- Run
php ./occ config:app:set passwords installed_version --version 2020.12.1
- Run
php ./occ maintenance:repair
- Run
php ./occ maintenance:mode
to see if your Nextcloud is still in maintenance mode - Run
php ./occ maintenance:mode --off
if your Nextcloud is stuck in maintenance mode
- Is your Nextcloud stuck in maintenance mode and no app can be opened?
- yes: Choose option 1
- no: Choose option 2
- Open the apps or custom_apps folder where the passwords app is installed
- Remove the "passwords" folder an all its contents
- Download the supported version for your server from the lists above
- Unpack it on your PC with
tar -xf passwords.tar.gz
or 7Zip - Make sure that the unpacked passwords folder contains the app files and not a second passwords folder
- Upload the unpacked passwords folder to your apps or custom apps folder
- If your Nextcloud is stuck in maintenance mode, remove the maintenance flag manually.
- Open the
config
folder in the root folder of your Nextcloud installation and download theconfig.php
. - Edit the file in a text editor and remove the line
"maintenance" => true,
. - Upload the changed file
- Open the
- If your Nextcloud still requires an upgrade, you might have to overwrite the app version in the database.
- Open the
<PREFIX>_appconfig
table and look for the entry where the appid ispasswords
and the configkey isinstalled_version
. - Set the value to the version you just downloaded and installed
- Example:
UPDATE `<PREFIX>_appconfig` SET configvalue = '2020.12.1' WHERE `appid` = 'passwords' AND `configkey` = 'installed_version'
- Open the
This option expects the app occ web to be installed.
- Run
occ config:app:set passwords installed_version --version 2020.12.1
in Nextcloud with occ web - Open the apps or custom_apps folder of your Nextcloud installation where the passwords app is installed
- Remove the "passwords" folder an all its contents
- Download the supported version for your server from the lists above
- Unpack it on your PC with
tar -xf passwords.tar.gz
or 7Zip - Make sure that the unpacked passwords folder contains the app files and not a second passwords folder
- Upload the unpacked passwords folder to your apps or custom apps folder
- Check the passwords app in Nextcloud