Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subdir routing is duplicated. #10248

Open
honzasram opened this issue Mar 28, 2018 · 2 comments
Open

Subdir routing is duplicated. #10248

honzasram opened this issue Mar 28, 2018 · 2 comments

Comments

@honzasram
Copy link

Description:

As per title, I've met problem with latest image after recreating whole setup. Web applications is not responding. Proxy response is 504 Gateway Time-out. Same when i try go directly to server.
Desktop app is working like a charm.

Server Setup Information:

  • Version of Rocket.Chat Server: 0.62.2
  • Operating System: Debian jessie
  • Deployment Method(snap/docker/tar/etc): docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: enabled
  • Node Version:
  • mongoDB Version:

Our setup has NGINX reverse proxy with these lines in config:

  location /rocket{
    proxy_pass http://machine-ip:3000;
  }

docker compose have this:

  rocketchat:
    image: rocket.chat:latest
    restart: unless-stopped
    volumes:
      - ./uploads:/app/uploads
    environment:
      - PORT=3000
      - ROOT_URL=https://our.domain.com/rocket
      - MONGO_URL=mongodb://mongo:27017/rocketchat
      - MONGO_OPLOG_URL=mongodb://mongo:27017/local
      - Accounts_UseDNSDomainCheck=false
    depends_on:
      - mongo
    ports:
      - 3000:3000

  mongo:
    image: mongo
    restart: unless-stopped
    volumes:
     - ./data/runtime/db:/data/db
     - ./data/dump:/dump
    command: mongod --smallfiles --replSet rs0
    labels:
      - "traefik.enable=false"

Relevant logs:

docker logs show this:

(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Error: url must be a relative URL:
@honzasram
Copy link
Author

After some horsin' around I find out that instance is somehow responsive at https://our.domain.com/rocket/rocket. With double subfolder I get loading script but nothing else.
Same when i reach server directly (without reverse proxy).

Can somebody please help me? It's frustrating. Subfolder was working fine before.
I tried to create it from fresh start without config and other data, also unsuccessful. However without subfolder it is working fine.

@honzasram honzasram changed the title Desktop app woking, web app not. Subdir routing is duplicated. Apr 10, 2018
@ura14h
Copy link
Contributor

ura14h commented Jun 13, 2018

Same issue? #10732

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants