I recently installed ZoneMinder using the FreeNAS-11.2-U2.1 plugin. Pretty much everything is working fine except for the ZoneMinder API. When I attempt to load the /zm/api/host/getVersion.json page as instructed in the API Validation instructions, I receive the following error:
Code: Select all
Warning (2): mkdir(): Permission denied [CORE/Cake/Log/Engine/FileLog.php, line 106]
Warning (2): mkdir() [<a href='http://php.net/function.mkdir'>function.mkdir</a>]: Permission denied [CORE/Cake/Log/Engine/FileLog.php, line 106]
Warning (2): mkdir() [<a href='http://php.net/function.mkdir'>function.mkdir</a>]: Permission denied [CORE/Cake/Log/Engine/FileLog.php, line 106]
Warning (2): ini_set() [<a href='http://php.net/function.ini-set'>function.ini-set</a>]: Headers already sent. You cannot change the session module's ini settings at this time [CORE/Cake/Model/Datasource/CakeSession.php, line 581]
Warning (2): mkdir() [<a href='http://php.net/function.mkdir'>function.mkdir</a>]: Permission denied [CORE/Cake/Log/Engine/FileLog.php, line 106]
Warning (2): mkdir() [<a href='http://php.net/function.mkdir'>function.mkdir</a>]: Permission denied [CORE/Cake/Log/Engine/FileLog.php, line 106]
Warning (2): file_put_contents(/var/log/zm/cake_error.log) [<a href='http://php.net/function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: No such file or directory [CORE/Cake/Log/Engine/FileLog.php, line 142]
Warning (2): mkdir() [<a href='http://php.net/function.mkdir'>function.mkdir</a>]: Permission denied [CORE/Cake/Log/Engine/FileLog.php, line 106]
Warning (2): file_put_contents(/var/log/zm/error.log) [<a href='http://php.net/function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: No such file or directory [CORE/Cake/Log/Engine/FileLog.php, line 142]
Warning (2): ini_set() [<a href='http://php.net/function.ini-set'>function.ini-set</a>]: Headers already sent. You cannot change the session module's ini settings at this time [CORE/Cake/Model/Datasource/CakeSession.php, line 581]{ "success": false, "data": { "code": 500, "name": "Unable to configure the session, setting session.use_trans_sid failed.", "message": "Unable to configure the session, setting session.use_trans_sid failed.", "url": "\/zm\/api\/host\/getVersion.json?p=%2Fhost%2FgetVersion.json", "exception": { "class": "CakeSessionException", "code": 500, "message": "Unable to configure the session, setting session.use_trans_sid failed.", "trace": [ "#0 \/usr\/local\/www\/zoneminder\/api\/lib\/Cake\/Model\/Datasource\/CakeSession.php(619): CakeSession::_configureSession()", "#1 \/usr\/local\/www\/zoneminder\/api\/lib\/Cake\/Model\/Datasource\/CakeSession.php(632): CakeSession::_cookieName()", "#2 \/usr\/local\/www\/zoneminder\/api\/lib\/Cake\/Model\/Datasource\/CakeSession.php(404): CakeSession::_hasSession()", "#3 \/usr\/local\/www\/zoneminder\/api\/lib\/Cake\/Controller\/Component\/SessionComponent.php(69): CakeSession::read('user')", "#4 \/usr\/local\/www\/zoneminder\/api\/app\/Controller\/AppController.php(70): SessionComponent->read('user')", "#5 \/usr\/local\/www\/zoneminder\/api\/lib\/Cake\/Event\/CakeEventManager.php(243): AppController->beforeFilter(Object(CakeEvent))", "#6 \/usr\/local\/www\/zoneminder\/api\/lib\/Cake\/Controller\/Controller.php(677): CakeEventManager->dispatch(Object(CakeEvent))", "#7 \/usr\/local\/www\/zoneminder\/api\/lib\/Cake\/Routing\/Dispatcher.php(189): Controller->startupProcess()", "#8 \/usr\/local\/www\/zoneminder\/api\/lib\/Cake\/Routing\/Dispatcher.php(167): Dispatcher->_invoke(Object(HostController), Object(CakeRequest))", "#9 \/usr\/local\/www\/zoneminder\/api\/app\/webroot\/index.php(107): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))", "#10 {main}" ] }, "queryLog": [] } }
Thanks,
Everett