-
Notifications
You must be signed in to change notification settings - Fork 658
-
Notifications
You must be signed in to change notification settings - Fork 658
Redirect loop after setup #649
Comments
Can you post your Nginx Config please? |
Apache even. Some background info: I did the exact same thing on a Raspberry Pi, including https, a year ago and it worked perfectly. But as you can imagine a RasPi was incredibly slow to load. So now I'm trying again on a VPS. The apache config is identical to the RasPi install.
|
A quick hack that got things going for me: I got the same problem. The nginx error.log was showing something like Undefined index: HTTP_X_REQUESTED_WIDTH in index.php. If you check the index.php file you see a multi-line test that determines if setup.php needs to be loaded. After some fiddling I just replaced the test with (1==2) so it is always false and the redirects stopped. Do this after you already ran setup.php once. |
That did the trick! I commented out the check and replaced it with (1==2){. If someone runs into the same problem, here's the entire index.php file for your copy and paste pleasure:
|
In my opinion, this is a bug that needs to be addressed. I was running through an install this morning and found the same problem. |
Thanks for your feedback. On what branch is this issue happening? Also, can someone of you give the version when this is happening (as found in the Settings page) please? Does this happen only when using HTTPS? A screenshot of the Network tab of the browser's Developer Tools could also help. Are any of the request failing? Last thing, at what step is the error happening? To see this, go to the storage folder on your version, config folder and give the number written in the file named setup. Sorry for the questions but these should help with identifying the problem. |
Also, try to not change the code. You can skip the Setup Wizard by putting 8 in the setup file I mentioned above. |
Master branch. Don't know if it's https only. It happens right after the setup wizard is done and you click continue to paperwork. I hope some others can supply more info. |
Wait, I did try http, also looped. |
Can someone post a screenshot of the Network tab and the Console of the Developer Tools? |
A pull request is open which should avoid this issue. However, this could happen due to an incorrectly done install. Please recheck that you have all files present. |
I redownloaded the master.zip about 3 times before @TiborBiro's hack fixed it. I don't think that's the issue for me. |
The one generated by Github? If yes, then that is not the way Paperwork should be installed. There's some instructions in the Wiki. Also, develop contains the latest code so fixes may get later in the master branch. |
I have also tried the git method, but currently I'm running the install from the github zip. |
If there's any way I can contribute with making a debian8 / apache page for the wiki, let me know. |
If you want to, you can contribute a guide. |
Can you confirm whether this is happening on the develop branch please? |
Just confirmed today this happens in the Master branch via a Docker setup/install. I'll test Develop to see if this can be replicated in the Develop branch later (within the next three days, schedule permitting) |
After setting up my first account I'm stuck in a redirect loop. Chrome gives me ERR_TOO_MANY_REDIRECTS.
Any ideas what could be causing it or how to fix it?
The text was updated successfully, but these errors were encountered: