Debian Stretch: kopano-monitor not starting, "unable to initialize locale"
-
Hi Forum
I don’t know if it’s a bug or not, but maybe it helps someone else with the same problem.
after upgrading kopano core to 8.6.80 (community) in debian stretch, kopano-monitor service was unable to start. error message was “unable to initialize locale”. this happend on a system with non en_US locale.
solution:
edit /lib/systemd/system/kopano-monitor.service and comment this line out (or change it to your system locale):
Environment=LC_CTYPE=en_US.UTF-8 LC_TIME=en_US.UTF-8then run:
systemctl daemon-reloadand you should be able to start kopano-monitor service again.
@ kopano-team: maybe this line can be removed from startscript in kopano core?
regards,
daniel -
Your solution works yes, but its better to use the following.
systemctl edit kopano-monitor.service
and add this part :[Service] Environment=LC_CTYPE=en_US.UTF-8 LC_TIME=en_US.UTF-8
This creates a file in /etc/systemd/systemd/kopano-monitor.service.d/override.conf
If you use
systemctl edit --full some.service
then a copy of the Original service fail is placed in /etc/systemd/systemd and you can edit that one. -
error message was “unable to initialize locale”. this happend on a system with non en_US locale.
You should make sure the locale is actually installed before trying to make use of it.
-
@jengelh said in Debian Stretch: kopano-monitor not starting, "unable to initialize locale":
error message was “unable to initialize locale”. this happend on a system with non en_US locale.
You should make sure the locale is actually installed before trying to make use of it.
Good point @jengelh , on Debian this is normaly already installed, then its only enabling it.
run :dpkg-reconfigure -plow locales
select the needed locales and restart the kopano service.