Giter Club home page Giter Club logo

Comments (13)

alcy avatar alcy commented on July 17, 2024

Also, I have tested the dependencies. All are ok. Manually as well as from the check-dependencies script.

from collectd-web.

httpdss avatar httpdss commented on July 17, 2024

Thanks for your feedback alcy!
I cant do much about point (1), i'll just alert collectd core about it.

from collectd-web.

httpdss avatar httpdss commented on July 17, 2024

Point (2) ... that happens when the ajax asks for the hosts list ... host list remains bank and without notice. i'll add a dialog for it

from collectd-web.

httpdss avatar httpdss commented on July 17, 2024

Point (3) ... i cannot reproduce the error :s
from the collectd-web folder try this:
/usr/bin/perl cgi-bin/time.cgi

do you get the timezone ??

from collectd-web.

alcy avatar alcy commented on July 17, 2024

Hi, the time.cgi script executes fine.

/usr/bin/perl cgi-bin/time.cgi
Content-Type: application/json

{"tz":"5.5"}

from collectd-web.

alcy avatar alcy commented on July 17, 2024

Also, I think the datadir related inconsistency is probably due to a faulty default configuration file for collectd supllied in the debian package. It doesn't have an include directive for collection.conf (like it has for filters.conf and thresholds.conf)

from collectd-web.

httpdss avatar httpdss commented on July 17, 2024

i've changed the perl command on the top of each cgi. see if that fixes the issue.

from collectd-web.

httpdss avatar httpdss commented on July 17, 2024

still having this issue ?

from collectd-web.

alcy avatar alcy commented on July 17, 2024

Sorry for the delayed response, but I haven't been actively using collectd-web for some time now, hence can't comment. If I do try it again, will let you know of any problems.

from collectd-web.

httpdss avatar httpdss commented on July 17, 2024

ok! no problem then ... closing ticket! ;)

from collectd-web.

stefancocora avatar stefancocora commented on July 17, 2024

I can confirm that point 3 is still happening (all dependencies have been met)

./runserver.py

Collectd-web server running at http://127.0.0.1:8888/
localhost - - [17/Oct/2011 17:01:50] "GET / HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/css/blueprint/screen.css HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/css/blueprint/print.css HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/css/custom-theme/jquery-ui-1.8.custom.css HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/css/base.css HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/js/external/jquery-1.4.4.min.js HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/js/jquery.livequery.js HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/js/jquery-ui-1.8.custom.min.js HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/js/jquery.jclock.js HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/js/external/date.js HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/js/jquery.validate.pack.js HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/js/base.js HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/js/graph-menu.js HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/css/custom-theme/images/ui-bg_gloss-wave_35_f6a828_500x100.png HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/images/loading.gif HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/css/custom-theme/images/ui-bg_highlight-soft_100_eeeeee_1x100.png HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/css/custom-theme/images/ui-bg_glass_100_f6f6f6_1x400.png HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /media/css/custom-theme/images/ui-icons_ef8c08_256x240.png HTTP/1.1" 200 -
localhost - - [17/Oct/2011 17:01:50] "GET /cgi-bin/collection.modified.cgi?action=hostlist_json HTTP/1.1" 200 -
Traceback (most recent call last):
File "/usr/lib/python2.7/CGIHTTPServer.py", line 251, in run_cgi
os.execve(scriptfile, args, env)
OSError: [Errno 13] Permission denied
localhost - - [17/Oct/2011 17:01:50] CGI script exit status 0x7f00
localhost - - [17/Oct/2011 17:01:50] "GET /cgi-bin/time.cgi HTTP/1.1" 200 -
Traceback (most recent call last):
File "/usr/lib/python2.7/CGIHTTPServer.py", line 251, in run_cgi
os.execve(scriptfile, args, env)
OSError: [Errno 13] Permission denied
localhost - - [17/Oct/2011 17:01:50] CGI script exit status 0x7f00

from collectd-web.

salazarp avatar salazarp commented on July 17, 2024

This seems to be an old problem and has probably been fixed, but I got the the same behaviour as described above (OSError: [Errno 13] Permission denied), and after looking at the code in file CGIHTTPServer.py (line 253), found that the http process tries to switch to user 'nobody':

        (...)
        # Child
        try:
            try:
                os.setuid(nobody)
        (...)

which, at least in my setup, was causing the problem. We have since chowned the collectd-web directory to user nobody, and launched the app like this:

 su -c "./runserver.py  192.168.2.150 8888" nobody

Now the standalone frontend is running correctly.

from collectd-web.

farfabet avatar farfabet commented on July 17, 2024

Hi,

Just to confirm and complete what slazarp is saying.
You have to make sure that collectd-web path is accessible to user nobody, basically I had the issue because I was lauching the standalone from /root/collectd-web which is not accessible to anyone but root.

I moved it in /opt/ for a cleaner setup and it worked fine.

from collectd-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.