[Support] Ninthwalker - plexReport


Recommended Posts

  • Replies 64
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

 

Yep, rerunning ./initial_config.sh fixed my issue, I made the (incorrect) assumption that it was only generating config files (that I already have).

 

Does that mean we need to rerun that whenever the docker is updated?

 

Thanks,

Wob

 

Most likely not. This was probably caused by the docker change when v6.2 stable was released.

Link to comment
  • 3 weeks later...

Has anyone been able to get this to work with secure connections set to "required" in Plex server settings?  If I try to run it I get the below error.  When I set to "preferred" it works but would like to keep it as required.

 

/usr/lib/ruby/1.9.1/net/protocol.rb:141:in `read_nonblock': end of file reached (EOFError)

        from /usr/lib/ruby/1.9.1/net/protocol.rb:141:in `rbuf_fill'

        from /usr/lib/ruby/1.9.1/net/protocol.rb:122:in `readuntil'

        from /usr/lib/ruby/1.9.1/net/protocol.rb:132:in `readline'

        from /usr/lib/ruby/1.9.1/net/http.rb:2563:in `read_status_line'

        from /usr/lib/ruby/1.9.1/net/http.rb:2552:in `read_new'

        from /usr/lib/ruby/1.9.1/net/http.rb:1320:in `block in transport_request'

        from /usr/lib/ruby/1.9.1/net/http.rb:1317:in `catch'

        from /usr/lib/ruby/1.9.1/net/http.rb:1317:in `transport_request'

        from /usr/lib/ruby/1.9.1/net/http.rb:1294:in `request'

        from /usr/lib/ruby/1.9.1/net/http.rb:1287:in `block in request'

        from /usr/lib/ruby/1.9.1/net/http.rb:746:in `start'

        from /usr/lib/ruby/1.9.1/net/http.rb:1285:in `request'

        from /var/lib/gems/1.9.1/gems/httparty-0.13.1/lib/httparty/request.rb:93:in `perform'

        from /var/lib/gems/1.9.1/gems/httparty-0.13.1/lib/httparty.rb:521:in `perform_request'

        from /var/lib/gems/1.9.1/gems/httparty-0.13.1/lib/httparty.rb:457:in `get'

        from /var/lib/plexReport/plex.rb:29:in `get'

        from /usr/local/sbin/plexreport:93:in `getMovies'

        from /usr/local/sbin/plexreport:366:in `main'

        from /usr/local/sbin/plexreport:385:in `<main>'

 

Link to comment

Unfortunately, the Plexreport app does not work with secure connections to the plex server.

So if you set that to Required it will fail with the errors you show.

 

EDIT: I did do a couple tests, and there is a way to allow https calls.

However, I'm not going to implement it into the main code as most people use 'preferred' and changing it to https does come with a couple caveats.

One being that although you can modify the code to do https, because of the way Plex issues the unique ssl certs it doesn't trust the cert. So you can enable https, but then have to add a line to allow it to not care about trusting the cert.

 

If you would like the 2 lines that need modification let me know and I can show you. However it wouldn't persist on a docker re-install.

Link to comment

New Update.

 

Primary change is that all dependencies are installed via the Dockerfile instead of relying on scripts.

This makes it so the initial_setup.sh only ever has to be run once and any subsequent docker re-installs do not require it.

 

Check the updated original post for the full changes and new initial_script.sh install method.

Let me know if anyone experiences any issues.

 

-= CHANGELOG =-

 

04NOV2016:

  • Initial_setup.sh changes: no longer need to rerun this after a docker reinstall.
  • Moved Movies Section to the top of the email. Makes more sense to have new Movies shown first than the same TV shows each week.
  • Removed config backup option: instead check on existing config, and if exists, just use that.
  • Code refinement changes to streamline installation and not rely on scripts.

Link to comment

Figured I'd post this since I'm a complete tool and caused my own pain for months, and it has been driving me crazy!

 

If you're getting the following error:

 

