Bandwidth Graph on Fog 1.4.4 for Ubuntu Server 16.04.3 doesn't seem to function
-
I don’t know if this is a bug or not. Is the Storage Nodes “interface” field set appropriately with the real name of the interface?
-
@tom-elliott Yes, the storage nodes interface field did indeed have the real interface name by default. My error.log from yesterday does show this:
[Thu Feb 15 15:35:23.625782 2018] [php7:error] [pid 20347] [client xx.xx.xx.xx:xxxxx] script ‘/var/www/html/fog/status/bandwitch.php’ not found or unable to stat
-
@n406c is it literally saying bandwitch.php or bandwidth.php?
-
@tom-elliott The error log says “bandwitch.php” which doesn’t exist. However, /var/www/html/fog/status/bandwidth.php exists in the directory.
-
Sorry for the delay. Can you please run:
cd /var/www/fog grep -rl 'bandwitch`
This should give us the problematic file you’re seeing. I searched the repository and do not see this popping up anywhere, which leads me to believe somebody edited a file, and made a typo somewhere.
The file it outputs type:
sudo vi <file spit out by grep command> :%s/bandwitch/bandwidth/g :wq!
This should fix the bandwidth issue you’re seeing.
-
@tom-elliott I ran your suggested command but there were no results. Which file should I be looking for?
-
-
My apologies, I actually caused that error to appear in the log. I just remembered I tried to load that non existent page when troubleshooting through some old threads.
-
So we are back to square one. That’s OK. Let’s start with the basics. Can you give us screenshots of:
- Your bandwidth graph so we can see what it’s doing.
- The Node’s configuration in
Web GUI -> Storage Management -> Node name
- The output of this command on your FOG Server:
ip addr show
-
@wayne-workman Here you go.
-
@developers ideas?
-
@wayne-workman The fact that it’s missing the interface in the graph seems to be an indicator at least to me.
I have seen this from time to time in my development environment (because of switching things in and out).
You could try to ensure a link to the html fog folder exists in the fog folder. (I know that makes no sense, but it’s what works for me). NOTE: This is typically because the webroot is / instead of /fog
Please try running the command:
ln -s /var/www/html/fog{,/}
-
@tom-elliott I tried running that command but I get this response:
“ln: failed to create symbolic link ‘/var/www/html/fog/fog’: File exists”
-
@n406c Wanna bring this back on screen. Do you know how to use the Firefox or Chrome Developer tools? Playing with those you should be able to if AJAX requests are working in general, plus you can take a look at the response.
-
@sebastian-roth Unfortunately, I do not have much experience with those tools. I also just upgraded to 1.5.0 and the bandwidth graph still does not show traffic while deploying an image.
-
@n406c From chrome type:
CTRL+SHIFT+C
and you will be presented with a side bar (as default).From there you have a tab list of options. Choose Console. Is there anything printing there?
-
@tom-elliott This is all that is shown in the console during an image deployment.
-
@n406c then im not quite sure of the problem as I cannot seem to replicate it. Do you using hostnames to access the fog server, or ip?
-
@tom-elliott Host name.
-
One thing I do notice is ens0p18 appears to not be up, though that would be extremely strange ad you can access the server gui just fine.