Jump to content

wickedathletes

Community Developer
  • Posts

    435
  • Joined

  • Last visited

Everything posted by wickedathletes

  1. Ok, so first thank you, even though I swear I have done that like 12 times it works now. Odd thing, permissions is what fixed it for me... but I thought "777" was god mode, which is what I had tried previously and it doesn't work, yet '666' works.
  2. no debug or plexWatch log get made. Docker configuration details are as follows, also I started fresh again so here is all the details again: Docker Configuration: root@localhost:# /usr/bin/docker run -d --name="plexWatch" --net="host" -e TZ="America/New_York" -p 8080:8080/tcp -v "/mnt/cache/apps/Plex/Library/Application Support/Plex Media Server/Logs/":"/log":rw -v "/mnt/cache/apps/plexWatch/":"/plexWatch":rw needo/plexwatch Permissions: -rw-rw-rw- 1 root root 620 Jan 13 10:04 config.php -rw-rw-rw- 1 root root 12039 Jan 13 10:02 config.pl drwxrwxrwx 2 root root 168 Jan 13 10:03 db_backups/ -rw-r--r-- 1 root root 54272 Jan 13 10:05 plexWatch.db -rwxr-xr-x 1 root root 178409 Jan 13 10:02 plexWatch.pl* config.pl: $data_dir = '/plexWatch/'; ## to store the DB, logfile - can be the same as this script $server_log = '/log/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 = ''; $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'; ## Give a user a more friendly name. I.E. REAL_USER will now be Frank ## you may also specify the platform with user+platform $user_display = {'REAL_USER1' => 'Frank', 'REAL_USER2' => 'Rob & Carrie', 'REAL_USER2+Roku 3' => 'Family Room', 'REAL_USER2+Roku' => 'Family Room', 'REAL_USER2+iOS' => 'Rob', }; ## format of alert - default. You can also override this per provider ($notify below) ## run ./plexWatch.pl --format_options -- to see all # start = notification for start of video # stop = notification for stop of video # watched = cli output for watched content # watching = cli output content being watched $alert_format = {'start' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] {ip_address}', 'paused' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%] {ip_address}', 'resumed' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%] {ip_address}', 'stop' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} for {duration} [{percent_complete}%] {ip_address}', 'watched' => '{user} watched {title} [{streamtype}] [{year}] [{length}] [{rating}] on {platform} for {duration} [{percent_complete}%] {ip_address}', 'watching' => '{user} {state} {title} [{streamtype}] [{year}] [{rating}] [{length}] on {platform} for {duration} [{percent_complete}%] [{time_left} left] {ip_address}' }; ## Notification Options $notify = { 'file' => { 'enabled' => 1, ## 0 or 1 - set to 1 to enable File Logging 'filename' => "$data_dir/plexWatch.log", ## default is plexWatch.log }, 'prowl' => { 'enabled' => 0, ## 0 or 1 - set to 1 to enable PROWL 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'apikey' => 'YOUR API KEY', ## your API key 'application' => '{user}', 'priority' => 0, 'url' => '', }, 'pushover' => { 'enabled' => 0, ## set to 1 to enable Pushover 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'token' => 'YOUR APP TOKEN', ## your app token 'user' => 'YOUR USER TOKEN', ## your user token 'title' => '{user}', 'sound' => 'intermission', }, 'growl' => { 'enabled' => 0, ## set to 1 to enable local growl (You should probably used GNTP - growl supported for multiple platforms - below) 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'application' => '{user}', 'script' => '/usr/local/bin/growlnotify', 'icon' => '/Applications/Plex Media Server.app/Contents/Resources/MyPlex.icns', }, 'twitter' => { 'enabled' => 0, ## set to 1 to enable local growl 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'title' => '{user}', 'consumer_key' => '', 'consumer_secret' => '', 'access_token' => '', 'access_token_secret' => '', 'alert_format' => { 'start' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in]', 'paused' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%]', 'resumed' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%]', 'stop' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} for {duration} [{percent_complete}%]', }, }, 'boxcar' => { 'enabled' => 0, ## set to 1 to enable local boxcar 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'email' => '', ## YOUR email address registered at boxcar 'from' => '{user}', ## From Name displayed on boxcar 'provider_key' => 'o2eI7rcwya5XFETaXdlh', ## plexWatch app is 'o2eI7rcwya5XFETaXdlh'. You may supply your own. 'provider_secret' => 'h4pJjyBoEMk1rwK2EH3NLemO4fQ0ql9HnRgVfwg4', ## plexWatch app is 'h4pJjyBoEMk1rwK2EH3NLemO4fQ0ql9HnRgVfwg4'. You may supply your own. 'icon_url' => '', # Leave empty ('') for plexWatch icon. You may supply your own (57x57) }, 'boxcar_v2' => { 'enabled' => 0, ## set to 1 to enable local boxcar_v2 ( device specific ) 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'access_token' => '', # Access token from your Device 'from' => '{user}', ## From Name displayed on boxcar }, 'pushbullet' => { 'enabled' => 0, 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'title' => '{user}', 'apikey' => 'API KEY', # Pushbullet API key https://www.pushbullet.com/account 'device' => 'DEVICE IDEN', # https://api.pushbullet.com/api/devices put yor API key as username and password empty }, ## GNTP (GROWL) -- multiple destinations are supported 'GNTP' => { '1' => { 'enabled' => 0, ## set to 1 to enable local growl 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'application' => $appname, 'title' => '{user}', 'server' => '10.0.0.1', # destination ip/host 'port' => '23053', # default 23053 'password' => '', # '' for no pass 'icon_url' => 'https://rarforge.com/images/plexWatch.57x57.png', 'sticky' => 1, }, '2' => { 'enabled' => 0, ## set to 1 to enable local growl 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'application' => '{user}', 'server' => '192.168.10.100', # destination ip/host 'port' => '23053', # default 23053 'password' => '', # '' for no pass 'icon_url' => 'https://rarforge.com/images/plexWatch.57x57.png', 'sticky' => 0, }, }, ## EMAIL -- multiple destinations are supported 'EMAIL' => { '1' => { 'enabled' => 0, ## set to 1 to enable local EMAIL 'push_recentlyadded' => 0, 'push_watched' => 1, 'push_watching' => 1, 'push_paused' => 1, 'push_resumed' => 1, 'server' => '', # your mail server 'port' => '25', # your mail server port defalt 25 (587 is also a good choice) 'from' => '', # your From email address: '[email protected]' 'to' => '', # Email address to receive notification: '[email protected]' 'username' => '', # AUTH if needed [optional] 'password' => '', # AUTH if needed [optional] 'subject' => '{user} {push_title} {title}', ## push_title is special for EMAIL (for now) 'enable_tls' => 0, # ENABLE for TLS support ( your smtp server must allow STARTTLS ) 'alert_format' => { 'start' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] {ip_address} {all_details}', 'paused' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%] {ip_address} {all_details}', 'resumed' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%] {ip_address} {all_details}', 'stop' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} for {duration} [{percent_complete}%] {ip_address} {all_details}', }, }, '2' => { 'enabled' => 0, ## set to 1 to enable EMAIL ## fill in the rest if you need more then 1 email notification }, }, 'external' => { 'transmissionServer1' => { 'enabled' => 0, ## 0 or 1 - set to 1 to enable 'push_watched' => 1, #stop 'push_watching' => 1, #start 'push_paused' => 1, #pause 'push_resumed' => 1, #resume 'script_format' => { 'start' => '/usr/local/bin/start.pl {user} {state}', 'paused' => '/usr/local/bin/paused.pl {user} {state}', 'resumed' => '/usr/local/bin/resumed.pl {user} {state}', 'stop' => '/usr/local/bin/stop.pl {user} {state}', }, }, 'homeAutomation' => { 'enabled' => 0, ## 0 or 1 - set to 1 to enable homeAutomation script 'push_watched' => 1, #stop 'push_watching' => 1, #start 'push_paused' => 1, #pause 'push_resumed' => 1, #resume 'script_format' => { 'start' => '/usr/local/bin/homeAutomation.pl {user} {state}', 'paused' => '/usr/local/bin/homeAutomation.pl {user} {state}', 'resumed' => '/usr/local/bin/homeAutomation.pl {user} {state}', 'stop' => '/usr/local/bin/homeAutomation.pl {user} {state}', }, }, }, }; $push_titles = { 'push_watched' => 'Watched', 'push_watching' => 'Watching', 'push_resumed' => 'Resumed', 'push_paused' => 'Paused', 'push_recentlyadded' => 'New', }; # Advanced $watched_show_completed = 1; ## advanced config -- always show completed show/movie as it's own line $watched_grouping_maxhr = 2; ## advanced config -- do not group shows together if start/restart is > X hours $count_paused = 0; ## included paused time in time watched ( probably do not want this ) $inc_non_library_content = 0; ## non library content (channels) are excluded. Set to 1 to include them #@exclude_library_ids = (999, 998); ## exclude this library section (by id) -- full exclusion 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'] = 'yes'; $plexWatch['userHistoryGrouping'] = 'yes'; $plexWatch['chartsGrouping'] = 'yes'; ?> I have tried host mode/bridge mode, changing localhost to my IP, removing the end / in the config.pl, removing a , in the config.pl, changing permissions to 777, changing the owner to various things as well. I am stuck
  3. the database does get updated, and I have also tried reinstalling about 10 times, so unless I am 0 for 10 with corruption haha that being said, it never gets bigger than 53kb, so the date modified changes but the file size does not
  4. I did try filling that out as well to no avail unfortunately. Regarding the version, what are you referring to? Plex: 0.9.11.7 (needo docker) plexWatch/Web Version: v1.5.4.2 (needo docker) plexWatch Version: v0.3.2
  5. "Failed to access plexWatch database. Please check your settings.", I have PlexPass and the following are my details (was wondering if I missed anything): I also tried running plexWatch.pl -watched and it returned this (not sure if this should work with docker or not though): root@Hades:/mnt/cache/apps/plexWatch# plexWatch.pl -watched Can't locate LWP/UserAgent.pm in @INC (you may need to install the LWP::UserAgent module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./plexWatch.pl line 16. BEGIN failed--compilation aborted at ./plexWatch.pl line 16. 1. docker log: Plex Media Server.log located in /log directory *** Running /etc/rc.local... *** Booting runit daemon... *** Runit started as PID 15 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.11. Set the 'ServerName' directive globally to suppress this message *** Shutting down runit daemon (PID 15)... *** Killing all processes... *** Running /etc/my_init.d/00_regen_ssh_host_keys.sh... *** Running /etc/my_init.d/edge.sh... Bleeding edge not requested *** Running /etc/my_init.d/firstrun.sh... Plex Media Server.log located in /log directory *** Running /etc/rc.local... *** Booting runit daemon... *** Runit started as PID 12 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.12. Set the 'ServerName' directive globally to suppress this message 2. config.php: <?php require_once '/var/www/html/plexWatch/includes/functions.php'; $plexWatch['dateFormat'] = 'm/d/Y'; $plexWatch['timeFormat'] = 'g:i a'; $plexWatch['pmsIp'] = '10.10.1.3'; $plexWatch['pmsHttpPort'] = '32400'; $plexWatch['pmsHttpsPort'] = '32443'; $plexWatch['https'] = 'no'; $plexWatch['plexWatchDb'] = '/plexWatch/plexWatch.db'; $plexWatch['myPlexUser'] = '*****'; $plexWatch['myPlexPass'] = '*****'; $plexWatch['myPlexAuthToken'] = '*****'; $plexWatch['globalHistoryGrouping'] = 'yes'; $plexWatch['userHistoryGrouping'] = 'yes'; $plexWatch['chartsGrouping'] = 'yes'; ?> 3. config.pl: $data_dir = '/plexWatch/'; ## to store the DB, logfile - can be the same as this script $server_log = '/log/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 = ''; $myPlex_pass = ''; $server = '10.10.1.3'; ## 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'; ## Give a user a more friendly name. I.E. REAL_USER will now be Frank ## you may also specify the platform with user+platform $user_display = {'REAL_USER1' => 'Frank', 'REAL_USER2' => 'Rob & Carrie', 'REAL_USER2+Roku 3' => 'Family Room', 'REAL_USER2+Roku' => 'Family Room', 'REAL_USER2+iOS' => 'Rob', }; ## format of alert - default. You can also override this per provider ($notify below) ## run ./plexWatch.pl --format_options -- to see all # start = notification for start of video # stop = notification for stop of video # watched = cli output for watched content # watching = cli output content being watched $alert_format = {'start' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] {ip_address}', 'paused' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%] {ip_address}', 'resumed' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%] {ip_address}', 'stop' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} for {duration} [{percent_complete}%] {ip_address}', 'watched' => '{user} watched {title} [{streamtype}] [{year}] [{length}] [{rating}] on {platform} for {duration} [{percent_complete}%] {ip_address}', 'watching' => '{user} {state} {title} [{streamtype}] [{year}] [{rating}] [{length}] on {platform} for {duration} [{percent_complete}%] [{time_left} left] {ip_address}' }; ## Notification Options $notify = { 'file' => { 'enabled' => 1, ## 0 or 1 - set to 1 to enable File Logging 'filename' => "$data_dir/plexWatch.log", ## default is plexWatch.log }, 'prowl' => { 'enabled' => 0, ## 0 or 1 - set to 1 to enable PROWL 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'apikey' => 'YOUR API KEY', ## your API key 'application' => '{user}', 'priority' => 0, 'url' => '', }, 'pushover' => { 'enabled' => 0, ## set to 1 to enable Pushover 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'token' => 'YOUR APP TOKEN', ## your app token 'user' => 'YOUR USER TOKEN', ## your user token 'title' => '{user}', 'sound' => 'intermission', }, 'growl' => { 'enabled' => 0, ## set to 1 to enable local growl (You should probably used GNTP - growl supported for multiple platforms - below) 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'application' => '{user}', 'script' => '/usr/local/bin/growlnotify', 'icon' => '/Applications/Plex Media Server.app/Contents/Resources/MyPlex.icns', }, 'twitter' => { 'enabled' => 0, ## set to 1 to enable local growl 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'title' => '{user}', 'consumer_key' => '', 'consumer_secret' => '', 'access_token' => '', 'access_token_secret' => '', 'alert_format' => { 'start' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in]', 'paused' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%]', 'resumed' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%]', 'stop' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} for {duration} [{percent_complete}%]', }, }, 'boxcar' => { 'enabled' => 0, ## set to 1 to enable local boxcar 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'email' => '', ## YOUR email address registered at boxcar 'from' => '{user}', ## From Name displayed on boxcar 'provider_key' => 'o2eI7rcwya5XFETaXdlh', ## plexWatch app is 'o2eI7rcwya5XFETaXdlh'. You may supply your own. 'provider_secret' => 'h4pJjyBoEMk1rwK2EH3NLemO4fQ0ql9HnRgVfwg4', ## plexWatch app is 'h4pJjyBoEMk1rwK2EH3NLemO4fQ0ql9HnRgVfwg4'. You may supply your own. 'icon_url' => '', # Leave empty ('') for plexWatch icon. You may supply your own (57x57) }, 'boxcar_v2' => { 'enabled' => 0, ## set to 1 to enable local boxcar_v2 ( device specific ) 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'access_token' => '', # Access token from your Device 'from' => '{user}', ## From Name displayed on boxcar }, 'pushbullet' => { 'enabled' => 0, 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'title' => '{user}', 'apikey' => 'API KEY', # Pushbullet API key https://www.pushbullet.com/account 'device' => 'DEVICE IDEN', # https://api.pushbullet.com/api/devices put yor API key as username and password empty }, ## GNTP (GROWL) -- multiple destinations are supported 'GNTP' => { '1' => { 'enabled' => 0, ## set to 1 to enable local growl 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'application' => $appname, 'title' => '{user}', 'server' => '10.0.0.1', # destination ip/host 'port' => '23053', # default 23053 'password' => '', # '' for no pass 'icon_url' => 'https://rarforge.com/images/plexWatch.57x57.png', 'sticky' => 1, }, '2' => { 'enabled' => 0, ## set to 1 to enable local growl 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'application' => '{user}', 'server' => '192.168.10.100', # destination ip/host 'port' => '23053', # default 23053 'password' => '', # '' for no pass 'icon_url' => 'https://rarforge.com/images/plexWatch.57x57.png', 'sticky' => 0, }, }, ## EMAIL -- multiple destinations are supported 'EMAIL' => { '1' => { 'enabled' => 0, ## set to 1 to enable local EMAIL 'push_recentlyadded' => 0, 'push_watched' => 1, 'push_watching' => 1, 'push_paused' => 1, 'push_resumed' => 1, 'server' => '', # your mail server 'port' => '25', # your mail server port defalt 25 (587 is also a good choice) 'from' => '', # your From email address: '[email protected]' 'to' => '', # Email address to receive notification: '[email protected]' 'username' => '', # AUTH if needed [optional] 'password' => '', # AUTH if needed [optional] 'subject' => '{user} {push_title} {title}', ## push_title is special for EMAIL (for now) 'enable_tls' => 0, # ENABLE for TLS support ( your smtp server must allow STARTTLS ) 'alert_format' => { 'start' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] {ip_address} {all_details}', 'paused' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%] {ip_address} {all_details}', 'resumed' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%] {ip_address} {all_details}', 'stop' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} for {duration} [{percent_complete}%] {ip_address} {all_details}', }, }, '2' => { 'enabled' => 0, ## set to 1 to enable EMAIL ## fill in the rest if you need more then 1 email notification }, }, 'external' => { 'transmissionServer1' => { 'enabled' => 0, ## 0 or 1 - set to 1 to enable 'push_watched' => 1, #stop 'push_watching' => 1, #start 'push_paused' => 1, #pause 'push_resumed' => 1, #resume 'script_format' => { 'start' => '/usr/local/bin/start.pl {user} {state}', 'paused' => '/usr/local/bin/paused.pl {user} {state}', 'resumed' => '/usr/local/bin/resumed.pl {user} {state}', 'stop' => '/usr/local/bin/stop.pl {user} {state}', }, }, 'homeAutomation' => { 'enabled' => 0, ## 0 or 1 - set to 1 to enable homeAutomation script 'push_watched' => 1, #stop 'push_watching' => 1, #start 'push_paused' => 1, #pause 'push_resumed' => 1, #resume 'script_format' => { 'start' => '/usr/local/bin/homeAutomation.pl {user} {state}', 'paused' => '/usr/local/bin/homeAutomation.pl {user} {state}', 'resumed' => '/usr/local/bin/homeAutomation.pl {user} {state}', 'stop' => '/usr/local/bin/homeAutomation.pl {user} {state}', }, }, }, }; $push_titles = { 'push_watched' => 'Watched', 'push_watching' => 'Watching', 'push_resumed' => 'Resumed', 'push_paused' => 'Paused', 'push_recentlyadded' => 'New', }; # Advanced $watched_show_completed = 1; ## advanced config -- always show completed show/movie as it's own line $watched_grouping_maxhr = 2; ## advanced config -- do not group shows together if start/restart is > X hours $count_paused = 0; ## included paused time in time watched ( probably do not want this ) $inc_non_library_content = 0; ## non library content (channels) are excluded. Set to 1 to include them #@exclude_library_ids = (999, 998); ## exclude this library section (by id) -- full exclusion 4. permissions: root@Hades:/mnt/cache/apps/PlexWatch# ls -l total 248 -rwxrwxrwx 1 nobody users 620 Jan 11 12:46 config.php* -rwxrwxrwx 1 nobody users 12039 Jan 11 12:55 config.pl* drwxrwxrwx 2 nobody users 168 Jan 11 12:34 db_backups/ -rwxrwxrwx 1 nobody users 54272 Jan 11 12:58 plexWatch.db* -rwxrwxrwx 1 nobody users 178409 Jan 11 12:30 plexWatch.pl* Note, regarding permissions I tried slimserver:user, root:root and nobody:users. I also did this chmod -R 777 PlexWatch to make sure I wasn't crazy. I have tried host mode, bridge mode, different ports and nothing gets me past this point.
  6. Sorry, I modified my post, it wasn't the Application Support part, it was the capital L in library.
  7. I am having the same issues, I have PlexPass and the following are my details: 1. docker log: Plex Media Server.log located in /log directory *** Running /etc/rc.local... *** Booting runit daemon... *** Runit started as PID 15 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.11. Set the 'ServerName' directive globally to suppress this message *** Shutting down runit daemon (PID 15)... *** Killing all processes... *** Running /etc/my_init.d/00_regen_ssh_host_keys.sh... *** Running /etc/my_init.d/edge.sh... Bleeding edge not requested *** Running /etc/my_init.d/firstrun.sh... Plex Media Server.log located in /log directory *** Running /etc/rc.local... *** Booting runit daemon... *** Runit started as PID 12 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.12. Set the 'ServerName' directive globally to suppress this message 2. config.php: <?php require_once '/var/www/html/plexWatch/includes/functions.php'; $plexWatch['dateFormat'] = 'm/d/Y'; $plexWatch['timeFormat'] = 'g:i a'; $plexWatch['pmsIp'] = '10.10.1.3'; $plexWatch['pmsHttpPort'] = '32400'; $plexWatch['pmsHttpsPort'] = '32443'; $plexWatch['https'] = 'no'; $plexWatch['plexWatchDb'] = '/plexWatch/plexWatch.db'; $plexWatch['myPlexUser'] = '*****'; $plexWatch['myPlexPass'] = '*****'; $plexWatch['myPlexAuthToken'] = '*****'; $plexWatch['globalHistoryGrouping'] = 'yes'; $plexWatch['userHistoryGrouping'] = 'yes'; $plexWatch['chartsGrouping'] = 'yes'; ?> 3. config.pl: $data_dir = '/plexWatch/'; ## to store the DB, logfile - can be the same as this script $server_log = '/log/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 = ''; $myPlex_pass = ''; $server = '10.10.1.3'; ## 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'; ## Give a user a more friendly name. I.E. REAL_USER will now be Frank ## you may also specify the platform with user+platform $user_display = {'REAL_USER1' => 'Frank', 'REAL_USER2' => 'Rob & Carrie', 'REAL_USER2+Roku 3' => 'Family Room', 'REAL_USER2+Roku' => 'Family Room', 'REAL_USER2+iOS' => 'Rob', }; ## format of alert - default. You can also override this per provider ($notify below) ## run ./plexWatch.pl --format_options -- to see all # start = notification for start of video # stop = notification for stop of video # watched = cli output for watched content # watching = cli output content being watched $alert_format = {'start' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] {ip_address}', 'paused' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%] {ip_address}', 'resumed' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%] {ip_address}', 'stop' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} for {duration} [{percent_complete}%] {ip_address}', 'watched' => '{user} watched {title} [{streamtype}] [{year}] [{length}] [{rating}] on {platform} for {duration} [{percent_complete}%] {ip_address}', 'watching' => '{user} {state} {title} [{streamtype}] [{year}] [{rating}] [{length}] on {platform} for {duration} [{percent_complete}%] [{time_left} left] {ip_address}' }; ## Notification Options $notify = { 'file' => { 'enabled' => 1, ## 0 or 1 - set to 1 to enable File Logging 'filename' => "$data_dir/plexWatch.log", ## default is plexWatch.log }, 'prowl' => { 'enabled' => 0, ## 0 or 1 - set to 1 to enable PROWL 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'apikey' => 'YOUR API KEY', ## your API key 'application' => '{user}', 'priority' => 0, 'url' => '', }, 'pushover' => { 'enabled' => 0, ## set to 1 to enable Pushover 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'token' => 'YOUR APP TOKEN', ## your app token 'user' => 'YOUR USER TOKEN', ## your user token 'title' => '{user}', 'sound' => 'intermission', }, 'growl' => { 'enabled' => 0, ## set to 1 to enable local growl (You should probably used GNTP - growl supported for multiple platforms - below) 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'application' => '{user}', 'script' => '/usr/local/bin/growlnotify', 'icon' => '/Applications/Plex Media Server.app/Contents/Resources/MyPlex.icns', }, 'twitter' => { 'enabled' => 0, ## set to 1 to enable local growl 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'title' => '{user}', 'consumer_key' => '', 'consumer_secret' => '', 'access_token' => '', 'access_token_secret' => '', 'alert_format' => { 'start' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in]', 'paused' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%]', 'resumed' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%]', 'stop' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} for {duration} [{percent_complete}%]', }, }, 'boxcar' => { 'enabled' => 0, ## set to 1 to enable local boxcar 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'email' => '', ## YOUR email address registered at boxcar 'from' => '{user}', ## From Name displayed on boxcar 'provider_key' => 'o2eI7rcwya5XFETaXdlh', ## plexWatch app is 'o2eI7rcwya5XFETaXdlh'. You may supply your own. 'provider_secret' => 'h4pJjyBoEMk1rwK2EH3NLemO4fQ0ql9HnRgVfwg4', ## plexWatch app is 'h4pJjyBoEMk1rwK2EH3NLemO4fQ0ql9HnRgVfwg4'. You may supply your own. 'icon_url' => '', # Leave empty ('') for plexWatch icon. You may supply your own (57x57) }, 'boxcar_v2' => { 'enabled' => 0, ## set to 1 to enable local boxcar_v2 ( device specific ) 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'access_token' => '', # Access token from your Device 'from' => '{user}', ## From Name displayed on boxcar }, 'pushbullet' => { 'enabled' => 0, 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'title' => '{user}', 'apikey' => 'API KEY', # Pushbullet API key https://www.pushbullet.com/account 'device' => 'DEVICE IDEN', # https://api.pushbullet.com/api/devices put yor API key as username and password empty }, ## GNTP (GROWL) -- multiple destinations are supported 'GNTP' => { '1' => { 'enabled' => 0, ## set to 1 to enable local growl 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'application' => $appname, 'title' => '{user}', 'server' => '10.0.0.1', # destination ip/host 'port' => '23053', # default 23053 'password' => '', # '' for no pass 'icon_url' => 'https://rarforge.com/images/plexWatch.57x57.png', 'sticky' => 1, }, '2' => { 'enabled' => 0, ## set to 1 to enable local growl 'push_recentlyadded' => 0, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'application' => '{user}', 'server' => '192.168.10.100', # destination ip/host 'port' => '23053', # default 23053 'password' => '', # '' for no pass 'icon_url' => 'https://rarforge.com/images/plexWatch.57x57.png', 'sticky' => 0, }, }, ## EMAIL -- multiple destinations are supported 'EMAIL' => { '1' => { 'enabled' => 0, ## set to 1 to enable local EMAIL 'push_recentlyadded' => 0, 'push_watched' => 1, 'push_watching' => 1, 'push_paused' => 1, 'push_resumed' => 1, 'server' => '', # your mail server 'port' => '25', # your mail server port defalt 25 (587 is also a good choice) 'from' => '', # your From email address: '[email protected]' 'to' => '', # Email address to receive notification: '[email protected]' 'username' => '', # AUTH if needed [optional] 'password' => '', # AUTH if needed [optional] 'subject' => '{user} {push_title} {title}', ## push_title is special for EMAIL (for now) 'enable_tls' => 0, # ENABLE for TLS support ( your smtp server must allow STARTTLS ) 'alert_format' => { 'start' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] {ip_address} {all_details}', 'paused' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%] {ip_address} {all_details}', 'resumed' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} [{progress} in] [{percent_complete}%] {ip_address} {all_details}', 'stop' => '{title} [{streamtype}] [{year}] [{rating}] on {platform} for {duration} [{percent_complete}%] {ip_address} {all_details}', }, }, '2' => { 'enabled' => 0, ## set to 1 to enable EMAIL ## fill in the rest if you need more then 1 email notification }, }, 'external' => { 'transmissionServer1' => { 'enabled' => 0, ## 0 or 1 - set to 1 to enable 'push_watched' => 1, #stop 'push_watching' => 1, #start 'push_paused' => 1, #pause 'push_resumed' => 1, #resume 'script_format' => { 'start' => '/usr/local/bin/start.pl {user} {state}', 'paused' => '/usr/local/bin/paused.pl {user} {state}', 'resumed' => '/usr/local/bin/resumed.pl {user} {state}', 'stop' => '/usr/local/bin/stop.pl {user} {state}', }, }, 'homeAutomation' => { 'enabled' => 0, ## 0 or 1 - set to 1 to enable homeAutomation script 'push_watched' => 1, #stop 'push_watching' => 1, #start 'push_paused' => 1, #pause 'push_resumed' => 1, #resume 'script_format' => { 'start' => '/usr/local/bin/homeAutomation.pl {user} {state}', 'paused' => '/usr/local/bin/homeAutomation.pl {user} {state}', 'resumed' => '/usr/local/bin/homeAutomation.pl {user} {state}', 'stop' => '/usr/local/bin/homeAutomation.pl {user} {state}', }, }, }, }; $push_titles = { 'push_watched' => 'Watched', 'push_watching' => 'Watching', 'push_resumed' => 'Resumed', 'push_paused' => 'Paused', 'push_recentlyadded' => 'New', }; # Advanced $watched_show_completed = 1; ## advanced config -- always show completed show/movie as it's own line $watched_grouping_maxhr = 2; ## advanced config -- do not group shows together if start/restart is > X hours $count_paused = 0; ## included paused time in time watched ( probably do not want this ) $inc_non_library_content = 0; ## non library content (channels) are excluded. Set to 1 to include them #@exclude_library_ids = (999, 998); ## exclude this library section (by id) -- full exclusion 4. permissions: root@Hades:/mnt/cache/apps/PlexWatch# ls -l total 248 -rwxrwxrwx 1 nobody users 620 Jan 11 12:46 config.php* -rwxrwxrwx 1 nobody users 12039 Jan 11 12:55 config.pl* drwxrwxrwx 2 nobody users 168 Jan 11 12:34 db_backups/ -rwxrwxrwx 1 nobody users 54272 Jan 11 12:58 plexWatch.db* -rwxrwxrwx 1 nobody users 178409 Jan 11 12:30 plexWatch.pl* Note, regarding permissions I tried slimserver:user, root:root and nobody:users. I also did this chmod -R 777 PlexWatch to make sure I wasn't crazy
  8. I wanted to make a note to everyone and might want to put a sticky about this, but this failed for me every time and then i noticed something EXTREMELY weird. my folder path was (from phaze): \mnt\cache\apps\Plex\library\Plex Media Server I changed it to: \mnt\cache\apps\Plex\Library\Application Support\Plex Media Server In docker it would show my stuff but nothing really worked properly... I checked the folder and I had (some how, still unsure how) had a folder called library and Library. So the docker app was using Library and it was messing up (despite the files being in both locations. So I stopped Plex, deleted the Library folder and renamed the library folder to Library. this fixed it for me completely. If you don't do the last step when you restart Plex it will just recreate a new folder called Library. I suppose it might also be fine if you rename it to Library before you create it as well! I don't know if this is everyone else's issues, but this fixed it 100% for me. Also, I forgot to mention, I did the following as well as a safety measure because initially I was also having permission issues: cd /mnt/cache/apps/ chown -R 999:users Plex chmod -R 777 Plex
  9. I am having the damndest time converting my phaze plugin over to docker. I decided today to try just running it fresh and re-adding everything (not ideal). That being said, I am noticing a lot of permission issues (I feel) and want to know what things should be set to. If I install the docker it runs ok. I have some custom plugins so I try importing those into the Plugins folder, but they fail due to permissions issues. I run the following: cd /mnt/cache/apps/ chown -R nobody:users Plex Copy in the plugins and then it fails to start. It seems like this is actually the failure I am getting when I try to do a copy over as well (from phaze). So I am wondering what the below log means to anyone and also what permissions should be getting used by the needo plugin? The error log: 6 3000 /config/Library/Application Support unlimited Error: Unable to set up server: sqlite3_statement_backend::prepare: unable to open database file for SQL: PRAGMA cache_size=4000
  10. I am using needo's sab docker and I assume this is an issue with the autoprocess function for TV shows since I only see the error on TV Shows: "You need to install python requests library" - SickRage is setup as a plugin for me since I couldn't get docker to take my database over properly (looks like a lot of people are having issues with SickRage and docker. I was wondering if people know what is causing this, as in is it having trouble communicating to sickrage since its a plugin and not in the docker image? Or is this an error with the SAB docker?
  11. its not, which is why i assumed that wasn't the case, I just have no answers as to why it wont work at all. Basically what happens is this: Install (over the plugin) - > Appears working fine, however my agents are just missing. And outside of that, a few other things are gone too, which makes it so i cant scrape or do anything like that, so its obviously crashed out My template: /config - /mnt/cache/apps/Plex/ /transcode - /mnt/cache/apps/Plex/tmp/ /mnt - /mnt/ I also have moved all my media to the extra folder like the guide says. I have also tried giving nobody and also unraid-plex access to no avail. When i try doing a separate clean install, I have gotten it to work longer but I run into it stopping from working once it reboots. Then it just wont start. So for docker, I am 2 for 4: CP and SAB work fine SickRage and Plex dont.
  12. Could my issue be coming from my library size causing the docker size to run out of space? My docker image is 10gb, I have about 1300 movies and about 1000 TV episodes... I think my plex DB confit folder is about 30gb
  13. thanks for the guide. I tried this with my current setup and for some reason I can't change anything. I get my movies to show but nothing really "works." For example, if i edit my movies library, I can't select the language, its just blank. Anyone think this could be due to my Plex Plugin not on the right version compared to the docker release? Been trying to get this to work but am failing miserably haha. My Phaze version is 1.5.4 and Plex is 0.9.11.6.800-831ffad (PlexPass)
  14. Anyone having any SickRage luck, more specifically moving from the phaze plugin to the needo docker container? Any time I try to put my data inside it fails instantly and wont load anymore. I didn't have issues with CP or SAB.
  15. I just converted my 5.0.6 server to use 6 beta 12 so I could start working on getting my plugins converted to Dockers. On first try (for some dumb reason) I tried converting over Plex. I got Plex to load fine but couldn't get it to load my library, so I decided to start back from scratch (reverted to my plugins) and try a simple app like SickRage (one where I was ok losing my database if I needed too. Every time I create one however (CP or SickRage), the docker (needo) gets created fine but nothing loads, just a can not connect error: Google Chrome's connection attempt to 10.10.1.3 was rejected. The website may be down, or your network may not be properly configured. The docker is running smoothly and as far as I can tell all the paths I selected are ok. root@localhost:# /usr/bin/docker run -d --name="SickRage" --net="bridge" -e EDGE="1" -e TZ="America/New_York" -p 8092:8092/tcp -v "/mnt/cache/apps/SickRage/":"/config":rw -v "/mnt/cache/downloads/complete/":"/downloads":rw -v "/mnt/user/TV Series/":"/tv":rw needo/sickrage Obviously I am missing some simple step, just still trying to wrap my head around docker in general so any help would be appreciated. Also, I am shutting off the current plugins running, so that shouldn't be the issue. For the example, I am using SickRage at 10.10.1.3:8092, doesn't work with the docker image, works fine with the plugin (when I disable docker and enable plugin)
  16. http://www.newegg.com/Product/Product.aspx?Item=N82E16822236604&utm_medium=Email&utm_source=EMC-IGNEFL112414&nm_mc=EMC-IGNEFL112414&cm_mmc=EMC-IGNEFL112414-_-EMC-112414-index-_-AllDesktopHardDrives-_-22236604-S0A Promo Code: EMCWWHF65 cuts it to $129.99 with free shipping... Personally, I would rather spend 10 more than do anything Seagate related.
  17. are these drives safe to break open and use as internals? Also, does anyone know the specific model? I would love to get BB or Walmart or Target to price match it.
  18. Does the template repository not work in beta10a? I tried adding "https://github.com/gfjardim/docker-containers/tree/templates" and nothing appears when I go to add a docker.
  19. I actually think this has to do with virtualbox and my setup, as on reboot it clears all the files on the flash drive that were not there the moment I created the virtual hard drive for it, so I wonder if it can't write to it then...
  20. I am in the process of setting up a dev virtual environment so I can test getting my plugins moved over to docker (from 5.0.6 to 6), mainly because I have no idea what docker is so I wanted to play with it prior to breaking my only NAS . I am having some issues with docker but I am not sure its related to docker or related to my virtual box being setup incorrectly. The error I am getting is: Warning: parse_ini_file(/boot/config/docker.cfg): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/webGui/include/myPage_content.php(36) : eval()'d code on line 57 Some more info on my virtual box setup: Flash drive plugged into my computer, used virtual box command to create the virtual hard drive of the flash drive: VBoxManage internalcommands createrawvmdk -filename C:\usb.vmdk -rawdisk \\.\PhysicalDrive# i have 3 sata virtual drives (cache, parity, storage). outside of the UI it is complaining that /boot/config/docker.cfg is not present, and it is not... not sure how it was suppose to get installed?
  21. I am having issues trying to get Plex to start fine with the plugin. I have tried the following: 1. Standard user vs my Plex Pass Account ---No difference, wont start 2. Changing the run-as user ---No difference, wont start 3. Renamed tmp/library directories to start fresh on reboot ---Loads fine, once switch back, fails to start error: Aug 8 23:48:01 Hades sudo: root : TTY=console ; PWD=/usr/local/emhttp ; USER=nobody ; COMMAND=/bin/bash -c . /boot/config/plugins/plexmediaserver/startcfg.sh; /usr/local/plexmediaserver/"Plex Media Server" --version Aug 8 23:48:01 Hades kernel: Plex Media Serv[18788]: segfault at fffffffc ip b55249ca sp bff19820 error 5 in libstdc++.so.6.0.13[b5491000+e4000] Any thoughts or more info I need would be appreciated, I really don't want to start fresh and the influencer plugin was handling the library fine, so I assume its not that.
  22. My shares are open on my network, so no saved credentials. That being said, my server comes back fine if I reboot unRAID first, once I reboot my PC though the same thing occurs again. So basically this is the full run down: unRAID reboot after PC is on: \\HADES works \\IPADDRESS works ping HADES works puTTY HADES works PC Reboot AFTER unRAID in on: \\HADES fails \\IPADDRESS works ping HADES works puTTY HADES works
×
×
  • Create New...