RocketChat / RocketChat/Rocket.Chat

Upgrading from 3.18.7 to v4 stable breaks chat from starting

Open
#31,836 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

I'm using snap to upgrade from 3.18.7 to v4 stable and rocketchat is failing to start due to this error ENOENT: no such file or directory, open '/tmp/userData/trhzKZo9dn4Tn56zC/user.html'

Steps to reproduce:
  1. snap refresh rocketchat-server --channel=4.x/stable
  2. Go to server via url
  3. Receive error 400
Expected behavior:

Chat should load

Actual behavior:

HTTP Error 400 with this message in logs: ENOENT: no such file or directory, open '/tmp/userData/trhzKZo9dn4Tn56zC/user.html'

Server Setup Information:
  • Version of Rocket.Chat Server: 4.x/stable
  • Operating System: ubuntu 16.04
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: 4.5.0
  • MongoDB Version: 3.0.15
Client Setup Information
  • Desktop App or Browser Version: Edge
  • Operating System: MacOS
Additional context

N/A

Relevant logs:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the snap upgrade command and the server startup path that reads /tmp/userData/.../user.html. Reproduce the upgrade from 3.18.7 to the 4.x/stable channel on Ubuntu 16.04, then inspect the resulting HTTP 400 and ENOENT log. Done means the server starts and chat loads successfully after the upgrade.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
backend, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.