[Nextcloud] Upgrade (Mise à jour) 12 - 13 problem [En] [Fr]

Hello,
Last week-end I had a problem when I tried to upgrade Nextcloud from 12.0.4 to 13.0.2.
In fact it was a problem with the password for the root MySQL user. I identified this problem only after the migration to Stretch. See this post : ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Once this problem solved, I wanted to upgrade Nextcloud with this command
yunohost app upgrade nextcloud
It was a big fail : the upgrade failed, the restoration of the auto backup created before the upgrade process failed. En moreover, the web server was out of service.

I tried many things, and finally solved the problem like this :

I had another problem : my public ip address was banned (web, ssh). I did not find the solution in docs (debian, linux, fail2ban, sshd auth log, etc) so I rebooted my ISP router and got a new ip address.
Nath’