Project

General

Profile

Actions

Bug #1605

closed

[ux, locale, vcsserver] VCS Server fails to start due to invalid locale

Added by Oliver Strobel about 9 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
17.04.2015
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:
Affected Version:

Description

https://rhodecode.tenderapp.com/help/discussions/support-tickets/984-failure-installing-rc-3x

Traceback (most recent call last):
File "/opt/rhodecode/store/cbkdivr9p6wqvyaqsjjwblr0d9vn28kj-python2.7-RhodeCodeVCSServer-1.1.1/bin/..vcsserver-wrapped-wrapped", line 10, in
load_entry_point('RhodeCodeVCSServer==1.1.1', 'console_scripts', 'vcsserver')()
File "/opt/rhodecode/store/cbkdivr9p6wqvyaqsjjwblr0d9vn28kj-python2.7-RhodeCodeVCSServer-1.1.1/lib/python2.7/site-packages/vcsserver/main.py", line 336, in main
return command.run()
File "/opt/rhodecode/store/cbkdivr9p6wqvyaqsjjwblr0d9vn28kj-python2.7-RhodeCodeVCSServer-1.1.1/lib/python2.7/site-packages/vcsserver/main.py", line 330, in run
app.init()
File "/opt/rhodecode/store/cbkdivr9p6wqvyaqsjjwblr0d9vn28kj-python2.7-RhodeCodeVCSServer-1.1.1/lib/python2.7/site-packages/vcsserver/main.py", line 117, in init
self._configure_locale()
File "/opt/rhodecode/store/cbkdivr9p6wqvyaqsjjwblr0d9vn28kj-python2.7-RhodeCodeVCSServer-1.1.1/lib/python2.7/site-packages/vcsserver/main.py", line 142, in _configure_locale
locale.setlocale(locale.LC_ALL, self.locale)
File "/opt/rhodecode/store/ml27k6lrz2133cjx1xszlyxp2gg62lld-python-2.7.8/lib/python2.7/locale.py", line 579, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting

Root case is going to be an a partial and/or invalid value in the environment for the locale. Having it set like this works; LC_ALL=en_US.UTF-8

We should catch this nicely and suggest the solution of fixing the locale.

PS, Enterprise is also affected by this: https://bugs.rhodecode.com/issues/724

Actions

Also available in: Atom PDF