planka icon indicating copy to clipboard operation
planka copied to clipboard

Infinite loading screen

Open mfnalex opened this issue 3 years ago • 11 comments

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.

mfnalex avatar Oct 07 '21 13:10 mfnalex

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)?

Syndamia avatar Oct 07 '21 16:10 Syndamia

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?

mfnalex avatar Oct 08 '21 10:10 mfnalex

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

loranger avatar Oct 11 '21 11:10 loranger

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.

dbrennand avatar Oct 21 '21 18:10 dbrennand

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.

mfnalex avatar Oct 21 '21 18:10 mfnalex

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?

raimundomartins avatar Jan 29 '22 11:01 raimundomartins

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

noriakisana avatar Feb 28 '22 08:02 noriakisana

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)

Alumniminium avatar Apr 13 '22 18:04 Alumniminium

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

pointjalta avatar Jul 13 '22 12:07 pointjalta

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:

Giorgio-Germani avatar Aug 11 '22 18:08 Giorgio-Germani

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!

frogman544 avatar Aug 30 '22 16:08 frogman544