techahold / rustdeskinstall

Easy install Script for Rustdesk
MIT License
379 stars 114 forks source link

Current Version wont work with Debian 11 #20

Closed MrFlyingToasterman closed 1 year ago

MrFlyingToasterman commented 1 year ago

Unfortunately, the install script doesn't seem to work on Debian Bullseye either.

After executing the script, at some point I get this loop:

root@debianserver# ./install.sh

Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet...

I have gathered some information that I hope will help identify the problem.

root@debianserver# journalctl -xe --follow

Nov 09 19:46:31 debianserver systemd[1]: Started Rustdesk Signal Server. ░░ Subject: A start job for unit rustdesksignal.service has finished successfully ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ A start job for unit rustdesksignal.service has finished successfully. ░░ ░░ The job identifier is 5478. Nov 09 19:46:31 debianserver systemd[1]: rustdeskrelay.service: Main process exited, code=exited, status=203/EXEC ░░ Subject: Unit process exited ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ An ExecStart= process belonging to unit rustdeskrelay.service has exited. ░░ ░░ The process' exit code is 'exited' and its exit status is 203. Nov 09 19:46:31 debianserver systemd[1]: rustdeskrelay.service: Failed with result 'exit-code'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ The unit rustdeskrelay.service has entered the 'failed' state with result 'exit-code'. Nov 09 19:46:31 debianserver systemd[11467]: rustdesksignal.service: Failed to locate executable /opt/rustdesk/hbbs: No such file or directory ░░ Subject: Process /opt/rustdesk/hbbs could not be executed ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ The process /opt/rustdesk/hbbs could not be executed and failed. ░░ ░░ The error number returned by this process is ERRNO. Nov 09 19:46:31 debianserver systemd[11467]: rustdesksignal.service: Failed at step EXEC spawning /opt/rustdesk/hbbs: No such file or directory ░░ Subject: Process /opt/rustdesk/hbbs could not be executed ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ The process /opt/rustdesk/hbbs could not be executed and failed. ░░ ░░ The error number returned by this process is ERRNO. Nov 09 19:46:31 debianserver systemd[1]: rustdesksignal.service: Main process exited, code=exited, status=203/EXEC ░░ Subject: Unit process exited ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ An ExecStart= process belonging to unit rustdesksignal.service has exited. ░░ ░░ The process' exit code is 'exited' and its exit status is 203. Nov 09 19:46:31 debianserver systemd[1]: rustdesksignal.service: Failed with result 'exit-code'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: https://www.debian.org/support ░░ ░░ The unit rustdesksignal.service has entered the 'failed' state with result 'exit-code'.

Failed to locate executable /opt/rustdesk/hbbs: No such file or directory

root@debianserver# netstat -tulpn |grep hbbs

tcp 0 0 0.0.0.0:21115 0.0.0.0: LISTEN 11588/hbbs
tcp 0 0 0.0.0.0:21116 0.0.0.0:
LISTEN 11588/hbbs
tcp 0 0 0.0.0.0:21118 0.0.0.0: LISTEN 11588/hbbs
udp 0 0 0.0.0.0:21116 0.0.0.0:
11588/hbbs
udp 0 0 0.0.0.0:52186 0.0.0.0:* 11588/hbbs

hbbs seems to work fine.

The last thing I tried was to install the release deb file. Hoping it would ship the missing executable.

root@debianserver# wget https://github.com/rustdesk/rustdesk-server/releases/download/1.1.6-1/rustdesk-server-hbbs_1.1.6_amd64.deb root@debianserver# apt install ./rustdesk-server-hbbs_1.1.6_amd64.deb

Created symlink /etc/systemd/system/multi-user.target.wants/rustdesk-hbbs.service → /lib/systemd/system/rustdesk-hbbs.service. N: The download is performed as root and not sandbox-protected because the file "/root/rustdesk-server-hbbs_1.1.6_amd64.deb" cannot be accessed by the user "_apt".. - pkgAcquire::Run (13: No permission.)

But unfortunately this also failed.

dinger1986 commented 1 year ago

Ok.

Must be because the executable name has changed.

I'll check that and update.

dinger1986 commented 1 year ago

please check now, the zip file now contains the files within a folder called amd64, I have got the script to move them, please confirm if this works and I will remove that folder.

MrFlyingToasterman commented 1 year ago

@dinger1986 I will test it immediately. Thanks for your quick help! The server is just restoring the backup, as soon as it is finished you will get feedback :)

MrFlyingToasterman commented 1 year ago

Archive: rustdesk-server-linux-amd64.zip inflating: amd64/hbbr
inflating: amd64/hbbs
inflating: amd64/rustdesk-utils
Creating /var/log/rustdesk Created symlink /etc/systemd/system/multi-user.target.wants/rustdesksignal.service → /etc/systemd/system/rustdesksignal.service. Created symlink /etc/systemd/system/multi-user.target.wants/rustdeskrelay.service → /etc/systemd/system/rustdeskrelay.service. Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... Rustdesk Relay not ready yet... cat: '': File or directory not found rm: cannot remove 'rustdesk-server-linux-x64.zip': file or directory not found 1) Yes 2) No Please choose if you want to download configs and install HTTP server:

I already run an Apache2 web server with complex config. Why should I load a new Http server?

At this point, I was too scared to say yes.

Please choose if you want to download configs and install HTTP server:2 Your IP/DNS Address is mydomainnameforthisserver.xyz Your public key is Install Rustdesk on your machines and change your public key and IP/DNS name to the above Press any key to finish install waiting for the keypress waiting for the keypress waiting for the keypress waiting for the keypress waiting for the keypress waiting for the keypress

The pubkey is not censored by me. There is actually nothing there.

Unfortunately, it still doesn't work.

dinger1986 commented 1 year ago

Can you see a folder in /opt/rustdesk?

MrFlyingToasterman commented 1 year ago

Yes here is the structure

root@debianserver:/opt/rustdesk# tree . ├── amd64 ├── hbbr ├── hbbs ├── rustdesk-server-linux-amd64.zip ├── rustdesk-server-linux-amd64.zip.1 └── rustdesk-utils

1 directory, 5 files

MrFlyingToasterman commented 1 year ago

I have done the whole thing again. This time I said yes to the http server, because I have a backup.

Stored in gohttpserver_1.1.4_linux_amd64.tar.gz.

gohttpserver_1.1.4_linux_amd64.tar.gz 100%[=============================================================================>] 4,64M 17,0MB/s in 0,3s

2022-11-09 21:04:07 (17,0 MB/s) - »gohttpserver_1.1.4_linux_amd64.tar.gz« gespeichert [4864160/4864160]

mv: unable to call stat for '/opt/rustdesk/WindowsAgentAIOInstall.ps1': File or directory not found mv: cannot call stat for '/opt/rustdesk/linuxclientinstall.sh': file or directory not found

Creating /var/log/gohttp Created symlink /etc/systemd/system/multi-user.target.wants/gohttpserver.service → /etc/systemd/system/gohttpserver.service.

Now I have access data for the web server on port 8000 (this is also reachable) but the public key is still empty.

dinger1986 commented 1 year ago

Ok.

I'll need to do some digging into it. Which I won't be able to do for afew days.

If you can cd to that folder and then do ./hbbr -k _ and see if that runs?

dinger1986 commented 1 year ago

So it's not generating a key.

Ok I'll need to play something with rustdesk has changed

MrFlyingToasterman commented 1 year ago

Yes, it is not generating a Key

-bash: ./hbbr: No permission

dinger1986 commented 1 year ago

Can you do ls -l please

MrFlyingToasterman commented 1 year ago

Sorry I just started the backup restore. I cannot provide any further information now.

dinger1986 commented 1 year ago

Ok.

Were you updating?

MrFlyingToasterman commented 1 year ago

I do this on a company server that also houses other digital infrastructure. It is essential that it is "clean" again tomorrow morning. I'm from Germany and it's 9:21 p.m.

dinger1986 commented 1 year ago

No worries. 8.21 here in Scotland.

MrFlyingToasterman commented 1 year ago

I think it's great that you work with so much enthusiasm! I am also a technology enthusiast. If I can help you with this project, please let me know.

dinger1986 commented 1 year ago

closing will keep one thread as its the same issue