mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 03:14:50 +03:00
Unable to load Planka after login #53
Reference in New Issue
Block a user
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 @Sup3rlativ3 on GitHub (Dec 26, 2020).
Hi,
I've tried installing using the docker compose file and changing the base_url as required but when I log in, I just get a spinning wheel.
The docker logs for the container shows the following.
The docker logs for the postgres container are:
as a side note, I really think that changing the postgres trust as recommended at the top should be done to tighten the security.
I've gone into the container for Planka and tried to find some logs but haven't been able to find anything of use. The only log files I found were:
So I opened the console in the browser (Edge Chromium) and got the following.
WebSocket connection to 'ws://192.168.1.111:3000/socket.io/?__sails_io_sdk_version=1.2.1&__sails_io_sdk_platform=node&__sails_io_sdk_language=javascript&EIO=3&transport=websocket' failed: Error during WebSocket handshake: Unexpected response code: 400The logs from Firefox are:
From what I can see, there's something with the socket.io library that isn't working as expected.
https://github.com/websockets/ws/issues/979
https://github.com/socketio/socket.io/issues/1942
I'm wondering what it is I might have done wrong to cause this? I've tried recreating the entire setup but that hasn't helped.
@meltyshev commented on GitHub (Dec 26, 2020):
Hi, sorry for the long answer. Already trying to recreate this on my PC.
@meltyshev commented on GitHub (Dec 26, 2020):
I've tested it, BASE_URL with my external IP address is working well. Can you provide your docker-compose file? You may have forgotten to specify a port number in the BASE_URL or something like that. This error appears when the BASE_URL doesn't fully match the browser's address bar.
@Sup3rlativ3 commented on GitHub (Dec 27, 2020):
Hi, thanks for the reply. my docker-compose is below (I've changed the domain name to be generic and replaced my secret key).
Just for your reference, I've tried setting the host_url to be the IP address as well as the hostname. I've tried using SSL (via the reverse proxy) and straight https but nothing seems to work.
@Sup3rlativ3 commented on GitHub (Dec 27, 2020):
Request headers:
Response headers:
@jhonny1977 commented on GitHub (Dec 30, 2020):
Same problem happen on me. when we change to localhost:3000 it work perfect. I move to ubuntu wsl2 install everything it work at 192.168.1.10:3000 but only work local computer. when i using other computer open it. its failed
@clemone210 commented on GitHub (Jan 5, 2021):
I had the same.
You have to set the https protocol as well as the domainname which you will access it.
So if you access planka via reverse proxy through https://planka.mydomain.com you will have to enter
@Syndamia commented on GitHub (Jan 6, 2021):
If you're using a reverse proxy with apache, you need to add this to your .conf file. Although, just so you know, I had to remove and recompose (
docker-compose up -d) the docker container after modifying apache.@jhonny1977 commented on GitHub (Jan 23, 2021):
add some route command by administrator permission, then need changed in some setting inside planka. It already work for me. but with paintful.
@jhonny1977 commented on GitHub (Jan 23, 2021):
the docker ip and our local ip is different , so not just problem comes from docker. its a routing network problem
@jhonny1977 commented on GitHub (Jan 23, 2021):
forget to told there also need configure some websocket setting to make it working
@NickKelly1 commented on GitHub (Feb 3, 2021):
Had a similar problem using Nginx as a reverse proxy
Worked after adding these lines to my
nginx.conf@Syndamia commented on GitHub (Feb 6, 2021):
Ok, my first answer was incomplete (mostly because I didn't know exactly fixed it), but now I had to remake my planka instance, and I started fully from scratch. I tracked my steps and this is what you have to do:
docker-compose.ymlfile by replacingBASE_URL=http://localhost:PORTwithBASE_URL=https://planka.yourdomain.comand recompose the docker container!sudo a2enmod proxy_wstunnel(don't forget to restart apache2 afterwards).@ikwtif commented on GitHub (Mar 29, 2021):
I assume this issue hasn't been solved? I'm having the same issue, I'm using nginx proxy manager but I don't really have an idea on how to implement these "fixes" for this. I can see the login fine either on my local network or trough my domain, but it's just infinite loading after I login.
Any ideas for how to fix this with nginx proxy manager?
@pbartyik commented on GitHub (Mar 30, 2021):
I had the same issue with nginx @ikwtif . I'm doing exactly as in #21 , the mistake I made was that BASE_URL had the port 3000 in it. Had to change it to https://whatever.mydomain.my and recompose. Although I did stop the running containers, wiped the installed docker volumes and then recompose. This wasn't a problem as I had a fresh install.
@ikwtif commented on GitHub (Mar 31, 2021):
I'm running nginx proxymanager (https://github.com/jc21/nginx-proxy-manager/) , guess I should figure out how to use it with that then, might be a bit different. Not sure if I can just edit config files myself without breaking something. But I'll try, thanks
@ikwtif commented on GitHub (Apr 1, 2021):
Just a FYI. I just had to toggle a button for websocket support in the nginx proxymanager. Apparently, I'm blind and I didn't even notice the button.
@plutec commented on GitHub (Nov 27, 2024):
I solved the problem changing the parameter onlyAllowOrigins in config/env/production.js
I'm serving all the web in the port 3000.
My case:
Hope it helps.
Best,
@kaipee commented on GitHub (Sep 18, 2025):
For NGINX reverse proxy the following works: