Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Debian Stretch: kopano-monitor not starting, "unable to initialize locale"

    Kopano Groupware Core
    3
    4
    365
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • goldingerit
      goldingerit last edited by

      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-8

      then run:
      systemctl daemon-reload

      and 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

      1 Reply Last reply Reply Quote 0
      • thctlo
        thctlo last edited by thctlo

        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.

        1 Reply Last reply Reply Quote 0
        • jengelh
          jengelh Banned last edited by

          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.

          thctlo 1 Reply Last reply Reply Quote 0
          • thctlo
            thctlo @jengelh last edited by

            @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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post