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

Key 不匹配 #107

Closed
shfeat opened this issue Aug 12, 2024 · 10 comments
Closed

Key 不匹配 #107

shfeat opened this issue Aug 12, 2024 · 10 comments

Comments

@shfeat
Copy link

shfeat commented Aug 12, 2024

image
用客户端相互连接访问没问题,用网页端报这个错。大佬帮忙看看是啥问题。

@kingmo888
Copy link
Owner

客户端在配置key的情况下可以访问,但是网页端不行?

@shfeat
Copy link
Author

shfeat commented Aug 12, 2024

客户端在配置key的情况下可以访问,但是网页端不行?

是的。同一个公钥,在客户端配置了,在网页端也配置了
网页端写在了docker的环境变量里
image

@kingmo888
Copy link
Owner

web控制端若启用,hbbr需要确保开启21119端口,hbbs确保开启21118端口。这两个端口若不开启,会提示意思大概为ID服务器无法连接、中继服务器无法连接,无法连接注册服务器等。

经过测试,在rustserver1.1.10(Key自定义,非自动生成),被控端1.2.7下,可以访问。

@kingmo888
Copy link
Owner

本工具涉及的SECRET_KEY变量与rustdeskserver无关。

@shfeat
Copy link
Author

shfeat commented Aug 13, 2024

web控制端若启用,hbbr需要确保开启21119端口,hbbs确保开启21118端口。这两个端口若不开启,会提示意思大概为ID服务器无法连接、中继服务器无法连接,无法连接注册服务器等。

经过测试,在rustserver1.1.10(Key自定义,非自动生成),被控端1.2.7下,可以访问。

端口应该是开了,这是docker compose file

name: rustdesk-server services: api: cpu_shares: 90 command: [] container_name: rustdesk-server-api deploy: resources: limits: memory: 4420M environment: - SECRET_KEY=******************************* hostname: rustdesk-server-api image: kingmo888/rustdesk-api-server:latest labels: icon: https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/rustdesk-server/icon.png ports: - mode: ingress target: 21114 published: "21114" protocol: tcp restart: unless-stopped volumes: - type: bind source: /DATA/AppData/rustdesk-server/api/db target: /rustdesk-api-server/db bind: create_host_path: true - type: bind source: /etc/timezone target: /etc/timezone read_only: true bind: create_host_path: true - type: bind source: /etc/localtime target: /etc/localtime read_only: true bind: create_host_path: true devices: [] cap_add: [] network_mode: bridge privileged: false hbbr: cpu_shares: 90 command: - hbbr container_name: rustdesk-server-hbbr deploy: resources: limits: memory: 4420M hostname: rustdesk-server-hbbr image: rustdesk/rustdesk-server:latest labels: icon: https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/rustdesk-server/icon.png ports: - mode: ingress target: 21117 published: "21117" protocol: tcp - mode: ingress target: 21119 published: "21119" protocol: tcp restart: unless-stopped volumes: - type: bind source: /DATA/AppData/rustdesk-server/hbbs target: /root bind: create_host_path: true devices: [] cap_add: [] environment: [] network_mode: bridge privileged: false hbbs: cpu_shares: 90 command: - hbbs container_name: rustdesk-server-hbbs depends_on: hbbr: condition: service_started required: true deploy: resources: limits: memory: 4420M hostname: rustdesk-server-hbbs image: rustdesk/rustdesk-server:latest labels: icon: https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/rustdesk-server/icon.png ports: - mode: ingress target: 21115 published: "21115" protocol: tcp - mode: ingress target: 21118 published: "21118" protocol: tcp - mode: ingress target: 21116 published: "21116" protocol: tcp - mode: ingress target: 21116 published: "21116" protocol: udp restart: unless-stopped volumes: - type: bind source: /DATA/AppData/rustdesk-server/hbbs target: /root bind: create_host_path: true devices: [] cap_add: [] environment: [] network_mode: bridge privileged: false

@shfeat
Copy link
Author

shfeat commented Aug 13, 2024

name: rustdesk-server
services:
api:
cpu_shares: 90
command: []
container_name: rustdesk-server-api
deploy:
resources:
limits:
memory: 4420M
environment:
- SECRET_KEY=*******************************
hostname: rustdesk-server-api
image: kingmo888/rustdesk-api-server:latest
labels:
icon: https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/rustdesk-server/icon.png
ports:
- mode: ingress
target: 21114
published: "21114"
protocol: tcp
restart: unless-stopped
volumes:
- type: bind
source: /DATA/AppData/rustdesk-server/api/db
target: /rustdesk-api-server/db
bind:
create_host_path: true
- type: bind
source: /etc/timezone
target: /etc/timezone
read_only: true
bind:
create_host_path: true
- type: bind
source: /etc/localtime
target: /etc/localtime
read_only: true
bind:
create_host_path: true
devices: []
cap_add: []
network_mode: bridge
privileged: false
hbbr:
cpu_shares: 90
command:
- hbbr
container_name: rustdesk-server-hbbr
deploy:
resources:
limits:
memory: 4420M
hostname: rustdesk-server-hbbr
image: rustdesk/rustdesk-server:latest
labels:
icon: https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/rustdesk-server/icon.png
ports:
- mode: ingress
target: 21117
published: "21117"
protocol: tcp
- mode: ingress
target: 21119
published: "21119"
protocol: tcp
restart: unless-stopped
volumes:
- type: bind
source: /DATA/AppData/rustdesk-server/hbbs
target: /root
bind:
create_host_path: true
devices: []
cap_add: []
environment: []
network_mode: bridge
privileged: false
hbbs:
cpu_shares: 90
command:
- hbbs
container_name: rustdesk-server-hbbs
depends_on:
hbbr:
condition: service_started
required: true
deploy:
resources:
limits:
memory: 4420M
hostname: rustdesk-server-hbbs
image: rustdesk/rustdesk-server:latest
labels:
icon: https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/rustdesk-server/icon.png
ports:
- mode: ingress
target: 21115
published: "21115"
protocol: tcp
- mode: ingress
target: 21118
published: "21118"
protocol: tcp
- mode: ingress
target: 21116
published: "21116"
protocol: tcp
- mode: ingress
target: 21116
published: "21116"
protocol: udp
restart: unless-stopped
volumes:
- type: bind
source: /DATA/AppData/rustdesk-server/hbbs
target: /root
bind:
create_host_path: true
devices: []
cap_add: []
environment: []
network_mode: bridge
privileged: false

@kingmo888
Copy link
Owner

key不匹配很明显就是字面意思!
另外,我不看客户端和服务端的日志,只要配置对,它们不会出错的。有关它们的问题,请去找rustdesk官方提issues

@shfeat
Copy link
Author

shfeat commented Aug 14, 2024

key不匹配很明显就是字面意思! 另外,我不看客户端和服务端的日志,只要配置对,它们不会出错的。有关它们的问题,请去找rustdesk官方提issues

这些不是日志,是composer file。
我打开debug调试下看看吧

@ricker0223
Copy link

这个是官方server1.11版本的bug,我升级到1.11以后各端都报key不匹配,但是hbbr的日志里显示的key是正确的。退回到1.10版本后正常。和webserver没关系

@uniquejava
Copy link

这个是官方server1.11版本的bug,我升级到1.11以后各端都报key不匹配,但是hbbr的日志里显示的key是正确的。退回到1.10版本后正常。和webserver没关系

谢谢. 我受不了了, 从最新的1.1.12降级到1.10-3问题解决.

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

4 participants