Where is the API portal URL stored?
Posted: Thu May 15, 2025 10:57 pm
I know this is a really basic question, and maybe it's just as I've had a rough week, but I can't find where the API URL is being got for the following failures:
For a bit of background, I moved a lot of the stuff hosted on that server to nginx last week and moved apache to a different port, so need to change the zone minder portal to 127.0.0.1:5557 instead of just 127.0.0.1
Thanks in advance.
3966 INF |----> FORK:Cam5-RSMF-Back Garden (11), eid:2912365 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed zmeventnotification.pl -
5/15/25, 11:52:32 PM GMT+1 zmesdetect_m11 4429 FAT Unrecoverable error:404 Client Error: Not Found for url: http://192.168.178.69/zm/api/host/login.json Traceback:Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 556, in <module> main_handler() File "/var/lib/zmeventnotification/bin/zm_detect.py", line 335, in main_handler zmapi = zmapi.ZMApi(options=api_options) File "/usr/local/lib/python3.8/dist-packages/pyzm/api.py", line 76, in __init__ self._login() File "/usr/local/lib/python3.8/dist-packages/pyzm/api.py", line 225, in _login raise err File "/usr/local/lib/python3.8/dist-packages/pyzm/api.py", line 195, in _login r.raise_for_status() File "/usr/local/lib/python3.8/dist-packages/requests/models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self)requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://192.168.178.69/zm/api/host/login.json zm_detect.py 561
I've checked all the config files and ensure they're changed, but I'm still getting this error.5/15/25, 11:52:32 PM GMT+1 zmesdetect_m11 4429 ERR Got API login error: 404 Client Error: Not Found for url: http://192.168.178.69/zm/api/host/login.json api.py 223
For a bit of background, I moved a lot of the stuff hosted on that server to nginx last week and moved apache to a different port, so need to change the zone minder portal to 127.0.0.1:5557 instead of just 127.0.0.1
Thanks in advance.