Newbie Post - Graphs Tab Redirect Loop
Moderators: Developers, Moderators
Newbie Post - Graphs Tab Redirect Loop
Post Deleted... problem was with cookies on my end...
Sorry for the hassle.[/list]
Sorry for the hassle.[/list]
Last edited by rmizrahi on Thu Apr 16, 2009 8:15 pm, edited 1 time in total.
Unfortuately, the problem still exists...
I thought the problem was simply related to an issue on my end, however, the problem has persisted and I now believe it is actually a problem with the way that Cacti is persisting user information in cookies. As of right now, the problem exists every time I use the Graphs tab. If I log out and back in, the problem goes away temporarily. Note that the problem seems to manifest itself when I switch the graph view from the default to any other value such as 'within the last hour', etc. When the infinite loop occurs, I can press the 'back' button in the browser and get the information I requested. This is a major pain in the neck, but I can look past it considering the value I derive from Cacti. If anyone is aware of a fix for this, I'd love to hear it!
R
R
rmizrahi: Please provide the steps to replicate this issue. Also, do you have it happen with all browsers?
session.save_path in php.ini defines where php session data is stored.
session.save_path in php.ini defines where php session data is stored.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Specifics
Problem Statement
Cacti sessions stop producing results on subsequent visits to the Graphics tab or changes to the view in the graphics tab.
Specifics
I have proved the problem using a Windows 2008 Server machine with Firefox v.3.0.8 and Internet Explorer v.7.0.6001.18000.
On both browsers, the experience discorporates during a visit to the graphs tab subsequent to the initial visit. In other words, I can get to the graphs tab the first time, but after that, if I click the tab again or change values (such as the duration of the graph to view), the experience dies. In Firefox, I get the error...
In Internet Explorer with the same sequence, the progress bar just never finishes. I let it sit for several minutes and nothing happened.
In each browser, if I hit the back button, I get the results I wanted. For instance, I go to the graphs tab the first time and everything is okay. I noodle around for a few minutes and then wish to see what has happened in the last half-hour, so I choose 'Last Half-Hour' in the timing drop-down and get the redirect error. When I hit the back button in the browser, I get the graph I was looking for with the 'Last Half-Hour' results instead of whatever was displayed prior to that.
Additionally, if I log out and then log back in, I can immediately get right back in to the graphs tab (which is what led me to think about user persistence in cookies... then again, I am no web guru.). Subsequent actions within the graph error provide the same results... time outs, redirect errors, etc.
In IE, the graph tree is not what I see in Firefox. I don't get the graph tree on the left to choose from and I'm not sure how to proceed, though I have spent very little time using Cacti in IE.
Platform
- W2K8/IIS7
- PHP, MySQL, etc. (Default install of Cacti using msi)
If other information will help, please let me know.
Thanks.
R
Cacti sessions stop producing results on subsequent visits to the Graphics tab or changes to the view in the graphics tab.
Specifics
I have proved the problem using a Windows 2008 Server machine with Firefox v.3.0.8 and Internet Explorer v.7.0.6001.18000.
On both browsers, the experience discorporates during a visit to the graphs tab subsequent to the initial visit. In other words, I can get to the graphs tab the first time, but after that, if I click the tab again or change values (such as the duration of the graph to view), the experience dies. In Firefox, I get the error...
Code: Select all
Redirect Loop
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.
* Have you disabled or blocked cookies required by this site?
* NOTE: If accepting the site's cookies does not resolve the problem, it is likely a server configuration issue and not your computer.
In each browser, if I hit the back button, I get the results I wanted. For instance, I go to the graphs tab the first time and everything is okay. I noodle around for a few minutes and then wish to see what has happened in the last half-hour, so I choose 'Last Half-Hour' in the timing drop-down and get the redirect error. When I hit the back button in the browser, I get the graph I was looking for with the 'Last Half-Hour' results instead of whatever was displayed prior to that.
Additionally, if I log out and then log back in, I can immediately get right back in to the graphs tab (which is what led me to think about user persistence in cookies... then again, I am no web guru.). Subsequent actions within the graph error provide the same results... time outs, redirect errors, etc.
In IE, the graph tree is not what I see in Firefox. I don't get the graph tree on the left to choose from and I'm not sure how to proceed, though I have spent very little time using Cacti in IE.
Platform
- W2K8/IIS7
- PHP, MySQL, etc. (Default install of Cacti using msi)
If other information will help, please let me know.
Thanks.
R
- Attachments
-
- utilities.php.txt
- The output of the tech support page in text format...
- (13.47 KiB) Downloaded 366 times
Please file a bug report, with the details from this thread. http://www.cacti.net/bugs.php
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
DONE: Issue number 0001458 in Mantis under Cacti Project.
This is now viewable as issue number 0001458 in Mantis under the Cacti Project.
Thanks!
R
Thanks!
R
I came across the same issue using IIS7 using fast CGI on server 2008. Its caused by the REQUEST_URI server var not containing the url args. The easy fix is to edit the get_browser_query_string function in /lib/functions.php. Mine now looks like this:
With this function updated everything works fine. Maybe this will need changing in the SVN or maybe there's a neater solution... but it works!
Cheers
Mark
Code: Select all
function get_browser_query_string() {
return basename($_SERVER["PHP_SELF"]) . (empty($_SERVER["QUERY_STRING"]) ? "" : "?" . $_SERVER["QUERY_STRING"]);
}
Cheers
Mark
Code: Select all
Re: Newbie Post - Graphs Tab Redirect Loop
Hi,
i've the same problem with 0.8.8f, every time a user without admin privileges hit the back button on the browser (no matter IE o Mozilla) goes redirected to
....../cacti/index.php and get the unauthorized error message.
anyones can guess what is the problem?
Alex
i've the same problem with 0.8.8f, every time a user without admin privileges hit the back button on the browser (no matter IE o Mozilla) goes redirected to
....../cacti/index.php and get the unauthorized error message.
anyones can guess what is the problem?
Alex
Who is online
Users browsing this forum: No registered users and 4 guests