[FreeNAS 9 Plugins] - SAB / SB / CP / HP / Maraschino / HTPC / Mylar / LL / Gamez

Status
Not open for further replies.

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Sigh :(

Just got everything nicely setup
sorry about that. its strange to me that recently all these jails are just breaking. I think reverting a snapshot would be helpful in the future.
 

rawkus

Explorer
Joined
Feb 13, 2014
Messages
69
i was following your instructions on setting up the nginx.conf and after adding the server block i get this error

nginx: [emerg] "location" directive is not allowed here in /usr/local/etc/nginx/nginx.conf:39
/usr/local/etc/rc.d/nginx: WARNING: failed to start nginx

it worked fine that last time i set this up in a different jail.


ngix.conf looks like this

#user nobody;
worker_processes 2;

#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;

#pid logs/nginx.pid;


events {
worker_connections 1024;
}


http {
include mime.types;
default_type application/octet-stream;

#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';

#access_log logs/access.log main;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;

#gzip on;

server {
location ^~ /sabnzbd {
proxy_pass http://127.0.0.1:8080;}
}
location ^/transmission {
proxy_pass http://127.0.0.1:9091;
}
location ^/sickrage {
proxy_pass http://127.0.0.1:8081;
}
location ^/couchpotato {
proxy_pass http://127.0.0.1:5050;
}
}

}
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
i was following your instructions on setting up the nginx.conf and after adding the server block i get this error

nginx: [emerg] "location" directive is not allowed here in /usr/local/etc/nginx/nginx.conf:39
/usr/local/etc/rc.d/nginx: WARNING: failed to start nginx

it worked fine that last time i set this up in a different jail.


ngix.conf looks like this

#user nobody;
worker_processes 2;

#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;

#pid logs/nginx.pid;


events {
worker_connections 1024;
}


http {
include mime.types;
default_type application/octet-stream;

#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';

#access_log logs/access.log main;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;

#gzip on;

server {
location ^~ /sabnzbd {
proxy_pass http://127.0.0.1:8080;}
}
location ^/transmission {
proxy_pass http://127.0.0.1:9091;
}
location ^/sickrage {
proxy_pass http://127.0.0.1:8081;
}
location ^/couchpotato {
proxy_pass http://127.0.0.1:5050;
}
}

}
you have an extra bracket after the sabnzbd location
 

rawkus

Explorer
Joined
Feb 13, 2014
Messages
69
Thank you, not sure how that made it in there. Is there a command to fully delete a jail other than what is in the GUI? I have had to delete jails and start over a few times and it seems as if some files persist and its causing errors.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thank you, not sure how that made it in there. Is there a command to fully delete a jail other than what is in the GUI? I have had to delete jails and start over a few times and it seems as if some files persist and its causing errors.
you should be doing jail deletion from the GUI, and doing so shouldn't leave any leftover files.
 

rawkus

Explorer
Joined
Feb 13, 2014
Messages
69
that is probably my problem. I have been getting rid of jails by uninstalling the plugins. The plug in jail Type doesnt have a delete button like the standard jail type. Am i missing it or is this just a change in 9.3?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
that is probably my problem. I have been getting rid of jails by uninstalling the plugins. The plug in jail Type doesnt have a delete button like the standard jail type. Am i missing it or is this just a change in 9.3?
if its a plugin jail you are doing the correct thing. delete the plugin from the GUI. the jail should be automatically deleted once there's no plugins in it, but you might be experiencing a bug.
 

rawkus

Explorer
Joined
Feb 13, 2014
Messages
69
it must be a bug. Old jails that have been deleted by deleting all the plugins inside the jail show up again when new plugins are installed with previously mounted storage. I am trying to build a new jail and started encountering the following error with sickrage.

http://192.168.1.5:8081/ returns the following page
Traceback (most recent call last):
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/tornado/web.py", line 1313, in _execute
result = self.prepare()
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/tornado/web.py", line 2002, in prepare
raise HTTPError(self._status_code)
HTTPError: HTTP 404: Not Found

i found you had the same error a while back. did you ever find a fix? this is breaking the post processing.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
it must be a bug. Old jails that have been deleted by deleting all the plugins inside the jail show up again when new plugins are installed with previously mounted storage. I am trying to build a new jail and started encountering the following error with sickrage.

http://192.168.1.5:8081/ returns the following page
Traceback (most recent call last):
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/tornado/web.py", line 1313, in _execute
result = self.prepare()
File "/usr/pbi/sickrage-amd64/share/sickrage/SickRage/tornado/web.py", line 2002, in prepare
raise HTTPError(self._status_code)
HTTPError: HTTP 404: Not Found

i found you had the same error a while back. did you ever find a fix? this is breaking the post processing.
this is a bug with the sickrage code. did you update it (through the sickrage webui) after installing it? I suggest you post on the sickrage forum or issues github repo
 

Savell Martin

Contributor
Joined
Jun 10, 2013
Messages
164
Hey Josh,

Not sure if anyone has reported this or if you can help.
Basically I am all setup and working fine, except Sonarr.
If I have to restart my FreeNAS box for lets say an update, I lose my Sonarr library.
I then have to re-import all my TV shows.

Just wondering if you have come across this or can think of anything?
I was wondering if maybe I didnt have permission for it to write to wherever it needs to write to?!
But not sure what to do...
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hey Josh,

Not sure if anyone has reported this or if you can help.
Basically I am all setup and working fine, except Sonarr.
If I have to restart my FreeNAS box for lets say an update, I lose my Sonarr library.
I then have to re-import all my TV shows.

Just wondering if you have come across this or can think of anything?
I was wondering if maybe I didnt have permission for it to write to wherever it needs to write to?!
But not sure what to do...
I don't use sonarr so I wouldn't know if there's any strange bugs with it. as for permissions being an issue, sonarr shouldn't have an issue managing it's library unless you changed something. by default sonarr's user 'media' UID=816 should own /var/db/sonarr
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hey Josh,

How can I check the permissions and also reset them all just in-case?
Not sure what you mean by reset them. You mean for your jail dataset?
You cant easily reset them, every file in the jail OS has specific ownership/permission levels.
This is why you shouldn't ever change them.

To check them just..
Code:
ls -l /path/to/files
 

Savell Martin

Contributor
Joined
Jun 10, 2013
Messages
164
Thanks Josh,

I see:
-rw-r--r-- 1 root www 19552567 Apr 12 23:41 sabnzbd-0.7.20-amd64.pbi
-rw------- 1 root www 87447311 Apr 12 23:45 sonarr-2.0.0.2850-amd64.pbi

I cant find where the actual plugins are or where their databases are. Could you point me in the right direction?
My path is downloads\downloads\jail if this helps.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thanks Josh,

I see:
-rw-r--r-- 1 root www 19552567 Apr 12 23:41 sabnzbd-0.7.20-amd64.pbi
-rw------- 1 root www 87447311 Apr 12 23:45 sonarr-2.0.0.2850-amd64.pbi

I cant find where the actual plugins are or where their databases are. Could you point me in the right direction?
My path is downloads\downloads\jail if this helps.
The actual plugins are installed in a PBI directory in a jail.
I believe yours would be at /mnt/downloads/jail/sabnzbd_1/usr/pbi/sabnzbd-amd64
In that directory is also a sqlite file which stores some plugin data that freenas (not the application uses).
In /var/db/sabnzbd for the jail, is where sabnzbd stores its metadata. Wiping out this directory would essentially make sabnzbd a fresh install.

I'm not exactly sure what you are trying to do here?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949

ratzofftoya

Cadet
Joined
Apr 17, 2015
Messages
5
Hey Josh,

What's the current orthodoxy on Couchpotato upgrades? I'm getting a pop-up and can't seem to do it through the couchpotato ui. Thanks!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hey Josh,

What's the current orthodoxy on Couchpotato upgrades? I'm getting a pop-up and can't seem to do it through the couchpotato ui. Thanks!
on my production install updates happen on their own and I haven't had a problem.

on another production install at a family members home, occasionally I check their CP doesn't respond because of a bad auto-update. restarting the process usually fixes this.

so for the most part, auto-updates work for me. if updates stopped working for you I'd ask the couchpotato people, or I can list some steps to refresh your CP source (without losing anything).
 
Status
Not open for further replies.
Top