Zoneminder API on Freenas Jail problem

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
JonMoore
Posts: 23
Joined: Wed May 26, 2010 5:55 pm

Zoneminder API on Freenas Jail problem

Post by JonMoore » Tue Mar 17, 2020 8:04 pm

Hello!

I'm hoping someone can help, I've been struggling to get my freenas install of zoneminder up and running for a few days now. Most stuff is there; cams, recording, etc. but I can't get the api working (which I figured out was broken when I couldn't get zmeventnotification working!)

I'm running 1.32.3 on apache and when I go to http://server/api (I don't have the /zm in my path) I get this;

Fatal error: Uncaught FatalErrorException: [CakeSessionException] Unable to configure the session, setting session.use_trans_sid failed. #0 /usr/local/www/zoneminder/api/lib/Cake/Model/Datasource/CakeSession.php(732): CakeSession::_configureSession() #1 /usr/local/www/zoneminder/api/lib/Cake/Model/Datasource/CakeSession.php(219): CakeSession::_startSession() #2 /usr/local/www/zoneminder/api/lib/Cake/Model/Datasource/CakeSession.php(248): CakeSession::start() #3 /usr/local/www/zoneminder/api/lib/Cake/View/Helper/SessionHelper.php(134): CakeSession::check('Message.flash') #4 /usr/local/www/zoneminder/api/app/View/Layouts/error.ctp(46): SessionHelper->flash() #5 /usr/local/www/zoneminder/api/lib/Cake/View/View.php(971): include('/usr/local/www/...') #6 /usr/local/www/zoneminder/api/lib/Cake/View/View.php(933): View->_evaluate('/usr/local/www/...', Array) #7 /usr/local/www/zoneminder/api/lib/Cake/View/View.php(546): View->_render('/usr/local/www/...') #8 /usr/local/www/zoneminder/api/lib/Cake/View/View.php(481): View->renderL in /usr/local/www/zoneminder/api/lib/Cake/Error/ErrorHandler.php on line 138


I was wondering if it was something to do with my apache config which is;

Code: Select all

 DocumentRoot "/usr/local/www/zoneminder/"
        Alias /cache "/var/cache/zoneminder"
        Alias /zm "/usr/local/www/zoneminder/"
        <Directory "/var/cache/zoneminder">
                Options -Indexes +FollowSymLinks
                AllowOverride None
                <IfModule mod_authz_core.c>
                        # Apache 2.4
                        Require all granted
                </IfModule>
                <IfModule !mod_authz_core.c>
                        # Apache 2.2
                        Order deny,allow
                        Allow from all
                </IfModule>
        </Directory>
        <Directory "/usr/local/www/zoneminder">
                Options FollowSymLinks
                AllowOverride All
        Require all granted
        </Directory>
        ScriptAlias /cgi-bin "/usr/local/www/zoneminder/cgi-bin"
        <Directory "/usr/local/www/zoneminder/cgi-bin">
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                AllowOverride All
        Require all granted
        </Directory>
<Directory /usr/local/www/zoneminder/api>
AllowOverride All
</Directory>
But it could be anything to be honest... any help would be awesome!

Thanks in advance!

Jon

JonMoore
Posts: 23
Joined: Wed May 26, 2010 5:55 pm

Re: Zoneminder API on Freenas Jail problem

Post by JonMoore » Wed Mar 18, 2020 9:40 am

Something else that makes me think it might be apache is trying http://server/api/host/getVersion.json gives me a 404 not found

bignellrp
Posts: 19
Joined: Sun Dec 22, 2019 12:37 pm

Re: Zoneminder API on Freenas Jail problem

Post by bignellrp » Fri Mar 20, 2020 6:36 pm

I’m having exactly the same issue. I have consolidated into the one thread. I suggest you do the same so we can all see what resolves this.

viewtopic.php?f=38&t=28189

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest