ZM 1.30.4 API issue on ubuntu 17.10

Forum for questions and support relating to the 1.30.x releases only.
naamah75
Posts: 5
Joined: Wed Feb 21, 2018 8:29 pm

Re: ZM 1.30.4 API issue on ubuntu 17.10

Post 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.
naamah75
Posts: 5
Joined: Wed Feb 21, 2018 8:29 pm

Re: ZM 1.30.4 API issue on ubuntu 17.10

Post 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"}}}
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: ZM 1.30.4 API issue on ubuntu 17.10

Post 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.
Last edited by rockedge on Fri Feb 23, 2018 8:02 pm, edited 1 time in total.
naamah75
Posts: 5
Joined: Wed Feb 21, 2018 8:29 pm

Re: ZM 1.30.4 API issue on ubuntu 17.10

Post 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!
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: ZM 1.30.4 API issue on ubuntu 17.10

Post by rockedge »

:D
p51mustang
Posts: 5
Joined: Fri May 04, 2018 10:20 pm

Re: ZM 1.30.4 API issue on ubuntu 17.10

Post 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!
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: ZM 1.30.4 API issue on ubuntu 17.10

Post by rockedge »

Locked