{"id":1561,"date":"2017-09-05T04:53:20","date_gmt":"2017-09-05T09:53:20","guid":{"rendered":"http:\/\/lisa.rushworth.us\/?p=1561"},"modified":"2017-09-05T04:55:13","modified_gmt":"2017-09-05T09:55:13","slug":"zoneminder-after-upgrade","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=1561","title":{"rendered":"ZoneMinder After Upgrade"},"content":{"rendered":"<p>We recently updated from ZoneMinder 1.30 to 1.34 &#8211; easy as can be, ran the DB update script and everything came right online. Except &#8230; our home automation system hasn&#8217;t been able to access the system. OpenHAB reports that the bridge is offline. And we&#8217;re getting 404 errors in all of the \/zm\/api calls in access_log.<\/p>\n<p>Turns out the API was offline\u00a0<em>because<\/em> when the new package came down &#8230; there was a zoneminder.conf.rpmnew in the Apache conf.d directory. Can&#8217;t even say I found this intentionally &#8211; I wanted to check the Apache config file to see if it had anything about the api directory, did a directory listing, and said oooooh!<\/p>\n<p>[lisa@fedora01 conf.d]# ll zone*<br \/>\n-rw-r&#8211;r&#8211; 1 root root 1990 Jul 29 18:13 zoneminder.conf<br \/>\n-rw-r&#8211;r&#8211; 1 root root 1990 Aug 28 22:34 zoneminder.conf.rpmnew<\/p>\n<p>They&#8217;ve changed a few of the sub-directories and added components to the config. As soon as I renamed zoneminder.conf to zoneminder.conf.old, copied zoneminder.conf.rpmnew to zoneminder.conf, and repeated a few config tweaks we had made for the original installation &#8230; restarted Apache and voila, we can fetch\u00a0\/zm\/api\/host\/getVersion.json and get values. So if you&#8217;re getting odd 404 errors and CakePHP &#8220;\/zm\/api&#8221; not found errors maybe you forgot to update your config with changes from the rpmnew file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We recently updated from ZoneMinder 1.30 to 1.34 &#8211; easy as can be, ran the DB update script and everything came right online. Except &#8230; our home automation system hasn&#8217;t been able to access the system. OpenHAB reports that the bridge is offline. And we&#8217;re getting 404 errors in all of the \/zm\/api calls in &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[316,61],"class_list":["post-1561","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-api","tag-zoneminder"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/1561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1561"}],"version-history":[{"count":2,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/1561\/revisions"}],"predecessor-version":[{"id":1563,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/1561\/revisions\/1563"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}