Zoneminder api not found json. The zoneminder install for Xenial does not support PHP 7.

face detection however isn't working. Apr 25, 2018 · Re: Zoneminder 1. json API (discussed later) will return both the old style (auth=) and new style (token=) credentials. json is in the api directory). As for the tmp file issue, the options are May 17, 2020 · I first detected API problems with ZMninja. 057 and beyond will support tokens) Nov 16, 2017 · I installed 1. 47 using iconnor's master repo on Ubuntu 22. 47 and the system is working but zmNinja isn't. 29) and it seems to be working nicely (permissions are fixed, database. 26. Even if I run Curl I get HTTP500 on get version for API: Mar 10, 2015 · If you are developing an app that relies on the API, you need to do a POST login from the app into ZoneMinder before you can access the API. I've checked the API settings from here: https://zmninja. I use Apache as webserver. Drop back to PHP 7. 34. html. I don't believe the API portion is working, despite the fact I thought I had everything setup for it. I have tried following instructions from various places, including downloading 'crud' and copying it into the ZM web tree. SO I reverted snapshot to 1. 30 with iconners repo. mysql_secure_installation. 0 APIs, you have an additional option right below it: OPT_USE_LEGACY_API_AUTH which is enabled by default. 2. Nov 25, 2020 · Hello, I have a working zone-minder record camera , see camera online on browser but I can't login using API when I run this command from the server itself I get "Not Found" Nov 27, 2019 · You signed in with another tab or window. Cake reports rewrite not working. disable_warnings(urllib3. Hello, I have a working zone-minder record camera , see camera online on browser but I can't login using API when I run this command from the server itself I get "Not Found" Apr 6, 2017 · Earlier this week I upgraded to 1. I can get output from zm/api/composer. x; ↳ ZoneMinder 1. 2004 (Core)- Browser name and version (if this is an issue with the web interface) If the issue concerns a camera It doesn't. I created a issue on the zmninja github and from that it appears that the api is not working. 30. I run it on openSuSE Leap 42. May 16, 2021 · This morning I upgraded my 1. For v2. 29 and am trying to setup the API for use with zmnija. 10 server run for a while to see if it keeps running. Oct 18, 2023 · Your apache config probably doesn't include or has the wrong setup for api. As you've state, this is likely API issue not zmNinja. I'm moving it to ZM 1. May 21, 2016 · Code: Select all #!/bin/bash # add -x to debug # the script will do the following: # Auth to ZM API # Get list of monitors with events in the last eleven minutes # Restart any monitors that have 0 events in the last eleven minutes (any that don't appear in the list) # requires logger (but can edit that out if not available), thats it. json always getting a 401 Not Authorized response, but all other requests (like /api/monitors. API worked without issues. And to make things worse, monitors. Building ZoneMinder into a package is not any harder than building from source. However, make sure you've tried clearing zmNinja API cache/exit app and try again. 34 to 1. 1/zm/api - Error: The requested address '/zm/api/' was not found on this server Enabling API. 8. zm 1. Likely, it did not work for original poster due to OPT_AUTH not enabled / user & pass setup, or otherwise installed incorrectly. Nov 20, 2017 · Regular ZM web interface is no problem. When building a package, it is best to do this work in a separate environment, dedicated to development purposes. When enabled, the login. Go to zmNinja->Menu->clear API cache, exit app and start again. 3 Freenas API Failure Post by Bluemax » Sat Mar 21, 2020 10:08 pm bignellrp wrote: ↑ Sat Mar 21, 2020 9:15 pm Error: The requested address '/zm/api/' was not found on this server. Nov 16, 2017 · Ok so marking this solved, and leaving my comments for the rest of the world to see (and me to find next time I screw this thing up). Hi, So basics first. 04 does not install this folder when upgrading Zoneminder. 3 on Ubuntu, when I run groups. You switched accounts on another tab or window. Running on a raspberry pi 4 model B 8GB on Ubuntu 20. The command is successful, but the camera mode doesn't change. json"} Sep 22, 2015 · Hi bbunge, grat job. 50/zm opens the zoneminder web console But any directory inside usr/share/zm/ will show 404 not found. 3). It was a clean upgrade, as far as I could tell. 0. Oct 2, 2011 · Zoneminder 1. The command above works, as long as you've installed ZM properly. The github repository for Zoneminder has an api directory under the web directory. 26 zoneminder to 1. 37. 4. Hello, I have a working zone-minder record camera , see camera online on browser but I can't login using API when I run this command from the server itself I get "Not Found" Aug 1, 2017 · Looks like all the files installed with correct permissions. json bug. If you are brave I can give you a patch that may work. On my Options -> System page, I have set OPT_USE_AUTH to enabled, AUTH_TYPE to builtin, AUTH_RELAY is hashed, AUTH_HASH_SECRET has a secret phrase created, AUTH_HASH_IPS is NOT enabled, AUTH_HASH_TTL is set to 2 hours, AUTH_HASH_LOGINS is enabled Dec 22, 2021 · This morning I upgraded my 1. I installed this version on my production machine and used your desktop app to double check and everything looks to be working great. so and libphp7. Code: Select all Warning: mkdir(): Permission denied in /usr/share/zoneminder/www/api/lib/Cake/Cache/Engine/FileEngine. I have a problem I can't seem to figure out. 04 installed and I am running Zoneminder 1. I have a question about native authentication with API. After i got the API working, i stumbled over this Problem. 2, so the fix may work for Xenial. It "seems" like I have all the necessary php libraries/files but they are not being found/loaded by ZM: libphp7. 04 LTS on VmWare ESXi 6 Cameras FOSCAM FI8918W OpenHab Integration Unfortunately not. In next days, i move all my config to new version. 35. Feb 14, 2007 · I updated my zm from 1. Simple 3 steps: 1. Seems sim to issues we had with Ubuntu 17. I got ZM and API working on Ubuntu 15. 3. 168. It took me too long to work this out! The easiest way that I found to do this was to set the API into debug mode (once) and then back into production mode. Feb 28, 2016 · The zoneminder service is running fine. json via API, it will return 500 Internal Server Mar 1, 2014 · Yep they all work. Version of ZoneMinder: v1. json) working perfectly. I tried with Home Assistant and with zmview What has being changed? URL rewriting is not properly configured on your server. Debian examples don't have it at all. Mar 16, 2017 · This issue is about api requests to /api/hosts/getVersion. Code: Select all {"name":"Not Found","message":"Not Found","url":"\/api\/zm\/api\/host\/getVersion. json does not exist in my server (updatedb/locate) CakePHP is version 2. 2 from 1. 21 (Connors PPA), CakePHP 2. 33. 04. Accounts/logins are all unchanged (all have API access). json to get group information, the result doesn't include the camera IDs in the group. x; ↳ Mobile Apps and Event Server; ↳ Docker; ↳ ZoneMinder Distributions; ↳ ZoneMinder Translations; ↳ Archive [End of Life Versions] ↳ ZoneMinder 1. May 15, 2021 · Our files are posted. Hi Guys, I just started with ZoneMinder and trying to use API calls from my domotica system. # tested in devuan jessie # find in the logs by searching Aug 26, 2016 · If you upgrade from 1. The reason this is enabled by default is because any existing apps that use the API would break if they were not updated to use v2. To check if APIs are enabled, visit Options->System. 1" username="user" Feb 2, 2015 · This is a question related to ZoneMinder - your APIs are not set up correctly. Jan 16, 2023 at 2:37. io/en/lates g-api. Feb 5, 2021 · So basics first. ) I used the zmrepo rpms. php on line 379 Warning: _cake_core_ cache was May 15, 2021 · This morning I upgraded my 1. Mar 2, 2024 · I've checked and the checkbox is ticket for API on configuration and the . ini Object recognition is working and sending out notifications. As already mentioned they do not contain outside sources. I've checked and the checkbox is ticket for API on configuration and the . I keep running into: Thing 'zoneminder:server:zm' changed from INITIALIZING to OFFLINE (CONFIGURATION_ERROR): Can't get version information I don’t see anything wrong in my configuration right off the bat. json to figure out which monitors were not included in this list. Nov 20, 2017 · Is it a virtual rewrite or something? I have no such directory (nothing, anywhere). Then I updated to 1. Debug logs will help narrow down what the issue could be. Forum rules. I can see that the API user is logging in. 2 to 1. UID: zoneminder:server:zm label: ZoneMinder Server Production Zoneminder 1. 36, the cached API models (from 1. Yes I can confirm that the config is pointing to /etc/zm/secrets. by asker » Sat May 16, 2020 12:36 pm. I've been struggling with this issue for days, basically and Feb 11, 2014 · Not sure why you'd want it to do so --> the monitor IDs it does not return are the ones with 0 events in that time period. Hello, I have a working zone-minder record camera , see camera online on browser but I can't login using API when I run this command from the server itself I get "Not Found" Re: Zoneminder 1. Jan 30, 2018 · ↳ ZoneMinder Distributions; ↳ ZoneMinder Translations; ↳ Archive [End of Life Versions] ↳ ZoneMinder 1. I have ZM authentication setup and that's working fine. I'm starting to chase my tail and figure it's best to stop and see if someone can get me pointed in the right direction. Using that api call works for us. Oct 15, 2019 · You need to add a stateful=1 The API is stateless, so now if you want to use cookies, etc you have to specifically tell it to. ZoneMinder comes with APIs enabled. /zoneminder is what works to bring up the web interface. Hello, I have a working zone-minder record camera , see camera online on browser but I can't login using API when I run this command from the server itself I get "Not Found" This can easily happen if you have migrated a WordPress installation to another place and forgot to do the stuff in one of the other answers: pressing "save changes" in settings->permalinks. I may respond on occasion based on my available time/interest. Enable debug mode. This particular problem exists regardless of the value of debug. Aug 5, 2020 · everything is working with the zoneminder (record 3 cameras all the time ,with sound - work great!) now I'm trying to use API , I have done what it said in the guide I have had Zoneminder working on a Ubuntu VM, but after an update to the host, the VM will no longer boot. readthedocs. (Note that zmNinja 1. the API for lighttpd, I found the following was necessary in order to get it to work properly Aug 3, 2020 · If you don't have authentication enabled, please make sure you turn off authentication in zmNinja. x Development Branch; ↳ ZoneMinder 1. 29 forums I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. 29. json. This worked for me as I was using %postname% permalink and was missing this file. Jan 27, 2019 · Re: API not working after install on fresh Buster system Post by kitkat » Tue Dec 21, 2021 3:22 pm Make sure that overrides are enabled in the httpd/Apache config file - They aren't by default in my copy here on CentOS. URL rewriting is not properly configured on your server. The requested URL was not found on this server. Then, you need to re-use the authentication information of the login (returned as cookie states) with subsequent APIs for the authentication information to flow through to the APIs. 3 and API worked. Not sure what I'm missing. Otherwise add the user=&pass= to every request Nov 4, 2015 · Hi, I've upgraded from 1. – Klaassiek. I have the Zoneminder jail working, can access it via the URL and the streams are working, but the API is failing when trying to use the zmNinja app. I followed the guide posted on the wiki for apache and zm configuration but I can't get the app to talk to the API. 34) need to be updated. I have had Zoneminder working on a Ubuntu VM, but after an update to the host, the VM will no longer boot. 192. Since I can not see any streams via the API. so exist in /usr/lib/apache2/modules. The normal zoneminder web interface is working fine and I'm not getting any errors in the zoneminder log. 5. There is no need to preface this command with a login. Reload to refresh your session. Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Re: ZoneMinder 1. If OPT_USE_API is enabled, your APIs are active. Looking into Apache config. 32. How you installed ZoneMinder: RPMFusion. You signed out in another tab or window. We had to come up with a fix for Bionic, which uses PHP 7. Jan 5, 2020 · I get stuck on the part where I’m suppose to test that the api is working, see below. cnf. 03. Is there something I missed in the Sep 21, 2017 · CakePHP: the rapid development php framework Not Found Error: The requested address '/api/' was not found on this server. 5 (bundle with the 1. Stepped through the document https://zmninja. CakePHP: the rapid development php framework CakePHP 2. 0 How i can fix it? Forum for questions and support relating to the 1. Oct 26, 2017 · i'm trying to use zmninja but it shows login sucess but api failed, zmNinja is running in the same machine that Zoneminder, and zoneminder works fine, i'm using Debian 9, when i go to 127. Production Zoneminder 1. Everything is working, I can use all items/options through the website but when I use zmninja, things do not work anymore. I get stuck on the part where I’m suppose to test that the api is working, see below. 25 with empty DB, imported a db dump of my production system and did the update to 1. Trying to change the state of a monitor using this call Hi, all. The zoneminder install for Xenial does not support PHP 7. I’ve tried to reinstall everything a few times, but I get the same result. Shows us your apache config for zm. Here are the commands I used: apt install nginx. x Re: ZoneMinder 1. Mar 20, 2014 · #!/usr/bin/python2 import sys import requests import urllib3 urllib3. 2 used php5 and I haven't any problem, zmninja could connect to zm, cakephp worked fine. 10. Nov 29, 2019 · Double checked this today (1. The only difference between test system and production system is that on production system I had 1 terabyte of Apr 17, 2021 · I’ve got an up to date zoneminder server running and I’m trying to setup OH3-m3 to access it but can’t get past the initial setup. If you can't get monitors. 4 Ubuntu 16. Aug 30, 2016 · Hello, I recently upgraded to 1. I'm running 1. . 057 and beyond will support tokens) Nov 23, 2022 · Turn on debug logs for zm. x Re: Zoneminder 1. Jul 1, 2016 · Zoneminder API not found Post by gert » Fri Jul 01, 2016 1:23 am I've been using a zoneminder 1. 11 and PHP 7. Rather than replacing it, I would like to get Zoneminder working in a jail. exceptions. 27. json returns the following: May 23, 2015 · I have Ubuntu 12. There is something specific wrong with your install. 04 LTS on VmWare ESXi 6 Cameras FOSCAM FI8918W OpenHab Integration It is not necessary to use login. 28. 4 posts • Page 1 of 1 Dec 5, 2016 · These were all default settings from the zmrepo install. You have misrepresented your test case. html but the monitors. Re: Zoneminder 1. 1. When I look in the api directory every thing is there. The hooks are working but apparently the API on ZM are not working. Nov 29, 2020 · Code: Select all {"name":"Not Found","message":"Not Found","url":"\/api\/zm\/api\/host\/getVersion. Oct 29, 2021 · For some reason, the API does not seem to work for me. json"} Production Zoneminder 1. Dec 24, 2020 · The only thing I saw in docs was to use server. 31. json to work on your desktop browser, try increasing debug level in CakePhp to see if it produces any useful output. For the states. php edited, etc, etc). json (composer. json before running this command. Apr 26, 2019 · Stack Exchange Network. If you are doing some correlation for representation, the total list of monitors can always be retrieved from monitors. To be clear, these are instructions assuming you have some form or fashion of LEMP running (as opposed to LAMP). 04 LTS on VmWare ESXi 6 Cameras FOSCAM FI8918W OpenHab Integration When enabled, the login. Dec 9, 2014 · I just upgraded a system from 1. 25 and made a snapshot. I believe you are specifying HourEvents as a filter in your Re: Zoneminder 1. 33 to 1. InsecureRequestWarning) ip="10. The api code does not reference HourEvents or any of the other event counts. pl status it returns stopped, as expected. It doesn't seem to work in 1. . I have found a few fragments of other issues with buster api's but no definitive resolution. It's a zm problem not zmeventnotification. 3 and use SUSE packages. 36. 47. Mysql/mariadb running. rm /etc/mysql/my. config files are ok as per the installation guide. 1) Help me configure it 2) I don't / can't use URL rewriting I followed the instructions a second time on a fresh VM and had the same results. Authentication IS succeeding, in which case I'm assuming the token mechanism is functioning properly. json but if its not a multi server setup it returns empty. I use the API to turn cameras to and from modect and monitor. Zoneminder 1. I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I can’t find a solution. If you set the run state to STOP and run zmpkg. API commands can be called without logging in beforehand. Thanks a ton in advance for all your help. Hope to get some time this weekend to put this in a usable form and will let the 17. As a matter of fact, if you have successfully built ZoneMinder from source in the past, then you may find these steps to be easier. 3. 29 for a few months on a computer, and am setting up a new computer with it. The requested URL /zm was not found on this server. x releases only. However, the repository for Ubuntu 12. Upgrade seems to went well. They are not perfect, as I found quite a few conflicting configs during the install process I had to correct myself (like the GD zm streamer stuff) Hello, I have a working zone-minder record camera , see camera online on browser but I can't login using API when I run this command from the server itself I get "Not Found" Nov 20, 2017 · Re: Another API issue. Oct 13, 2017 · ↳ ZoneMinder 1. Full name and version of OS: CentOS Linux release 8. Describe the bug When targeting monitor. This morning I upgraded my 1. 4 API not working on FreeBSD Post by rockedge » Tue Apr 24, 2018 3:03 pm Looking at my Zoneminder installation it looks like the path above "/var/log/zm" is mostly correct, but I do not have a /zm/ directory inside of my "/var/log" directory. apt install mariadb-server. cf bj ud yh aq ug oo ud gx uy