mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-25 23:45:56 +03:00
[GH-ISSUE #431] 302 ERR_TOO_MANY_REDIRECTS #262
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#262
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tree1123 on GitHub (Apr 23, 2021).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/431
it seems everything is ok。
but when i Go to http://serverip
the url become http://serverip/accounts/login/?next=/accounts/login/
and tell me ERR_TOO_MANY_REDIRECTS
why?
@catborise commented on GitHub (Apr 23, 2021):
how do you install it? docker? or manual?
@tree1123 commented on GitHub (Apr 24, 2021):
manual CentOS 8.2
and when i enter supervisorctl status
gstfsd RUNNING
novncd RUNNING
webvirtcloud RUNNING
it seems everything is OK
but when i Go to http://serverip
ERR_TOO_MANY_REDIRECTS 302 Happen
@tree1123 commented on GitHub (Apr 24, 2021):
First when i Go to http://serverip
show me 502 BadWay
then i enter setsebool -P httpd_can_network_connect 1
502 disappear and 302 Happen
who can help me ?
@tree1123 commented on GitHub (Apr 24, 2021):
when i enter wget localhost:8000
-2021-04-23 23:26:34-- http://localhost:8000/
正在解析主机 localhost (localhost)... ::1, 127.0.0.1
正在连接 localhost (localhost)|::1|:8000... 失败:拒绝连接。
正在连接 localhost (localhost)|127.0.0.1|:8000... 已连接。
已发出 HTTP 请求,正在等待回应... 302 Found
位置:/accounts/login/?next=/ [跟随至新的 URL]
--2021-04-23 23:26:34-- http://localhost:8000/accounts/login/?next=/
正在连接 localhost (localhost)|127.0.0.1|:8000... 已连接。
已发出 HTTP 请求,正在等待回应... 302 Found
位置:/accounts/login/?next=/accounts/login/ [跟随至新的 URL]
--2021-04-23 23:26:34-- http://localhost:8000/accounts/login/?next=/accounts/login/
正在连接 localhost (localhost)|127.0.0.1|:8000... 已连接。
已发出 HTTP 请求,正在等待回应... 302 Found
@ycadin commented on GitHub (Apr 24, 2021):
Same issue on Ubuntu 20.04 (from Safari) after manual installation (I followed instructions given on the GitHub main page).
@catborise commented on GitHub (Apr 24, 2021):
can you please try it with docker or podman.
you will find the instructions at wiki page.
@tree1123 commented on GitHub (Apr 24, 2021):
do you solved the problem? I try everything,but it donot work
@tree1123 commented on GitHub (Apr 24, 2021):
OK thank you .
which way is better in centos8. 2
docker?
@ycadin commented on GitHub (Apr 25, 2021):
Tried on CentOS 7 (following your instructions) then with Docker: ALWAYS
the same error "too many redirections".
I'm really curious to understand the reason of the issue.
With cURL (if it can helps) :
gen8lm2:webvirtcloud root# docker run -d -p 8888:80 -p 6080:6080
retspen/webvirtcloud:1
274f972df1a6f02d1d4f375a790719d76db75b7d34188d0d631b400260389ea8
gen8lm2:webvirtcloud root# docker ps
CONTAINER ID IMAGE COMMAND CREATED
STATUS PORTS
NAMES
274f972df1a6 retspen/webvirtcloud:1 "/sbin/my_init" 6 seconds
ago Up 3 seconds 0.0.0.0:6080->6080/tcp, :::6080->6080/tcp,
0.0.0.0:8888->80/tcp,
:::8888->80/tcp loving_ramanujan
gen8lm2:webvirtcloud root# curl localhost:8888
gen8lm2:webvirtcloud root# curl -I localhost:8888
HTTP/1.1 302 Found
Server: nginx/1.14.0 (Ubuntu)
Date: Sun, 25 Apr 2021 00:07:05 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 0
Connection: keep-alive
Location: /accounts/login/?next=/
Vary: Accept-Language, Cookie
Content-Language: en
Le dim. 25 avr. 2021 à 00:00, catborise @.***> a écrit :
--
Sincèrement,
Yannick Cadin
Diablotin - La formation Unix, Linux, xBSD, OS X, Solaris, AIX, HP-UX
@tree1123 commented on GitHub (Apr 25, 2021):
i try
curl -I localhost
HTTP/1.1 302 Found
Server: nginx/1.14.1
Date: Sun, 25 Apr 2021 00:25:27 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 0
Connection: keep-alive
Location: /accounts/login/?next=/
Vary: Accept-Language, Cookie
Content-Language: en
@ycadin commented on GitHub (Apr 25, 2021):
I meant you can reproduce the issue, while looking at the headers, with in
fact (I added the L option which fakes the typical behavior of a web
browser):
curl -IL localhost:8888
Le dim. 25 avr. 2021 à 02:26, tree1123 @.***> a écrit :
--
Sincèrement,
Yannick Cadin
Diablotin - La formation Unix, Linux, xBSD, OS X, Solaris, AIX, HP-UX
@tree1123 commented on GitHub (Apr 25, 2021):
i enter
curl -IL localhost
HTTP/1.1 302 Found
Server: nginx/1.14.1
Date: Sun, 25 Apr 2021 01:06:41 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 0
Connection: keep-alive
Location: /accounts/login/?next=/accounts/login/
Vary: Accept-Language, Cookie
Content-Language: en
HTTP/1.1 302 Found
Server: nginx/1.14.1
Date: Sun, 25 Apr 2021 01:06:41 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 0
Connection: keep-alive
Location: /accounts/login/?next=/accounts/login/
Vary: Accept-Language, Cookie
Content-Language: en
HTTP/1.1 302 Found
Server: nginx/1.14.1
Date: Sun, 25 Apr 2021 01:06:41 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 0
Connection: keep-alive
Location: /accounts/login/?next=/accounts/login/
Vary: Accept-Language, Cookie
Content-Language: en
curl: (47) Maximum (50) redirects followed
@catborise commented on GitHub (Apr 25, 2021):
i found the problem. it is related with django otp. after package updates it breaks... i will send patch
@ycadin commented on GitHub (Apr 25, 2021):
Thanks in advance
@tree1123 commented on GitHub (Apr 26, 2021):
everything is ok,thank you
@ycadin commented on GitHub (Apr 26, 2021):
Far better indeed. (Simply pip uninstall the 3 incriminated modules then installing them again with the right versions.)
Thanks