-
Notifications
You must be signed in to change notification settings - Fork 33
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
Upgrade option doesn't pull existing version information correctly #28
Comments
Just out of curiosity did you modify the service file manually? |
Yes, as per proposed change |
I mean did you modify it since initial install? Before the issue. Or was it untouched since initial install by rocketchatctl. Just want to understand if this is an issue that happens with rocketchatctl installer or only if someone modified the file between install and update |
Ah, No I'd only touched rocketchatctl after I found that it wasn't working for me. |
@corrigac just to rule out a modified systemd unit file... can you copy and paste it here so we can rule out any special characters that might interfer here? What's your exact content of |
[Unit]
Description=The Rocket.Chat server
After=network.target remote-fs.target nss-lookup.target nginx.target
mongod.target
Wants=network-online.target mongod.target
[Service]
ExecStartPre=/bin/sleep 20
ExecStart=/usr/local/bin/node /opt/Rocket.Chat/main.js
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=rocketchat
User=rocketchat
Environment=ROOT_URL=http://rocketchat.############.com/ PORT=3000
MONGO_URL=mongodb://localhost:27017/rocketchat?replicaSet=rs01
MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01
[Install]
WantedBy=multi-user.target
…On Sun, 13 Dec 2020 at 12:30, Jonas Friedmann ***@***.***> wrote:
@corrigac <https://github.com/corrigac> just to rule out a modified
systemd unit file... can you copy and paste it here so we can rule out any
special characters that might interfer here? What's your exact content of
/lib/systemd/system/rocketchat.service?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH44JOMWMD3CV7OQNUHRMTSUSXU5ANCNFSM4NZKLIUA>
.
|
This is not a default unit file generated by The unit file currently should look like this: https://github.com/RocketChat/install.sh/blob/master/rocketchatctl#L480-L496 |
sudo rocketchatctl update --version 3.3.0 breaks on a test failure due to incorrect PORT data extraction
running with -x shows the issue:
++ cat /lib/systemd/system/rocketchat.service
++ grep PORT
++ awk -F= '{print $3}'
++ curl 'http://localhost:mongodb://localhost:27017/rocketchat?replicaSet/api/info'
++ cut '-d"' -f4
Line 757 - get_rocketchat_current_version() can mistakenly extract environment settings for Mongodb,
possible re-write may be:
get_rocketchat_current_version(){
}
The text was updated successfully, but these errors were encountered: