Skip to content

Commit 38ff417

Browse files
committed
Adds DBRepair tool
1 parent 2067c70 commit 38ff417

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

Dockerfile.builder

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ RUN apk add --update --no-cache curl --virtual .build-deps && \
1919
curl --progress-bar ${DL_URL} -o /root/synology.tgz && \
2020
curl https://raw.githubusercontent.com/uglymagoo/plexmediaserver-installer/master/usr/sbin/start_pms -o /usr/sbin/start_pms && \
2121
chmod +x /usr/sbin/start_pms && \
22+
curl https://raw.githubusercontent.com/ChuckPa/PlexDBRepair/master/DBRepair.sh -o /usr/sbin/DBRepair && \
23+
chmod +x /usr/sbin/DBRepair && \
2224
mkdir /usr/lib/plexmediaserver/; \
2325
tar -xOf /root/synology.tgz package.tgz | tar -xzf - -C /usr/lib/plexmediaserver/; \
2426
rm -r /usr/lib/plexmediaserver/dsm_config && \

Dockerfile.common

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ ENV SYSCALL_MAX_ENABLED=1
1212

1313
COPY --from=builder /usr/sbin/start_pms /usr/sbin/start_pms
1414
COPY --from=builder /usr/lib/plexmediaserver/ /usr/lib/plexmediaserver/
15+
COPY --from=builder /usr/sbin/DBRepair /usr/sbin/DBRepair
1516
COPY daemon.sh /usr/sbin/daemon-pms
17+
RUN mkdir /config && ln -s /root/Library /config/Library
1618
CMD ["daemon-pms"]

README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ docker run -d --restart=always --name plex -v /mnt/usbdrive:/media --net=host -v
3939
4040
```
4141

42-
This will start Plex using your mounted drive in /media path in Plex.
42+
This will start Plex using your mounted drive in /media path in Plex (library volume not mounted will result in a container only library - this will be harder to fix).
4343

4444
```
4545
docker run -d --restart=always --name plex -v /mnt/usbdrive:/media --net=host jaymoulin/plex
@@ -62,6 +62,24 @@ If you don't have Docker installed yet, you can do it easily in one line using t
6262
curl -sSL "https://gist.githubusercontent.com/jaymoulin/e749a189511cd965f45919f2f99e45f3/raw/0e650b38fde684c4ac534b254099d6d5543375f1/ARM%2520(Raspberry%2520PI)%2520Docker%2520Install" | sudo sh && sudo usermod -aG docker $USER
6363
```
6464

65+
### Repairing Database
66+
67+
As-of 1.1.0 (Plex 1.40.0) This image brings [ChuckPa/PlexDBRepair](https://github.com/ChuckPa/PlexDBRepair/) tool to help fixing errors on Plex databases.
68+
If some error occurs and database is corrupted, you would be able to check/repair using this tool.
69+
70+
To use it, the plex service should be STOPPED. Then you can use the command `DBRepair` in the docker container with your Library volume mounted.
71+
72+
#### Docker CLI example
73+
```shell
74+
docker run --rm -v /mnt/usbdrive:/media -v /mnt/usbdrive:/root/Library jaymoulin/plex DBRepair
75+
```
76+
77+
#### Docker Compose Example
78+
```shell
79+
docker compose stop plex
80+
docker compose run plex DBRepair
81+
```
82+
6583
### Known issues
6684

6785
#### libstdc++.so.6: cannot open shared object file
@@ -81,8 +99,3 @@ If you REALLY NEED Plex Tuner Service to work, please open an issue, or (better
8199
#### Unknown file formats / "This server is not powerful enough to convert video"
82100

83101
Plex for Raspberry PI cannot read some video file format like AVI, WMV or OGM, either due to codec or due to RPI lack of power. You can convert them to make them compatible by using my docker image `jaymoulin/rpi-plex-video-converter` : https://github.com/jaymoulin/docker-rpi-plex-video-converter
84-
85-
#### How do I update?
86-
87-
Follow [@DockerPlex](https://twitter.com/DockerPlex) on Twitter to be alerted of updates!
88-

0 commit comments

Comments
 (0)