Docker plexmediaserver and emby - I can't connect to the servers

    • OMV 4.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Docker plexmediaserver and emby - I can't connect to the servers

      Hello,

      This is my first time trying to use Docker on OMV. I first tried installing the container linuxserver/plex. I followed the directions found here. I didn't see any obvious problems other than when I try to connect via 192.168.1.x:32400/web, I get an "err_connection_refused".

      My plexmediaserver log gives this:

      Source Code

      1. May 12, 2018 20:03:52.004 [0x7f5fb93fe700] INFO - Plex Media Server v1.13.0.5023-31d3c0c65 - ubuntu docker x86_64 - build: linux-ubuntu-x86_64 ubuntu - GMT -07:00
      2. May 12, 2018 20:03:52.004 [0x7f5fb93fe700] INFO - Linux version: 4.14.0-0.bpo.3-amd64 (#1 SMP Debian 4.14.13-1~bpo9+1 (2018-01-14)), language: en-US
      3. May 12, 2018 20:03:52.004 [0x7f5fb93fe700] INFO - Processor AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
      4. May 12, 2018 20:03:52.004 [0x7f5fb93fe700] INFO - /usr/lib/plexmediaserver/Plex Media Server
      5. May 12, 2018 20:03:51.999 [0x7f5fc5423800] DEBUG - BPQ: [Idle] -> [Starting]
      6. May 12, 2018 20:03:52.002 [0x7f5fc5423800] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.13.0, threadsafe=1
      7. May 12, 2018 20:03:52.006 [0x7f5fc5423800] ERROR - SQLITE3:0x10, 5386, os_unix.c:33579: (19) mmap(/config/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db-shm) - No such device
      8. May 12, 2018 20:03:52.006 [0x7f5fc5423800] ERROR - SQLITE3:0x10, 5386, disk I/O error
      9. May 12, 2018 20:03:52.007 [0x7f5fc5423800] ERROR - Database corruption: sqlite3_statement_backend::prepare: disk I/O error for SQL: PRAGMA cache_size=2000
      10. May 12, 2018 20:03:52.007 [0x7f5fc5423800] ERROR - Error: Unable to set up server: sqlite3_statement_backend::prepare: disk I/O error for SQL: PRAGMA cache_size=2000 (N4soci10soci_errorE)
      Display All

      I then tried to install the emby docker container via emby/embyserver. I couldn't find any specific instructions on setting it up in Docker. I tried Network Host: bridge. I entered in PUID and PGID as I did for the plex container, and a container path for the /config. This container is stuck on "restarting."

      I don't know if these two problems are related but I thought I'd list them at the same time.

      thanks
    • gderf wrote:

      Can you post the log for the plex container available from the docker GUI by selecting the container and pressing the Logs button?

      Brainfuck Source Code

      1. s6-init] ensuring user provided files have correct perms...exited 0.
      2. [fix-attrs.d] applying ownership & permissions fixes...
      3. [fix-attrs.d] done.
      4. [cont-init.d] executing container initialization scripts...
      5. [cont-init.d] 10-adduser: executing...
      6. -------------------------------------
      7. _ ()
      8. | | ___ _ __
      9. | | / __| | | / \
      10. | | \__ \ | | | () |
      11. |_| |___/ |_| \__/
      12. Brought to you by linuxserver.io
      13. We gratefully accept donations at:
      14. https://www.linuxserver.io/donations/
      15. -------------------------------------
      16. GID/UID
      17. -------------------------------------
      18. User uid: 1001
      19. User gid: 100
      20. -------------------------------------
      21. [cont-init.d] 10-adduser: exited 0.
      22. [cont-init.d] 30-dbus: executing...
      23. [cont-init.d] 30-dbus: exited 0.
      24. [cont-init.d] 40-chown-files: executing...
      25. Change in ownership detected, please be patient while we chown existing files
      26. This could take some time
      27. [cont-init.d] 40-chown-files: exited 0.
      28. [cont-init.d] 50-plex-update: executing...
      29. #####################################################
      30. # Login via the webui at http://<ip>:32400/web #
      31. # and restart the docker, because there was no #
      32. # preference file found, possibly first startup. #
      33. #####################################################
      34. [cont-init.d] 50-plex-update: exited 0.
      35. [cont-init.d] done.
      36. [services.d] starting services
      37. Starting Plex Media Server.
      38. Starting dbus-daemon
      39. [services.d] done.
      40. Starting Avahi daemon
      41. Starting Plex Media Server.
      42. Found user 'avahi' (UID 106) and group 'avahi' (GID 107).
      43. Successfully dropped root privileges.
      44. avahi-daemon 0.6.32-rc starting up.
      45. No service file found in /etc/avahi/services.
      46. *** WARNING: Detected another IPv4 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***
      47. *** WARNING: Detected another IPv6 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***
      48. Joining mDNS multicast group on interface docker0.IPv4 with address 172.17.0.1.
      49. New relevant interface docker0.IPv4 for mDNS.
      50. Joining mDNS multicast group on interface enp2s0.IPv4 with address 192.168.1.64.
      51. New relevant interface enp2s0.IPv4 for mDNS.
      52. Network interface enumeration completed.
      53. Registering new address record for 172.17.0.1 on docker0.IPv4.
      54. Registering new address record for 192.168.1.64 on enp2s0.IPv4.
      55. Server startup complete. Host name is openmediavault.local. Local service cookie is 2812513950.
      56. Starting Plex Media Server.
      57. Starting Plex Media Server.
      58. Starting Plex Media Server.
      59. Starting Plex Media Server.
      60. Starting Plex Media Server.
      61. Starting Plex Media Server.
      62. Starting Plex Media Server.
      63. Starting Plex Media Server.
      64. Starting Plex Media Server.
      65. Withdrawing address record for 192.168.1.64 on enp2s0.
      66. Leaving mDNS multicast group on interface enp2s0.IPv4 with address 192.168.1.64.
      67. Interface enp2s0.IPv4 no longer relevant for mDNS.
      68. Starting Plex Media Server.
      69. Starting Plex Media Server.
      70. Starting Plex Media Server.
      71. Starting Plex Media Server.
      72. Starting Plex Media Server.
      73. Starting Plex Media Server.
      74. Starting Plex Media Server.
      75. Starting Plex Media Server.
      76. Starting Plex Media Server.
      77. Joining mDNS multicast group on interface enp2s0.IPv4 with address 192.168.1.64.
      78. New relevant interface enp2s0.IPv4 for mDNS.
      79. Registering new address record for 192.168.1.64 on enp2s0.IPv4.
      80. Starting Plex Media Server.
      81. Starting Plex Media Server.
      Display All
    • flvinny521 wrote:

      Another user was not able to use a shared folder for his config directory. Can you try to use a path elsewhere, maybe on your system drive at least just to test it?

      I gave it a try. I created a directory on my system drive and changed its permissions to 777. Changed the config location on the plex container. It worked.


      But I wonder why it didn't work when I had config on my sharedfolders. It looks like all the directories have 777 permissions?

      Source Code

      1. root@openmediavault:/# cd sharedfolders
      2. root@openmediavault:/sharedfolders# ls
      3. config Media
      4. root@openmediavault:/sharedfolders# ls -la
      5. total 20
      6. drwxr-xr-x 4 root root 4096 May 12 11:11 .
      7. drwxr-xr-x 24 root root 4096 May 11 20:32 ..
      8. drwxrwsrwx+ 4 root users 4096 May 12 19:20 config
      9. drwxrwsrwx+ 6 root users 4096 Oct 12 2015 Media
      10. root@openmediavault:/sharedfolders# cd config
      11. root@openmediavault:/sharedfolders/config# ls -la
      12. total 16
      13. drwxrwsrwx+ 4 root users 4096 May 12 19:20 .
      14. drwxr-xr-x 4 root root 4096 May 12 11:11 ..
      15. drwxrwsr-x+ 8 bin bin 4096 May 12 19:20 emby
      16. drwxrwsrwx+ 3 user1 users 4096 May 12 13:33 plex
      17. root@openmediavault:/sharedfolders/config# cd plex
      18. root@openmediavault:/sharedfolders/config/plex# ls
      19. Library
      20. root@openmediavault:/sharedfolders/config/plex# ls -la
      21. total 12
      22. drwxrwsrwx+ 3 user1 users 4096 May 12 13:33 .
      23. drwxrwsrwx+ 4 root users 4096 May 12 19:20 ..
      24. drwxrwsrwx+ 3 user1 users 4096 May 12 11:22 Library
      25. root@openmediavault:/sharedfolders/config/plex# cd Library
      26. root@openmediavault:/sharedfolders/config/plex/Library# ls -la
      27. total 12
      28. drwxrwsrwx+ 3 user1 users 4096 May 12 11:22 .
      29. drwxrwsrwx+ 3 user1 users 4096 May 12 13:33 ..
      30. drwxrwsrwx+ 3 user1 users 4096 May 12 11:22 Application Support
      31. root@openmediavault:/sharedfolders/config/plex/Library# cd "Application Support"
      32. root@openmediavault:/sharedfolders/config/plex/Library/Application Support# ls - la
      33. total 12
      34. drwxrwsrwx+ 3 user1 users 4096 May 12 11:22 .
      35. drwxrwsrwx+ 3 user1 users 4096 May 12 11:22 ..
      36. drwxrwsrwx+ 6 user1 users 4096 May 13 12:30 Plex Media Server
      37. root@openmediavault:/sharedfolders/config/plex/Library/Application Support# cd " Plex Media Server"
      38. root@openmediavault:/sharedfolders/config/plex/Library/Application Support/Plex Media Server# ls -la
      39. total 24
      40. drwxrwsrwx+ 6 user1 users 4096 May 13 12:30 .
      41. drwxrwsrwx+ 3 user1 users 4096 May 12 11:22 ..
      42. drwxrwsrwx+ 3 user1 users 4096 May 12 11:22 Codecs
      43. drwxrwsrwx+ 3 user1 users 4096 May 12 11:22 Crash Reports
      44. drwxrwsrwx+ 2 user1 users 4096 May 13 12:30 Logs
      45. drwxrwsrwx+ 3 user1 users 4096 May 12 11:22 Plug-in Support
      46. root@openmediavault:/sharedfolders/config/plex/Library/Application Support/Plex Media Server# cd Codecs
      47. root@openmediavault:/sharedfolders/config/plex/Library/Application Support/Plex Media Server/Codecs# ls -la
      48. total 16
      49. drwxrwsrwx+ 3 user1 users 4096 May 12 11:22 .
      50. drwxrwsrwx+ 6 user1 users 4096 May 13 12:31 ..
      51. drwxrwsrwx+ 2 user1 users 4096 May 12 11:22 4b51335-1293-linux-ubuntu-x86_64
      52. -rwxrwxrwx 1 user1 users 36 May 12 11:22 .device-id
      53. root@openmediavault:/sharedfolders/config/plex/Library/Application Support/Plex Media Server/Codecs# cd ..
      54. root@openmediavault:/sharedfolders/config/plex/Library/Application Support/Plex Media Server# cd "Plug-in Support"
      55. root@openmediavault:/sharedfolders/config/plex/Library/Application Support/Plex Media Server/Plug-in Support# ls -la
      56. total 12
      57. drwxrwsrwx+ 3 user1 users 4096 May 12 11:22 .
      58. drwxrwsrwx+ 6 user1 users 4096 May 13 12:32 ..
      59. drwxrwsrwx+ 2 user1 users 4096 May 12 11:22 Databases
      60. root@openmediavault:/sharedfolders/config/plex/Library/Application Support/Plex Media Server/Plug-in Support#
      Display All
    • Just a heads up.

      For the Plex Docker, its /config is a bit of a misnomer. It also holds the Metadata database. Depending on how you run Plex and the number of media files you have (movies, music, TV Shows, etc), this database can become quite large. Mine is currently at about 150GB, and grows about 3GB per day. And in case I was not clear, this is the metadata only, not the actual media files themselves. If your system drives fills up, many things will stop working, not just Plex.
      OMV 4.x - ASRock Rack C2550D4I - 16GB ECC - Silverstone DS380
    • What other settings did you use in your emby container? Can you post a screenshot? I tried changing the UID and GID to a generic user instead of bin but that didn't help. I also tried a config directory on my installation drive but that didn't work either.

      Chickenlal wrote:

      I had the same problems with Sonarr and Emby.

      Had to create a config folder on the installation disk.

      When Input it on a share it didnt work at all


      Verzonden vanaf mijn iPhone met Tapatal
    • I run Plex in the Docker too, but I did not point the /config to an OMV defined Shared Folder. I pointed it to the actual folder on the drive. None of my dockers have their /config pointed to OMV defined Shared Folders.

      I think your problem is related to a combined set of ownership and permission problems probably aggravated by using OMV's Shared Folders Privileges and ACL settings. I never use those here for anything.
      OMV 4.x - ASRock Rack C2550D4I - 16GB ECC - Silverstone DS380
    • gderf wrote:

      I run Plex in the Docker too, but I did not point the /config to an OMV defined Shared Folder. I pointed it to the actual folder on the drive. None of my dockers have their /config pointed to OMV defined Shared Folders.

      I think your problem is related to a combined set of ownership and permission problems probably aggravated by using OMV's Shared Folders Privileges and ACL settings. I never use those here for anything.
      I'll set my folder up via SSH. However, I'm new to OMV 4.x, coming from 2.x. I used to go to my drives via /media/UUID/.... This heirarchy doesn't work any more. So dumb question of the day: what/where is the path to my data drives?

      thanks
    • Thanks everyone, Plex is now working. In summary, my solution for Plex was to remove the shared folder created via OMV webgui and create the config directory on my data drives via the shell.

      I did the same for Emby and the docker seems to be running but I still cannot connect. I have tried both the bin user (bin:bin) and creating my own user (user1:user), and changing the ownership of the config directory and files accordingly.