Newbie Post - Graphs Tab Redirect Loop

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
rmizrahi
Posts: 4
Joined: Thu Apr 02, 2009 11:32 am
Location: USA
Contact:

Newbie Post - Graphs Tab Redirect Loop

Post by rmizrahi »

Post Deleted... problem was with cookies on my end...

Sorry for the hassle.[/list]
Last edited by rmizrahi on Thu Apr 16, 2009 8:15 pm, edited 1 time in total.
fdusart
Posts: 2
Joined: Thu Apr 16, 2009 4:40 am

Post by fdusart »

Could you please explain how do you solved it, because i'm facing same issue.... Also... Is that normal that cacti is very slow on windows... On debian it takes about 20s to poll and on Windows, for same devices/rrds/scripts.... it takes 150s

Kind regards
rmizrahi
Posts: 4
Joined: Thu Apr 02, 2009 11:32 am
Location: USA
Contact:

Unfortuately, the problem still exists...

Post by rmizrahi »

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
fdusart
Posts: 2
Joined: Thu Apr 16, 2009 4:40 am

Post by fdusart »

Actually, I think it's related to the sessions. The installation I made was on a windows server 2008 with php fastcgi. I checked the access rights on the folder were session files were stored and it seems ok (files are created in it). I guess there must be an option in php.ini. But which?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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.
rmizrahi
Posts: 4
Joined: Thu Apr 02, 2009 11:32 am
Location: USA
Contact:

Specifics

Post by rmizrahi »

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...

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 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
Attachments
utilities.php.txt
The output of the tech support page in text format...
(13.47 KiB) Downloaded 350 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Please file a bug report, with the details from this thread. http://www.cacti.net/bugs.php
rmizrahi
Posts: 4
Joined: Thu Apr 02, 2009 11:32 am
Location: USA
Contact:

DONE: Issue number 0001458 in Mantis under Cacti Project.

Post by rmizrahi »

This is now viewable as issue number 0001458 in Mantis under the Cacti Project.

Thanks!

R
mjaz
Posts: 9
Joined: Mon Apr 18, 2005 7:33 am

Post by mjaz »

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:

Code: Select all

function get_browser_query_string() {
    return basename($_SERVER["PHP_SELF"]) . (empty($_SERVER["QUERY_STRING"]) ? "" : "?" . $_SERVER["QUERY_STRING"]);
}
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
acolombo
Posts: 7
Joined: Mon Nov 30, 2015 9:38 am

Re: Newbie Post - Graphs Tab Redirect Loop

Post by acolombo »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests