I have 3 installations of BI at my facility, 2 are dedicated to camera motion detection and recording, and 1 is strictly for remote access of about 12 users.
What I am trying to do is give access to clips to the users without giving them access to the 2 machines that are doing the actual recording. What I have done is set-up an hourly copy of clips from the NEW directory on each of the recording machines to the NEW directory of the remote access machine.
I can do a manual Repair/Regenerate within BI and it updates the clips properly. What I cannot get to work is doing the rebuild outside of BI. Below is my curl command and the results given. I hope someone can give me an idea to get this working.
Thanks in advance.
C:\Program Files\Blue Iris 5>curl -v http://10.82.0.12:81/admin?db=rebuild
* Trying 10.82.0.12:81...
* Connected to 10.82.0.12 (10.82.0.12) port 81
> GET /admin?db=rebuild HTTP/1.1
> Host: 10.82.0.12:81
> User-Agent: curl/8.9.1
> Accept: */*
>
* Request completely sent off
* HTTP 1.0, assume close after body
< HTTP/1.0 302 Redirection
< Server: BlueServer/5.4.7.6
< Date: Mon, 30 Dec 2024 15:47:16 GMT
< P3P: CP="CAO COR CURa ADMa DEVa OUR IND ONL COM DEM PRE"
< Access-Control-Allow-Origin: *
< Set-Cookie: session=23a259d0369f07fc26457a0567620ec2; path=/
< Connection: close
< Location: /login.htm?page=%2Fadmin%3Fdb=rebuild
< Content-Length: 0
<
* shutting down connection #0
Command line/Curl command /admin?db=rebuild help
Re: Command line/Curl command /admin?db=rebuild help
Wouldn't you have to authenticate with the BI on machine #3 before it would accept an admin command?
It seems that it throws an exit at a "login" :
It seems that it throws an exit at a "login" :
Manual:< Connection: close
< Location: /login.htm?page=%2Fadmin%3Fdb=rebuild
Authentication
You may add &user=username&pw=password to any HTTP request, but only if use secure
session keys and login page is disabled on the Advanced page in Settings/Web server. It’s
also possible to exempt or elevate connections from specific IP addresses.
Re: Command line/Curl command /admin?db=rebuild help
This is command is being run on the same machine as the BI installation I am trying to update. I was assuming the /admin is using the local_console admin account. The local_console account currently has no password.
Thanks for the tips, you have given me more things to look at in the web server/advanced pages.
Thanks for the tips, you have given me more things to look at in the web server/advanced pages.