Docker Request (PlexReport / PlexNotify)


Recommended Posts

  • 2 weeks later...
  • Replies 55
  • Created
  • Last Reply

Top Posters In This Topic

Are yall using "HOST" and not "BRIDGE" on your Docker?  I had to change that to get it to work.

 

DOH. I am an idiot.  I'll update the repository.

 

where you able to get it working? I tried flipping it to HOST and also tried re-downloading your plugin to no avail. Same error.

 

Yep...works just fine for me.  That being said, I'm not using it.  For some reason, the images are rendering at full size (1000x1500) for each cover in the email when using Outlook. That makes it completely unusable for me.  They seem to scale just fine in other email clients.

 

I'm working on my own PowerShell script that will do something very similar, but will reduce the image size to 100x150 before building the email.

 

Config:

cAhUCi0.png

Link to comment

mine looks the same, looks like I am having Plex Home issues though, the verbose log shows:

 

I, [2015-02-12T14:25:00.241010 #89]  INFO -- : Starting up PlexReport

D, [2015-02-12T14:25:00.243832 #89] DEBUG -- : Debug info for plexmediaserver connection

D, [2015-02-12T14:25:00.243912 #89] DEBUG -- : 401

D, [2015-02-12T14:25:00.243941 #89] DEBUG -- : #<HTTParty::Request:0x00000000e5a920 @http_method=Net::HTTP::Get, @path=#<URI::Generic:0x00000000e5a498 URL:/library/sections>, @options={:limit=>5, :assume_utf16_is_big_endian=>true, :default_params=>{}, :follow_redirects=>true, :parser=>HTTParty::Parser, :connection_adapter=>HTTParty::ConnectionAdapter, :base_uri=>"http://HADES:32400", :format=>:xml, :verify=>false}, @last_uri=#<URI::HTTP:0x00000000e58760 URL:http://HADES:32400/library/sections>, @raw_request=#<Net::HTTP::Get GET>, @last_response=#<Net::HTTPUnauthorized 401 Unauthorized readbody=true>>

D, [2015-02-12T14:25:00.244065 #89] DEBUG -- : #<HTTParty::Response:0x169fc70 parsed_response={"html"=>{"head"=>{"title"=>"Unauthorized"}, "body"=>{"h1"=>"401 Unauthorized"}}}, @response=#<Net::HTTPUnauthorized 401 Unauthorized readbody=true>, @headers={"content-length"=>["91"], "content-type"=>["text/html"], "x-plex-protocol"=>["1.0"], "cache-control"=>["no-cache"]}>

 

Link to comment

mine looks the same, looks like I am having Plex Home issues though, the verbose log shows:

 

I, [2015-02-12T14:25:00.241010 #89]  INFO -- : Starting up PlexReport

D, [2015-02-12T14:25:00.243832 #89] DEBUG -- : Debug info for plexmediaserver connection

D, [2015-02-12T14:25:00.243912 #89] DEBUG -- : 401

D, [2015-02-12T14:25:00.243941 #89] DEBUG -- : #<HTTParty::Request:0x00000000e5a920 @http_method=Net::HTTP::Get, @path=#<URI::Generic:0x00000000e5a498 URL:/library/sections>, @options={:limit=>5, :assume_utf16_is_big_endian=>true, :default_params=>{}, :follow_redirects=>true, :parser=>HTTParty::Parser, :connection_adapter=>HTTParty::ConnectionAdapter, :base_uri=>"http://HADES:32400", :format=>:xml, :verify=>false}, @last_uri=#<URI::HTTP:0x00000000e58760 URL:http://HADES:32400/library/sections>, @raw_request=#<Net::HTTP::Get GET>, @last_response=#<Net::HTTPUnauthorized 401 Unauthorized readbody=true>>

D, [2015-02-12T14:25:00.244065 #89] DEBUG -- : #<HTTParty::Response:0x169fc70 parsed_response={"html"=>{"head"=>{"title"=>"Unauthorized"}, "body"=>{"h1"=>"401 Unauthorized"}}}, @response=#<Net::HTTPUnauthorized 401 Unauthorized readbody=true>, @headers={"content-length"=>["91"], "content-type"=>["text/html"], "x-plex-protocol"=>["1.0"], "cache-control"=>["no-cache"]}>

 

 

I dont believe that the latest version is being pulled down.  The Plex Home issue has been verified fixed by several folks.  Im not running Plex Home though, so I cannot verify.

Link to comment

Hi All,

I try to get this working aswell. When i try it manually with:

 

docker exec -it plexReport /opt/plexReport/bin/plexReport.rb -t

 

Its sending me the email. But when i try to put this in the cronjob file:

 

50 15 * * * /opt/plexReport/bin/plexReport.rb -t

 

it is not sending.. it looks like the process is stopping and it forgets to send it.

 

Has anyone an idea?

 

Link to comment

I'm having the same problem where the cron job isn't running this automatically, so I have to run it manually. Anybody found a fix for this yet?

 

Dase, what is your git commit version downloaded? You can run the below to find that:

 

docker exec -i plexReport /bin/bash

find  / -type d -name ".git" -ls

cd /opt/plexReport/

git log

Link to comment

 

Dase, what is your git commit version downloaded? You can run the below to find that:

 

 

Thanks for helping with this. Results:

 

find  / -type d -name ".git" -ls

 18930    0 drwxr-xr-x   1 root     root          138 Jan 17 15:27 /opt/plexReport/.git

 

/opt/plexReport# git log

WARNING: terminal is not fully functional
commit cd7bae0ea1a76f66adc42cb8debbd3e66ee36449
Author: bstascavage <[email protected]>
Date:   Thu Jan 8 13:50:48 2015 -0500

    Fixed bug where incomplete seasons had every episdoe listed

commit 56d2b35c70db8cb31d01eb44b2a97b6545f126e8
Author: bstascavage <[email protected]>
Date:   Mon Jan 5 11:36:49 2015 -0500

    Changed thetvdb API call.  Fixes #33

commit 69afc71786a54ed133bd50246c7e8402efcf5675
Merge: 32e7922 8c9eda9
Author: Brian <[email protected]>
Date:   Mon Dec 29 15:53:44 2014 -0500

    Merge pull request #31 from bstascavage/episode-fix

    Added check to ensure newest episode is on the Plex.  Fixes #27

commit 8c9eda9307b526e2c6c53fbff3faea5b6d419d62
Author: bstascavage <[email protected]>
Date:   Mon Dec 29 15:42:10 2014 -0500

    Added check to ensure newest episode is on the Plex

commit 32e792257e5d0bd7aabf220edf45edb9e17c3b4d
Merge: 5cf4b4f 4c6d4b6
Author: bstascavage <[email protected]>
Date:   Mon Dec 22 14:36:25 2014 -0500

Link to comment

Thanks for helping with this. Results:

 

find  / -type d -name ".git" -ls

 18930    0 drwxr-xr-x   1 root     root          138 Jan 17 15:27 /opt/plexReport/.git

 

/opt/plexReport# git log

WARNING: terminal is not fully functional
commit cd7bae0ea1a76f66adc42cb8debbd3e66ee36449
Author: bstascavage <[email protected]>
Date:   Thu Jan 8 13:50:48 2015 -0500

    Fixed bug where incomplete seasons had every episdoe listed

commit 56d2b35c70db8cb31d01eb44b2a97b6545f126e8
Author: bstascavage <[email protected]>
Date:   Mon Jan 5 11:36:49 2015 -0500

 

Do you have Plex Home enabled in plex? If so this build wont work for you as the commits are prior to Plex Home being implemented (the issue I am seeing). You said the cron job fails, does it work without the cron job?

Link to comment

Plex home is disabled as far as I can tell. I'm the only user under Settings in the Users view.

 

The script works fine when I run it manually:

docker exec -it plexReport /opt/plexReport/bin/plexReport.rb

 

The crontab entry looks fine to me too:

docker exec -it plexReport crontab -l
15 11 * * 5 /opt/plexReport/bin/plexReport.rb

 

When I check the cron.log, cron seems to be running, for example:

# cat cron.log
Mar  1 06:47:01 Tower /USR/SBIN/CRON[381]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ))
Mar  1 06:52:01 Tower /USR/SBIN/CRON[385]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ))
Mar  1 07:17:01 Tower /USR/SBIN/CRON[388]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)

Link to comment
  • 4 weeks later...

So with some recent updates in workings of the program changed. 

 

Steps to Use:

 

1. Remove previous versions of docker if existed

2. SSH in to your unRAID box and run the setup script. This will setup a few things and walk you through the config.

docker exec -it plexReport /opt/plexReport/initial_setup.sh

3. edit the config.yaml file adding in your recipients_email (more info about the config here)

4. run the test to see if it works

docker exec -it plexReport plexreport -t

 

Note: My gmail did flag the e-mails as spam, so check your spam folder.

Link to comment

So with some recent updates in workings of the program changed. 

 

Steps to Use:

 

1. Remove previous versions of docker if existed

2. SSH in to your unRAID box and run the setup script. This will setup a few things and walk you through the config.

docker exec -it plexReport /opt/plexReport/initial_setup.sh

3. edit the config.yaml file adding in your recipients_email (more info about the config here)

4. run the test to see if it works

docker exec -it plexReport plexreport -t

 

Note: My gmail did flag the e-mails as spam, so check your spam folder.

 

First, thank you for getting it updated. When I run the test it fails with this:

 

root@Hades:~# docker exec -it plexReport plexreport -t
2015/04/03 12:53:56 docker-exec: failed to exec: exec: "plexreport": executable file not found in $PATH

 

I followed the steps above, so I ran the script etc etc. Below are the results from the script:

 

root@Hades:~# docker exec -it plexReport /opt/plexReport/initial_setup.sh
Creating plexreport library at /var/lib/plexReport
Creating plexreport conf directory at /etc/plexReport
Moving plexreport and plexreport-setup to /usr/local/sbin
Moving plexreport libraries to /var/lib/plexreport
Moving email_body.erb to /etc/plexreport
/bin/cp: cannot copy a directory, ‘etc/plexReport’, into itself, ‘/etc/plexReport/plexReport’
Creating /etc/plexreport/config.yaml
Creating /var/log/plexReport.log
Installing ruby gem dependency
Successfully installed bundler-1.9.2
1 gem installed
Installing ri documentation for bundler-1.9.2...
Installing RDoc documentation for bundler-1.9.2...
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Could not locate Gemfile or .bundle/ directory
Running /usr/local/sbin/plexreport-setup
/opt/plexReport/initial_setup.sh: line 31: /usr/local/sbin/plexreport-setup: No such file or directory
What day do you want to run the script on? (Put 0 for Sunday, 1 for Monday, etc...)
5
What hour should the script run? (00-23)
17
What minute in that hour should the script run? (00-59)
30
Adding /usr/local/sbin/plexreport to crontab
Setup complete!

Link to comment

So with some recent updates in workings of the program changed. 

 

Steps to Use:

 

1. Remove previous versions of docker if existed

2. SSH in to your unRAID box and run the setup script. This will setup a few things and walk you through the config.

docker exec -it plexReport /opt/plexReport/initial_setup.sh

3. edit the config.yaml file adding in your recipients_email (more info about the config here)

4. run the test to see if it works

docker exec -it plexReport plexreport -t

 

Note: My gmail did flag the e-mails as spam, so check your spam folder.

 

First, thank you for getting it updated. When I run the test it fails with this:

 

root@Hades:~# docker exec -it plexReport plexreport -t
2015/04/03 12:53:56 docker-exec: failed to exec: exec: "plexreport": executable file not found in $PATH

 

I followed the steps above, so I ran the script etc etc. Below are the results from the script:

 

root@Hades:~# docker exec -it plexReport /opt/plexReport/initial_setup.sh
Creating plexreport library at /var/lib/plexReport
Creating plexreport conf directory at /etc/plexReport
Moving plexreport and plexreport-setup to /usr/local/sbin
Moving plexreport libraries to /var/lib/plexreport
Moving email_body.erb to /etc/plexreport
/bin/cp: cannot copy a directory, ‘etc/plexReport’, into itself, ‘/etc/plexReport/plexReport’
Creating /etc/plexreport/config.yaml
Creating /var/log/plexReport.log
Installing ruby gem dependency
Successfully installed bundler-1.9.2
1 gem installed
Installing ri documentation for bundler-1.9.2...
Installing RDoc documentation for bundler-1.9.2...
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Could not locate Gemfile or .bundle/ directory
Running /usr/local/sbin/plexreport-setup
/opt/plexReport/initial_setup.sh: line 31: /usr/local/sbin/plexreport-setup: No such file or directory
What day do you want to run the script on? (Put 0 for Sunday, 1 for Monday, etc...)
5
What hour should the script run? (00-23)
17
What minute in that hour should the script run? (00-59)
30
Adding /usr/local/sbin/plexreport to crontab
Setup complete!

 

The path isn't added until AFTER that script is run.  Running the test again.

Link to comment

The path isn't added until AFTER that script is run.  Running the test again.

 

I ran the order you provided, sorry I just posted my forum post out of order :)

 

Is this an issue possibly because the script is trying to use two directories with the same name, one plexreport and one plexReport?

 

Creating plexreport library at /var/lib/plexReport

Moving plexreport libraries to /var/lib/plexreport

Link to comment

The path isn't added until AFTER that script is run.  Running the test again.

 

I ran the order you provided, sorry I just posted my forum post out of order :)

 

Is this an issue possibly because the script is trying to use two directories with the same name, one plexreport and one plexReport?

 

Creating plexreport library at /var/lib/plexReport

Moving plexreport libraries to /var/lib/plexreport

 

weird.  I just don't get the inconsistency of my install vs yours.  Let me remove everything and re-install.

Link to comment

The path isn't added until AFTER that script is run.  Running the test again.

 

I ran the order you provided, sorry I just posted my forum post out of order :)

 

Is this an issue possibly because the script is trying to use two directories with the same name, one plexreport and one plexReport?

 

Creating plexreport library at /var/lib/plexReport

Moving plexreport libraries to /var/lib/plexreport

 

weird.  I just don't get the inconsistency of my install vs yours.  Let me remove everything and re-install.

 

i assume it wouldn't matter but i am on 6.0 14b.. Tried a whole new image file, same error. Haha, my unRAID is broken.

Link to comment

The path isn't added until AFTER that script is run.  Running the test again.

 

running the test still returns the same error I was initially getting, however if I force a path to where the plexreport file is stored (or so I think I am finding) I get a new error, not sure it helps or not:

 

Original:

docker exec -it plexReport /bin/plexreport -t

Error:

2015/04/10 11:03:45 docker-exec: failed to exec: exec: "/bin/plexreport": stat /bin/plexreport: no such file or directory

 

Forced Path to EXE:

docker exec -it plexReport /opt/plexReport/bin/plexreport -t

Error:

/opt/plexReport/bin/plexreport:14:in `require_relative': cannot load such file -- /var/lib/plexReport/plex (LoadError)
        from /opt/plexReport/bin/plexreport:14:in `<main>'

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.