RocketChat / RocketChat/Rocket.Chat
Problem with upgrade from 3.x>5.4.10 | error from 5.4.10 to latest 6.x
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Hi, i have Debian 11 and Rocketchat via snap.
i make upgrade from 3x to 4x, then to 5x and all was OK
From 5 to 6 i have this error :
root@webserver:~# sudo snap refresh rocketchat-server
2023-05-25T12:14:15+02:00 INFO Waiting for “snap.rocketchat-server.rocketchat-mongo.service” to stop.
error: cannot perform the following tasks:
Start snap “rocketchat-server” (1557) services (systemctl command [start snap.rocketchat-server.rocketchat-mongo.service] failed with exit status 1: Job for snap.rocketchat-server.rocketchat-mongo.service failed because the control process exited with error code.
See “systemctl status snap.rocketchat-server.rocketchat-mongo.service” and “journalctl -xe” for details.
)
Server Setup Information
root@webserver:~# snap info rocketchat-server
name: rocketchat-server
summary: Rocket.Chat server
publisher: Rocket.Chat (rocketchat✓)
license: unset
description: |
Have your own Slack like online chat, built with Meteor. https://rocket.chat/
commands:
rocketchat-server.backupdb
rocketchat-server.mongo
rocketchat-server.restoredb
services:
rocketchat-server.rocketchat-caddy: simple, enabled, inactive
rocketchat-server.rocketchat-mongo: forking, enabled, active
rocketchat-server: simple, enabled, active
snap-id: wdBUbiEuMNHmAHLBCXQXOcXaOCvbWS1e
tracking: 6.x/stable
refresh-date: today at 10:04 CEST
channels:
6.x/stable: 6.2.2 2023-05-19 (1557) 317MB -
6.x/candidate: ↑
6.x/beta: ↑
6.x/edge: 6.2.2 2023-05-19 (1557) 317MB -
latest/stable: 6.1.5 2023-04-26 (1547) 326MB -
latest/candidate: ↑
latest/beta: ↑
latest/edge: ↑
5.x/stable: 5.4.10 2023-05-19 (1556) 301MB -
5.x/candidate: 5.4.4 2023-03-09 (1540) 300MB -
5.x/beta: 5.4.4 2023-03-09 (1540) 300MB -
5.x/edge: 5.4.10 2023-05-19 (1556) 301MB -
4.x/stable: 4.8.7 2022-12-04 (1533) 281MB -
4.x/candidate: ↑
4.x/beta: ↑
4.x/edge: ↑
installed: 5.4.10 (1555) 301MB -
info from journalctl -xe
May 25 12:51:47 webserver audit[16961]: AVC apparmor=“DENIED” operation=“open” profile=“snap.rocketchat-server.rocketchat-mongo” name=“/proc/16961/net/netstat” pid=16961 comm=“ftdc” requested_mask>
May 25 12:51:47 webserver audit[16961]: AVC apparmor=“DENIED” operation=“open” profile=“snap.rocketchat-server.rocketchat-mongo” name=“/proc/16961/net/snmp” pid=16961 comm=“ftdc” requested_mask=“r>
May 25 12:51:47 webserver audit[16961]: AVC apparmor=“DENIED” operation=“open” profile=“snap.rocketchat-server.rocketchat-mongo” name=”/proc/16961/mountinfo" pid=16961 comm=“ftdc” requested_mask=“>
May 25 12:51:47 webserver audit[16961]: AVC apparmor=“DENIED” operation=“open” profile=“snap.rocketchat-server.rocketchat-mongo” name=”/proc/vmstat" pid=16961 comm=“ftdc” requested_mask=“r” denied>
May 25 12:51:48 webserver kernel: audit: type=1400 audit(1685011907.999:41505): apparmor=“DENIED” operation=“open” profile=“snap.rocketchat-server.rocketchat-mongo” name=“/proc/16961/net/netstat” >
May 25 12:51:48 webserver kernel: audit: type=1400 audit(1685011907.999:41506): apparmor=“DENIED” operation=“open” profile=“snap.rocketchat-server.rocketchat-mongo” name=“/proc/16961/net/snmp” pid>
May 25 12:51:48 webserver kernel: audit: type=1400 audit(1685011907.999:41507): apparmor=“DENIED” operation=“open” profile=“snap.rocketchat-server.rocketchat-mongo” name=“/proc/16961/mountinfo” pi>
May 25 12:51:48 webserver kernel: audit: type=1400 audit(1685011907.999:41508): apparmor=“DENIED” operation=“open” profile=“snap.rocketchat-server.rocketchat-mongo” name=“/proc/vmstat” pid=16961 c>
May 25 12:51:48 webserver audit[16961]: AVC apparmor=“DENIED” operation=“open” profile=“snap.rocketchat-server.rocketchat-mongo” name=“/proc/16961/net/netstat” pid=16961 comm=“ftdc” requested_mask>
May 25 12:51:48 webserver audit[16961]: AVC apparmor=“DENIED” operation=“open” profile=“snap.rocketchat-server.rocketchat-mongo” name=“/proc/16961/net/snmp” pid=16961 comm=“ftdc” requested_mask=“r>
May 25 12:51:48 webserver audit[16961]: AVC apparmor=“DENIED” operation=“open” profile=“snap.rocketchat-server.rocketchat-mongo” name=”/proc/16961/mountinfo" pid=16961 comm=“ftdc” requested_mask=“>
May 25 12:51:48 webserver audit[16961]: AVC apparmor=“DENIED” operation=“open” profile=“snap.rocketchat-server.rocketchat-mongo” name=”/proc/vmstat" pid=16961 comm=“ftdc” requested_mask=“r” denied>
May 25 12:51:49 webserver kernel: audit: type=1400 audit(1685011908.999:41509): apparmor=“DENIED” operation=“open” profile=“snap.rocketchat-server.rocketchat-mongo” name=“/proc/16961/net/netstat” >
May 25 12:51:49 webserver kernel: audit: type=1400 audit(1685011908.999:41510): apparmor=“DENIED” operation=“open” profile=“snap.rocketchat-server.rocketchat-mongo” name=“/proc/16961/net/snmp” pid>
root@webserver:~# systemctl status snap.rocketchat-server.rocketchat-server.service
● snap.rocketchat-server.rocketchat-server.service - Service for snap application rocketchat-server.rocketchat-server
Loaded: loaded (/etc/systemd/system/snap.rocketchat-server.rocketchat-server.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-05-29 10:51:38 CEST; 27s ago
Main PID: 424125 (start_rocketcha)
Tasks: 12 (limit: 4657)
Memory: 725.8M
CPU: 20.540s
CGroup: /system.slice/snap.rocketchat-server.rocketchat-server.service
├─424125 /bin/bash /snap/rocketchat-server/1555/bin/start_rocketchat.sh
└─424236 node /snap/rocketchat-server/1555/main.js
May 29 10:51:52 webserver rocketchat-server.rocketchat-server[424236]: | MongoDB Version: 4.4.15 |
May 29 10:51:52 webserver rocketchat-server.rocketchat-server[424236]: | MongoDB Engine: wiredTiger |
May 29 10:51:52 webserver rocketchat-server.rocketchat-server[424236]: | Platform: linux |
May 29 10:51:52 webserver rocketchat-server.rocketchat-server[424236]: | Process Port: 3000 |
May 29 10:51:52 webserver rocketchat-server.rocketchat-server[424236]: | Site URL: http://192.168.1.107:3000 |
May 29 10:51:52 webserver rocketchat-server.rocketchat-server[424236]: | ReplicaSet OpLog: Enabled |
May 29 10:51:52 webserver rocketchat-server.rocketchat-server[424236]: | Commit Hash: ba268c5004 |
May 29 10:51:52 webserver rocketchat-server.rocketchat-server[424236]: | Commit Branch: HEAD |
May 29 10:51:52 webserver rocketchat-server.rocketchat-server[424236]: | |
May 29 10:51:52 webserver rocketchat-server.rocketchat-server[424236]: +--------------------------------------------------+
root@webserver:~# sudo tail -f /var/log/syslog
May 29 10:55:07 webserver kernel: [230489.774135] audit: type=1400 audit(1685350506.999:915759): apparmor="DENIED" operation="open" profile="snap.rocketchat-server.rocketchat-mongo" name="/proc/vmstat" pid=423960 comm="ftdc" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
May 29 10:55:08 webserver kernel: [230490.774140] audit: type=1400 audit(1685350507.999:915760): apparmor="DENIED" operation="open" profile="snap.rocketchat-server.rocketchat-mongo" name="/proc/423960/mountinfo" pid=423960 comm="ftdc" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
May 29 10:55:08 webserver kernel: [230490.774148] audit: type=1400 audit(1685350507.999:915761): apparmor="DENIED" operation="open" profile="snap.rocketchat-server.rocketchat-mongo" name="/proc/vmstat" pid=423960 comm="ftdc" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
May 29 10:55:09 webserver kernel: [230491.774023] audit: type=1400 audit(1685350508.999:915762): apparmor="DENIED" operation="open" profile="snap.rocketchat-server.rocketchat-mongo" name="/proc/423960/mountinfo" pid=423960 comm="ftdc" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
May 29 10:55:09 webserver kernel: [230491.774031] audit: type=1400 audit(1685350508.999:915763): apparmor="DENIED" operation="open" profile="snap.rocketchat-server.rocketchat-mongo" name="/proc/vmstat" pid=423960 comm="ftdc" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the snap refresh from 5.4.10 to 6.2.2 on Debian 11, then inspect the shown systemctl status, journalctl, and AppArmor audit output for the rocketchat-mongo service. Done means the upgrade completes and both the MongoDB and Rocket.Chat services start successfully without the reported failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- debian, linux, mongodb
- Domain
- database, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100