Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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!

  • Replies 66
  • Views 20.4k
  • Created
  • Last Reply

Pssst... that is why the documentation tells you to set it to "host". :)

  • 1 month later...

what permission is required for plexWatch.pl? I can get access to the db data but it is not capturing new watched items... is it permissions on the Plex log?

I have the same issue as dirrtyjoe...any thoughts...

 

in addition, i lost my ability to get pushover notifications from it as well???

I want to say I'm having issues with Plex permissions since I also can't get the pictures/banners to load... but I'm at a loss ATM.

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?

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!

Failed to access plexWatch database. Please check your settings.

 

Those settings look good to me.  Try watching a movie in Plex, plexWatch doesn't create the database until it has some data to add to it.

Hello ljm42,

 

Thanks for responding, Unfortunately watching content does not resolve the issue, I watched several tv episodes last night and there has been no change.

 

Thank you

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!

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....

Dirrtyjoe,

 

Post your settings like I did (removing your plex pass credentials of course) and we can look for a possible settings mistake, in fact if there is one, you will probably find it by going through the process of making the post, because it forces you to look at everything.

 

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

 

I am having same problem can see statistics but nothing else

got mine working changed - /log/Plex Media Server.log to /Logs/Plex Media Server.log it everything fired up

 

got mine working changed - /log/Plex Media Server.log to /Logs/Plex Media Server.log it everything fired up

 

Did you update the Docker to use /Logs instead of /log, I assume?

No it is still /log

No it is still /log

 

Interesting... doesn't work for me.

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).

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.

Glad to hear you resolved it, good sleuthing :)

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

same problem here

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?

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.

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.