ended_at: 2020-08-30 19:17:42.829338 error: "Migration 0017_postgresql_9p6_to_11 did not complete, aborting. Error: Failed\ \ to run command 'pg_upgradecluster -m upgrade 9.6 main'.\nreturncode: 1\nstdout:\n\ Disabling connections to the old cluster during upgrade...\nRestarting old cluster\ \ with restricted connections...\nStopping old cluster...\n\nstderr:\nperl: warning:\ \ Setting locale failed.\nperl: warning: Please check that your locale settings:\n\ \tLANGUAGE = (unset),\n\tLC_ALL = (unset),\n\tLANG = \"fr_FR.UTF-8\"\n are supported\ \ and installed on your system.\nperl: warning: Falling back to the standard locale\ \ (\"C\").\nError: The locale requested by the environment is invalid:\n LANG:\ \ fr_FR.UTF-8\nError: Could not create target cluster\n\n" operation: tools_migrations_migrate_forward started_at: 2020-08-30 19:17:38.117884 success: false yunohost_version: 4.0.4 ============ 2020-08-30 21:17:38,128: INFO - Running migration 0017_postgresql_9p6_to_11... 2020-08-30 21:17:38,129: DEBUG - Running command: dpkg --list | grep '^ii ' | grep -q -w postgresql-9.6 2020-08-30 21:17:38,159: DEBUG - Running command: dpkg --list | grep '^ii ' | grep -q -w postgresql-11 2020-08-30 21:17:38,187: DEBUG - Running command: pg_lsclusters | grep -q '^9.6 ' 2020-08-30 21:17:38,256: DEBUG - Running command: systemctl stop postgresql 2020-08-30 21:17:38,272: DEBUG - Running command: pg_dropcluster --stop 11 main || true 2020-08-30 21:17:38,329: DEBUG - Running command: pg_upgradecluster -m upgrade 9.6 main 2020-08-30 21:17:42,828: ERROR - Migration 0017_postgresql_9p6_to_11 did not complete, aborting. Error: Failed to run command 'pg_upgradecluster -m upgrade 9.6 main'. returncode: 1 stdout: Disabling connections to the old cluster during upgrade... Restarting old cluster with restricted connections... Stopping old cluster... stderr: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "fr_FR.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Error: The locale requested by the environment is invalid: LANG: fr_FR.UTF-8 Error: Could not create target cluster Traceback (most recent call last): File "/usr/lib/moulinette/yunohost/tools.py", line 899, in tools_migrations_migrate migration.run() File "/usr/lib/moulinette/yunohost/data_migrations/0017_postgresql_9p6_to_11.py", line 40, in run self.runcmd("pg_upgradecluster -m upgrade 9.6 main") File "/usr/lib/moulinette/yunohost/data_migrations/0017_postgresql_9p6_to_11.py", line 62, in runcmd raise YunohostError("Failed to run command '{}'.\nreturncode: {}\nstdout:\n{}\nstderr:\n{}\n".format(cmd, returncode, out, err)) YunohostError: Failed to run command 'pg_upgradecluster -m upgrade 9.6 main'. returncode: 1 stdout: Disabling connections to the old cluster during upgrade... Restarting old cluster with restricted connections... Stopping old cluster... stderr: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "fr_FR.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Error: The locale requested by the environment is invalid: LANG: fr_FR.UTF-8 Error: Could not create target cluster