RocketChat / RocketChat/Rocket.Chat

Upgrade from 7.0.3 to 7.0.4+ deno Permission denied (os error 13)

Open
#34,982 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

On trying to upgrade 2 separate 7.0.3 docker based instances from 7.0.3 to 7.0.4 I get errors as per the attached logs.

I have tried 7.1.x and 7.2.x with similar results. As a result I am now stuck at 7.0.3

I did wonder if this was somehow related with the permissions.

https://github.com/RocketChat/Rocket.Chat/pull/34162

My docker runs as

[root@host configs]# grep docker /etc/group
docker:x:390:

[root@host configs]# grep docker /etc/passwd
docker:x:392:390:Docker User:/var/lib/docker:/sbin/nologin

Log errors - this instance ONLY has the Jitsi app.

Subprocess stderr Download https://jsr.io/@std/cli/1.0.9_meta.json

Subprocess stderr error: Permission denied (os error 13) (for '/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/.deno-cache/deps/https/jsr.io/c29b640a904c999165944cb8fa91773b04e6aababb971a93737582c5ecdb16a3')
    at file:///app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/deno-runtime/lib/parseArgs.ts:1:41
Error while compiling the App "Jitsi (3b387ba9-f57c-44c6-9810-8c0256abd64c)":
Error: [3b387ba9-f57c-44c6-9810-8c0256abd64c] Timeout: app process not ready
    at Timeout._onTimeout (/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/src/server/runtime/deno/AppsEngineDenoRuntime.ts:346:24)
    at listOnTimeout (node:internal/timers:581:17)
    at processTimers (node:internal/timers:519:7)
{"level":30,"time":"2025-01-20T23:56:03.295Z","pid":1,"hostname":"myhost.myserver.com","name":"Rocket.Chat Apps","msg":"Loaded the Apps Framework and loaded a total of 0 Apps!"}
Subprocess stderr Download https://jsr.io/@std/cli/1.0.9_meta.json

Subprocess stderr error: Permission denied (os error 13) (for '/app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/.deno-cache/deps/https/jsr.io/c29b640a904c999165944cb8fa91773b04e6aababb971a93737582c5ecdb16a3')
    at file:///app/bundle/programs/server/npm/node_modules/@rocket.chat/apps-engine/deno-runtime/lib/parseArgs.ts:1:41
Server Setup Information:
  • Version of Rocket.Chat Server: 7.0.3
  • License Type: Starter + EE
  • Number of Users: 6-99
  • Operating System: CentOS 7 (can't upgrade for a few more months....)
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: enabled
  • NodeJS Version: As per docker
  • MongoDB Version: 7.0.x

Logs
RocketBug-7.0.4.txt

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 permission failure in apps-engine's deno-runtime/lib/parseArgs.ts and the timeout reported by AppsEngineDenoRuntime.ts:346. Reproduce the 7.0.3-to-7.0.4+ Docker upgrade with the Jitsi app and inspect access to .deno-cache. Done means the app compiles and loads without the os error 13 or readiness timeout.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.