Hi.
I'm trying to run the docker-compose,
but it gives this error:
rustdesk-api-server-pro | mkdir: can't create directory '/app/data': File exists # <--- I think this is not the problem
rustdesk-api-server-pro | Database tables sync success
rustdesk-api-server-pro | panic: runtime error: invalid memory address or nil pointer dereference
rustdesk-api-server-pro | [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xfad21f]
rustdesk-api-server-pro |
rustdesk-api-server-pro | goroutine 1 [running]:
rustdesk-api-server-pro | rustdesk-api-server-pro/app.StartJobs(0xc000cdc880)
rustdesk-api-server-pro | /backend/app/jobs.go:24 +0x5f
rustdesk-api-server-pro | rustdesk-api-server-pro/app.StartServer()
rustdesk-api-server-pro | /backend/app/main.go:47 +0x25
rustdesk-api-server-pro | rustdesk-api-server-pro/cmd.init.func8(0xc000ca3000?, {0x124115a?, 0x4?, 0x124115e?})
rustdesk-api-server-pro | /backend/cmd/start.go:14 +0x13
rustdesk-api-server-pro | github.com/spf13/cobra.(*Command).execute(0x22c8f60, {0x22fde80, 0x0, 0x0})
rustdesk-api-server-pro | /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:987 +0xb1b
rustdesk-api-server-pro | github.com/spf13/cobra.(*Command).ExecuteC(0x22c7580)
rustdesk-api-server-pro | /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115 +0x44f
rustdesk-api-server-pro | github.com/spf13/cobra.(*Command).Execute(0x21a5788?)
rustdesk-api-server-pro | /go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039 +0x13
rustdesk-api-server-pro | main.main()
rustdesk-api-server-pro | /backend/main.go:8 +0x1a
rustdesk-api-server-pro exited with code 2 (restarting)
Here is my compose.yml. I've made an adjustment to the file mount - you can't mount single files with relative paths, so I've set it to an absolute one.
services:
hbbs:
container_name: hbbs
image: rustdesk/rustdesk-server:latest
command: hbbs
volumes:
- ./data:/root
network_mode: "host"
depends_on:
- hbbr
restart: unless-stopped
hbbr:
container_name: hbbr
image: rustdesk/rustdesk-server:latest
command: hbbr
volumes:
- ./data:/root
network_mode: "host"
restart: unless-stopped
rustdesk-api-server-pro:
container_name: rustdesk-api-server-pro
image: ghcr.io/lantongxue/rustdesk-api-server-pro:latest
environment:
- "ADMIN_USER=admin"
- "ADMIN_PASS=******"
- "TZ=Russia/Moscow"
volumes:
- /home/rancher/rustdesk/server.yaml:/app/data/server.yaml
network_mode: host
restart: unless-stopped
And here is my server.yaml. I've set the port to an available one on my host.
signKey: "********************"
debugMode: false
db:
driver: "sqlite"
dsn: "/app/data/server.db" #I've tried ./server.db too
timeZone: "Russia/Moscow"
showSql: false
httpConfig:
printRequestLog: false
staticdir: "/app/dist"
port: ":783"
smtpConfig:
host: "127.0.0.1"
port: 1025
username: "test"
password: "test"
encryption: "none" # none ssl/tls starttls
from: "test@localhost.com"
jobsConfig:
deviceCheckJob:
duration: 30
Hi.
I'm trying to run the docker-compose,
but it gives this error:
Here is my compose.yml. I've made an adjustment to the file mount - you can't mount single files with relative paths, so I've set it to an absolute one.
And here is my server.yaml. I've set the port to an available one on my host.