Closed scott-grimes closed 1 month ago
looks like I mis-interpreted the .env file. some of those values must explicitly be set because they do not have defaults within the images.
UWSGI_PROCESSES=2
UWSGI_THREADS=2
UWSGI_LISTEN=100
were the culprits in this case. checking the /opt/openwisp/uwsgi.ini file in the dashboard container revealed the issue
having a further problem however: logging in fails. using the default admin:admin credentials I get a 302 response to the POST with a location of /admin/, but this simply takes me back to the login page.
having a further problem however: logging in fails. using the default admin:admin credentials I get a 302 response to the POST with a location of /admin/, but this simply takes me back to the login page.
I have heard about this from some other folks as well, but they fail to help me find information for debugging. In past, most people have just reset their machines / installed newer version of debian/ubuntu and it worked! 😄
UWSGI_PROCESSES=2 UWSGI_THREADS=2 UWSGI_LISTEN=100
This might have been a newer change, the correct thing to do is have default for these! 😄
@atb00ker
hmm I'm pulling the latest docker images openwisp/openwisp-dashboard:latest
, sha256:e5351cb8e1ad0d4eecac6278591e1b315a9151c79b5139c1e2cb34e5e4db033a
I've also tried building using the current master branch, both give the same result with the 302 responst to POST bringing me back to the login page
heres the logs of the dashboard container
[875931634a3f] - pid: 156 - (-) {16 vars in 169 bytes} [Fri Sep 23 19:05:20 2022] GET / => generated 0 bytes in 560 msecs (HTTP/1.1 302) 8 headers in 241 bytes (1 switches on core 0)
[875931634a3f] - pid: 156 - (-) {16 vars in 169 bytes} [Fri Sep 23 19:05:20 2022] GET / => generated 0 bytes in 555 msecs (HTTP/1.1 302) 8 headers in 241 bytes (1 switches on core 1)
[875931634a3f] - pid: 154 - (-) {16 vars in 169 bytes} [Fri Sep 23 19:05:20 2022] GET / => generated 0 bytes in 648 msecs (HTTP/1.1 302) 8 headers in 241 bytes (1 switches on core 0)
[875931634a3f] - pid: 154 - (-) {16 vars in 169 bytes} [Fri Sep 23 19:05:20 2022] GET / => generated 0 bytes in 643 msecs (HTTP/1.1 302) 8 headers in 241 bytes (1 switches on core 1)
[875931634a3f] - pid: 154 172.18.0.11 (-) {32 vars in 380 bytes} [Fri Sep 23 19:05:25 2022] GET /admin/login/ => generated 2777 bytes in 142 msecs (HTTP/1.1 200) 10 headers in 518 bytes (1 switches on core 0)
[875931634a3f] - pid: 154 172.18.0.1 (-) {56 vars in 1030 bytes} [Fri Sep 23 19:05:50 2022] GET /admin/login/?next=/admin/ => generated 2790 bytes in 10 msecs (HTTP/1.1 200) 10 headers in 518 bytes (1 switches on core 1)
[875931634a3f] - pid: 156 172.18.0.1 (-) {64 vars in 1213 bytes} [Fri Sep 23 19:06:01 2022] POST /admin/login/?next=/admin/ => generated 0 bytes in 250 msecs (HTTP/1.1 302) 14 headers in 805 bytes (1 switches on core 0)
[875931634a3f] - pid: 156 172.18.0.1 (-) {58 vars in 1018 bytes} [Fri Sep 23 19:06:01 2022] GET /admin/ => generated 0 bytes in 1 msecs (HTTP/1.1 302) 10 headers in 380 bytes (1 switches on core 1)
[875931634a3f] - pid: 156 172.18.0.1 (-) {58 vars in 1055 bytes} [Fri Sep 23 19:06:01 2022] GET /admin/login/?next=/admin/ => generated 2790 bytes in 74 msecs (HTTP/1.1 200) 10 headers in 518 bytes (1 switches on core 0)
[875931634a3f] - pid: 156 172.18.0.1 (-) {64 vars in 1213 bytes} [Fri Sep 23 19:07:02 2022] POST /admin/login/?next=/admin/ => generated 0 bytes in 420 msecs (HTTP/1.1 302) 14 headers in 805 bytes (1 switches on core 1)
[875931634a3f] - pid: 154 172.18.0.1 (-) {58 vars in 1018 bytes} [Fri Sep 23 19:07:03 2022] GET /admin/ => generated 0 bytes in 26 msecs (HTTP/1.1 302) 10 headers in 380 bytes (1 switches on core 0)
[875931634a3f] - pid: 154 172.18.0.1 (-) {58 vars in 1055 bytes} [Fri Sep 23 19:07:03 2022] GET /admin/login/?next=/admin/ => generated 2790 bytes in 20 msecs (HTTP/1.1 200) 10 headers in 518 bytes (1 switches on core 1)
and a screenshot. happy to provide any other debugging info you'd like!
Thanks a lot, unfortunately, I didn't get around to checking this. Will ping when I do! 😄
Should be fixed on latest master, please reopen if that's not the case.
Dashboard will not load on a fresh install. nginx times out.
.env
openwisp dashboard logs:
nginx logs: