Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login Auth Sucess but api failed Issue #552

Closed
vinizanini opened this issue Oct 26, 2017 · 13 comments
Closed

Login Auth Sucess but api failed Issue #552

vinizanini opened this issue Oct 26, 2017 · 13 comments

Comments

@vinizanini
Copy link

Hello Guys,
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.0.0.1/zm/api - Error: The requested address '/zm/api/' was not found on this server

but when i access http://127.0.01/zm/api/monitors.json - It shows {"monitors"{"Monitor":"Id":"1","Name":"Monitor-1","ServerId":"0","Type":"Ffmpeg","Function":"Monitor","Enabled":"1","LinkedMonitors":"","Triggers...

and when i go to - http://localhost/zm/api/host/getVersion.json - {"version":"1.30.4","apiversion":"1.0"}

I think it's an issue of some permission, but I have no idea where it is, someone can help me
Thanks

@pliablepixels
Copy link
Member

pliablepixels commented Oct 26, 2017

127.0.0.1/zm/api is not valid. Its a loopback address. Unless you are running this from the same server that is running ZM it will not work. Please use a proper IP when configuring zmninja. If you are running zmNinja, you are likely not running it on the same server - you are running it from a phone?

@vinizanini
Copy link
Author

I'm running zmNinja in the same server that is running ZM, but i tried to use zmNinja in another PC (with the ip adress) and it shows the same issue (api failed)

@pliablepixels
Copy link
Member

Can you please paste a screenshot of the settings (with IP)

@vinizanini
Copy link
Author

img_9291
img_9293
I'm testing in my network

@pliablepixels
Copy link
Member

if possible, you might want to log into irc.freenode.net channel #zoneminder - I am there -we can chat real time to debug and resolve.

@vinizanini
Copy link
Author

i'm there as vini

@vinizanini
Copy link
Author

@pliablepixels Thanks a lot!!

@pliablepixels
Copy link
Member

No problem, closing.

@Gorfy00
Copy link

Gorfy00 commented Jun 25, 2018

What was the solution to this?

@pliablepixels
Copy link
Member

I don't remember. @vinizanini do you recall what we did on IRC?

@vinizanini
Copy link
Author

Hi guys i think that was a problem in path to cgi-bin i was using http://serverIP/zm/cgi-bin and the correct adress is http://serverIP/cgi-bin, when @pliablepixels changed the adress it works fine, i hope it helped you.

@vinizanini
Copy link
Author

@Gorfy00 Check it in Zoneminder>Settings

@greysave
Copy link

greysave commented Sep 8, 2020

@vinizanini I can confirm that this worked for me also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants