ninthwalker / NowShowing

Generates an email and web page of Plex recently added content
MIT License
73 stars 8 forks source link

Can't create webreport #58

Closed 1activegeek closed 6 years ago

1activegeek commented 6 years ago

I'm attempting to run just the web report. This initially was working. I just noticed the other day when I check on it, that the web report stopped updating on the 30th. I am running the Docker container version and as mentioned had it all working. Now I'm getting the following trying to run the command line manual creation:

/usr/lib/ruby/2.3.0/psych.rb:379:in `parse': (/config/advanced.yaml): did not find expected key while parsing a block mapping at line 22 column 3 (Psych::SyntaxError)
    from /usr/lib/ruby/2.3.0/psych.rb:379:in `parse_stream'
    from /usr/lib/ruby/2.3.0/psych.rb:327:in `parse'
    from /usr/lib/ruby/2.3.0/psych.rb:254:in `load'
    from /usr/lib/ruby/2.3.0/psych.rb:475:in `block in load_file'
    from /usr/lib/ruby/2.3.0/psych.rb:474:in `open'
    from /usr/lib/ruby/2.3.0/psych.rb:474:in `load_file'
    from /usr/local/sbin/webreport:67:in `initialize'
    from /usr/local/sbin/webreport:370:in `new'
    from /usr/local/sbin/webreport:370:in `main'
    from /usr/local/sbin/webreport:398:in `<main>'

This is the content of the file:

---
email:
  title: 'New This Week'
  image: 'http://i.imgur.com/LNTSbFl.png'
  footer: 'Thanks for watching!'
  language: 'en'
web:
  title_image: 'img/nowshowing.png'
  logo: 'img/logo.png'
  headline_title: 'Just added:'
  headliners: 'Laughs, Screams, Thrills, Entertainment'
  footer: 'Thanks for watching!'
  language: 'en'
plex:
  plex_user_emails: 'no'
mail:
  from: 'Plex Server'
  subject: 'Now Showing'
  recipients_email: ['']
  recipients: ['']
report:
  interval: 7
  report_type: 'webonly'
  email_report_time: ''
  web_report_time: '30 23 * * *''
  extra_details: 'yes'
  test: 'disable'
ninthwalker commented 6 years ago

Although I don't think ticks are needed around the interval: '7' number, throw them on anyways and see if that works. Also check for spaces around that are or in the config in general. yaml files are notoriously picky with their structure.

Alternatively, wait an hour for me to make my final v2 push to production and install the new v2 that has a web interface and new features. (new install, not compatible with v1)

1activegeek commented 6 years ago

Thanks, I had tried that already first. I saw the many versions not having the ticks, but tried anyway. Same output.

I tried the v2 branch on the container earlier, and had a similar output even with the raw config. May be that the config is not compatible though. I'll have to test in new directory.

ninthwalker commented 6 years ago

v2 will need to be a new install. Backwards compatibility wasn't possible with all the new changes. I just pushed the final v2 to docker hub, so try that out and let me know. Thanks.

1activegeek commented 6 years ago

Looks like V2 is working. Thanks!!

PS - Where do you enable the Tautulli stats?

ninthwalker commented 6 years ago

Glad it’s working. There should be a ‘Stats’ tab in the web interface. If you aren’t seeing it, that means you grabbed v2 before my final release. You’ll need to do a fresh install to get the latest. After that updates are able to reuse your same docker volume mapping and you won’t have to install fresh again.

1activegeek commented 6 years ago

Says the v2 tag was updated 11 hours ago. Assumed that would be the latest? I force pulled the image again too just to make sure it was the latest. Thats what I started with this AM when I went through the initial config.

ninthwalker commented 6 years ago

Check the Tools > Help Links to see the version. It should be on 2.0.1 which was the final release. You may have grabbed it before that which was still beta. If so, do a new install to grab the 2.0.1 version. After that updates can be done without a full reinstall.

1activegeek commented 6 years ago

Cool, I'll dig into it later and see. If I have issues, I'll open a new issue. Closing this out for now.