LPAR2RRD JavaScript error
Comments
-
Hi,
1. check appache error log for any error:
It is usualy somewhere in /var:
find /var -name error_log
grep lpar2rrd error_log| tail -50
2. Try to restart apache:
apachectl stop
apachectl start
3. please try to check Firefox browser console for errors, maybe some missing file(s):
Press [F12], then click on the “Console” tab.
If you don't see any errors try reloading the page again, the error may be generated when the page loads. The console will provide you with the error type, the location of the error and the line number
4.
tail /home/lpar2rrd/lpar2rrd/logs/error-cgi.log
-
Hi Pavel,
Thanks for reply!
I've took a look into /var/log/httpd/error_log and I've had the following error :[Mon Dec 05 13:58:06 2016] [error] [client XXX.XXX.XX.XXX] (13)Permission denied: unable to connect to cgi daemon after multiple tries: /home/lpar2rrd/lpar2rrd/lpar2rrd-cgi/genjson.sh, referer: http://XXX.XXX.XX.XXX/lpar2rrd/
It seems I had wrong permissions on /var/log/httpd/ 700 should be 755.
Now everything is running fine
Thank you once again for helping me.
Happy New Year! -
Hi Pavel ,
I too got the similar error after installing the pdf depedancies (http://www.lpar2rrd.com/pdf-install.htm)
-------------------------------------------
Ooops, something went wrong, JavaScript cannot continue...
Either an error occurred in JS code, or you don't have JavaScript enabled in your brow
------------------------------------------------------
Got the below error message in the /home/lpar2rrd/lpar2rrd/logs/error-cgi.log
BEGIN failed--compilation aborted at /home/lpar2rrd/lpar2rrd/bin/genjson.pl line 6.
Can't locate File/Spec.pm: Permission denied at /home/lpar2rrd/lpar2rrd/lib/CGI/Carp.pm line 322.
BEGIN failed--compilation aborted at /home/lpar2rrd/lpar2rrd/lib/CGI/Carp.pm line 322.
Compilation failed in require at /home/lpar2rrd/lpar2rrd/bin/genjson.pl line 6.
BEGIN failed--compilation aborted at /home/lpar2rrd/lpar2rrd/bin/genjson.pl line 6. -
Hi Pavel ,
It is fixed , it is due to the permission issue on the below.
/home/lpar2rrd/lpar2rrd/lib
drwx------ 2 lpar2rrd staff 256 Jun 03 2009 Compress
drwx------ 2 lpar2rrd staff 256 Jun 03 2009 File
-rw------- 1 lpar2rrd staff 7073 Aug 04 2016 ttfmod.pl
drwx------ 3 lpar2rrd staff 256 Aug 18 2016 Font
drwx------ 3 lpar2rrd staff 256 Oct 04 2016 PDF
When I untar the lib.tar to install the pdf module. It changed the permission.
# su - lpar2rrd
$ umask 022
$ cd /home/lpar2rrd/lpar2rrd
$ gunzip lib-aix.tar.gz
$ ls -l lib-aix.tar
-rw-r--r-- lpar2rrd users 21166080 Oct 21 13:26 lib-aix.tar
$ tar xvf lib-aix.tar
Thank you
-
You have forgotten to set umask before tar xvf ...
Than is why it is there (to avoid permission issue)
Howdy, Stranger!
Categories
- 1.6K All Categories
- 41 XORMON NG
- 25 XORMON
- 149 LPAR2RRD
- 13 VMware
- 16 IBM i
- 2 oVirt / RHV
- 4 MS Windows and Hyper-V
- Solaris / OracleVM
- XenServer / Citrix
- Nutanix
- 6 Database
- 2 Cloud
- 10 Kubernetes / OpenShift / Docker
- 122 STOR2RRD
- 19 SAN
- 7 LAN
- 17 IBM
- 3 EMC
- 12 Hitachi
- 5 NetApp
- 15 HPE
- Lenovo
- 1 Huawei
- 1 Dell
- Fujitsu
- 2 DataCore
- INFINIDAT
- 3 Pure Storage
- Oracle