Cannot set LC_MESSAGES to default locale: No such file or directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-8.0 (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
error occored during auto update
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: mysql-server-8.0 8.0.25-
ProcVersionSign
Uname: Linux 5.4.0-72-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
Date: Sun May 23 13:35:53 2021
ErrorMessage: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2017-10-19 (1311 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
Logs.var.
MySQLConf.
MySQLConf.
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
MySQLConf.
[mysqld_safe]
syslog
MySQLVarLibDirL
ProcCmdline: BOOT_IMAGE=
Python3Details: /usr/bin/python3.8, Python 3.8.5, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.17-4
RelatedPackageV
dpkg 1.19.7ubuntu3
apt 2.0.5
SourcePackage: mysql-8.0
Title: package mysql-server-8.0 8.0.25-
UpgradeStatus: Upgraded to focal on 2021-03-15 (69 days ago)
Setting up mysql-server-8.0 (8.0.25-
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
mysqld will log errors to /var/log/
mysqld is running as pid 26805
Error: Unable to shut down server with process id 26805
2021-05-
2021-05-
2021-05-
2021-05- 23T08:04: 45.498959Z 0 [System] [MY-013172] [Server] Received SHUTDOWN from user <via user signal>. Shutting down mysqld (Version: 8.0.25- 0ubuntu0. 20.04.1) . 23T08:04: 47.136531Z 0 [Warning] [MY-011068] [Server] The syntax 'validate password plugin' is deprecated and will be removed in a future release. Please use validate_password component instead. 23T08:05: 52.200064Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.25- 0ubuntu0. 20.04.1) (Ubuntu).
2021-05-
2021-05-
It looks like the shutdown for restarting to the new mysql took slightly over a minute. My guess is that this exceeded the allowed timeout and thus was erroneously assumed to be a service failure. The log shows another restart the same day which took only 1.5 seconds, so this seems like something intermittent. This behavior looks very similar to bug #1929314, and could well be a duplicate to that.
However, your logs show a more interesting issue. In several places through the logs there is a message:
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
This is probably not anything serious, and most likely unrelated to the upgrade failure. So it is likely of low importance. However, sometimes locale issues can hint at deeper problems so this may be worth further investigation at some point.
For these reasons let's focus this bug report not on the installation timeout, but rather on this locale warning.