perfsonar-user - [perfsonar-user] Missing execute bit on reverse_traceroute.cgi
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: Brian Candler <>
- To: "" <>
- Subject: [perfsonar-user] Missing execute bit on reverse_traceroute.cgi
- Date: Sat, 31 Aug 2019 14:47:06 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=pobox.com; h=to:from:subject :message-id:date:mime-version:content-type :content-transfer-encoding; q=dns; s=sasl; b=isn55M+mFZnJYMeKVou DJYUnzbmh5X/Dd9qNghfpP3RCR+hfhuYduTgUzaVI1ymLR2x/nhYKIK+Lq2ifaUn 3WpAIzxiUtrlLMv7JmY6w0uPqp+VduQe/+h26h1lqKocXMROqh2KehyoF8K6sVnZ Doa//aC8cLZUJgNzEGgN80dQ=
I made a fresh perfsonar-toolkit install in an Ubuntu 18.04 lxd container, using the debian package repo.
Problem: clicking on the "reverse traceroute" link on the front page (with target/toolkit/gui/reverse_traceroute.cgi) gives me a 500 internal server error.
/var/log/apache2/error.log shows:
[Sat Aug 31 13:36:53.609603 2019] [cgid:error] [pid 7071:tid 140681676458944] (13)Permission denied: AH01241: exec of '/usr/lib/perfsonar/web-ng/root/gui/reverse_traceroute.cgi' failed
[Sat Aug 31 13:36:53.610807 2019] [cgid:error] [pid 381:tid 140681538365184] [client xxxx] End of script output before headers: reverse_traceroute.cgi, referer: https://xxxx/toolkit/
And indeed, the execute permission is missing:
root@perf1:~# ls -l /usr/lib/perfsonar/web-ng/root/gui/reverse_traceroute.cgi
-rw-r--r-- 1 root root 52182 Aug 15 01:10 /usr/lib/perfsonar/web-ng/root/gui/reverse_traceroute.cgi
AFAICS, it's the only CGI with this problem:
root@perf1:~# find /usr/lib/perfsonar/ -name '*.cgi' | xargs ls -l
-rwxr-xr-x 1 root root 52669 Aug 15 01:10 /usr/lib/perfsonar/graphs/cgi-bin/graphData.cgi
-rwxr-xr-x 1 root root 15346 Aug 15 01:10 /usr/lib/perfsonar/traceroute-viewer/index.cgi
-rwxr-xr-x 1 root root 12545 Aug 15 01:10 /usr/lib/perfsonar/web-ng/root/admin/administrative_info/index.cgi
-rwxr-xr-x 1 root root 2340 Aug 15 01:10 /usr/lib/perfsonar/web-ng/root/admin/host.cgi
-rwxr-xr-x 1 root root 2492 Aug 15 01:10 /usr/lib/perfsonar/web-ng/root/admin/index.cgi
-rwxr-xr-x 1 root root 39425 Aug 15 01:10 /usr/lib/perfsonar/web-ng/root/admin/regular_testing/index.cgi
-rwxr-xr-x 1 root root 5379 Aug 15 01:10 /usr/lib/perfsonar/web-ng/root/admin/services/communities.cgi
-rwxr-xr-x 1 root root 10325 Aug 15 01:10 /usr/lib/perfsonar/web-ng/root/admin/services/host.cgi
-rwxr-xr-x 1 root root 6716 Aug 15 01:10 /usr/lib/perfsonar/web-ng/root/admin/services/ntp.cgi
-rwxr-xr-x 1 root root 4153 Aug 15 01:10 /usr/lib/perfsonar/web-ng/root/admin/services/regular_testing.cgi
-rwxr-xr-x 1 root root 2390 Aug 15 01:10 /usr/lib/perfsonar/web-ng/root/admin/tests.cgi
-rw-r--r-- 1 root root 52182 Aug 15 01:10 /usr/lib/perfsonar/web-ng/root/gui/reverse_traceroute.cgi
-rwxr-xr-x 1 root root 2640 Aug 15 01:10 /usr/lib/perfsonar/web-ng/root/index.cgi
-rwxr-xr-x 1 root root 2060 Aug 15 01:10 /usr/lib/perfsonar/web-ng/root/services/communities.cgi
-rwxr-xr-x 1 root root 4005 Aug 15 01:10 /usr/lib/perfsonar/web-ng/root/services/host.cgi
It was an easy fix:
chmod +x /usr/lib/perfsonar/web-ng/root/gui/reverse_traceroute.cgi
But it would be good to fix this in the package:
root@perf1:~# dpkg-query -S /usr/lib/perfsonar/web-ng/root/gui/reverse_traceroute.cgi
perfsonar-toolkit: /usr/lib/perfsonar/web-ng/root/gui/reverse_traceroute.cgi
Regards,
Brian Candler.
P.S. There are also a couple of broken image links in the traceroute results page, in the top-left corner of the screen.
http://www.slac.stanford.edu/comp/net/wan-mon/stanford-seal.gif
http://www.slac.stanford.edu/icon/newlogo-sm.gif
- [perfsonar-user] Missing execute bit on reverse_traceroute.cgi, Brian Candler, 08/31/2019
Archive powered by MHonArc 2.6.19.