Page 3 of 3
Re: ZM 1.30.4 API issue on ubuntu 17.10
Posted: Fri Feb 23, 2018 4:49 am
by naamah75
bbunge wrote: ↑Fri Feb 23, 2018 2:03 am
Well, looks like you are in a bind. I say this because you will likely want to upgrade to 18.04 when it is released at the end of April. If you spend a lot of time getting Zoneminder to work on 17.10 it is highly likely the upgrade to 18.04 will mess it up again. Just wanted you to know.
follow the instructions here it install Zoneminder:
https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way
I really used the instructions posted on the link above for my installation, but I fell anyhow in the problem.
I can use some of my wasted time to make some strange trying, but, as you say bbunge, I guess that the best option is to wait next OS release.
Re: ZM 1.30.4 API issue on ubuntu 17.10
Posted: Fri Feb 23, 2018 3:11 pm
by naamah75
Something is changed copying the Plugin folder... now there is a JSON response, but still also the wrong response:
Code: Select all
{"success":false,"data":{"name":"API Disabled","message":"API Disabled","url":"\/zm\/api\/host\/getVersion.json","exception":{"class":"UnauthorizedException","code":401,"message":"API Disabled"}}}
Re: ZM 1.30.4 API issue on ubuntu 17.10
Posted: Fri Feb 23, 2018 7:05 pm
by rockedge
Okay that is a beginning and a good sign! Do you have the API enabled in the ZM options? What kind of authorization for ZM do you have enabled? Try to login to the ZM web console and then in a new tab in the browser try the URL again and see what JSON returns. I think your close to getting it running. I believe the API is not enabled or doesn't have the proper login / authorization details hence the success:false.
Re: ZM 1.30.4 API issue on ubuntu 17.10
Posted: Fri Feb 23, 2018 7:26 pm
by naamah75
Y E S S S ! ! ! It works! just enabling API! Thanks a lot to all of you guys! and to your advices rockedge!
Re: ZM 1.30.4 API issue on ubuntu 17.10
Posted: Fri Feb 23, 2018 7:56 pm
by rockedge
Re: ZM 1.30.4 API issue on ubuntu 17.10
Posted: Fri May 04, 2018 10:26 pm
by p51mustang
I know this is an old thread but is there any chance for someone to please re-post a working /zoneminder/api folder? Many thanks if so!
Re: ZM 1.30.4 API issue on ubuntu 17.10
Posted: Sat May 05, 2018 1:00 am
by rockedge