Guide for installing PlexEmail?

Status
Not open for further replies.

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
Me too, although it might have something to do with the type of jail as it looks like you've created as a plugin jail, or at least that's what I'm reading from /mnt/mainvolume/pluginjail/...
 

AstroZombie

Explorer
Joined
Jul 20, 2014
Messages
76
It is a standard jail in the gui.

7xTsZY4.png
 

HelloEh

Cadet
Joined
Nov 23, 2014
Messages
2
I don't claim to be very FreeNAS savvy, but I think that the code you've posted is missing a whitespace character.

No:
Code:
jexec plexemail python2.7/PlexEmail/scripts/plexEmail.py

Yes:
Code:
jexec plexemail python2.7 /PlexEmail/scripts/plexEmail.py
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
I'm all out of ideas. I was hoping the ' ' might fix it, but sadly not.

Stupid question, but it does work when you run the script manually inside the jail?
 

AstroZombie

Explorer
Joined
Jul 20, 2014
Messages
76
Yeah, running this in the jail works perfect.

Code:
python2.7 /PlexEmail/scripts/plexEmail.py
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
No idea why it's not working for you when it is for me then. I didn't even know you could schedule tasks inside a jail from the WUI!

You could always try creating a cron task in the jail.
 

AstroZombie

Explorer
Joined
Jul 20, 2014
Messages
76
No idea why it's not working for you when it is for me then. I didn't even know you could schedule tasks inside a jail from the WUI!

You could always try creating a cron task in the jail.
How would I go nuclear and start from scratch?

I mean all I really need to keep hold of is the config file so.
 
Last edited:

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
Just delete the jail and then create a new one!

Cron details on the first page.
 

AstroZombie

Explorer
Joined
Jul 20, 2014
Messages
76
Just delete the jail and then create a new one!

Cron details on the first page.
I think I found the issue after my previous post, it was with the config file.

Basically I had the it set up just like everyone else but the email title was
This Week's Plex Additions
was causing a syntax error it seems. (despite running fine when I manually ran the command in the jail)

I took away the ' and it's been running fine from the task menu UI for now
Code:
jexec plexemail python2.7 /PlexEmail/scripts/plexEmail.py --test
to fire emails off to myself only, so in theory once it remove the test it should be ok.
 

naq90

Dabbler
Joined
Jun 7, 2015
Messages
24
Does anyone know how to set up the website portion of PlexEmail?
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
If you've copied the /PlexEmail/web/ folder (with all subdirectories) into /usr/local/www/apache24/data/plexemail and then added the correct path into the config.conf file when you run the python script it should create the html files.

Browsing to http://<jail_ip>/plexemail should display the page.
 

naq90

Dabbler
Joined
Jun 7, 2015
Messages
24
Thanks! I just installed this into a new jail and am getting the error:
Code:
root@plexemail_1:/ # python2.7 /PlexEmail/scripts/plexEmail.py
Traceback (most recent call last):
  File "/PlexEmail/scripts/plexEmail.py", line 784, in <module>
    execfile(configFile, config)
  File "/PlexEmail/scripts/config.conf", line 372
    msg_notice = ''
             ^
SyntaxError: invalid syntax
root@plexemail_1:/ #


What am I doing wrong?
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
No idea :)

I'd check the lines in the config.conf file and then ask over at forums.plex.tv in the PlexEmail thread. The _1 at the end of the jail name makes me think you might have created a plugin jail too?
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
No idea :)

I'd check the lines in the config.conf file and then ask over at forums.plex.tv in the PlexEmail thread. The _1 at the end of the jail name makes me think you might have created a plugin jail too?
 

Grantp

Contributor
Joined
Feb 26, 2013
Messages
111
2. Add storage to the plexemail jail pointing to your plexdata folder in your plex jail (my destination was /plexms)

Where / What exactly is the plexdata folder I am supposed to point my storage at? I currently have my storage pointed as follows

plexms storage.png


When I try and run the script I get the following error, but as you can see the db file is in the plexms folder/directory (what ever the correct term is). Is it the fact that I have installed Plex using the plugin and not manually installed it?

Script error1.png


Any help / pointers greatly accepted.

This is how I edited the config.conf file

Script.png
 
Last edited:

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
I'm not using the Plex plugin so not entirely sure where the plexdata folder is. For me it's just /<location to jail>/usr/local/plexdata.

I'm sure if you search some of the other Plex plugin threads you'll find the answer.
 

Grantp

Contributor
Joined
Feb 26, 2013
Messages
111
I'm not using the Plex plugin so not entirely sure where the plexdata folder is. For me it's just /<location to jail>/usr/local/plexdata.

I'm sure if you search some of the other Plex plugin threads you'll find the answer.

Thanks I manage to find it, now I get this error

Script1.png


Any ideas ???

Many thanks
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
Not really, but did you copy the /PlexEmail/web/ folder contents to /usr/local/www/apache24/data/plexemail

If you did, I'd post something up in the plex.tv forum thread where the developer should be able to offer some better advice than me!
 

Grantp

Contributor
Joined
Feb 26, 2013
Messages
111
Not really, but did you copy the /PlexEmail/web/ folder contents to /usr/local/www/apache24/data/plexemail

If you did, I'd post something up in the plex.tv forum thread where the developer should be able to offer some better advice than me!

Hi thanks for help, yes I did the copy as per your instructions.

II am just going to give up, everything is working perfect with my Plex & SickRage setup, just thought this looked interesting but can't be bothered messing around any more.
 
Status
Not open for further replies.
Top