(For needo) - Trying to get PlexWatch docker running...


Recommended Posts

What where your steps on 1 thru 3 that needio says you need to do?

 

Created a "plexWatch" folder on my apps drive.

sudo wget -P /mnt/appdisk/apps/plexWatch/ https://raw.github.com/ljunkie/plexWatch/master/plexWatch.pl
sudo wget -P /mnt/appdisk/apps/plexWatch/ https://raw.github.com/ljunkie/plexWatch/master/config.pl-dist
sudo chmod 777 /mnt/appdisk/apps/plexWatch && sudo chmod 755 /mnt/appdisk/apps/plexWatch/plexWatch.pl
sudo cp /mnt/appdisk/apps/plexWatch/config.pl-dist /mnt/appdisk/apps/plexWatch/config.pl

 

Then edited the config.pl file per my earlier post.

 

That's the same way I did mine.  I just removed it all and started over and picked host instead of bridge and now it connects to my plex but shows the following error.

Failed to access plexWatch database. Please check your settings.

 

I think its a permission thing.  Seems it wants to use root root.

 

I finally got it working!  It was file permissions and setting it to host!  Thanks for working with me on this!

Link to comment
  • Replies 66
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...

What where your steps on 1 thru 3 that needio says you need to do?

 

Created a "plexWatch" folder on my apps drive.

sudo wget -P /mnt/appdisk/apps/plexWatch/ https://raw.github.com/ljunkie/plexWatch/master/plexWatch.pl
sudo wget -P /mnt/appdisk/apps/plexWatch/ https://raw.github.com/ljunkie/plexWatch/master/config.pl-dist
sudo chmod 777 /mnt/appdisk/apps/plexWatch && sudo chmod 755 /mnt/appdisk/apps/plexWatch/plexWatch.pl
sudo cp /mnt/appdisk/apps/plexWatch/config.pl-dist /mnt/appdisk/apps/plexWatch/config.pl

 

Then edited the config.pl file per my earlier post.

 

That's the same way I did mine.  I just removed it all and started over and picked host instead of bridge and now it connects to my plex but shows the following error.

Failed to access plexWatch database. Please check your settings.

 

I think its a permission thing.  Seems it wants to use root root.

 

I finally got it working!  It was file permissions and setting it to host!  Thanks for working with me on this!

 

 

What permissions/ownership did you end up using?

Link to comment

Hello,

 

I am having the same error:

 

Failed to access plexWatch database. Please check your settings.

 

I cannot figure out what is wrong, my settings are:

 

Container:

TguX4Pw.png

/plexWatch -> /mnt/cache/Apps/PlexWatch

/logs -> /mnt/cache/Apps/Plex/config/Library/Application Support/Plex Media Server/Logs

 

PlexWatch Directory

/mnt/cache/Apps/PlexWatch/

 

root@Unraid:/mnt/cache/Apps/PlexWatch# ls -l
total 328
-rwxrwxrwx 1 nobody users    560 Sep 28 15:51 config.php*
-rwxrwxrwx 1 nobody users  11973 Sep 28 15:41 config.pl*
-rwxrwxrwx 1 nobody users  12048 Sep 28 15:13 config.pl-dist*
drwxrwxrwx 1 nobody users    120 Sep 28 15:28 db_backups/
-rwxrwxrwx 1 nobody users  63737 Sep 28 20:49 debug.log*
-rwxrwxrwx 1 nobody users  60416 Sep 28 20:49 plexWatch.db*
-rwxrwxrwx 1 nobody users   3529 Sep 28 16:35 plexWatch.log*
-rwxrwxrwx 1 nobody users 174385 Sep 28 15:13 plexWatch.pl*

 

I also used chown to root:root and had the same issue.

 

Config.pl


$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 = 1; ## 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 = '';
$myPlex_pass = '';

$server = 'localhost'; ## 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';

 

Config.php

<?php

