Closed CvH closed 2 years ago
Can you please show me stat /snap/rocketchat-server/1502/migrations/feature_compatibility/pre_adopt_version.sh
root@chat:~# stat /snap/rocketchat-server/1502/migrations/feature_compatibility/pre_adopt_version.sh
File: /snap/rocketchat-server/1502/migrations/feature_compatibility/pre_adopt_version.sh
Size: 165 Blocks: 0 IO Block: 131072 regular file
Device: 44h/68d Inode: 3365539693 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2021-12-02 11:47:55.000000000 +0100
Modify: 2021-12-02 11:47:55.000000000 +0100
Change: 2021-12-02 11:47:55.000000000 +0100
Birth: -
root@chat:~# cat /snap/rocketchat-server/1502/migrations/feature_compatibility/pre_adopt_version.sh
#!/bin/bash
source $SNAP/helpers/mongo.sh
start() {
local v=$(mongo_version_excluding_patch)
is_feature_compatibility $v || set_feature_compatibility $v
}
Hmm,
[debdut@Rocket tmp]$ stat $_
File: /snap/rocketchat-server/1502/migrations/feature_compatibility/pre_adopt_version.sh
Size: 165 Blocks: 1 IO Block: 1024 regular file
Device: 7,17 Inode: 5690 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2021-12-02 16:17:55.000000000 +0530
Modify: 2021-12-02 16:17:55.000000000 +0530
Change: 2021-12-02 16:17:55.000000000 +0530
Birth: -
This file, shouldn't run :(
Do you mind running
find /snap/rocketchat-server/1502/migrations/ -executable -type f
root@chat:~# find /snap/rocketchat-server/1502/migrations/ -executable -type f
/snap/rocketchat-server/1502/migrations/feature_compatibility/post_confirm_mongo_startup.sh
/snap/rocketchat-server/1502/migrations/feature_compatibility/pre_adopt_version.sh
/snap/rocketchat-server/1502/migrations/post_new_snap_initializations.sh
Which distribution are you in? -executable
should only spit out executable files. But as you can see above not all of them are executable
mine
[debdut@Rocket tmp]$ find /snap/rocketchat-server/1502/migrations/ -executable -type f
/snap/rocketchat-server/1502/migrations/post_new_snap_initializations.sh
Hmm, that flag doesn't seem to be much reliable. I'll push a fix asap. Need to just match the epochs. should be fun.
Thats an LXC running Ubuntu 20.04 since ~2years. nothing special and no manual changes at snap.
root@chat:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
root@chat:~# ll /snap/rocketchat-server/1502/migrations/feature_compatibility/*
-rw-r--r-- 1 root root 305 Dec 14 19:55 /snap/rocketchat-server/1502/migrations/feature_compatibility/post_confirm_mongo_startup.sh
-rw-r--r-- 1 root root 165 Dec 2 11:47 /snap/rocketchat-server/1502/migrations/feature_compatibility/pre_adopt_version.sh
root@chat:~# ll /snap/rocketchat-server/1502/migrations/*
-rwxr-xr-x 1 root root 1771 Dec 15 11:32 /snap/rocketchat-server/1502/migrations/post_new_snap_initializations.sh*
I'll push a fix asap
tx
@CvH at the moment, you should still be able to update to latest. Just do these
sudo snap set rocketchat-server ignore-errors=true
sudo snap refresh rocketchat-server
Please make sure you back up the data first.
Please let me know when you start the process, I'll be online just in case.
looks working, tx
Great! Please reset the ignore-errors value. That's just a failsafe for situations like these.
sudo snap set rocketchat-server ignore-errors=false
uff tx for reminding 👍
hi, I use a raspberry pi 4 with RaspberryOS 64bit (Buster) . With the command: sudo snap refresh rocketchat-server --channel=4.x/stable I updated yesterday from 3.18.2 to version 4.1.2. But MongoDB is still version 3.6.23. With the refresh command, no newer version than 4.1.2 is displayed to me. I also get the deprecaded message. How can I update the MongoDB version? Will ARM computers get the update later? Many thanks for your help! Sorry for my bad english.
Hey @Zwiggelino Yes arm updates are seperate, nd will start next week. You can create a seperate issue on that.
I'm closing this now since this is fixed.
I tried to update from 4.2.2 to 4.3.1 (current latest in 4.x train)
snap refresh rocketchat-server
current setup