makeplane / plane

🔥 🔥 🔥 Open Source JIRA, Linear, Monday, and Asana Alternative. Plane helps you track your issues, epics, and product roadmaps in the simplest way possible.
http://plane.so
GNU Affero General Public License v3.0
28.43k stars 1.55k forks source link

[bug]: DO NOT LOG IN OR REGISTER #5117

Open tykocompany opened 1 month ago

tykocompany commented 1 month ago

Is there an existing issue for this?

Current behavior

I deployed the stack to Portainer using Docker Swarm and Traefik to do the reverse proxy. It deployed normally, but when I try to log in, absolutely nothing happens. It's like it's just a static screen, I've tried everything and I haven't been able to resolve it.

I left the file I used to deploy the stack as an attachment.

Steps to reproduce

version: "3.7"

x-app-env: &app-env environment:

services: web: <<: *app-env image: ${DOCKERHUB_USER:-makeplane}/plane-frontend:${APP_RELEASE:-stable} restart: unless-stopped command: node web/server.js web deploy: replicas: ${WEB_REPLICAS:-1} labels:

volumes: pgdata: redisdata: logs_api: logs_worker: logs_beat-worker: logs_migrator:

networks: mynetwork: external: true name: mynetwork

Environment

Production

Browser

Other

Variant

Self-hosted

Version

stable

pablohashescobar commented 1 month ago

@tykocompany, do you see any errors in the browser network console.

mguptahub commented 1 month ago

@tykocompany

The set of docker images are built to run on 1 primary domain. I can see that you are trying to host all microservices on different domain. Try modifying it as below.

- traefik.http.routers.web.rule=Host(plane.mydomain.com)

- traefik.http.routers.space.rule=Host(plane.mydomain.com) && PathPrefix(`/spaces/`)

- traefik.http.routers.admin.rule=Host(plane.mydomain.com) && PathPrefix(`/god-mode/`)

- traefik.http.routers.api.rule=Host(plane.mydomain.com) && PathPrefix(`/api/`)
- traefik.http.routers.api.rule=Host(plane.mydomain.com) && PathPrefix(`/auth/`)

Also, you may want to refer plane.env for the additional variables which are not included in the docker-compose.yaml.

tykocompany commented 1 month ago

I configured it as reported and checked it in the console as Pablo said. It did not load again and displayed the following error.

image

pablohashescobar commented 1 month ago

@tykocompany, as @mguptahub suggested the current plane instance is not meant to be run on multiple domains. If you require running them on multiple domain you have to build your own images.

tykocompany commented 1 month ago

@pablohashescobar configured the routes as @mguptahub recommended. But even with the configuration he recommended, an error occurred that I sent in the printout.

mguptahub commented 1 month ago

@tykocompany can you please share the error you are getting after implementing the suggested changes ?

schizophrenical commented 3 weeks ago

@tykocompany

The set of docker images are built to run on 1 primary domain. I can see that you are trying to host all microservices on different domain. Try modifying it as below.

- traefik.http.routers.web.rule=Host(plane.mydomain.com)

- traefik.http.routers.space.rule=Host(plane.mydomain.com) && PathPrefix(`/spaces/`)

- traefik.http.routers.admin.rule=Host(plane.mydomain.com) && PathPrefix(`/god-mode/`)

- traefik.http.routers.api.rule=Host(plane.mydomain.com) && PathPrefix(`/api/`)
- traefik.http.routers.api.rule=Host(plane.mydomain.com) && PathPrefix(`/auth/`)

Also, you may want to refer plane.env for the additional variables which are not included in the docker-compose.yaml.

I pretty much did as what is suggested above. The api endpoint returns 404 for /api/instances/ and /api/users/me. I suspect all /api calls returns 404.