Zoneminder api not found json. json before running this command.

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