require_once '/var/www/html/plexWatch/includes/functions.php';
$plexWatch['dateFormat'] = 'm/d/Y';
$plexWatch['timeFormat'] = 'g:i a';
$plexWatch['pmsIp'] = 'localhost';
$plexWatch['pmsHttpPort'] = '32400';
$plexWatch['pmsHttpsPort'] = '32443';
$plexWatch['https'] = 'no';
$plexWatch['plexWatchDb'] = '/plexWatch/plexWatch.db';
$plexWatch['myPlexUser'] = '';
$plexWatch['myPlexPass'] = '';
$plexWatch['myPlexAuthToken'] = '';
$plexWatch['globalHistoryGrouping'] = 'no';
$plexWatch['userHistoryGrouping'] = 'no';
$plexWatch['chartsGrouping'] = 'no';

?>

 

Any Help is greatly appreciated!

Link to comment

I got PlexWatch working.

 

I didn't have PlexPass, and was unaware I needed PlexPass to make sure that plexwatch worked. Once I signed up for an account and put in the login information, and then restarted plexwatch, everything started working.

 

Thanks!

 

 

Odd, that was a plexWatch or plexWatchWeb issue? I have plexpass and have the credentials filled in but still having trouble....

Link to comment

 

root@Juggernaut:/mnt/user/Apps/plexWatch# ls -al

total 5560

drwxrwxrwx 1 nobody users    220 Oct  1 22:51 ./

drwxrwxrwx 1 nobody users    280 Oct  1 22:26 ../

-rwxrwxrwx 1 nobody users    596 Oct  1 20:46 config.php*

-rwxrwxrwx 1 nobody users  11989 Oct  1 22:13 config.pl*

-rwxrwxrwx 1 nobody users  12048 Sep 27 22:52 config.pl-dist*

drwxrwxrwx 1 nobody users    120 Sep 27 22:56 db_backups/

-rwxrwxrwx 1 nobody users    2556 Sep 27 23:08 debug.log*

-rwxrwxrwx 1 nobody users 5471232 Sep 27 23:09 plexWatch.db*

-rwxrwxrwx 1 nobody users    1193 Sep 27 23:08 plexWatch.log*

-rwxrwxrwx 1 nobody users  174385 Sep 27 22:52 plexWatch.pl*

 

 

Docker:

/log --> /mnt/user/Apps/plexmediaserver/Library/Application Support/Plex Media Server/Logs

/plexWatch --> /mnt/user/Apps/plexWatch

 

config.pl:

/plexWatch/

/log/Plex Media Server.log

 

the DB above is from a previous install. If I rename, a plexWatch.db gets created (sshd:sshd) but nothing is ever populated into the DB

 

Link to comment

Dirrtyjoe,

 

Nobody:users works fine for me, I had the same issue when my config.pl was misconfigured. You may want to post the full contents of your config.pl and config.php (removing your credentials of course).

 

 

Damn..... I figured it out.... it was a missing semicolon.......  :-\

 

Thanks for pressing. I looked at the config.pl file about 500 times and couldn't see anything. 501 was the lucky number apparently.

Link to comment

i am so utterly perplexed...

 

i cannot get this working for the life of me...

 

i can get the docker installed...it sees my db from previous install (plugins before docker)....it sees when i watch content...sees stuff from plex...but writes nothing to the plexWatch.db file and never creates a log file in the logs directory...

 

as a result, i also don't get any notifications that are configured in the config.pl

 

i am completely utterly stumped....please help...

 

i feel like i have tried everything...,but to no avail....

 

thanks

 

Tony

Link to comment

but writes nothing to the plexWatch.db file and never creates a log file in the logs directory...

 

This sounds like a permissions problem with the existing files from the plugin.

 

A few days ago I submitted some changes to the plexWatch docker, once Needo has a chance to review them it will make this a lot easier to install. 

 

But... it wouldn't yet help with your issue.  Would you please do a 'ls -al' on your plexWatch directory and paste the results here, so I can verify it is a permissions problem?

Link to comment

ffingers,

 

I had this issue when i was rushing through the install and didn't realize i needed to actually set the path in the config.pl file to '/plexWatch'.

 

For anyone having issues, i highly recommend that you post the following:

 

1. Path to your plexWatch directory

2. a snapshot of your permissions in your plexWatch directory using the command:

ls -l

3. The contents of your config.pl file with your plex pass credentials removed.

4. The contents of your config.php file with your plex pass credentials removed.

5. A picture of your container settings would also be helpful.

 

I know its a lot of work to post all that but if you provide that info, it will be much easier for someone to help you.

 

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.