This webpage has a redirect loop

Started by VPSKing, July 08, 2013, 09:27:23 AM

VPSKing

Hello,
Today I was going to help a client with his VPS. When I click on manage service I got this error
-------------------------Error on Chrome-------------------------
This webpage has a redirect loop
The webpage at http://xxxxx.xxx/billing/?/clientarea/services/&vpsdo=vmdetails&service=305 gave too many redirects. The problem may be solved by deleting your cookies for this site or allowing third-party cookies. If this does not fix the problem it may be a server configuration issue and not a problem with your computer.
Here are some suggestions:
Read the web page later.
Read more about the problem.
Error 310 (net :: ERR_TOO_MANY_REDIRECTS): There were too many redirects.
-----------------------------------------------------------------------

I tried in another browser, Internet Explorer and I got the error,

-----------------------
This page can't be displayed

•Make sure the web address http://skysurfen.nu is correct.
•Look for the page with your search engine.
•Refresh the page in a few minutes.

-------------------------


Tried in another computer with other themes but not working got same errors.


Please help

Lawrence

Hey Amir,

Try deleting your .htaccess file (Make a backup first) and see if that fixes the issue. In most cases, it's the .htaccess file.

In HostBill, go to your
Settings > General Settings > Other

And make sure everything's normal there. You can use the default .htaccess configuration provided by HostBill if you're using the last option in the bullet list. (Apache Mod Rewrite)
Skype: sociallarry | AIM: [email]larry.aim@aim.com[/email] | Forum Rules & Information

These forums are hosted by me with no intentions to ever monetize them. These forums are here solely for the benfit of the HostBill community.

VPSKing

Hello,

I don't have any .htaccess on Hostbill. I use only the default setting.

I still have this issue.

tallship

Quote from: amir on July 08, 2013, 06:26:07 PM
Hello,

I don't have any .htaccess on Hostbill. I use only the default setting.

I still have this issue.

Try...


# tail -f /var/log/httpd/access_log
# tail -f /var/log/httpd/error_log
# tail -f /var/log/httpd/ssl_request_log


I hope that helps :)

Kindest regards,
Bradley D. Thornton - Manager Network Services, NorthTech Computer   TEL: +1.310.388.9469 (US) | +44.203.318.2755 (UK) | +61.390.088.072 (AU) | +41.43.508.05.10 (CH)
Registered Linux User #190795 - "Ask Bill why the string in [MS-DOS] function 9 is terminated by a dollar sign. Ask him, because he can't answer. Only I know that." - Dr. Gary Kildall.

VPSKing

Hello,

This code did not helped me. Maybe I can see the log from cPanel?

I typed the code on putty as root. Did not get any response.

Quote from: tallship on July 08, 2013, 10:49:08 PM
Try...


# tail -f /var/log/httpd/access_log
# tail -f /var/log/httpd/error_log
# tail -f /var/log/httpd/ssl_request_log


I hope that helps :)

Kindest regards,

tallship

Okay different distros place logfiles in slightly different locations.


First, you should cd to your /var/log directory and see what you have there.


Then, do a 'man tail' to understand what the following tail does in regards to any file that is updated.


You should also be able to do a 'locate access_log', etc., to find your logs, or just 'locate log |less' to find any file on your system that has the word *log* in its filename. From there, you should be able to do a following tail on those log files to see what is being accessed, as well as the errors on your httpd (Prolly Apache) server.


Anytime you want the latest database of the files in your system returned to you when you do a *locate*, simply issue 'updatedb' from your root shell. It takes a bit to index all of the files in your system, and when it's done will return the prompt back to you. Alternatively, you can do a 'updatedb &' if you have other things to do in the shell in the meantime and don't want to wait for the job to finish - the ampersand specifies that you want the *updatedb* job for slocate to run in the background so you can do other things in the meantime. When the job is finished, it will report so in your console, showing that the command you issued, and the job number of the background process, has finished :)


I have no idea what you would do w/cPanel, what you can or cannot do with cPanel, and AFAIC, cPanel is junk anyway so I don't use it for anything other than providing it as a control panel for some of my shared hosting customers on a couple of machines dedicated to shared hosting. Someone else here might be able to shed some light on what cPanel is capable of, but really, it's fricken' junk so I don't recommend it.


Getting back to tailing your logs. The whole reason you do this is so you can watch, in real time, when you send an HTTP request to that link that is doing all those redirects - so you can actually see what your server is telling you what is wrong. When you have those errors and post them here, someone can tell you what exactly is wrong and hopefully where to look in order to fix the problem.


If you're going to administer a system, you MUST know how to do a following tail. Or be really lucky and never have a single error. Another handy, and almost indispensable tool is netstat. You should be familiar with that too.


i.e.,



# watch -n1 netstat -natp



Don't worry, just add these little bits of wisdom to your cheat sheet toolbox and pull them out whenever you need them. Your bag of tricks will grow and eventually this will become second nature :)


One thing I'm pretty sure about with regarding cPanel - you can't tail a logfile with a follow. So cPanel would be pretty much worthless. When you do a following tail of a logfile, the instant your browser sends the HTTP request to your httpd server, you see it, along with any associated errors, directly in your logfile. I believe cPanel would be useless for that, but I could be wrong. I just don't use junk like that unless I have to.


I hope that helps!


Kindest regards,
Bradley D. Thornton - Manager Network Services, NorthTech Computer   TEL: +1.310.388.9469 (US) | +44.203.318.2755 (UK) | +61.390.088.072 (AU) | +41.43.508.05.10 (CH)
Registered Linux User #190795 - "Ask Bill why the string in [MS-DOS] function 9 is terminated by a dollar sign. Ask him, because he can't answer. Only I know that." - Dr. Gary Kildall.

david

Hi,

Please post your server details:

OS version
Web server type and version (Nginx, apache, etc)
PHP version and phpinfo
Mysql version

Thanks

netcloud

Quote from: amir on July 08, 2013, 09:27:23 AM
Hello,
Today I was going to help a client with his VPS. When I click on manage service I got this error
-------------------------Error on Chrome-------------------------
This webpage has a redirect loop
The webpage at http://xxxxx.xxx/billing/?/clientarea/services/&vpsdo=vmdetails&service=305 gave too many redirects. The problem may be solved by deleting your cookies for this site or allowing third-party cookies. If this does not fix the problem it may be a server configuration issue and not a problem with your computer.
Here are some suggestions:
Read the web page later.
Read more about the problem.
Error 310 (net :: ERR_TOO_MANY_REDIRECTS): There were too many redirects.
-----------------------------------------------------------------------

I tried in another browser, Internet Explorer and I got the error,

-----------------------
This page can't be displayed

•Make sure the web address http://skysurfen.nu is correct.
•Look for the page with your search engine.
•Refresh the page in a few minutes.

-------------------------


Tried in another computer with other themes but not working got same errors.


Please help

Amir, did you find the solution, having the same issue

Thanks

VPSKing

No not yet. If you solve it please tell me how you did :)

netcloud

Quote from: amir on July 08, 2014, 08:25:52 PM
No not yet. If you solve it please tell me how you did :)

Can you see if you are able to sync the VPS under HB admin area as shown in image here;

http://www.hostbillforums.com/index.php/topic,1306.0.html

netcloud

Quote from: amir on July 08, 2014, 08:25:52 PM
No not yet. If you solve it please tell me how you did :)

Hi, found the issue that caused it for me, so I was mixing packages (onapp & solusvm) in the same plan group (onapp), creating a new plan group for solusvm fixed the issue.  Both plan group and plans connect to the app.