[GH-ISSUE #15] Installs fine, but not all commands available #13

Closed
opened 2026-02-28 00:40:09 +03:00 by kerem · 23 comments
Owner

Originally created by @wizygr on GitHub (Aug 1, 2013).
Original GitHub issue: https://github.com/telephone/LookingGlass/issues/15

Installed on CentOS 6 with PHP 5.3.25 using Apache 2.2.15.

'host' and 'traceroute' commands give results just fine. However 'mtr' and 'ping' commands, don't. The results box is displayed almost immediately after pressing the button but it is empty. I would expect an error message...

Both utilities are also normally installed:

[root@host lg]# l /usr/sbin/mtr ; l /bin/ping
-rwsr-xr-x. 1 root root 59384 Aug 17 2010 /usr/sbin/mtr
-rwsr-xr-x. 1 root root 40760 Jun 5 13:39 /bin/ping

Any ideas on how to debug this further?

Thanks in advance.

Originally created by @wizygr on GitHub (Aug 1, 2013). Original GitHub issue: https://github.com/telephone/LookingGlass/issues/15 Installed on CentOS 6 with PHP 5.3.25 using Apache 2.2.15. 'host' and 'traceroute' commands give results just fine. However 'mtr' and 'ping' commands, don't. The results box is displayed almost immediately after pressing the button but it is empty. I would expect an error message... Both utilities are also normally installed: [root@host lg]# l /usr/sbin/mtr ; l /bin/ping -rwsr-xr-x. 1 root root 59384 Aug 17 2010 /usr/sbin/mtr -rwsr-xr-x. 1 root root 40760 Jun 5 13:39 /bin/ping Any ideas on how to debug this further? Thanks in advance.
kerem 2026-02-28 00:40:09 +03:00
  • closed this issue
  • added the
    v1
    label
Author
Owner

@brendancarlson commented on GitHub (Oct 11, 2013):

Do you have those commands installed on the machine you are running this on?

<!-- gh-comment-id:26180859 --> @brendancarlson commented on GitHub (Oct 11, 2013): Do you have those commands installed on the machine you are running this on?
Author
Owner

@wizygr commented on GitHub (Oct 12, 2013):

Yes, of course and they are running fine from the console. However they
produce no output when running through the webpage...

Any help would be appreciated.

<!-- gh-comment-id:26185609 --> @wizygr commented on GitHub (Oct 12, 2013): Yes, of course and they are running fine from the console. However they produce no output when running through the webpage... Any help would be appreciated.
Author
Owner

@brendancarlson commented on GitHub (Oct 14, 2013):

If you post a link to where you are hosting this page I can take a look and help you. :)

<!-- gh-comment-id:26298484 --> @brendancarlson commented on GitHub (Oct 14, 2013): If you post a link to where you are hosting this page I can take a look and help you. :)
Author
Owner

@bpvarsity commented on GitHub (Apr 4, 2014):

I am having the same issue. Commands work via command line but nothing outputs on the web version.

http://m9.androidfilehost.com/

No output from any tool.

Any ideas?

<!-- gh-comment-id:39602627 --> @bpvarsity commented on GitHub (Apr 4, 2014): I am having the same issue. Commands work via command line but nothing outputs on the web version. http://m9.androidfilehost.com/ No output from any tool. Any ideas?
Author
Owner

@abyssis commented on GitHub (Apr 4, 2014):

Could be related to permissions.

<!-- gh-comment-id:39604163 --> @abyssis commented on GitHub (Apr 4, 2014): Could be related to permissions.
Author
Owner

@bpvarsity commented on GitHub (Apr 4, 2014):

Ya not sure what to check. I've changed a few files permissions but no change. Owner/group doesnt seem to fix it either.

Also upgraded to php 5.4.26 but didnt fix it either

<!-- gh-comment-id:39605056 --> @bpvarsity commented on GitHub (Apr 4, 2014): Ya not sure what to check. I've changed a few files permissions but no change. Owner/group doesnt seem to fix it either. Also upgraded to php 5.4.26 but didnt fix it either
Author
Owner

