plankanban / planka

The realtime kanban board for workgroups built with React and Redux.
https://planka.app
GNU Affero General Public License v3.0
8.05k stars 754 forks source link

Infinite loading screen #166

Open mfnalex opened 3 years ago

mfnalex commented 3 years ago

After installing via docker-compose, I cannot login using the demo credentials - the loading animation just keeps repeating forever and ever. The logs are showing nothing.

Syndamia commented 3 years ago

Could be a duplicate of #135 and #111. Are you sure that the BASE_URL inside docker-compose.yml is the same as the address you're trying to host it at (better explained in https://github.com/plankanban/planka/issues/158#issuecomment-933566242)?

mfnalex commented 3 years ago

the BASE_URL is set correctly to the public domain name, however I'm using a reverse proxy to localhost. It works fine without the proxy, but... that's not a vialable solution. Are there any headers the proxy must keep to make it work?

loranger commented 3 years ago

I had difficulties to make planka work using docker behind my traefik reverse-proxy, but now everything works flawlessly.

I did a quick summary here. I hope it would help

dbrennand commented 3 years ago

Having the correct value for the BASE_URL is very important. Most likely as in the other issues linked by @Syndamia your browser can't connect to the websocket. You can verify this by checking your browser's console logs.

If you're using a reverse proxy and it handles terminating TLS, then you should have the BASE_URL environment variable as https://domain.tld.

What do you have it set to currently @mfnalex?

In my case, I had to alter the trustProxy value. Please see PR #164 which is now merged 🥳 and #163.

mfnalex commented 3 years ago

Sorry, I currently don't have planka installed anymore. I'll try again on my testing server when I have time and will report back then. Feel free to close this issue for now.

raimundomartins commented 2 years ago

I have the same issue, BASE_URL=https://planka.foo.tld is copy-pasted into browser, and TRUST_PROXY=1. I'm using caddy as a reverse proxy (not docker) with a config of the sorts

planka.foo.tld {
        reverse_proxy localhost:8004
}

where 8004 is the port I set in the docker-compose.yml.

EDIT: So, I have another server that is exposed to the internet and I don't have this issue. I guess I can't run planka if I'm behind NAT?

noriakisana commented 2 years ago

when you are using an proxy, please remove the port. (worked for me with traefik). if you want, i can send you my docker-compose.yml later :D

Alumniminium commented 2 years ago

client/src/constants/Config.js has a fked if statement that makes websocket requests go to localhost:1337, fix the URL there or set it in ENV (REACT_APP_SERVER_BASE_URL)

pointjalta commented 2 years ago

Has anyone discovered what issue causing the problem? I just can't find a way yet on how to fi this ...

Giorgio-Germani commented 2 years ago

Here is my docker config that worked in combination with portainer and nginx proxy manager: Make sure you have the https domain set as base_url and websocket enabled in nginx proxy manager.

version: '3'

services: planka: image: ghcr.io/plankanban/planka:latest command: > bash -c "for i in seq 1 30; do ./start.sh && s=$$? && break || s=$$?; echo \"Tried $$i times. Waiting 5 seconds...\"; sleep 5; done; (exit $$s)" restart: unless-stopped volumes:

volumes: user-avatars: project-background-images: attachments: db-data:

frogman544 commented 2 years ago

Here is my docker config that worked in combination with portainer and nginx proxy manager:

Make sure you have the https domain set as base_url and websocket enabled in nginx proxy manager.


version: '3'

services:

planka:

image: ghcr.io/plankanban/planka:latest

command: >

  bash -c

    "for i in `seq 1 30`; do

      ./start.sh &&

      s=$$? && break || s=$$?;

      echo \"Tried $$i times. Waiting 5 seconds...\";

      sleep 5;

    done; (exit $$s)"

restart: unless-stopped

volumes:

  - user-avatars:/app/public/user-avatars

  - project-background-images:/app/public/project-background-images

  - attachments:/app/private/attachments

ports:

  - 3000:1337

environment:

  - BASE_URL=https://planka.domain.com

  - TRUST_PROXY=0

  - DATABASE_URL=postgresql://postgres@postgres/planka

  - SECRET_KEY=123randomlygenerated123

depends_on:

  - postgres

postgres:

image: postgres:alpine

restart: unless-stopped

volumes:

  - db-data:/var/lib/postgresql/data

environment:

  - POSTGRES_DB=planka

  - POSTGRES_HOST_AUTH_METHOD=trust

volumes:

user-avatars:

project-background-images:

attachments:

db-data:

Hey man! Can you also add the nginx part? Cheers!