Zoneminder on FreeNAS

Status
Not open for further replies.

default6

Cadet
Joined
Aug 20, 2013
Messages
6
Hi,
Altough I'm not an expert I succesfully installed FreeNas 8.3.1 with transmission plugin, shares, ftp server etc. I wondered how could I install zoneminder or any surveillance software but I found hard to get zoneminder as a pbi. Eventually I could download them from here: http://releases.ubuntu.fastbull.org/pcbsd/PBI/multimedia/zoneminder/9/x32/
installed but cannot start, "Some error occured" message appears. In the messages log there are rows when I tried to start the plugin:
Code:
Aug 20 19:05:16 freenas manage.py: [freeadmin.navtree:416] Couldn't retrieve http://192.168.1.21/plugins/ZoneMinder/_s/treemenu: HTTP Error 502: Bad Gateway
Aug 20 19:38:44 freenas manage.py: [plugins.utils:71] Couldn't retrieve http://192.168.1.21/plugins/ZoneMinder/_s/status: HTTP Error 502: Bad Gateway


I tried to compile zoneminder from source but it wasn't successful. As I mentioned I'm not FreeBSD expert. Could you recommend a download source from which I can download a working pbi for my freenas (intel Atom2500, 2G RAM, 1T hard disk)
Or should I change something in the FreeNas environment?
Thanks
 
Last edited by a moderator:
D

dlavigne

Guest
If you're still on 8.x, PC-BSD PBIs will not work due to ABI incompatibility between 8.x and 9.x. This is not an issue in 9.x jails.

The port install will also fail on 8.x (see the BROKEN/IGNORE message): http://www.freshports.org/multimedia/zoneminder/. I'm assuming that this is fixed on 9.x but have not tried compiling it myself.
 

default6

Cadet
Joined
Aug 20, 2013
Messages
6
I have upgraded to 9.1.0. Now I can't install even the Transmission plugin:
Code:
Aug 26 18:36:53 freenas warden: Fetching jail environment. This may take a while...
Aug 26 18:36:53 freenas warden: get_freebsd_file i386/9.1-RELEASE/base.txz /mnt/kotet1/jails/.download/base.txz
Aug 26 18:36:53 freenas warden: ===== 1% =====
Aug 26 18:36:53 freenas warden: get_freebsd_file i386/9.1-RELEASE/doc.txz /mnt/kotet1/jails/.download/doc.txz
Aug 26 18:36:53 freenas warden: ===== 3% =====
Aug 26 18:36:53 freenas warden: get_freebsd_file i386/9.1-RELEASE/games.txz /mnt/kotet1/jails/.download/games.txz
Aug 26 18:36:53 freenas warden: ===== 4% =====
Aug 26 18:36:53 freenas warden: Creating ZFS /mnt/kotet1/jails/.warden-template-9.1-RELEASE-i386-pluginjail dataset...
Aug 26 18:36:53 freenas warden: zfs create -o mountpoint=/kotet1/jails/.warden-template-9.1-RELEASE-i386-pluginjail -p kotet1/jails/.warden-template-9.1-RELEASE-i386-pluginjail
Aug 26 18:37:17 freenas warden: bootstrap_pkgng /mnt/kotet1/jails/.warden-template-9.1-RELEASE-i386-pluginjail pluginjail
Aug 26 18:37:17 freenas warden: Boot-strapping pkgng
Aug 26 18:37:19 freenas warden: ERROR: Failed boot-strapping PKGNG, most likely cause is internet connection failure.
Aug 26 18:37:21 freenas warden: ERROR: Failed extracting ZFS template environment
Aug 26 18:37:21 freenas warden: ERROR: Failed to create ZFS base dataset
Aug 26 18:37:21 freenas warden: ERROR: Failed create default template
Aug 26 18:37:21 freenas manage.py: [middleware.exceptions:38] [MiddlewareError: Failed to install plugin: mv: rename /tmp/.mirswENqM to /usr/local/share/pcbsd/conf/pcbsd-mirrors-i386: Read-only file system cp: /mnt/kotet1/jails/.warden-files-cache/packages/9.1-RELEASE/i386/pkg.txz: No such file or directory cp: /mnt/kotet1/jails/.warden-files-cache/packages/9.1-RELEASE/i386/repo.txz: No such file or directory ERROR: Failed boot-strapping PKGNG, most likely cause is internet connection failure. ERROR: Failed extracting ZFS template environment cannot open 'kotet1/jails/.warden-template-9.1-RELEASE-i386-pluginjail': dataset does not exist ERROR: Failed to create ZFS base dataset ERROR: Failed create default template ]

.
My internet connection is ok:
Code:
PING google.com (173.194.39.162): 56 data bytes
64 bytes from 173.194.39.162: icmp_seq=0 ttl=57 time=7.233 ms
64 bytes from 173.194.39.162: icmp_seq=1 ttl=57 time=6.254 ms
 
Last edited by a moderator:
D

dlavigne

Guest
Does your hardware require you to be on 32-bit? If not, you should use 64-bit.

A bug was found in the 32-bit jails for 9.1.0 which has been fixed for 9.1.1, which is due out today or tomorrow.
 
D

dlavigne

Guest
Can you see them now? The appcafe used by the plugins browser was down for a bit yesterday but is now back up.
 

KillerDAN

Cadet
Joined
Aug 27, 2013
Messages
5
Can you see them now? The appcafe used by the plugins browser was down for a bit yesterday but is now back up.
Yes, I can see them now within the GUI but still won't install.

Can't I download plugins manually and install ? From where ?
 

KillerDAN

Cadet
Joined
Aug 27, 2013
Messages
5
If you are getting an error in Plugins, that should be pasted so we can determine the underlying cause. The error that default6 posted was due to the 32-bit jail.

Typically, manual installation is done in Jails, and how to do so is documented here: http://doc.freenas.org/index.php/Installing_FreeNAS®_PBIs.

Just upgraded to 9.1.1. Everything still the same.

Install plug in from GUI:

Request Method: GET
Request URL: http://10.150.7.249/plugins/plugin/install/105785/
Software Version: FreeNAS-9.1.1-RELEASE-x64 (a752d35)
Exception Type: AttributeError
Exception Value:
'sipcalc_ipv4_type' object has no attribute 'network_address'
Exception Location: /usr/local/www/freenasUI/../freenasUI/jails/models.py in __init__, line 273
Server time: Wed, 28 Aug 2013 16:37:01 +0100
Traceback



Environment: Software Version: FreeNAS-9.1.1-RELEASE-x64 (a752d35) Request Method: GET Request URL: http://10.150.7.249/plugins/plugin/install/105785/ Traceback: File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 109. response = middleware_method(request, callback, callback_args, callback_kwargs) File "/usr/local/www/freenasUI/../freenasUI/freeadmin/middleware.py" in process_view 165. return login_required(view_func)(request, *view_args, **view_kwargs) File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view 25. return view_func(request, *args, **kwargs) File "/usr/local/www/freenasUI/../freenasUI/plugins/views.py" in install_available 174. jail_auto_configure() File "/usr/local/www/freenasUI/../freenasUI/jails/utils.py" in jail_auto_configure 258. jail = JailsConfiguration() File "/usr/local/www/freenasUI/../freenasUI/jails/models.py" in __init__ 273. st.network_address, st.network_mask_bits) Exception Type: AttributeError at /plugins/plugin/install/105785/ Exception Value: 'sipcalc_ipv4_type' object has no attribute 'network_address'

Request information

GET

No GET data
POST

No POST data
FILES

No FILES data
COOKIES

VariableValue
csrftoken 'BH9JXWbgBPNSxfe5AplMqZnrySW50ikB'
sessionid '46r8dpes4dyr9vlrj9sahl2x0jg3wq9q'
fntreeSaveStateCookie 'root%2Croot%2F1%2Croot%2F1%2F2%2Croot%2F1%2F8%2Croot%2F114%2Croot%2F157%2Croot%2F11%2F28%2Croot%2F11%2F18%2Croot%2F173%2Croot%2F11%2Croot%2F67%2Croot%2F138'
META

VariableValue
wsgi.multiprocess False
HTTP_REFERER 'http://10.150.7.249/'
REDIRECT_STATUS '200'
SERVER_SOFTWARE 'nginx/1.4.1'
SCRIPT_NAME u''
REQUEST_METHOD 'GET'
PATH_INFO u'/plugins/plugin/install/105785/'
SERVER_PROTOCOL 'HTTP/1.1'
QUERY_STRING ''
CONTENT_LENGTH ''
HTTP_USER_AGENT 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1'
HTTP_CONNECTION 'keep-alive'
HTTP_COOKIE 'csrftoken=BH9JXWbgBPNSxfe5AplMqZnrySW50ikB; sessionid=46r8dpes4dyr9vlrj9sahl2x0jg3wq9q; fntreeSaveStateCookie=root%2Croot%2F1%2Croot%2F1%2F2%2Croot%2F1%2F8%2Croot%2F114%2Croot%2F157%2Croot%2F11%2F28%2Croot%2F11%2F18%2Croot%2F173%2Croot%2F11%2Croot%2F67%2Croot%2F138'
SERVER_NAME 'localhost'
REMOTE_PORT '45666'
wsgi.url_scheme 'http'
SERVER_PORT '80'
SERVER_ADDR '10.150.7.249'
DOCUMENT_ROOT '/usr/local/etc/nginx/html'
HTTP_X_REQUESTED_WITH 'XMLHttpRequest'
DOCUMENT_URI '/plugins/plugin/install/105785/'
wsgi.input <flup.server.fcgi_base.InputStream object at 0x807eb0ad0>
HTTP_HOST '10.150.7.249'
wsgi.multithread True
HTTP_CONTENT_TYPE 'application/x-www-form-urlencoded'
REQUEST_URI '/plugins/plugin/install/105785/'
HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
wsgi.version (1, 0)
GATEWAY_INTERFACE 'CGI/1.1'
wsgi.run_once False
wsgi.errors <flup.server.fcgi_base.TeeOutputStream object at 0x81203fbd0>
REMOTE_ADDR '10.155.193.39'
HTTP_ACCEPT_LANGUAGE 'en,pt;q=0.5'
CONTENT_TYPE 'application/x-www-form-urlencoded'
CSRF_COOKIE u'BH9JXWbgBPNSxfe5AplMqZnrySW50ikB'
HTTP_ACCEPT_ENCODING 'gzip, deflate'
 
