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

unable to upgrade wordpress: "Could not deactivate the 'wp-fail2ban' plugin." #208

Open
Toshiwoz opened this issue Jan 25, 2023 · 1 comment

Comments

@Toshiwoz
Copy link

Toshiwoz commented Jan 25, 2023

Describe the bug

When trying to update from version 5.9.3~ynh2 to 6.1.1~ynh1 I get the error message: [Error] Upgrade failed.

Apparently it's because the plugin wp-fail2ban cannot be deactivated (it is already deactivated, since the redux one is already there and active).

2023-01-24 23:49:14,235: DEBUG - + php7.4 /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress plugin is-installed wp-fail2ban
2023-01-24 23:49:15,319: DEBUG - + php7.4 /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress plugin deactivate wp-fail2ban
2023-01-24 23:49:16,019: WARNING - Warning: Could not deactivate the 'wp-fail2ban' plugin.
2023-01-24 23:49:16,019: DEBUG - Success: Deactivated 1 of 1 plugins.
2023-01-24 23:49:16,033: DEBUG - + php7.4 /var/www/wordpress/wp-cli.phar --allow-root --path=/var/www/wordpress plugin uninstall wp-fail2ban
2023-01-24 23:49:16,702: WARNING - Warning: The 'wp-fail2ban' plugin is active.
2023-01-24 23:49:16,702: WARNING - Error: No plugins uninstalled.
2023-01-24 23:49:16,719: DEBUG - + ynh_exit_properly
2023-01-24 23:49:17,224: DEBUG - + ynh_clean_setup
2023-01-24 23:49:17,225: DEBUG - + ynh_restore_upgradebackup
2023-01-24 23:49:17,225: DEBUG - + ynh_print_err '--message=Upgrade failed.'
2023-01-24 23:49:17,236: DEBUG - + ynh_print_log '[Error] Upgrade failed.'
2023-01-24 23:49:17,237: DEBUG - + echo -e '[Error] Upgrade failed.'
2023-01-24 23:49:17,237: DEBUG - + local app_bck=wordpress
2023-01-24 23:49:17,237: DEBUG - + NO_BACKUP_UPGRADE=0
2023-01-24 23:49:17,237: DEBUG - + ynh_backup_archive_exists wordpress-pre-upgrade2
2023-01-24 23:49:17,237: DEBUG - + yunohost backup list --output-as json --quiet
2023-01-24 23:49:17,237: WARNING - [Error] Upgrade failed.

Full log available here.

Context

  • Hardware: VPS bought online
  • YunoHost version: 11.0.11
  • I have access to my server: Through SSH | through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no (almost fresh install, some apps imported from an older yunohost server (wordpress sites among them)

Steps to reproduce

I tried from the web interface, as well from shell command, same result.

yunohost tools upgrade apps

Expected behavior

Regular upgrade.

Logs

Full log available here.

@Toshiwoz
Copy link
Author

Apparently I found a solution, that is to remove the old fail2ban plugin. After that, the upgrade works.

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

1 participant