Bug 5098 - Ubuntu fails to start services with system locale set.
Summary: Ubuntu fails to start services with system locale set.
Status: CLOSED WORKSFORME
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Server OS (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.9.0
Assignee: Peter Åstrand
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-16 10:22 CEST by Henrik Andersson
Modified: 2018-04-24 16:58 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Henrik Andersson cendio 2014-04-16 10:22:37 CEST
I saw this on 13.10, installed 12.04 and made a clean installation of ThinLinc and which suffered from the same problem. The problem appears as tracebacks in vsmserver and error logging in tlwebaccess when trying to connect using a username with non ascii characters.

When manual restarting service using service command the system locale environment is used and services works as expected.
Comment 1 Henrik Andersson cendio 2014-04-16 10:40:38 CEST
There are also a problem with tl-setup which unsets locale which will make the services run with wrong locale.
Comment 2 Pierre Ossman cendio 2014-04-16 13:45:13 CEST
This bug revealed a more fundamental problem with non-ascii usernames (see bug 5102). Depending on the outcome of that bug, this bug might be irrelevant.
Comment 3 Pierre Ossman cendio 2015-02-05 11:23:21 CET
According to this page, all services will have locale set when Ubuntu switches to systemd:

https://wiki.ubuntu.com/SystemdForUpstartUsers
Comment 4 Samuel Mannehed cendio 2018-04-23 17:06:02 CEST
Testing Ubuntu 16.04 and haven't seen any problems. This is the environment for the vsmserver process:

> root@dhcp-253-174:/proc/27417# cat environ | tr '\0' '\n'
> SHELL=/bin/bash
> GTK_MODULES=gail:atk-bridge
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/opt/>thinlinc/bin:/opt/thinlinc/sbin
> QT_QPA_PLATFORMTHEME=appmenu-qt5
> PWD=/
> LANG=en_US.UTF-8
> SHLVL=2
> XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
> _=/opt/thinlinc/sbin/vsmserver

So it looks like it is running with a locale set? Close?
Comment 5 Samuel Mannehed cendio 2018-04-24 16:58:14 CEST
Verified that it runs with a locale set both when started manually and after a machine reboot. Works fine in both cases.

We assume that this got fixed when Ubuntu switched from upstart to systemd. The amount of supported non-systemd Ubuntu installations out there is probably not very big, so we are closing this bug.

Note You need to log in before you can comment on or make changes to this bug.