Xen/KVM Virtualization Management Application
  • 日本語
  • English

Karesansui Users


Erro 500

Added by Cícero Francisco da Silva 926 days ago

I could not deburg the problem of error 500. Does anyone have any suggestions?


Replies

Comment

RE: Erro 500 - Added by Taizo ITO 926 days ago

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"
Comment

RE: Erro 500 - Added by Anonymous 926 days ago

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

Comment

RE: Erro 500 - Added by Cícero Francisco da Silva 926 days ago

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

Comment

RE: Erro 500 - Added by Taizo ITO 926 days ago

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"

Comment

RE: Erro 500 - Added by Cícero Francisco da Silva 925 days ago

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

Comment

RE: Erro 500 - Added by Taizo ITO 925 days ago

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",
Comment

RE: Erro 500 - Added by Cícero Francisco da Silva 924 days ago

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 ..

Comment

RE: Erro 500 - Added by Taizo ITO 924 days ago

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.

Comment

RE: Erro 500 - Added by Cícero Francisco da Silva 923 days ago

ok. it worked. thank you very much!

Comment

RE: Erro 500 - Added by Anonymous 731 days ago

hi all!

  1. echo $LANG
    ru_RU.UTF-8
  1. 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"
    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 64, in ?
    t = gettext.translation('messages', karesansui.dirname + "/locale")
    File "/usr/lib/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'
  1. localedef -i en_US -f UTF-8 en_US.UTF-8
    locale -a | grep en_US
    en_US
    en_US.iso88591
    en_US.iso885915
    en_US.utf8

Adding LANG:

  1. cat /etc/opt/hde/lighttpd/conf.d/karesansui.conf | grep LANG
    "LANG" => "en_US.utf8"
  1. /etc/init.d/hde-lighttpd restart
    Stopping hde-lighttpd: [ OK ]
    Running hde-lighttpd: 2010-05-17 09:24:01: (configfile.c.864) source: cat conf.d/*.conf line: 41 pos: 28 parser failed somehow near here: REAL_SCRIPT_NAME
    2010-05-17 09:24:01: (configfile.c.864) source: /etc/opt/hde/lighttpd/lighttpd.conf line: 385 pos: 1 parser failed somehow near here: (EOL) [ ERROR ]
  1. cat /etc/opt/hde/lighttpd/conf.d/karesansui.conf | grep REAL
    # "REAL_SCRIPT_NAME" => ""
  1. /etc/init.d/hde-lighttpd start
    RUNING hde-lighttpd: [ OK ]

Checks whether...

Enter: http://sansi.tander/karesansui/v1/

Page load!
But no pictures, and links do not work.
Am using centos 5.4...

Comment

RE: Erro 500 - Added by Anonymous 731 days ago

We also managed!
We had to put a comma in konye line:

"LANG" => "en_US.utf8"

"LANG" => "en_US.utf8",

Reply