在集群上安装hue debian系统。启动过程中报如下错误 Traceback (most recent call last):
File "/usr/local/hue/branch-3.7.1/build/env/bin/hue", line 9, in <module>
load_entry_point('desktop==3.9.0', 'console_scripts', 'hue')()
File "/usr/local/hue/branch-3.7.1/desktop/core/src/desktop/manage_entry.py", line 57, in entry
execute_from_command_line(sys.argv)
File "/usr/local/hue/branch-3.7.1/build/env/local/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/usr/local/hue/branch-3.7.1/build/env/local/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/hue/branch-3.7.1/build/env/local/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/hue/branch-3.7.1/build/env/local/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/base.py", line 285, in execute
output = self.handle(*args, **options)
File "/usr/local/hue/branch-3.7.1/desktop/core/src/desktop/management/commands/runcherrypyserver.py", line 68, in handle
runcpserver(args)
File "/usr/local/hue/branch-3.7.1/desktop/core/src/desktop/management/commands/runcherrypyserver.py", line 124, in runcpserver
start_server(options)
File "/usr/local/hue/branch-3.7.1/desktop/core/src/desktop/management/commands/runcherrypyserver.py", line 98, in start_server
server.bind_server()
File "/usr/local/hue/branch-3.7.1/desktop/core/src/desktop/lib/wsgiserver.py", line 1656, in bind_server
raise socket.error, msg
socket.error: [Errno 98] Address already in use
但这不是重点 重点是页面依然能登进去 但是登录之后就报一个字符编码的错误 如下所示
UnicodeDecodeError at /about/'ascii' codec can't decode byte 0xe7 in position 833: ordinal not in range(128)Request Method: | GET | Request URL: | http://220.181.98.44:8000/about/ | Django Version: | 1.6.10 | Exception Type: | UnicodeDecodeError | Exception Value: | 'ascii' codec can't decode byte 0xe7 in position 833: ordinal not in range(128) | Exception Location: | /tmp/tmpxsd080/desktop/common_footer.mako.py in render_body, line 42 | Python Executable: | /usr/local/hue/branch-3.7.1/build/env/bin/python2.7 | Python Version: | 2.7.9 |
能简单看出是ascii无法解析那个字符 但是不知道该从何下手该 按网上的 设置python 默认编码为utf-8 但是依旧没能解决问题 求高手指点
|