PLEX docker setup?


Recommended Posts

I just finished installing unRAID Plus and setup my cache drive after a little trial and error.

 

 

I now have a Plex session running in Docker on my cache drive in its own docker cache only share with the configuration files in a cache only share called appdata.

 

 

My issue is I don't know how to add my movie library so I can watch from my Mac sitting in another room via Ethernet over Plex....

 

 

 

 

I guess I need to setup some kind of container for the files to be moved to before they appear in Plex but I can't seem to figure out how....

Link to comment

To elaborate on this example, the Host path is where your movies or whatever are on unRAID. The Container volume is where your movies or whatever will be seen within the container. Just try it and it will probably make more sense. There are a lot of examples around the forum, but if you're still stuck, post a screenshot of your docker configuration.

Link to comment

This might be silly but you are aware of how to get to the Plex management page correct? I know when i first started using these apps that wasn't intuitive, but thankfuly I was using the plugin and PhAzE made the word "Running" link to the managment page.

 

http://(unraidname or IPaddress):32400/web

 

Also the media naming guide might save you some touble later. https://support.plex.tv/hc/en-us/categories/200028098

(Don't worry if it's not all good right now, you can fix it later and rescan.)

 

That said, i've moved to emby (was Media Broweser 3) because Plex isnt' alwasy the best about responding to problems and isn't very transparent. But both are good services that work well, with Plex working just a tiny bit better.

Link to comment

Have a new problem... The media works spot on!

 

 

But I would like to get PlexWatch up and running too.

 

 

Have tried a bunch of things without any luck, also tried everything I can read over here

 

 

 

 

It has something to do with my database file, it can't find it.

 

 

 

 

My configuration file looks like this:

 

 

 

<?php

 

 

require_once '/var/www/html/plexWatch/includes/functions.php';

$plexWatch['dateFormat'] = 'm/d/Y';

$plexWatch['timeFormat'] = 'g:i a';

$plexWatch['pmsIp'] = '192.168.2.65';

$plexWatch['pmsHttpPort'] = '32400';

$plexWatch['pmsHttpsPort'] = '32443';

$plexWatch['https'] = 'no';

$plexWatch['plexWatchDb'] = '/mnt/cache/appdata/plexWatch/plexWatch.db';

$plexWatch['myPlexUser'] = '***';

$plexWatch['myPlexPass'] = '*****';

$plexWatch['myPlexAuthToken'] = '******';

$plexWatch['globalHistoryGrouping'] = 'yes';

$plexWatch['userHistoryGrouping'] = 'yes';

$plexWatch['chartsGrouping'] = 'yes';

 

 

?>

Link to comment

Have a new problem... The media works spot on!

 

 

But I would like to get PlexWatch up and running too.

 

 

Have tried a bunch of things without any luck, also tried everything I can read over here

 

 

 

 

It has something to do with my database file, it can't find it.

 

 

 

 

My configuration file looks like this:

 

 

 

<?php

 

 

require_once '/var/www/html/plexWatch/includes/functions.php';

$plexWatch['dateFormat'] = 'm/d/Y';

$plexWatch['timeFormat'] = 'g:i a';

$plexWatch['pmsIp'] = '192.168.2.65';

$plexWatch['pmsHttpPort'] = '32400';

$plexWatch['pmsHttpsPort'] = '32443';

$plexWatch['https'] = 'no';

$plexWatch['plexWatchDb'] = '/mnt/cache/appdata/plexWatch/plexWatch.db';

$plexWatch['myPlexUser'] = '***';

$plexWatch['myPlexPass'] = '*****';

$plexWatch['myPlexAuthToken'] = '******';

$plexWatch['globalHistoryGrouping'] = 'yes';

$plexWatch['userHistoryGrouping'] = 'yes';

$plexWatch['chartsGrouping'] = 'yes';

 

 

?>

Is this a plexwatch docker? Post your volume mappings.
Link to comment

I don't use this, but shouldn't the path in your config file be based on the container volume?

 

$plexWatch['plexWatchDb'] = '/plexWatch/plexWatch.db';

instead of

$plexWatch['plexWatchDb'] = '/mnt/cache/appdata/plexWatch/plexWatch.db';

 

 

8Bymhp.png

 

 

tnWN58.png

 

 

I tried it and it still does not work

I do have plex pass and am logged in everywere

Link to comment

A couple of things...

 

This is definitely wrong:

  plexWatch['plexWatchDb'] = '/mnt/cache/appdata/plexWatch/plexWatch.db';

the default setting was correct.

 

And there is no need to add a container mapping for /Plex

 

I'd recommend deleting whatever is in your /mnt/cache/appdata/plexWatch directory and starting over.  As long as you use host mode, the default settings in config.php and config.pl should all be good, except that you need to add your Plex username and password to both files.

 

More details are here:    https://github.com/needo37/plexWatch

 

Link to comment

A couple of things...

 

This is definitely wrong:

  plexWatch['plexWatchDb'] = '/mnt/cache/appdata/plexWatch/plexWatch.db';

the default setting was correct.

 

And there is no need to add a container mapping for /Plex

 

I'd recommend deleting whatever is in your /mnt/cache/appdata/plexWatch directory and starting over.  As long as you use host mode, the default settings in config.php and config.pl should all be good, except that you need to add your Plex username and password to both files.

 

More details are here:    https://github.com/needo37/plexWatch

 

 

Ok I tried what you said, but I still see the database error. What could be wrong?

 

 

I had not edited my config.pl, but I have now and the first lines of it looks like this:

 

 

 

 

 

$data_dir = '/plexWatch/'; ## to store the DB, logfile - can be the same as this script

 

 

$server_log = '/logs/Plex Media Server.log'; ## used to log IP address of user (alpha)

$log_client_ip = 0; ## requires $server_log to be available too. (requires File::ReadBackwards)

## also required DEBUG log to be turned on in the PMS

 

 

$debug_logging = 1; ## logs to $data_dir/debug.log ( not verbose enough yet.. still todo )

 

 

## myplex user/pass ONLY required if you have set the PMS to 'Require authentication on local networks' and $server is not set to localhost

$myPlex_user = 'yyy';

$myPlex_pass = 'xxx';

 

 

$server = '192.168.2.65'; ## IP of PMS - or localhost

$port = 32400;        ## port of PMS

 

 

$notify_started = 1;  # !deprecated -- does nothing anymore (use push_watched, push_watching in $notify)

$notify_stopped = 1;  # !deprecated -- does nothing anymore (use push_watched, push_watching in $notify)

 

 

$appname = 'plexWatch';

Link to comment

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.