Wednesday, December 18, 2013

couldn't set locale correctly

“couldn't set locale correctly”   (So just in case you see this message in the future then this is how got round it)


This caused the liveupgrade to fail –
ERROR: Could not update /etc/default/init file
INFORMATION: The file </var/sadm/system/logs/upgrade_log> on boot
environment <sol10u11BE> contains a log of the upgrade operation.
INFORMATION: The file </var/sadm/system/data/upgrade_cleanup> on boot
environment <sol10u11BE> contains a log of cleanup operations required.
INFORMATION: Review the files listed above. Remember that all of the files
are located on boot environment <sol10u11BE>. Before you activate boot
environment <sol10u11BE>, determine if any additional system maintenance
is required or if additional media of the software distribution must be
installed.
couldn't set locale correctly
The Solaris upgrade of the boot environment <sol10u11BE> failed.

We checked the /etc/default/init     file and it was similar on both servers
TZ=Eire
CMASK=022
LC_COLLATE=en_GB.ISO8859-15
LC_CTYPE=en_GB.ISO8859-1
LC_MESSAGES=C
LC_MONETARY=en_GB.ISO8859-15
LC_NUMERIC=en_GB.ISO8859-15
LC_TIME=en_GB.ISO8859-15


However after some investigation one of the suggestions was to cut the file down and to set the /etc/default/init     file to
TZ=Eire
CMASK=022

We then rebooted, resynced the disks and restarted the upgrade, this time it went through successfully..

So just in case you see this message in the future then this is how we fixed it

No comments:

Post a Comment