rustdesk-server icon indicating copy to clipboard operation
rustdesk-server copied to clipboard

Possible solution for rustdesk-server-s6 on Armv7 and s6-overlay problem

Open ilsalgo opened this issue 3 years ago • 7 comments
trafficstars

Hi, I tried to install Rustdesk server on my raspberry Pi3 with Raspian 32bit with Docker, I followed various guides but nothing worked in my machine. The s6-overlay crashed for security reason e the container don't go up (restanting (111)). I have found a solution by adding at the docker-compose file these lines:

security_opt: - seccomp:unconfined

With these lines the container go up and the server work fine.

ilsalgo avatar Oct 07 '22 12:10 ilsalgo

Can you please post the full docker-compose.yaml file? (you obviously have to redact the sensitive data)

paspo avatar Oct 07 '22 14:10 paspo

@paspo sure!

version: '3'

services: rustdesk-server: container_name: rustdesk-server ports: - 21115:21115 - 21116:21116 - 21116:21116/udp - 21117:21117 - 21118:21118 - 21119:21119 image: rustdesk/rustdesk-server-s6:latest-armv7 environment: - "RELAY=MYIP.com:21117" - "ENCRYPTED_ONLY=0" volumes: - ./data:/data restart: unless-stopped security_opt: - seccomp:unconfined

ilsalgo avatar Oct 07 '22 14:10 ilsalgo

@ilsalgo I tried once again to reproduce your problem, without success.

  • I used the Raspberry Pi OS Lite edition, downloaded from here (so bullseye 32 bit)
  • I installed docker following the official instructions
  • I used the exact docker-compose.yaml file you posted REMOVING the security_opt part (last 2 lines)
  • docker compose up -d and the container is not crashing
version: '3'

services:
  rustdesk-server:
    container_name: rustdesk-server
    ports:
      - 21115:21115
      - 21116:21116
      - 21116:21116/udp
      - 21117:21117
      - 21118:21118
      - 21119:21119
    image: rustdesk/rustdesk-server-s6:latest-armv7
    environment:
      - "RELAY=MYIP.com:21117"
      - "ENCRYPTED_ONLY=0"
    volumes:
      - ./data:/data
    restart: unless-stopped

What am I missing?

paspo avatar Nov 02 '22 15:11 paspo

I have try with two installation and the solution to have the server running without reboots was to add the line in question to the docker container.

ilsalgo avatar Nov 02 '22 15:11 ilsalgo

I understand that. I'm just trying to replicate the issue, but I'm missing something. I need to see it breaking to understand why it's breaking.

Can you try to replicate it with a clean installation and post here the steps?

paspo avatar Nov 02 '22 16:11 paspo

Hi, I tried to install Rustdesk server on my raspberry Pi3 with Raspian 32bit with Docker, I followed various guides but nothing worked in my machine. The s6-overlay crashed for security reason e the container don't go up (restanting (111)). I have found a solution by adding at the docker-compose file these lines:

security_opt:

  • seccomp:unconfined

With these lines the container go up and the server work fine.

I have created a container for armv7 which is tested to work properly on: armv7,arm64,amd64 and sources are at: https://github.com/elico/rustdesk-server-container/

Example docker-compose at: https://github.com/elico/rustdesk-server-container/blob/master/docker-compose.yml

You just need to set the variables accordingly, the DOMAIN tramps the IP variable.

You can see a demo installation of the container on Mikrotik RouterOS device for internal usage inside a company network at: https://www.youtube.com/watch?v=DGC_Wt6HX7w

elico avatar Nov 19 '22 18:11 elico

Mikrotik RouterOS

Thanks

rustdesk avatar Nov 20 '22 00:11 rustdesk