Skip to content
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

how to update rustdesk server? #30

Closed
Benance opened this issue Jan 31, 2023 · 46 comments
Closed

how to update rustdesk server? #30

Benance opened this issue Jan 31, 2023 · 46 comments

Comments

@Benance
Copy link

Benance commented Jan 31, 2023

Hello I have installed rustdesk server with your script and all went well.
But now, how to update my installation?
I opened an issue here and the answer was to tell the question to the maintainer of the script
thanks for your answer.

@dinger1986
Copy link
Collaborator

thats a fair point, I havent written an upgrade script, I will get that done asap and let you know when done.

@Benance
Copy link
Author

Benance commented Jan 31, 2023

all right, thanks!

@dinger1986
Copy link
Collaborator

Actually it is there!

wget https://raw.githubusercontent.com/techahold/rustdeskinstall/master/update.sh
chmod +x update.sh
./update.sh

@Benance
Copy link
Author

Benance commented Jan 31, 2023

ok I've tested your update script, but I broke my rustdesk server setup
Here are the logs:

root@assist:~# ./update.sh Installing prerequisites Hit:1 http://security.debian.org bullseye-security InRelease Hit:2 http://ftp.debian.org/debian bullseye InRelease Hit:3 http://ftp.debian.org/debian bullseye-updates InRelease Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done tar is already the newest version (1.34+dfsg-1). unzip is already the newest version (6.0-26+deb11u1). wget is already the newest version (1.21-1+deb11u1). dnsutils is already the newest version (1:9.16.37-1~deb11u1). curl is already the newest version (7.74.0-1.3+deb11u5). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. rm: cannot remove 'hbbs': No such file or directory rm: cannot remove 'hbbs': No such file or directory Upgrading Rustdesk Server Rustdesk Relay not ready yet... rm: cannot remove 'rustdesk-server-linux-amd64.zip': No such file or directory rm: cannot remove 'gohttpserver_1.1.4_linux_amd64.tar.gz': No such file or directory rm: cannot remove 'gohttpserver_1.1.4_linux_arm64.tar.gz': No such file or directory Updates are complete

@dinger1986 dinger1986 reopened this Jan 31, 2023
@dinger1986
Copy link
Collaborator

sorry forgot to add this line

ARCH=$(uname -m)

Can you try again now?

@Benance
Copy link
Author

Benance commented Jan 31, 2023

ok now it's good.
Here are the logs:
root@assist:~# ./update.sh

Installing prerequisites
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://ftp.debian.org/debian bullseye InRelease
Get:3 http://ftp.debian.org/debian bullseye-updates InRelease [44.1 kB]
Fetched 44.1 kB in 0s (100 kB/s)    
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
tar is already the newest version (1.34+dfsg-1).
unzip is already the newest version (6.0-26+deb11u1).
wget is already the newest version (1.21-1+deb11u1).
dnsutils is already the newest version (1:9.16.37-1~deb11u1).
curl is already the newest version (7.74.0-1.3+deb11u5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Upgrading Rustdesk Server
--2023-01-31 14:16:50--  https://github.com/rustdesk/rustdesk-server/releases/download/1.1.7/rustdesk-server-linux-amd64.zip
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/299354666/6831d8f1-f7c5-48fe-aa1a-246b4666d111?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230131%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230131T131522Z&X-Amz-Expires=300&X-Amz-Signature=1fd38c0b8583636dbfac5e5f06bf835f871c4a8a26d7a9f5431b9d6d94a65298&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=299354666&response-content-disposition=attachment%3B%20filename%3Drustdesk-server-linux-amd64.zip&response-content-type=application%2Foctet-stream [following]
--2023-01-31 14:16:50--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/299354666/6831d8f1-f7c5-48fe-aa1a-246b4666d111?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230131%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230131T131522Z&X-Amz-Expires=300&X-Amz-Signature=1fd38c0b8583636dbfac5e5f06bf835f871c4a8a26d7a9f5431b9d6d94a65298&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=299354666&response-content-disposition=attachment%3B%20filename%3Drustdesk-server-linux-amd64.zip&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.110.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8214419 (7.8M) [application/octet-stream]
Saving to: 'rustdesk-server-linux-amd64.zip'

rustdesk-server-linux 100%[======================>]   7.83M   577KB/s    in 13s     

2023-01-31 14:17:04 (596 KB/s) - 'rustdesk-server-linux-amd64.zip' saved [8214419/8214419]

Archive:  rustdesk-server-linux-amd64.zip
  inflating: /opt/rustdesk/hbbr      
  inflating: /opt/rustdesk/hbbs      
  inflating: /opt/rustdesk/rustdesk-utils  
Rustdesk Relay not ready yet...
--2023-01-31 14:17:08--  https://github.com/codeskyblue/gohttpserver/releases/download/1.1.4/gohttpserver_1.1.4_linux_amd64.tar.gz
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/63852314/3b4f8927-1e46-46b6-873c-6407b36d0f92?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230131%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230131T131708Z&X-Amz-Expires=300&X-Amz-Signature=3242cd61800a3ed8fcc105d7d4b0383ea7fc47cda5668083edf0efbbb887c19d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=63852314&response-content-disposition=attachment%3B%20filename%3Dgohttpserver_1.1.4_linux_amd64.tar.gz&response-content-type=application%2Foctet-stream [following]
--2023-01-31 14:17:08--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/63852314/3b4f8927-1e46-46b6-873c-6407b36d0f92?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230131%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230131T131708Z&X-Amz-Expires=300&X-Amz-Signature=3242cd61800a3ed8fcc105d7d4b0383ea7fc47cda5668083edf0efbbb887c19d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=63852314&response-content-disposition=attachment%3B%20filename%3Dgohttpserver_1.1.4_linux_amd64.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.110.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4864160 (4.6M) [application/octet-stream]
Saving to: 'gohttpserver_1.1.4_linux_amd64.tar.gz'

gohttpserver_1.1.4_li 100%[======================>]   4.64M   804KB/s    in 5.3s    

2023-01-31 14:17:14 (894 KB/s) - 'gohttpserver_1.1.4_linux_amd64.tar.gz' saved [4864160/4864160]

rm: cannot remove 'gohttpserver_1.1.4_linux_arm64.tar.gz': No such file or directory
Updates are complete

@Benance
Copy link
Author

Benance commented Jan 31, 2023

thanks again for this work.
Regards

@dinger1986
Copy link
Collaborator

thanks!

@Bobnik66
Copy link

Tell me, have you, after the update, the connection database is not broken? I mean, previously issued IDs.

@dinger1986
Copy link
Collaborator

I dont even know what you mean? But the update is only updating the executables not any files

@Bobnik66
Copy link

I meant that if my computer was previously given a number, say 498 774 433, won't it change after the update?

@dinger1986
Copy link
Collaborator

dinger1986 commented Feb 15, 2023

It shouldnt with this script or otherwise, a question for rustdesk github if it does

@Bobnik66
Copy link

Thanks!

@Throwaway24924
Copy link

Could you make an update script for MacOS? I am stuck on an old server version and I can't get it to update

@dinger1986
Copy link
Collaborator

For Mac? How did you install the server on Mac?

@blyamur
Copy link

blyamur commented Jan 30, 2024

https://raw.githubusercontent.com/techahold/rustdeskinstall/master/update.sh

My ID has changed. But I can’t say that as a result of the update, since the other IDs remain the same and the connection is made through them

@dinger1986
Copy link
Collaborator

you have a paid license? if so you dont want to be using our installer, that will just get you the opensource one. https://github.com/rustdesk/rustdesk-server-pro

@dmaier63
Copy link

dmaier63 commented Feb 9, 2024 via email

@dinger1986
Copy link
Collaborator

Changed what?

@dmaier63
Copy link

dmaier63 commented Feb 9, 2024 via email

@dinger1986
Copy link
Collaborator

You said "Yea we changed it and found out this ;-)"

What did you change? please stop wasting my time I am trying to help!

@dmaier63
Copy link

dmaier63 commented Feb 9, 2024 via email

@dinger1986
Copy link
Collaborator

ok, so you are talking about pro and rustdesk clients, this isnt rustdesk, this is techahold, we only have written an opensource installer for the opensource server and have no affiliation to RustDesk, if you want to pay us to help support or troubleshoot your issues our details are on the readme.

@petryaevve
Copy link

Hi. Can you update script? Because they release version with "-1" in the end. But script cut it off and download not the latest version

@petryaevve
Copy link

Found new issue. Ok! But can you update script in code? Because github show old file

@dinger1986
Copy link
Collaborator

its already been done (line 7)
image

cb0958d

@petryaevve
Copy link

its already been done (line 7) image

cb0958d

Thanks. Just find that in install script it has another syntax

@dinger1986
Copy link
Collaborator

updated now, fair point should be consistent

@myssv
Copy link

myssv commented Aug 23, 2024

I used the script above and it seems that it only works one time.

At the second time the "update.sh" is saved as "update.sh1"

`root@RustDesk:~# wget https://raw.githubusercontent.com/techahold/rustdeskinstall/master/update.sh
--2024-08-23 09:59:12-- https://raw.githubusercontent.com/techahold/rustdeskinstall/master/update.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5069 (5.0K) [text/plain]
Saving to: 'update.sh.1'

update.sh.1 100%[=====================================================================================================================>] 4.95K --.-KB/s in 0s

2024-08-23 09:59:12 (64.8 MB/s) - 'update.sh.1' saved [5069/5069]

root@RustDesk:# chmod +x update.sh
root@RustDesk:
# ./update.sh
Same version no need to update.
root@RustDesk:~#
`

@dinger1986
Copy link
Collaborator

Yes, either need to delete the script or just run it again not download it again

@myssv
Copy link

myssv commented Aug 23, 2024

so this script will work fine?

`rm update.sh

wget https://raw.githubusercontent.com/techahold/rustdeskinstall/master/update.sh

chmod +x update.sh

./update.sh`

@dinger1986
Copy link
Collaborator

Yes

@myssv
Copy link

myssv commented Aug 23, 2024

Thank you!

@Anycubic
Copy link

Anycubic commented Nov 5, 2024

@dinger1986 hello, I used this script and latest version is 1.1.12. I run /opt/rustdesk/hbbs --version but I get 1.1.11-1 version. Same thing for hbbr, is this ok?
Thanks

@dinger1986
Copy link
Collaborator

doesnt seem to make sense, what do you get if you do the following:

RDLATEST=$(curl https://api.github.com/repos/rustdesk/rustdesk-server/releases/latest -s | grep "tag_name" | awk -F'"' '{print $4}')
echo $RDLATEST

@Anycubic
Copy link

Anycubic commented Nov 5, 2024

@dinger1986

2024-11-05_19-07-46

@dinger1986
Copy link
Collaborator

What architecture?

@Anycubic
Copy link

Anycubic commented Nov 5, 2024

Ubuntu Server 22.04.5

@dinger1986
Copy link
Collaborator

What arch?

@Anycubic
Copy link

Anycubic commented Nov 5, 2024

Intel AMD64

@dinger1986
Copy link
Collaborator

Remove the update script and download it again, maybe you have an old one

@Anycubic
Copy link

Anycubic commented Nov 5, 2024

Remove the update script and download it again, maybe you have an old one

Did you change it after my first comment? Because I did what you suggested just before writing here and nothing has changed, both with the script version I had and the one I downloaded today. Btw I'll start again from scratch and I will post the full script output

@dinger1986
Copy link
Collaborator

no, but I have ran it, like I said the already the key commands you have tested and show the newer version

@Anycubic
Copy link

Anycubic commented Nov 6, 2024

Remove the update script and download it again, maybe you have an old one

It seems to me it didn't change anything, I'm attaching a log. Is it maybe a weird issue on my server?
Thanks
log.txt

@dinger1986
Copy link
Collaborator

Yes it is

rustdesk-server-linux-amd64.zip.4

So check /opt/rustdesk for old zi files and remove them.

@Anycubic
Copy link

Anycubic commented Nov 6, 2024

Yes it is

rustdesk-server-linux-amd64.zip.4

So check /opt/rustdesk for old zi files and remove them.

Thanks, it did the trick.

2024-11-06_08-54-12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants