rustdesk / rustdesk/rustdesk-server
The docker-compose.yml don't work on Fedora 37
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 10.4k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
On Fedora, I need to modify the docker-compose.yml file to work with SELinux.
Environment description
- Installation environment: docker, docker-compose
- I am using the default docker-compose.yaml file.
- Fedora Linux 37 (Server Edition) x86_64
Steps to reproduce
To reproduce the issue, follow these steps:
- Start with the environment described above.
- Download and execute the default docker-compose.yml file.
- Observe the following error:
hbbs | [2023-03-29 11:41:13.876805 +00:00] INFO [src/peer.rs:84] DB_URL=./db_v2.sqlite3
hbbs | Error: An error occured while creating a new object: error returned from database: unable to open database file
hbbs | [2023-03-29 11:41:14.435805 +00:00] INFO [src/peer.rs:84] DB_URL=./db_v2.sqlite3
hbbs | Error: An error occured while creating a new object: error returned from database: unable to open database file
hbbs | [2023-03-29 11:41:14.979415 +00:00] INFO [src/peer.rs:84] DB_URL=./db_v2.sqlite3
hbbs | Error: An error occured while creating a new object: error returned from database: unable to open database file
hbbs | [2023-03-29 11:41:15.708147 +00:00] INFO [src/peer.rs:84] DB_URL=./db_v2.sqlite3
hbbs | Error: An error occured while creating a new object: error returned from database: unable to open database file
hbbs | [2023-03-29 11:41:16.840698 +00:00] INFO [src/peer.rs:84] DB_URL=./db_v2.sqlite3
hbbs | Error: An error occured while creating a new object: error returned from database: unable to open database file
hbbs | [2023-03-29 11:41:18.766235 +00:00] INFO [src/peer.rs:84] DB_URL=./db_v2.sqlite3
hbbs | Error: An error occured while creating a new object: error returned from database: unable to open database file
hbbs | [2023-03-29 11:41:22.287298 +00:00] INFO [src/peer.rs:84] DB_URL=./db_v2.sqlite3
hbbs | Error: An error occured while creating a new object: error returned from database: unable to open database file
hbbs exited with code 1
My solution
I suggest adding :z at the end of the line for each volume in the docker-compose.yml file, like so:
hbbs:
[...]
volumes:
- ./data:/root:z
[...]
hbbr:
[...]
volumes:
- ./data:/root:z
[...]
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the default docker-compose.yml and reproduce the failure on Fedora 37 with SELinux enabled. Review the hbbs and hbbr volume entries, then run the compose setup again and confirm both services can open their database and remain running.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, fedora, rust
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100