/usr/local/sbin/plexreport:364:in `main': undefined method `[]' for nil:NilClass (NoMethodError)
        from /usr/local/sbin/plexreport:385:in `<main>'

 

when you run the plexReport command to generate a report. It means your config.yaml is missing the following line(s) at the top:

 

email:
   title: 'Default Email Header'
   langauge: 'en'

 

Use this instead:

 

---
email:
   title: 
   langauge: 

 

to blank out the lines (or remove the call within the email_body.erb entirely if you desire). The language line is not required, but the title line (blank or not) is definitely required.

 

 

 

Link to comment
  • 2 weeks later...
  • 1 month later...

I've recently re-installed unRAID and reinstalled your docker. I'm now getting some errors every time I try to use it (using -t or anything for that matter). Here's an Image of what I get.

 

 

I've attached my config.yaml, too.

 

**EDIT**

I also added my log file.

 

***EDIT***

Found the culprit, for whatever reason, the docker wasn't being properly removed, but after removing the old plexReport via the CLI, everything works, now.

config.yaml.zip

plexReport.log.zip

Link to comment
  • 1 month later...

Hello,

 

I get this error when I run the  docker exec plexReport plexreport [-options] command.

 

No sure what I'm doing wrong.

 

Can anyone post some SS on how they set it up?

 

root@Tower1:~# docker exec plexReport plexreport [-options]
/usr/lib/ruby/1.9.1/net/smtp.rb:540:in `initialize': getaddrinfo: Name or service not known (SocketError)
        from /usr/lib/ruby/1.9.1/net/smtp.rb:540:in `open'
        from /usr/lib/ruby/1.9.1/net/smtp.rb:540:in `tcp_socket'
        from /usr/lib/ruby/1.9.1/net/smtp.rb:549:in `block in do_start'
        from /usr/lib/ruby/1.9.1/timeout.rb:69:in `timeout'
        from /usr/lib/ruby/1.9.1/timeout.rb:100:in `timeout'
        from /usr/lib/ruby/1.9.1/net/smtp.rb:549:in `do_start'
        from /usr/lib/ruby/1.9.1/net/smtp.rb:519:in `start'
        from /var/lib/gems/1.9.1/gems/mail-2.6.3/lib/mail/network/delivery_methods/smtp.rb:112:in `deliver!'
        from /var/lib/gems/1.9.1/gems/mail-2.6.3/lib/mail/message.rb:252:in `deliver!'
        from /var/lib/plexReport/mailReport.rb:95:in `block in sendMail'
        from /var/lib/plexReport/mailReport.rb:86:in `each'
        from /var/lib/plexReport/mailReport.rb:86:in `sendMail'
        from /usr/local/sbin/plexreport:381:in `main'
        from /usr/local/sbin/plexreport:385:in `<main>'


Thanks

Link to comment
On 3/2/2017 at 5:46 AM, bpage said:

I was wondering if anyone knew of an easy way to add a link to my plex requests page? Or to add a donate button on this weekly email. 

 

Any help would be great!

 

 

You'll need to modify the email_body.erb file. It's XHTML v1.0 STRICT, so you can add a href / img src tags wherever you feel the need to. You can review how it looks with a WYSIWYG HTML editor (such as dreamweaver, etc.) or run the docker using docker exec plexReport plexreport -t

Link to comment
On 3/2/2017 at 8:22 PM, stinger303 said:

Hello,

 

I get this error when I run the  docker exec plexReport plexreport [-options] command.

 

No sure what I'm doing wrong.

 

Can anyone post some SS on how they set it up?

 

root@Tower1:~# docker exec plexReport plexreport [-options]
/usr/lib/ruby/1.9.1/net/smtp.rb:540:in `initialize': getaddrinfo: Name or service not known (SocketError)
        from /usr/lib/ruby/1.9.1/net/smtp.rb:540:in `open'
        from /usr/lib/ruby/1.9.1/net/smtp.rb:540:in `tcp_socket'
        from /usr/lib/ruby/1.9.1/net/smtp.rb:549:in `block in do_start'
        from /usr/lib/ruby/1.9.1/timeout.rb:69:in `timeout'
        from /usr/lib/ruby/1.9.1/timeout.rb:100:in `timeout'
        from /usr/lib/ruby/1.9.1/net/smtp.rb:549:in `do_start'
        from /usr/lib/ruby/1.9.1/net/smtp.rb:519:in `start'
        from /var/lib/gems/1.9.1/gems/mail-2.6.3/lib/mail/network/delivery_methods/smtp.rb:112:in `deliver!'
        from /var/lib/gems/1.9.1/gems/mail-2.6.3/lib/mail/message.rb:252:in `deliver!'
        from /var/lib/plexReport/mailReport.rb:95:in `block in sendMail'
        from /var/lib/plexReport/mailReport.rb:86:in `each'
        from /var/lib/plexReport/mailReport.rb:86:in `sendMail'
        from /usr/local/sbin/plexreport:381:in `main'
        from /usr/local/sbin/plexreport:385:in `<main>'


Thanks

 

[-options] is not an actual option. You need to select from one of the following options (-n -l -t or -d).

 

Options:

-n, --no-plex-email - Do not send emails to Plex friends. Can be used with the recipients_email and recipients config file option to customize email recipients.

-l, --add-library-names - Adding the Library name in front of the movie/tv show. To be used with custom Libraries

-t, --test-email - Send email only to the Plex owner (ie yourself). For testing purposes

-d, --detailed-email - Send more details in the email, such as movie ratings, actors, etc

 

Example: To run a test, you would type: docker exec plexReport plexreport -t

Example 2: To run a test with a more detailed email, you would type: docker exec plexReport plexreport -t -d

Link to comment

Thanks for responding GroxyPod.

His responses to both of the questions were correct and should help to get your setup working.

 

 

For future help, I have a created another thread to combine support questions for current/future dockers into one thread.

 

Please post to the following thread:

 

Link to comment

Got a warning from Fix Common Problems-

 

Quote

 


Event: Fix Common Problems
Subject: Errors have been found with your server.
Description: Investigate at Settings / User Utilities / Fix Common Problems
Importance

 

**** Docker Application plexReport is currently set up to run in host mode ****   **** Docker Application plexReport, Container Port 8080 not found or changed on installed application ****
 

 

 

Just wondering if there is really some issue with the docker (it is working) or if I should just ignore the warning?

Edited by wgstarks
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.