smdion Posted February 3, 2015 Share Posted February 3, 2015 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. Quote Link to comment
wickedathletes Posted February 12, 2015 Author Share Posted February 12, 2015 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. Quote Link to comment
StevenD Posted February 12, 2015 Share Posted February 12, 2015 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: Quote Link to comment
wickedathletes Posted February 12, 2015 Author Share Posted February 12, 2015 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"]}> Quote Link to comment
StevenD Posted February 12, 2015 Share Posted February 12, 2015 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. Quote Link to comment
wickedathletes Posted February 12, 2015 Author Share Posted February 12, 2015 how do I tell what version is being grabbed? Quote Link to comment
wickedathletes Posted February 13, 2015 Author Share Posted February 13, 2015 how do I tell what version is being grabbed? So the docker looks to be pulling the correct source. I also deleted the specific container/image but it still isn't downloading the right stuff. Anything else I can try? Quote Link to comment
wickedathletes Posted February 19, 2015 Author Share Posted February 19, 2015 smdion, any thoughts on why its pulling down the wrong version? the docker file seems fine (its linking to the right github location). Quote Link to comment
rjbaat Posted February 21, 2015 Share Posted February 21, 2015 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? Quote Link to comment
wickedathletes Posted February 25, 2015 Author Share Posted February 25, 2015 rjbaat, looks like you might be further than I get, are you using Plex Home? Quote Link to comment
Dase Posted March 1, 2015 Share Posted March 1, 2015 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? Quote Link to comment
wickedathletes Posted March 3, 2015 Author Share Posted March 3, 2015 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 Quote Link to comment
Dase Posted March 3, 2015 Share Posted March 3, 2015 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 Quote Link to comment
wickedathletes Posted March 4, 2015 Author Share Posted March 4, 2015 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? Quote Link to comment
Dase Posted March 4, 2015 Share Posted March 4, 2015 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) Quote Link to comment
ninthwalker Posted March 6, 2015 Share Posted March 6, 2015 FYI, I have the same issue. Test and manually running it works fine. Cron job doesn't though. I Don't use Plex home. My GIT version is the same as Dace's Quote Link to comment
smdion Posted April 3, 2015 Share Posted April 3, 2015 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. Quote Link to comment
wickedathletes Posted April 3, 2015 Author Share Posted April 3, 2015 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! Quote Link to comment
smdion Posted April 3, 2015 Share Posted April 3, 2015 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. Quote Link to comment
wickedathletes Posted April 3, 2015 Author Share Posted April 3, 2015 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 Quote Link to comment
smdion Posted April 3, 2015 Share Posted April 3, 2015 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. Quote Link to comment
wickedathletes Posted April 3, 2015 Author Share Posted April 3, 2015 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. Quote Link to comment
wickedathletes Posted April 10, 2015 Author Share Posted April 10, 2015 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>' Quote Link to comment
smdion Posted April 10, 2015 Share Posted April 10, 2015 Haven't had time to take a look again.. hopefully soon Quote Link to comment
wickedathletes Posted April 10, 2015 Author Share Posted April 10, 2015 Haven't had time to take a look again.. hopefully soon All good, figured I was just so messed up you gave up on me hahaha Quote Link to comment
Recommended Posts
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.