@abyssis commented on GitHub (Apr 4, 2014):

Might as well be related to network configuration. What type of control panel do you use? Is it SolusVM?

<!-- gh-comment-id:39605524 --> @abyssis commented on GitHub (Apr 4, 2014): Might as well be related to network configuration. What type of control panel do you use? Is it SolusVM?
Author
Owner

@bpvarsity commented on GitHub (Apr 4, 2014):

This vps is on a Proxmox server running as a openvz container

<!-- gh-comment-id:39605675 --> @bpvarsity commented on GitHub (Apr 4, 2014): This vps is on a Proxmox server running as a openvz container
Author
Owner

@abyssis commented on GitHub (Apr 4, 2014):

What type of OS?

<!-- gh-comment-id:39605911 --> @abyssis commented on GitHub (Apr 4, 2014): What type of OS?
Author
Owner

@bpvarsity commented on GitHub (Apr 4, 2014):

Centos 6 x64

<!-- gh-comment-id:39606243 --> @bpvarsity commented on GitHub (Apr 4, 2014): Centos 6 x64
Author
Owner

@abyssis commented on GitHub (Apr 4, 2014):

Were there any errors while installing the whole thing? Try to remove the entire directory and download/run the script again.

I remember running into into similar issue back then, but my problem was related to the network configuration.

<!-- gh-comment-id:39606945 --> @abyssis commented on GitHub (Apr 4, 2014): Were there any errors while installing the whole thing? Try to remove the entire directory and download/run the script again. I remember running into into similar issue back then, but my problem was related to the network configuration.
Author
Owner

@bpvarsity commented on GitHub (Apr 4, 2014):

Nope no errors and I have redone the install multiple times. Also have tried removing the whole directory and installing again.

Not sure what is causing it. Everything is working great on the vps. Just made it this morning. This seems to be the only thing not working.

Very odd.

<!-- gh-comment-id:39607108 --> @bpvarsity commented on GitHub (Apr 4, 2014): Nope no errors and I have redone the install multiple times. Also have tried removing the whole directory and installing again. Not sure what is causing it. Everything is working great on the vps. Just made it this morning. This seems to be the only thing not working. Very odd.
Author
Owner

@bpvarsity commented on GitHub (Apr 4, 2014):

Looks like development haulted on the v2. Still under dev and hasn't been touched in a year.

Would like to get this one working. Will be very handy to help diagnose issues with the users.

<!-- gh-comment-id:39607762 --> @bpvarsity commented on GitHub (Apr 4, 2014): Looks like development haulted on the v2. Still under dev and hasn't been touched in a year. Would like to get this one working. Will be very handy to help diagnose issues with the users.
Author
Owner

@bpvarsity commented on GitHub (Apr 4, 2014):

Anyone know of another script like this one I can try? Give up on this one for now.

<!-- gh-comment-id:39609656 --> @bpvarsity commented on GitHub (Apr 4, 2014): Anyone know of another script like this one I can try? Give up on this one for now.
Author
Owner

@abyssis commented on GitHub (Apr 4, 2014):

Have you installed this script using sudo or root access?

<!-- gh-comment-id:39612958 --> @abyssis commented on GitHub (Apr 4, 2014): Have you installed this script using sudo or root access?
Author
Owner

@bpvarsity commented on GitHub (Apr 4, 2014):

I installed it as root

<!-- gh-comment-id:39613899 --> @bpvarsity commented on GitHub (Apr 4, 2014): I installed it as root
Author
Owner

@abyssis commented on GitHub (Apr 4, 2014):

Try to ask here: http://lowendtalk.com/

<!-- gh-comment-id:39615036 --> @abyssis commented on GitHub (Apr 4, 2014): Try to ask here: http://lowendtalk.com/
Author
Owner

@telephone commented on GitHub (Apr 5, 2014):

@bpvarsity Your issue is more than likely caused by permission errors. That is, your 'www' user cannot access the commands as they're set to require root-privileges.

