Diagnosing API issues with zmNinga IOS App

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
User avatar
lyallp
Posts: 137
Joined: Fri Nov 26, 2010 2:36 am
Location: Adelaide, Australia

Diagnosing API issues with zmNinga IOS App

Post by lyallp »

How do I go about diagnosing where things are wrong when my API is configured to be enabled but appears to not work.
I tried following https://zoneminder.readthedocs.io/en/stable/api.html
I have Gentoo Linux, PHP 8 apcu enabled (shows up in phpinfo).

Code: Select all

apcu
APCu Support 	Enabled
Version 		5.1.19
APCu Debugging Disabled
MMAP Support 	 Enabled
MMAP File Mask  no value
Serialization Support 	php
Build Date 	Oct 18 2021 21:21:33 
I have performed the 'crud' download

I receive 404 errors when using curl, as described in https://zoneminder.readthedocs.io/en/stable/api.html

Code: Select all

# curl http://localhost/zm/api/host/getVersion.json
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache Server at localhost Port 80</address>
</body></html>
Apache access_log entry is

Code: Select all

127.0.0.1 - - [27/Oct/2021:22:54:26 +1030] "GET /zm/api/host/getVersion.json HTTP/1.1" 404 255
No errors are generated in the Apache error log.
Nothing more serious than a Warning is generated in the Web based ZM log.
No indication of errors in /var/log/zoneminder/* logs, including cake_error.log
...Lyall
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Diagnosing API issues with zmNinga IOS App

Post by Magic919 »

I'll start the guessing with Apache config. I have no idea of the state of ZM on Gentoo these days.
-
Post Reply