Please help with docker image filling up.....plex, I think is the culprit


Recommended Posts

I have had this issue where my docker image fills up every few night and then it stops doing whatever is happening and it reverts back to the size before these excessive writes. I strongly believe it is plex based off the library actions that happen every few days. It always happens at the same time around 2AM (plex, as shown below.....).

 

I have roughly 20gb extra in my docker image. Any ideas or tests? I've looked at quite a few things over the last year or so and I just can't quite pin it down other than I have a very strong suspicion it is plex. I have tried looking at logs and I wasn't able to find anything indicative of this issue, but I may have been looking at the incorrect logs.

 

I am sorry to start another docker image filling up thread. I really have put in a lot of effort trying to resolve this.

 

image.thumb.png.11627ed7739aed1637e225bed358801e.png

 

There is nothing out of the ordinary in the sizes, IMO.

 

Name                              Container     Writable          Log
---------------------------------------------------------------------
deepstack                           4.28 GB       483 kB      1.19 MB
anaconda3                           3.98 GB       340 kB      52.2 kB
office-document-server-ee           3.35 GB       345 MB      3.60 MB
GitLab-CE                           2.46 GB          0 B      21.1 MB
MakeMKV-RDP                         2.45 GB      22.8 MB       188 kB
digikam                             1.77 GB       625 MB       140 kB
Collabora                           1.54 GB      36.4 kB       199 kB
deepstack-ui                        1.40 GB       289 kB      1.93 kB
binhex-readarr                      1.29 GB       135 MB      8.28 MB
Krusader                            1.26 GB      32.5 MB      96.8 kB
HandBrake                           1.15 GB      99.0 MB       172 kB
binhex-delugevpn                    1.14 GB      3.14 MB      37.5 kB
double-take                          995 MB         55 B      2.99 kB
Nginx-Proxy-Manager-Official         905 MB      13.9 kB      7.88 kB
macinabox                            899 MB      3.43 MB      39.7 kB
Rocket.Chat                          875 MB          0 B      47.2 kB
openhab                              847 MB       149 MB      3.72 kB
chia                                 745 MB      1.62 MB      5.13 kB
Sonarr                               738 MB      97.5 MB       855 kB
luckyBackup                          719 MB      2.04 MB      8.92 kB
plex                                 713 MB      64.1 MB      1.13 MB
MongoDB                              698 MB         20 B      6.65 MB
binhex-syncthing                     693 MB      1.81 MB      17.0 kB
code-server                          630 MB       316 kB      25.8 kB
Ghostfolio                           565 MB      1.34 kB      64.1 kB
NodeRed                              535 MB          0 B      13.2 MB
matrix                               484 MB      29.7 kB       102 kB
nextcloud                            444 MB      35.0 kB      36.0 kB
lidarr                               406 MB       140 MB      9.23 MB
postgresql14                         376 MB         63 B      1.54 MB
Influxdb                             308 MB      2.83 kB      1.57 GB
mariadb                              293 MB      16.5 kB      55.6 kB
FileZilla                            215 MB          0 B      21.1 MB
Grafana                              206 MB          0 B       767 MB
Beets                                200 MB          0 B      21.1 MB
bitwardenrs                          193 MB          0 B      3.73 MB
Headphones                           192 MB      22.1 MB      5.48 MB
radarr                               190 MB      19.5 kB       263 kB
flame                                179 MB          0 B      3.31 kB
sabnzbd                              177 MB      20.3 kB      4.58 MB
redis                                164 MB      68.4 MB      20.2 MB
heimdall                             127 MB      41.7 MB      4.89 kB
netbootxyz                          84.7 MB      11.1 kB      6.35 kB
element-web                         69.2 MB        769 B      8.70 MB
Authelia                            50.0 MB        190 B      7.37 kB
Cloudflare-DDNS                     36.3 MB      5.81 kB      3.16 MB
synapse-admin                       29.3 MB      1.09 kB      54.4 kB
MQTT                                25.7 MB          0 B      1.24 MB
---------------------------------------------------------------------
Total size                          41.1 GB      1.86 GB      2.50 GB
 

 

Edited by live4soccer7
Link to comment

Do you do any transcoding?    You do not have that mapped to an external location so any work files created by transcoding would be written internally to the docker iimage.     In addition any temporary files written to /tmp inside the plex container would also be written within the docker image.