Here's an example on how to fix:

# chmod u-s /bin/ping
# setcap cap_net_raw+ep /bin/ping

# chmod u-s /bin/ping6
# setcap cap_net_raw+ep /bin/ping6

# chmod u-s /bin/traceroute
# setcap cap_net_raw+ep /bin/traceroute

# chmod u-s /bin/traceroute6
# setcap cap_net_raw+ep /bin/traceroute6

You may be able to fix the problem by only using the chmod command, but if you need the setcap you'll need to install libcap first.

For Ubuntu I fixed the permission errors by running "sudo chmod u+s which ping" for the necessary commands.

<!-- gh-comment-id:39623832 --> @telephone commented on GitHub (Apr 5, 2014): @bpvarsity Your issue is more than likely caused by permission errors. That is, your 'www' user cannot access the commands as they're set to require root-privileges. Here's an example on how to fix: ``` # chmod u-s /bin/ping # setcap cap_net_raw+ep /bin/ping # chmod u-s /bin/ping6 # setcap cap_net_raw+ep /bin/ping6 # chmod u-s /bin/traceroute # setcap cap_net_raw+ep /bin/traceroute # chmod u-s /bin/traceroute6 # setcap cap_net_raw+ep /bin/traceroute6 ``` You may be able to fix the problem by only using the `chmod` command, but if you need the `setcap` you'll need to install `libcap` first. For Ubuntu I fixed the permission errors by running "sudo chmod u+s `which ping`" for the necessary commands.
Author
Owner

@bpvarsity commented on GitHub (Apr 5, 2014):

Thanks for the response. Still not working on centos. hmm

Ill keep playing with it. Ill try it on another vps like this one and see if it works or does the same thing.

<!-- gh-comment-id:39626826 --> @bpvarsity commented on GitHub (Apr 5, 2014): Thanks for the response. Still not working on centos. hmm Ill keep playing with it. Ill try it on another vps like this one and see if it works or does the same thing.
Author
Owner

@chandro commented on GitHub (Apr 5, 2014):

i have installed it on 5 servers and is working ok, on centos.

i didnt have anything else, because is just for lookingglass

<!-- gh-comment-id:39643782 --> @chandro commented on GitHub (Apr 5, 2014): i have installed it on 5 servers and is working ok, on centos. i didnt have anything else, because is just for lookingglass
Author
Owner

@bpvarsity commented on GitHub (Sep 23, 2014):

I got centos to work with lookingglass. It was a issue with the control panel installed on the server.

Not able to get the commands to work on gentoo with nginx. Anyone have any luck with gentoo?

Thanks

<!-- gh-comment-id:56605279 --> @bpvarsity commented on GitHub (Sep 23, 2014): I got centos to work with lookingglass. It was a issue with the control panel installed on the server. Not able to get the commands to work on gentoo with nginx. Anyone have any luck with gentoo? Thanks
Author
Owner

@osmanmakal commented on GitHub (Oct 13, 2014):

You probably don't disable SELinux

Please use this command for CentOS 6: setenforce 0

<!-- gh-comment-id:58897991 --> @osmanmakal commented on GitHub (Oct 13, 2014): You probably don't disable SELinux Please use this command for CentOS 6: setenforce 0
Author
Owner

@shenyqwilliam commented on GitHub (Oct 19, 2014):

Should be SELinux permission problem.
It pings well on all my CentOS 6 vps, but couldn't ping on any of my CentOS 7 vps (RHEL7 is SELinux enforced).

I don't like the idea to turn SELinux all off. But I haven't figured out which values should be changed using setsebool command.

<!-- gh-comment-id:59653226 --> @shenyqwilliam commented on GitHub (Oct 19, 2014): Should be SELinux permission problem. It pings well on all my CentOS 6 vps, but couldn't ping on any of my CentOS 7 vps (RHEL7 is SELinux enforced). I don't like the idea to turn SELinux all off. But I haven't figured out which values should be changed using `setsebool` command.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LookingGlass#13
No description provided.