Closed zamashal closed 4 years ago
After troubleshooting cookies and site permissions, I was able for once to get to this screen:
Nothing further and errors I mentioned earlier came back.
It looks like you fixed it yourself! Please reopen if I misunderstood.
Hey @johanstokking - sorry for the misunderstanding. It's actually not fixed and I still get the error mentioned. I am not able to access the console because after login I keep hitting an "Internal Server Error" page. Also, after I delete all the cookies and start fresh, I am able to log in the first attempt, but I only get to the blank screen that I shared above without being able to access the console. Hope that clears up the current situation.
Thanks and I would appreciate your feedback on this!
stack_1 | ERROR Request error duration=1.44237ms method=GET namespace=web remote_addr=pc_ip:61768 request_id=01DZSCETNWWY9G6ZAS88R4WKDV response_size=2286 status=500 url=/console/oauth/callback?code=MF2XI.XQS7DKRCVUL6VGAM56QVWVLJC2ATXZKHL74LZNA.FV57FSVS2IZ4FJ5YDIKYP4WOTIEDNIDQLQNKNRJXVZCIR5KAO7YQ&state=NkJcx6v_UHD3L_1z
Looks like we need to know why this request failed with 500; I think we're missing logging the error.
Perhaps we should start by making it possible to display the error details in the UI. When I made a typo in my configuration, I also got an unhelpful error without details, while those details were in fact available:
(the typo was that I configured The Things Stack to use https on port 1885)
I have been able to access the console when I put in the full url (www.example.com) in my docker-compose.yml file. It works fine for me without HTTPS. I'm off to configuring with HTTPS wish me luck!
@htdvisser, here is the output from my console (Chrome Browser): thethingsexample-1582139031550.log
I have been able to access the console when I put in the full url (www.example.com) in my docker-compose.yml file. It works fine for me without HTTPS. I'm off to configuring with HTTPS wish me luck!
@OladapoAjala You are amazing! I changed the links from https to http in my docker-compose.yml and it worked! Thank you!
Can you guys provide the configuration (ttn-lw-stack config
or the configuration settings)?
Also can you provide the full, clean log, preferably with log.level=debug
(or TTN_LW_LOG_LEVEL=debug
) from starting the stack and accessing the Console via https?
I'm a bit lost now what's wrong with your https setup. I'm not sure why there would be a 500 on https. Again, we can do better on the logging, and that is why this issue is open, but maybe there's an underlying error that we need to fix too.
@johanstokking , I already have that included in my first comment: https://github.com/TheThingsNetwork/lorawan-stack/issues/1942#issue-557106729
Thanks for looking into this!
@zamashal we did numerous changes in the meantime; please reopen if this is still relevant.
Summary
Unable to log in to the console and getting redirected to a page with Internal Server Error instead.
Steps to Reproduce
docker-compose up
and check the logs as you browse to the consoleWhat do you see now?
As soon as I try to access the console by browsing to
https://thethings.example.com
on my pc, I see the following on my debug logs:After I click Login on the first screen, I get the following:
Finally, after I enter the user id and password and click Login, I see this:
It redirects me to a page showing "Internal Server Error" and gets stuck there.
What do you want to see instead?
Successful login to the console
Environment
Ubuntu 18.04.3 LTS (Bionic Beaver)
How do you propose to implement this?
...
Can you do this yourself and submit a Pull Request?
...