Link to comment

It happened last night. IMO, it has to be a local process to fill up 20GB that fast. My internet connection is not that fast for any kind of downloading. I added a transcode path to the /mnt/cache/transcode_plex and then set the transcode within the actual plex docker to /transcode

 

Doing that, it can't be plex transcoding or processing. Is there an obscure log I can check to see what is doing all the writing at this time? I mean, it fills 20G roughly in 8 minutes and then clears itself.

 

image.thumb.png.7e18f85a20fef7d56724777121314763.png

image.png.d165675e2e6bb8ed9131be72c2e6a3b2.png

Edited by live4soccer7
Link to comment
9 minutes ago, Gragorg said:

I remember having a similar issue. For me if I restarted the docker the size returned to normal. It turned out to be temp files generating inside the docker image. I added the following temp mapping and it went away. 5EAA26C7-1E18-405A-94B9-D4662EDCB768.thumb.png.481d33c1bcc287b0fdfdbd979d7f3546.png

 Thanks, I'm giving it a shot. I haven't be up at 2AM when it happens so checking the docker size to actually see the culprit hasn't been much of an option. Now that I'm documenting it a little here if it continues to happen on a set schedule then I'll stay up or wake up a 2AM and check dockers sizes to see which one it is. It will at least give me more direction.

Link to comment
Mar 24, 2023 12:30:10.350 [0x14fef3c16b00] ERROR - [Req#11ea90/Database optimization/com.plexapp.plugins.library.db] SQLITE3:0x80000001, 13, statement aborts at 26: [INSERT INTO vacuum_db.'statistics_media' SELECT*FROM"main".'statistics_media'] database or disk is full
Mar 24, 2023 12:30:13.997 [0x14fef3c16b00] ERROR - [Req#11ea90/Database optimization/com.plexapp.plugins.library.db] SQLITE3:0x80000001, 13, statement aborts at 1: [vacuum] database or disk is full
Mar 24, 2023 12:30:14.015 [0x14fef3c16b00] ERROR - Thread: Uncaught exception running async task which was spawned by thread 0x14fef3004b00: sqlite3_statement_backend::loadOne: database or disk is full
Mar 24, 2023 12:30:14.023 [0x14ff03e92b00] ERROR - [EventSourceClient/pubsub/172.105.245.178:443] Retrying in 15 seconds.
Mar 24, 2023 12:30:14.024 [0x14fef401cb00] WARN - [Req#11eb05/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.030 [0x14fef3810b00] WARN - [Req#11eb0c/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.038 [0x14fef3207b00] WARN - [Req#11eb13/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.047 [0x14fef3004b00] WARN - [Req#11eb23/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.048 [0x14fef5034b00] WARN - Held transaction for too long (/data/jenkins/server/3535474905/Statistics/StatisticsManager.cpp:252): 0.250000 seconds
Mar 24, 2023 12:30:14.048 [0x14fef5c46b00] WARN - Took too long (0.190000 seconds) to start a transaction on /data/jenkins/server/3535474905/Versions/VersionGarbageCollector.cpp:89
Mar 24, 2023 12:30:14.048 [0x14fef5c46b00] WARN - Transaction that was running was started on thread 0x14fef5034b00 at /data/jenkins/server/3535474905/Statistics/StatisticsManager.cpp:252
Mar 24, 2023 12:30:14.054 [0x14fef2bfeb00] WARN - [Req#11eb2e/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.064 [0x14fef27f8b00] WARN - [Req#11eb38/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.066 [0x14fef5034b00] WARN - Held transaction for too long (/data/jenkins/server/3535474905/Statistics/StatisticsManager.cpp:255): 0.120000 seconds
Mar 24, 2023 12:30:14.068 [0x14fef25f5b00] WARN - [Req#11eb42/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.076 [0x14fef21efb00] WARN - [Req#11eb4e/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.085 [0x14fef1de9b00] WARN - [Req#11eb59/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.093 [0x14fef19e3b00] WARN - [Req#11eb62/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.106 [0x14fef11d7b00] WARN - [Req#11eb6a/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.107 [0x14fef17e0b00] WARN - [Req#11eb71/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.114 [0x14fef17e0b00] WARN - [Req#11eb79/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.121 [0x14fef09cbb00] WARN - [Req#11eb82/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.122 [0x14fef07c8b00] ERROR - Caught exception trying to stream file: /usr/lib/plexmediaserver/Resources/Plug-ins-914ddd2b3/WebClient.bundle/Contents/Resources/js/chunk-81-a3acf44dc3e4f508e0a8-plex-4.87.2.25887-d04a1ad.js: write: Connection reset by peer
Mar 24, 2023 12:30:14.123 [0x14fef07c8b00] ERROR - Caught exception trying to stream file: /usr/lib/plexmediaserver/Resources/Plug-ins-914ddd2b3/WebClient.bundle/Contents/Resources/js/chunk-272-b354b4fcac6e0b461c38-plex-4.87.2.25887-d04a1ad.js: write: Connection reset by peer
Mar 24, 2023 12:30:14.123 [0x14fef04c5b00] ERROR - Caught exception trying to stream file: /usr/lib/plexmediaserver/Resources/Plug-ins-914ddd2b3/WebClient.bundle/Contents/Resources/chunk-328-bc73675043bc14e1e270-plex-4.87.2.25887-d04a1ad.css: write: Connection reset by peer
Mar 24, 2023 12:30:14.124 [0x14fef09cbb00] ERROR - Caught exception trying to stream file: /usr/lib/plexmediaserver/Resources/Plug-ins-914ddd2b3/WebClient.bundle/Contents/Resources/chunk-272-b354b4fcac6e0b461c38-plex-4.87.2.25887-d04a1ad.css: write: Connection reset by peer
Mar 24, 2023 12:30:14.124 [0x14fef0dd1b00] ERROR - Caught exception trying to stream file: /usr/lib/plexmediaserver/Resources/Plug-ins-914ddd2b3/WebClient.bundle/Contents/Resources/js/chunk-328-bc73675043bc14e1e270-plex-4.87.2.25887-d04a1ad.js: write: Connection reset by peer
Mar 24, 2023 12:30:14.127 [0x14fef09cbb00] WARN - [Req#11eb92/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.134 [0x14fef00bfb00] WARN - [Req#11eb9d/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.138 [0x14feefebcb00] WARN - [Req#11eba3/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.145 [0x14feefab6b00] WARN - [Req#11ebac/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.150 [0x14fef00bfb00] WARN - [Req#11ebb6/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.156 [0x14feef8b3b00] WARN - [Req#11ebbf/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.163 [0x14feef4adb00] WARN - [Req#11ebc9/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.168 [0x14feeeca1b00] WARN - [Req#11ebcf/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.175 [0x14feee89bb00] WARN - [Req#11ebd9/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.180 [0x14feeea9eb00] WARN - [Req#11ebe1/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.187 [0x14feee292b00] WARN - [Req#11ebec/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.191 [0x14feee08fb00] WARN - [Req#11ebf2/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:14.468 [0x14fef4a2bb00] WARN - MyPlex: attempted a reachability check but we're not yet online.
Mar 24, 2023 12:30:15.091 [0x14fef401cb00] WARN - [Req#11ebfa/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:15.097 [0x14fef4e31b00] WARN - [Req#11ec02/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:15.103 [0x14fef360db00] WARN - [Req#11ec06/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:15.109 [0x14fef3810b00] WARN - [Req#11ec0b/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:16.126 [0x14fef0bceb00] WARN - [Req#11ec54/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:30:30.600 [0x14ff04095b00] ERROR - [EventSourceClient/pubsub/172.105.245.178:443] getaddrinfo(172-17-0-1.abcdefghijklmnopqrstuvwxyz012345.plex.direct) failed: -2
Mar 24, 2023 12:30:46.122 [0x14fef3207b00] WARN - [Req#11eef4/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:31:16.139 [0x14fef3207b00] WARN - [Req#11ef32/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:31:46.132 [0x14fef3207b00] WARN - [Req#11ef65/Transcode] Got a transcode session ping without a valid session ID.
Mar 24, 2023 12:32:16.149 [0x14fef563db00] WARN - [Req#11efa8/Transcode] Got a transcode session ping without a valid session ID.

 

 

This is the only thing in the logs I could find that were during the optimization time.

Link to comment
  • 4 weeks later...
  • 7 months later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.