[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
Well couchpotato was working perfect yesterday but today the "you might like these" tab is empty.
No idea what caused this it was over night and there´s not error in the logs.

The only thing weird i can find is when i hit "check for updates" i get this in the logs:
[hpotato.core.plugins.base] Opening url: get https://api.github.com/repos/RuudBurger/CouchPotatoServer/commits?per_page=1&sha=master, data: []

And nothing else... is that supposed to be like that?
nope, something seems screwed up. you could try replace the source code in /usr/pbi/couchpotato-amd64/share/couchpotato or just backup your data directory and reinstall the plugin.
 

johnkeel

Dabbler
Joined
Aug 9, 2014
Messages
11
nope, something seems screwed up. you could try replace the source code in /usr/pbi/couchpotato-amd64/share/couchpotato or just backup your data directory and reinstall the plugin.

Fresh install

08-09 17:00:15 INFO[hpotato.core.plugins.base] Opening url: get https://api.github.com/repos/RuudBurger/CouchPotatoServer/commits?per_page=1&sha=master, data: []

08-09 17:00:18 ERROR[chpotato.core.plugins.log] API log: {'line': u'456', 'message': u'chrome 36: \nUncaught TypeError: string is not a function', 'page': u'http://HOST/', 'file': u'http://HOST/minified/front.js?1407599712'}
 

neto_hugo

Explorer
Joined
Mar 6, 2012
Messages
87
Guys, a install from scratch for a friend today and when I get at this stage:
Code:
pkg install git nginx python py27-sqlite3 sqlite3


I am getting the following warning:
Code:
pkg: No packages available to install matching 'git' have been found in the repositories


The same applies for all the other packages (nginx, ...)

Does anyone know what's going on? There're some problem on repo?
Thanks
 

johnkeel

Dabbler
Joined
Aug 9, 2014
Messages
11
Guys, a install from scratch for a friend today and when I get at this stage:
Code:
pkg install git nginx python py27-sqlite3 sqlite3


I am getting the following warning:
Code:
pkg: No packages available to install matching 'git' have been found in the repositories


The same applies for all the other packages (nginx, ...)

Does anyone know what's going on? There're some problem on repo?
Thanks
Olá Hugo

pkg update -f
Should solve it, i think it worked for me
 

Ray Milyard

Patron
Joined
Aug 8, 2014
Messages
262
I am new to FreeNAS but I have something like this setup on my IX4-300d. I was given a Free Lenovo TS130 with Xeon quad and 16gb of ram so I am going to switch to this. Using (4) 2tb drives.

I have followed you guide step by step but have run into some issues.

Using this web page: https://www.jruehlig.com/wordpress/installation-configuration-of-freenas-plugins/#comment-381

Jails > Add Jails
  • Jail Name = download_jail
  • Add Storage
    • Source = /mnt/tank/media
    • Destination = /mnt/media (see error)
Error: The path could not be mounted /mnt/tank/media: Mount failed (64) -> mount: /mnt/tank/jails/download_jail/mnt/media: No such file or directory

I have even SSH in system and goto /mnt and make folder media and still get same error.
-----------------------------------------------------------------------------------------------------------------------

Transmission WebGUI

Download Directory = /mnt/media/downloads/transmission/complete

Since can't make /mnt/media folder I can use it here. However when I try to change for now to /mnt/tank/jails/download)jails/media it seems like this setting never gets saved. Same with changing the Encryption.

Changing to the folder via the Transmission web page seems to work but since from the Jails the /mnt/media folder isn't there not sure about this.
-----------------------------------------------------------------------------------------------------------------------

Side notes something else I have found. Seems like anytime I stop a plugin via FreeNAS/Plugins whenever try to restart them they never start.
-----------------------------------------------------------------------------------------------------------------------

Plugin Jail Command-Line

root@download_jail:/ # service transmission stop && service sickbeard stop
Stopping transmission.
Stopping sickbeard.
Waiting for PIDS: 41558.
root@download_jail:/ # pkg install git nginx python py27-sqlite3 sqlite3
Updating repository catalogue
digests.txz 100% 1091KB 1.1MB/s 931.3KB/s 00:01
packagesite.txz 100% 5189KB 1.7MB/s 938.8KB/s 00:03
Incremental update completed, 23445 packages processed:
23187 packages updated, 335 removed and 258 added.
New version of pkg detected; it needs to be installed first.
The following 1 packages will be installed:
Upgrading pkg: 1.2.7_2 -> 1.3.5.1
The installation will require 772 kB more space
1 MB to be downloaded
Proceed with installing packages [y/N]:y
pkg-1.3.5.1.txz 100% 1931KB 965.6KB/s 1.5MB/s 00:02
Checking integrity... done
[1/1] Upgrading pkg from 1.2.7_2 to 1.3.5.1... done
If you are upgrading from the old package format, first run:
# pkg2ng
Updating repository catalogue
FreeBSD repository is up-to-date
All repositories are up-to-date
pkg: Repo FreeBSD needs schema upgrade from 2006 to 2010 but it is opened readonly
pkg: need to re-create repo FreeBSD to upgrade schema version
Updating database digests format: 100%
pkg: No packages available to install matching 'git' have been found in the repositories
root@download_jail:/ #

This is what error I am getting.

So I haven't been able to really continue. Please any help would be GREAT!
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
ray milard, please ask these questions on my blog instead if here.

/mnt/media not being created is a bug in 9.2.1.6, might be fixed in 9.2.1.7?

you need to have working pkg installs, which sounds like some bug or network problem you are hitting.
 

johnkeel

Dabbler
Joined
Aug 9, 2014
Messages
11
Well im still getting the same problem with movie suggestions missing!
I would like to try the Develop branch but im too noob to do it on my own.
Could you please tell me what commands should i type in the jail terminal?
 

Ray Milyard

Patron
Joined
Aug 8, 2014
Messages
262
Running 9.2.1.7


So I think got it fixed. Again I am totally new to FreeNAS and know near nothing about UNIX or any of the favors out there.

After getting the error:

pkg: Repo FreeBSD needs schema upgrade from 2006 to 2010 but it is opened readonly
pkg: need to re-create repo FreeBSD to upgrade schema version
Updating database digests format: 100%
pkg: No packages available to install matching 'git' have been found in the repositories
root@download_jail:/ #

I did this command:

pkg update -f

After doing that and watching video you made looks like it worked.

As for the storage for download_jail this is what I used and it seems to be working. Got this all done late last night so haven't tested it out much and now working all week so not sure how much I can this week.

download_jail storage:

Source = /mnt/tank/media
Destination = /mnt/tank/jails/download_jail/media

Not sure if this will cause an issue.

As for the rest of your guide I think I followed it to the letter.
 

johnkeel

Dabbler
Joined
Aug 9, 2014
Messages
11
well i just cant get rid of these:

[ couchpotato.core.event] Error in event "scanner.name_year", that wasn't caught: Traceback (most recent call last): File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/event.py", line 12, in runHandler return handler(*args, **kwargs) File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/plugins/scanner/main.py", line 867, in getReleaseNameYear if year: # Split name on year UnboundLocalError: local variable 'year' referenced before assignment encoding=UTF-8 debug=False args=['--config_file', '/usr/pbi/couchpotato-amd64/etc/couchpotato/config.ini', '--data_dir', '/usr/pbi/couchpotato-amd64/etc/couchpotato', '--pid_file', '/usr/pbi/couchpotato-amd64/etc/couchpotato/couchpotato.pid', '--daemon'] app_dir=/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer data_dir=/usr/pbi/couchpotato-amd64/etc/couchpotato desktop=None options=Namespace(config_file='/usr/pbi/couchpotato-amd64/etc/couchpotato/config.ini', console_log=False, daemon=True, data_dir='/usr/pbi/couchpotato-amd64/etc/couchpotato', debug=False, pid_file='/usr/pbi/couchpotato-amd64/etc/couchpotato/couchpotato.pid', quiet=False)

also the You might like these tab gets empty after some time, seems to work when i do a clean install but soon gets empty after i close or add the suggestions...

Thats why i would like to test the Develop branch
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
@johnkeel
I told you where the source files are. you can just change this to the develop branch if you wish, though I highly doubt that will fix anything because I have working production installs on the master branch.

why don't you try installing another instance of CP, and see if you hit the same issue. that's a great part about freenas you can have multiple parallel installs of the same plugin.

it sounds like, from the error your source files got out of whack from an bad update.
 

johnkeel

Dabbler
Joined
Aug 9, 2014
Messages
11
@johnkeel
I told you where the source files are. you can just change this to the develop branch if you wish, though I highly doubt that will fix anything because I have working production installs on the master branch.

why don't you try installing another instance of CP, and see if you hit the same issue. that's a great part about freenas you can have multiple parallel installs of the same plugin.

it sounds like, from the error your source files got out of whack from an bad update.

Just installed a new instance, clean new instance:

08-11 18:52:48 INFO[hpotato.core.plugins.base] Opening url: get https://api.github.com/repos/RuudBurger/CouchPotatoServer/commits?per_page=1&sha=master, data: []08-11 18:52:51

ERROR[chpotato.core.plugins.log] API log: {'line': u'456', 'message': u'chrome 36: \nUncaught TypeError: string is not a function', 'page': u'http://HOST/home/', 'file': u'http://HOST/minified/front.js?1407779110'}

After login i hit check for updates and went straight to logs and got that.
The first line is ok? Since its not an error it seems ok.
The second line is a error but no sure what it is...

The version is:

Version
e75a8529c99996a0ba20fdcf83d424b6597bc3f8 (17/7/2014 21:26:23)
Updater
source, master
ID
74600

Is this the latest or should it detect and available update?


EDIT:
just confirmed the exact same error

08-11 18:58:11 ERROR[ couchpotato.core.event] Error in event "scanner.name_year", that wasn't caught: Traceback (most recent call last): File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/event.py", line 12, in runHandler return handler(*args, **kwargs) File "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer/couchpotato/core/plugins/scanner/main.py", line 867, in getReleaseNameYear if year: # Split name on year UnboundLocalError: local variable 'year' referenced before assignment encoding=UTF-8 debug=False args=['--config_file', '/usr/pbi/couchpotato-amd64/etc/couchpotato/config.ini', '--data_dir', '/usr/pbi/couchpotato-amd64/etc/couchpotato', '--pid_file', '/usr/pbi/couchpotato-amd64/etc/couchpotato/couchpotato.pid', '--daemon'] app_dir=/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer data_dir=/usr/pbi/couchpotato-amd64/etc/couchpotato desktop=None options=Namespace(config_file='/usr/pbi/couchpotato-amd64/etc/couchpotato/config.ini', console_log=False, daemon=True, data_dir='/usr/pbi/couchpotato-amd64/etc/couchpotato', debug=False, pid_file='/usr/pbi/couchpotato-amd64/etc/couchpotato/couchpotato.pid', quiet=False)
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
that's the latest commit on master. couchpotato updates to the latest upon initial install.
 

johnkeel

Dabbler
Joined
Aug 9, 2014
Messages
11
that's the latest commit on master. couchpotato updates to the latest upon initial install.

I just switched form synology to freenas, and the one plugin i like the most is couchpotato, and the feature i like the most in couchpotato is the sugestions, it makes it sooooo easy, just login select what you want and your done... but i tried all types of guides, done all kinds of tests i could find and no luck.
Suggestions always go away and never come back.
If i search around the web for the error:
ERROR[ couchpotato.core.event] Error in event "scanner.name_year", that wasn't caught:
it seems its a common error:
https://github.com/RuudBurger/CouchPotatoServer/issues/3174

but is this related to Suggestions?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I'll see if I can reproduce tonight.
can you please create an issue on CPs github page and post the log output from above.
 

johnkeel

Dabbler
Joined
Aug 9, 2014
Messages
11
I'll see if I can reproduce tonight.
can you please create an issue on CPs github page and post the log output from above.

Done.

If you want to reproduce the error you can even try a clean freenas install (already did like 10 of those, im on vacations lol)
My system is setup like this:
LAN1: 192.168.1.2
CP: 192.168.1.243 with router gateway 192.168.1.1

created user and group id:816 name: media
permissions for jail/couchpotato: media/media
permission for downloads and movies folder is nobody/nogroup
mounted jails /media/downloads and /media/movies

did chown -R media:media /usr/pbi/couchpotato-amd64/etc/

forwarded my router port 5050 to 192.168.1.243

EVERYTHING works fine, it searches, it adds to Wanted and it downloads, Renamer works perfect and Manage also works perfect.

Only thing missing is "you might like these"
 

johnkeel

Dabbler
Joined
Aug 9, 2014
Messages
11
Ok there´s something REALLY strange going on.
I manually replaced the files at /usr/pbi/couchpotato-amd64/share/couchpotato
with the ones at https://github.com/RuudBurger/CouchPotatoServer

And voilá... now everything works like it used to on my synology.
So i guess there must something wrong with the automatic installer from the freenasgui...

Well if someone is having the same problem, just manually replace files.
Now i have the suggestions and charts just like i used to!
 

neto_hugo

Explorer
Joined
Mar 6, 2012
Messages
87
Status
Not open for further replies.
Top