Project

General

Profile

Actions

Bug #5297

open

Locale fails on a SuSE system

Added by Oliver Eichler over 5 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
28.04.2017
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:
Affected Version:

Description

The used system is a minimal server with SuSE Leap 42.2 installed. I use RhodeCode-installer-linux-build20170418_2200 to install.

The VCSServer failes to start. See attached server log.

The root cause seems to be a failing "locale.setlocale(locale.LC_ALL, u'')".

On the server I get for locale:

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

If I use the server's python environment I can do:

import locale
locale.setlocale(locale.LC_ALL, u'')

As a result I get "en_US.UTF-8"

If I use the python environment from RhodeCode by:

rccontrol ishell comunnity-1

The code snippet will fail with the same error message as in the log.

Probably the python environment shipped with RhodeCode is expecting a different locale setup than what's done in SuSE.


Files

vcsserver.log (505 KB) vcsserver.log Oliver Eichler, 28.04.2017 17:24
Actions

Also available in: Atom PDF