D

dlavigne

Guest
Does the router on your network do any MAC filtering? I'm assuming the FreeNAS system itself has no problems accessing the Internet?
 

KillerDAN

Cadet
Joined
Aug 27, 2013
Messages
5
Does the router on your network do any MAC filtering? I'm assuming the FreeNAS system itself has no problems accessing the Internet?

No filtering. Yes, for instance:

[root@freenas] /mnt/VOL03# wget http://www.freenas.org/downloads/plugins/9/x64/transmission-2.77_1-amd64.pbi
--2013-08-28 18:26:49-- http://www.freenas.org/downloads/plugins/9/x64/transmission-2.77_1-amd64.pbi
Resolving www.freenas.org (www.freenas.org)... 89.207.128.60, 109.236.82.186, 78.129.220.130, ...
Connecting to www.freenas.org (www.freenas.org)|89.207.128.60|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13513020 (13M) [text/plain]
Saving to: 'transmission-2.77_1-amd64.pbi'

100%[========================================================================================>] 13,513,020 4.88MB/s in 2.6s

2013-08-28 18:27:04 (4.88 MB/s) - 'transmission-2.77_1-amd64.pbi' saved [13513020/13513020]
 
D

dlavigne

Guest
This should not be happening. A developer is trying to pinpoint the cause.
 

latitude05

Dabbler
Joined
Jul 28, 2013
Messages
18
i've the same issue,

i try to install zoneminder on my freenas, with no sucess.
i've try to install via port on my jail.
when i try to connect to zoneminder by my browser, i get many php error.

after, i've try to install zoneminder "by the hand" on my websever, but i have an error as :

checking for mysql_init in -lmysqlclient... no
configure: error: zm requires libmysqlclient.a

....sa, as i don't want to become insane, i've stop for the moment

if somebody can explain how to install zoneminder on freenas (in the jail or as pbi), ...i kiss his feet (only the feet)

thanks
 

petr

Contributor
Joined
Jun 13, 2013
Messages
142
i've the same issue,

i try to install zoneminder on my freenas, with no sucess.
i've try to install via port on my jail.
when i try to connect to zoneminder by my browser, i get many php error.

after, i've try to install zoneminder "by the hand" on my websever, but i have an error as :

checking for mysql_init in -lmysqlclient... no
configure: error: zm requires libmysqlclient.a

....sa, as i don't want to become insane, i've stop for the moment

if somebody can explain how to install zoneminder on freenas (in the jail or as pbi), ...i kiss his feet (only the feet)

thanks


Hi! I've had a further play with zoneminder and got all the way to installing apache and running PHP+MySQL, only to find out that the port had missing files.

Your by-the-hand method should work - it looks like you are missing some mysql parts, make sure you've installed both mysql server and client packages.

At this moment, I've resorted to using zoneminder vmware image - much quicker to set up and use. I guess I will wait for a freenas-specific zoneminder package.
 

latitude05

Dabbler
Joined
Jul 28, 2013
Messages
18
i've the mysql client and server installed
i think it's an issue between static and dynamic library...

i've find a solution by adding this option on my ./configure
--with-extralibs="-L/usr/local/lib/ -L/usr/local/lib/mysql"

but now, i get a new error message
configure: error: zm requires libdl.a
so, i have to find where is the libdl.a lib, i get crazy !!!!
 

default6

Cadet
Joined
Aug 20, 2013
Messages
6
"At this moment, I've resorted to using zoneminder vmware image - much quicker to set up and use. I guess I will wait for a freenas-specific zoneminder package.[/quote]"

I will do exactly the same action -wait, because I don't have the knowledge to to this manually and after a new software upgrade doing it again.
Thank you for your help
 

latitude05

Dabbler
Joined
Jul 28, 2013
Messages
18
i will try another way...
as i have only 2 camera to check, i get a raspberry-pi and i will use it only to run Zoneminder
 

nvader

Explorer
Joined
Dec 20, 2012
Messages
53
Anybody with knowledge on how to make this into a pbi? I would love to have it on my Freenas box
 

petr

Contributor
Joined
Jun 13, 2013
Messages
142
Yes, I second that - I think this will be an amazing plugin! Raspberry PI does not have enough power to do any of the motion detection in any meaningful way.. and the possibility to have it directly mapped to a large storage device to record the footage is a double-win for me!
 
Status
Not open for further replies.
Top