problem with running vcsserver-1 after upgrade rh from 4.2.1 to 4.3.0

Jaroslaw Darnowski's Avatar

Jaroslaw Darnowski

18 Aug, 2016 02:09 PM

After upgrade from Rhodecode 4.2.1 to 4.3.0 vcsserver can't start anymore.
Please check attached logs.

-----------------
/home/rhodecode/.rccontrol-profile/bin/rccontrol status

 - NAME: enterprise-1
 - STATUS: RUNNING
 - TYPE: Enterprise
 - VERSION: 4.3.0
 - VCS: vcsserver-1
 - URL: http://127.0.0.1:5010

 - NAME: vcsserver-1
 - STATUS: FATAL
 - TYPE: VCSServer
 - VERSION: 4.3.0
 - URL: http://127.0.0.1:10001
------------------------------

vcsserver.log shows:

Traceback (most recent call last):
  File "/opt/rhodecode/store/3lqziilawkdzzbxb0zsxcs6gkv9663w1-python2.7-rhodecode-vcsserver-4.3.0/bin/..vcsserver-wrapped-wrapped", line 8, in <module>
    from vcsserver.main import main
  File "/opt/rhodecode/store/3lqziilawkdzzbxb0zsxcs6gkv9663w1-python2.7-rhodecode-vcsserver-4.3.0/lib/python2.7/site-packages/vcsserver/main.py", line 33, in <module>
    from vcsserver.git import GitFactory, GitRemote
  File "/opt/rhodecode/store/3lqziilawkdzzbxb0zsxcs6gkv9663w1-python2.7-rhodecode-vcsserver-4.3.0/lib/python2.7/site-packages/vcsserver/git.py", line 39, in <module>
    from vcsserver.hgcompat import (
  File "/opt/rhodecode/store/3lqziilawkdzzbxb0zsxcs6gkv9663w1-python2.7-rhodecode-vcsserver-4.3.0/lib/python2.7/site-packages/vcsserver/hgcompat.py", line 31, in <module>
    from mercurial import extensions
  File "/opt/rhodecode/store/87myn79yl0h9yb0c524s5yibkkpp9y9w-python2.7-mercurial-3.8.4/lib/python2.7/site-packages/mercurial/extensions.py", line 18, in <module>
    from . import (
  File "/opt/rhodecode/store/87myn79yl0h9yb0c524s5yibkkpp9y9w-python2.7-mercurial-3.8.4/lib/python2.7/site-packages/mercurial/cmdutil.py", line 25, in <module>
    from . import (
  File "/opt/rhodecode/store/87myn79yl0h9yb0c524s5yibkkpp9y9w-python2.7-mercurial-3.8.4/lib/python2.7/site-packages/mercurial/crecord.py", line 31, in <module>
    locale.setlocale(locale.LC_ALL, '')
  File "/opt/rhodecode/store/k6v3cfsgj868b5bazyg67filfw4gqi48-python-2.7.11/lib/python2.7/locale.py", line 579, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
-------------------------------------------------------------------
System: OpenSUSE 13.3 64bit with kernel 3.12.59-47-default

head vcsserver.ini

################################################################################
# RhodeCode VCSServer - Configuration #
################################################################################

[DEFAULT]
host = 127.0.0.1
port = 10001
locale = en_US.UTF-8

.... [CUT]

  1. Support Staff 1 Posted by Marcin Kuzminsk... on 18 Aug, 2016 03:55 PM

    Marcin Kuzminski's Avatar

    Hi,

    have you changed something in your system ? Try settings your LC_ALL to en_US.UTF-8, and try again.

  2. 2 Posted by Jaroslaw Darnow... on 18 Aug, 2016 05:35 PM

    Jaroslaw Darnowski's Avatar

    Hello. Thank you for fast reply. No, Nothig was changes, just upgraded enterprise-1 and vcsserver-1 instances.
    Here's what I got:

    rhodecode@domino-bkp:/root> export LC_ALL=en_US.UTF-8
    rhodecode@domino-bkp:/root> export LANG=en_US.UTF-8

    ---------------------------

    rhodecode@domino-bkp:/root> /home/rhodecode/.rccontrol-profile/bin/rccontrol status
    /opt/rhodecode/store/bc656fqasmx1jmkglarvapy244bbh7dg-bash-4.3-p42/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
    /opt/rhodecode/store/bc656fqasmx1jmkglarvapy244bbh7dg-bash-4.3-p42/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

     - NAME: enterprise-1
     - STATUS: RUNNING
     - TYPE: Enterprise
     - VERSION: 4.3.0
     - VCS: vcsserver-1
     - URL: http://127.0.0.1:5010

     - NAME: vcsserver-1
     - STATUS: FATAL
     - TYPE: VCSServer
     - VERSION: 4.3.0
     - URL: http://127.0.0.1:10001

    ----------------------------------------
    As You can see problem is also with bash in rh store.
    This could be source of problems.

    I have absolutely no idea how to resolve this issue.

  3. Support Staff 3 Posted by Marcin Kuzminsk... on 18 Aug, 2016 06:43 PM

    Marcin Kuzminski's Avatar

    could it be that you don't have those locale on your system ?

    I have found one ticket on the system about that: https://issues.rhodecode.com/issues/4116

  4. 4 Posted by Jaroslaw Darnow... on 18 Aug, 2016 08:29 PM

    Jaroslaw Darnowski's Avatar

    Contents of /opt/rhodecode/store/bc656fqasmx1jmkglarvapy244bbh7dg-bash-4.3-p42/share/locale

    af cs el eo fi gl id lt pt_BR sk sv vi
    bg da en@boldquot es fr hr it nl ro sl tr zh_CN
    ca de en@quot et ga hu ja pl ru sr uk zh_TW

    cd /opt/rhodecode/store/bc656fqasmx1jmkglarvapy244bbh7dg-bash-4.3-p42/share/locale/pl/LC_MESSAGES/

    # ls
    bash.mo

    trying to set polish locale:
    export LC_ALL=pl_PL

    checking status:

    rhodecode@domino-bkp:~> .rccontrol-profile/bin/rccontrol status
    /opt/rhodecode/store/bc656fqasmx1jmkglarvapy244bbh7dg-bash-4.3-p42/bin/bash: warning: setlocale: LC_ALL: cannot change locale (pl_PL)
    /opt/rhodecode/store/bc656fqasmx1jmkglarvapy244bbh7dg-bash-4.3-p42/bin/bash: warning: setlocale: LC_ALL: cannot change locale (pl_PL)

     - NAME: enterprise-1
     - STATUS: RUNNING
     - TYPE: Enterprise
     - VERSION: 4.3.0
     - VCS: vcsserver-1
     - URL: http://127.0.0.1:5010

     - NAME: vcsserver-1
     - STATUS: FATAL
     - TYPE: VCSServer
     - VERSION: 4.3.0
     - URL: http://127.0.0.1:10001

    -----------------------

    domino-bkp:/home/rhodecode # cd /usr/share/locale
    domino-bkp:/usr/share/locale # ls
    ar el_GR es_ES fr_CH kk nn_NO sv
    as en es_GT fr_FR km or ta
    ast en_AU es_HN ga kn pa te
    be en@boldquot es_MX gl ko pl th
    be@latin en_CA es_NI gu locale.alias pl_PL tr
    bg en_GB es_PA he lt pt tr_TR
    bn en@IPA es_PE hi lv pt_BR ug
    bn_IN en_NZ es_PR hr mai pt_PT uk
    ca en@quot es_SV hu mk ro uk_UA
    ca@valencia en@shaw es_UY ia ml ru vi
    cs en_US es_VE id mr ru_RU wa
    cs_CZ eo et is nb ru_UA.koi8u zh
    da es et_EE it nb_NO sk zh_CN
    de es_AR eu it_CH nds sl zh_HK
    de_AT es_CL fa it_IT nds_DE sl_SI zh_TW
    de_CH es_CO fi ja ne sq
    de_DE es_CR fi_FI ja_JP.EUC nl sr
    dz es_DO fr ja_JP.eucJP nl_BE sr@ije
    el es_EC fr_CA ja_JP.SJIS nn sr@latin

    --------------------
    domino-bkp:/usr/share/locale # cd en_US/
    domino-bkp:/usr/share/locale/en_US # ls
    LC_MESSAGES
    domino-bkp:/usr/share/locale/en_US # cd LC_MESSAGES/
    domino-bkp:/usr/share/locale/en_US/LC_MESSAGES # ls
    command-not-found.mo mit-krb5.mo scout.mo zypp.mo
    desktop_translations.mo pam-config.mo zypper.mo
    domino-bkp:/usr/share/locale/en_US/LC_MESSAGES #

  5. Support Staff 5 Posted by Marcin Kuzminsk... on 19 Aug, 2016 06:19 PM

    Marcin Kuzminski's Avatar

    can you try to make sure the utf8 is used ? Seems for me that the whole problem is by missing locales somehow ?

  6. 6 Posted by Sebastian on 05 Feb, 2017 05:03 PM

    Sebastian's Avatar

    Any progress here? I encounter the same problem.

  7. Support Staff 7 Posted by Marcin Kuzminsk... on 05 Feb, 2017 05:05 PM

    Marcin Kuzminski's Avatar

    Hi Sebastian,

    Did you check also your locales on the system ? Can your current OS succesfully setup locales to en_US.utf8 ?

  8. 8 Posted by Sebastian on 05 Feb, 2017 05:29 PM

    Sebastian's Avatar

    Thank you for your hint. Looks like the problem was that my server was missing the locale which was set on the client I was connected via SSH. Sounds strange but after I installed it, the problem was gone.

  9. 9 Posted by sefter on 10 Apr, 2018 12:28 PM

    sefter's Avatar

    i have the same problem, my version vcsserver-1 is 4.11.6 (not starting, error unsupported locale)

    what can i do to fix the problem?

  10. Support Staff 10 Posted by Marcin Kuzminsk... on 13 Apr, 2018 08:58 AM

    Marcin Kuzminski's Avatar

    Hi,

    Have you looked at this ticket https://issues.rhodecode.com/issues/5434?

    Best,

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac