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

Latest release(1.1.12) causes a "key mismatch" error #474

Open
Hades-ming opened this issue Oct 8, 2024 · 7 comments
Open

Latest release(1.1.12) causes a "key mismatch" error #474

Hades-ming opened this issue Oct 8, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@Hades-ming
Copy link

Hades-ming commented Oct 8, 2024

First of all thank you for making such a good software, you are really great. But I think I ran into a bug. I made sure I entered the correct IP and pub contents, and the home page also said "Ready". The message "key mismatch" was displayed when I tried to connect. If this is a bug please fix it, if not please tell me what is wrong. Please let me know if there is any more information I can provide.
image

My cloud server system is Alpine, here are my installation steps.

1. Release port and download file

1.1 Release port

To manage rules in Alibaba Cloud security group, manually add TCP(21115, 21116, 21117, 21118, 21119), UDP(21116), and select all IPV4. Authorization results are as follows.

1.2 Downloading the file

Connect to the Server over ssh and download the RustDesk Server file. [RustDesk Server lot release address] (https://github.com/rustdesk/rustdesk-server/releases).

# in the /usr/local/ directory
cd /usr/local/
# Use wget to download version 1.1.8-2 (the latest version can be found at the above release address)
Wget HTTP: / / https://github.com/rustdesk/rustdesk-server/releases/download/1.1.12/rustdesk-server-linux-amd64.zip
# unzip
unzip rustdesk-server-linux-amd64.zip
# Rename the decompressed file (easy to manage)
mv amd64 rustdesk

2. Edit OpenRC service files

2.1 Edit the 'hbbs' service file

Create or edit the '/etc/init.d/hbbs' file:

nano /etc/init.d/hbbs

Add the following to the file and make sure the path points to '/usr/local/rustdesk/hbbs' :

#! /sbin/openrc-run

command="/usr/local/rustdesk/hbbs"
command_background=true
pidfile="/var/run/hbbs.pid"
name="HBBS Service"

depend() {
need net
}

2.2 Edit the hbbr service file

Create or edit the '/etc/init.d/hbbr' file:

nano /etc/init.d/hbbr

Add the following to the file and make sure the path points to '/usr/local/rustdesk/hbbr' :

#! /sbin/openrc-run

command="/usr/local/rustdesk/hbbr"
command_background=true
pidfile="/var/run/hbbr.pid"
name="HBBR Service"

depend() {
need net
}

3. Grant execution permission

Give execute permissions to these two service files:

chmod +x /etc/init.d/hbbs
chmod +x /etc/init.d/hbbr

4. Start and add the service to boot

4.1 Starting the Service

Start 'hbbs' and' hbbr 'with the following command:

rc-service hbbs start
rc-service hbbr start

4.2 Adding a Service to Start on

Add services to the default run level to ensure they run automatically at startup:

rc-update add hbbs default
rc-update add hbbr default
  1. Verify that the service is started

After restarting with reboot, run the following command to check the status of the service:

rc-service hbbs status
rc-service hbbr status
@Hades-ming Hades-ming added the bug Something isn't working label Oct 8, 2024
@deejayexe
Copy link

I have the same problem since I need to use Rust Desk and I see the same error, used with a custom server from Docker.

@Hades-ming
Copy link
Author

I installed rustdesk-server with docker and it is running normally

@Hades-ming Hades-ming closed this as not planned Won't fix, can't repro, duplicate, stale Oct 11, 2024
@Hades-ming Hades-ming reopened this Oct 11, 2024
@ileeoyo
Copy link

ileeoyo commented Oct 25, 2024

Finding your public key may be under the root path '/'.You may have used a wrong key.

@ileeoyo
Copy link

ileeoyo commented Oct 25, 2024

Finding your public key may be under the root path '/'.You may have used a wrong key.

When you start the program using init.d and since you didn't specify the working directory of the program, this key may be generated under the root path '/' instead of '/usr/local/rustdesk/'.

@DimmoK
Copy link

DimmoK commented Nov 1, 2024

Hello!
Sorry for my bad English.

I have the same problem after upgrade to version 1.1.12 (hbbr, hbbs).

I try run this command:
./rustdesk-utils doctor rustdesk-server
and output:

Checking server:  rustdesk-server

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Custom { kind: Other, error: "failed to lookup address information: Try again" }', src/utils.rs:132:70
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Then I run this command:
./rustdesk-utils validatekeypair [my_key].pub [my_key]
and output:

Invalid secret key

How I upgraded app:
1 download hbbs & hbbr 1.1.12
2
sudo dpkg -i rustdesk-server-hbbr_1.1.12_amd64.deb
sudo dpkg -i rustdesk-server-hbbs_1.1.12_amd64.deb

3 show version:
hbbs --version
hbbr --version

output:

hbbr --version
hbbr 1.1.12
hbbs --version
hbbs 1.1.12

Now I rollback my server to previous version and can connect to my client.

@cdb0y511
Copy link

cdb0y511 commented Nov 2, 2024

This is a severe issue. I don't get it; why don't they fix it for serval months?
Related to #445

@cdb0y511
Copy link

cdb0y511 commented Nov 3, 2024

figure out, the correct public key is in /var/lib/rustdesk-server/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants