Plone not starting ValueError: unknown locale: UTF-8

Plone not starting ValueError: unknown locale: UTF-8

我已经使用统一安装程序安装了 Plone。

我尝试使用 :

启动 plone
plone@localhost [zeocluster]# ./bin/plonectl start
zeoserver: . 
daemon process started, pid=6738
client1: . 
daemon process started, pid=6743
client2: . 
daemon process started, pid=6756

当我检查状态时,我得到以下信息:

plone@localhost [zeocluster]# ./bin/plonectl start
zeoserver: . 
daemon process started, pid=6738
client1: . 
daemon process started, pid=6743
client2: . 
daemon process started, pid=6756

当我尝试 运行 fg 中的 client1 时,得到以下响应。

plone@localhost [zeocluster]# ./bin/client1 fg
2015-07-14 03:57:35 INFO ZServer HTTP server started at Tue Jul 14 03:57:35 2015
Hostname: 0.0.0.0
Port: 8080
2015-07-14 03:57:35 INFO Zope Set effective user to "plone_daemon"
2015-07-14 03:57:35 ERROR Application Could not import Products.ATContentTypes
.......
......
File "/usr/local/Plone/Python-2.7/lib/python2.7/locale.py", line 443, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8 

我什至尝试使用 :

查找本地
plone@localhost [bin]# printenv LANG
en_US.UTF-8

我的 buildout.cfg 也有以下值:

environment-vars =
    LC_ALL en_US.UTF-8
    LANG en_US.UTF-8 

谁能帮我解决这个问题。

http://plone-training.readthedocs.org/en/latest/plone_training_config/instructions.html 针对您的错误建议如下(针对 OSX 和 Vagrant,但我想您也可以尝试一下,即使您有不同的设置):

In that case you have to [set] the localized keyboard and language settings in the .bash_profile of the vagrant user to your locale (e.g. en_US.UTF-8 or de_DE.UTF-8)

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8