Added by Cícero Francisco da Silva 926 days ago
I could not deburg the problem of error 500. Does anyone have any suggestions?
Once you has stopped lighty web service temporarily, then you can debug how the program are working.
root# /etc/init.d/hde-lighttpd stop
root# su -s /bin/bash wwwhde -c "KARESANSUI_CONF=/etc/opt/karesansui/application.conf SEARCH_PATH=/opt/karesansui/lib/python:/opt/hde/lib/python:/opt/pysilhouette/lib/python /opt/karesansui/bin/karesansui.fcgi"already executed this command. however unable to make a deburg. you have another solution? you msn, hotmail or live? mine is silva.cicero @ hotmail.com
Taizo ITO wrote:
Once you has stopped lighty web service temporarily, then you can debug how the program are working.
root# /etc/init.d/hde-lighttpd stop root# su -s /bin/bash wwwhde -c "KARESANSUI_CONF=/etc/opt/karesansui/application.conf SEARCH_PATH=/opt/karesansui/lib/python:/opt/hde/lib/python:/opt/pysilhouette/lib/python /opt/karesansui/bin/karesansui.fcgi"
already executed this command. however unable to make a deburg. you have another solution? you msn, hotmail or live? mine is silva.cicero @ hotmail.com
Does the terminal show any error messages after you execute the following command and go to 'http://_hostname_:8080/karesansui/v1/' by web browser?
root# su -s /bin/bash wwwhde -c "KARESANSUI_CONF=/etc/opt/karesansui/application.conf SEARCH_PATH=/opt/karesansui/lib/python:/opt/hde/lib/python:/opt/pysilhouette/lib/python /opt/karesansui/bin/karesansui.fcgi"
no port 8080. to run the command su-s / bin / bash-c wwwhde "KARESANSUI_CONF = / etc / opt / karesansui / application.conf SEARCH_PATH = / opt / karesansui / lib / python: / opt / hde / lib / python: / opt / pysilhouette / lib / python / opt / karesansui / bin / karesansui.fcgi. The following errors have:
ysilhouette/lib/python /opt/karesansui/bin/karesansui.fcgi"
Traceback (most recent call last):
File "/opt/karesansui/bin/karesansui.fcgi", line 49, in ?
sys.exit(main())
File "/opt/karesansui/bin/karesansui.fcgi", line 45, in main
import karesansui, karesansui.app
File "/opt/karesansui/lib/python/karesansui/app.py", line 87, in ?
import karesansui.urls
File "/opt/karesansui/lib/python/karesansui/urls.py", line 15, in ?
import karesansui.gadget.index
File "/opt/karesansui/lib/python/karesansui/gadget/index.py", line 15, in ?
import karesansui.gadget.host
File "/opt/karesansui/lib/python/karesansui/gadget/host.py", line 23, in ?
from karesansui.lib.checker import Checker, \
File "/opt/karesansui/lib/python/karesansui/lib/checker.py", line 63, in ?
t = gettext.translation('messages', karesansui.dirname + "/locale")
File "/usr/lib64/python2.4/gettext.py", line 458, in translation
raise IOError(ENOENT, 'No translation file found for domain', domain)
IOError: [Errno 2] No translation file found for domain: 'messages
Hi,
It seems that unsupported 'locale' setting causes this error.
Sorry, only 'en' or 'ja' is supported by Karesansui.
Please check your environment variable 'LANG' by this command.
echo $LANG
If it is not the supported locale, please modify configuration file and restart lighty daemon.
emacs /etc/opt/hde/lighttpd/conf.d/karesansui.conf
this is context diff...
--- karesansui.conf.orig 2009-11-05 10:23:28.000000000 +0900
+++ karesansui.conf 2009-11-05 10:23:20.000000000 +0900
@ -36,6 +36,7 @
"bin-environment" => (
"KARESANSUI_CONF" => var.vendor-sysconfdir + "/karesansui/application.conf",
"SEARCH_PATH" => var.vendor-pythonpath + ":" + var.pysilhouette-pythonpath + ":" + var.karesansui-pythonpath,
+ "LANG" => "en_us.utf-8",
"REAL_SCRIPT_NAME" => ""
),
"socket" => var.vendor-datadir + "/karesansui.fcgi",my $LANG:
pt_BR.UTF-8
changed the file / etc / opt / hde / lighttpd / conf.d / karesansui.conf as your e-mail, but failed. It gives an error regardless of location placed
Iniciando hde-lighttpd: 2009-11-05 11:50:26: (configfile.c.864) source: cat conf.d/*.conf line: 39 pos: 15 parser failed somehow near here: +
2009-11-05 11:50:26: (configfile.c.864) source: /etc/opt/hde/lighttpd/lighttpd.conf line: 385 pos: 1 parser failed somehow near here: (EOL)
[FALHOU]
+ "LANG" => "en_us.utf-8",
"REAL_SCRIPT_NAME" => ""
),
"socket" => var.vendor-datadir + "/karesansui.fcgi",
fastcgi.server = (
"/karesansui.fcgi" => ((
"bin-path" => var.karesansui-bindir + "/karesansui.fcgi",
"bin-environment" => (
"KARESANSUI_CONF" => var.vendor-sysconfdir + "/karesansui/application.conf",
"SEARCH_PATH" => var.vendor-pythonpath + ":" + var.pysilhouette-pythonpath + ":" + var.karesansui-pythonpath,
Am using centos 5.4 Installing clear language portugês Brazil. So sorry if my English is not very nice ..
Hi,
Sorry, the configuration example on my previous post is in context diff format.
A "+" represents the addition of a line. So you must remove a "+" charactor.
ok. it worked. thank you very much!
hi all!
Adding LANG:
Checks whether...
Enter: http://sansi.tander/karesansui/v1/
Page load!
But no pictures, and links do not work.
Am using centos 5.4...
We also managed!
We had to put a comma in konye line:
"LANG" => "en_US.utf8"
"LANG" => "en_US.utf8",
Copyright © 2009-2011 Karesansui Project. All rights reserved.
