I have settings from an instance of Gemini that I would like to load them into another instance. I downloaded the json file from the first instance but it does not load into the second instance. It does not appear in the dropdown list of settings.
I think perhaps the confusion is that if you are using the upload new profile button it over-writes the settings of the current profile you are using (rather than adding a new profile with the name you uploaded). At that point you can either push the settings (which will over-write the current profile) or save as a new profile which will not require a push.
These instructions are based on release 2.3.
Thanks Matt. Unfortunately the new profile is not saving. I even get an error message: “Failed to create new profile”.
What version are you on?
You could also try doing it though the swagger interface and might get a better error message. https://your_ip/perception/api/v1/swagger/ui#/Settings/updateProfile
If that still isn’t clear can you download the logs to see why the back-end is reporting that you failed to create the profile?
https://your_ip/logs/
I’m on 2.3.2. When I try to upload the profile in Swagger I get this error:
"message": "Unable to set profile: %2Fhome%2Fapache2%2FDownloads%2FTest_no_bg_filter_People_2024-09-23_14_23_55.json, not found"
But the file is there… does it need to be placed in a certain directory?
The message is coming from the backend. Somehow it is looking for an apache directory but we don’t even use apache.
Is the profile name you are giving: Test_no_bg_filter_People_2024-09-23_14_23_55 or are you giving a name with apache in it? I tried with a bunch of weird names and it still worked on other 2.3.2 installs.
Could be a permission issue, or maybe you are uploading from an incompatible old profile which should give you a better error message.
Can you check the recent logs as well, there should be an error message there too.
the machine’s name is apache2.
Here are the logs:
2024-09-24T00:42:47+00:00]: 172.100.0.1 - - [24/Sep/2024:07:42:47 +0000] “POST /detect-gateway/api/v1/auth/refresh HTTP/2.0” 200 37 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T01:42:15+00:00]: 172.100.0.1 - - [24/Sep/2024:08:42:15 +0000] “POST /detect-gateway/api/v1/auth/refresh HTTP/2.0” 200 37 “https://apache2-nuc9i9/?state=jemJww9V3KEyoWzEDswarA&session_state=f766b691-718f-438d-8408-785e53517f7c&code=654370dc-7c1b-4a86-ad36-5ed2ccc393cf.f766b691-718f-438d-8408-785e53517f7c.434cc6f3-93d7-4149-b1a0-c3999a91aa9b” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T02:41:15+00:00]: 172.100.0.1 - - [24/Sep/2024:09:41:15 +0000] “POST /detect-gateway/api/v1/auth/refresh HTTP/2.0” 200 37 “https://apache2-nuc9i9/?state=jemJww9V3KEyoWzEDswarA&session_state=f766b691-718f-438d-8408-785e53517f7c&code=654370dc-7c1b-4a86-ad36-5ed2ccc393cf.f766b691-718f-438d-8408-785e53517f7c.434cc6f3-93d7-4149-b1a0-c3999a91aa9b” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T03:40:15+00:00]: 172.100.0.1 - - [24/Sep/2024:10:40:15 +0000] “POST /detect-gateway/api/v1/auth/refresh HTTP/2.0” 200 37 “https://apache2-nuc9i9/?state=jemJww9V3KEyoWzEDswarA&session_state=f766b691-718f-438d-8408-785e53517f7c&code=654370dc-7c1b-4a86-ad36-5ed2ccc393cf.f766b691-718f-438d-8408-785e53517f7c.434cc6f3-93d7-4149-b1a0-c3999a91aa9b” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T04:39:15+00:00]: 172.100.0.1 - - [24/Sep/2024:11:39:15 +0000] “POST /detect-gateway/api/v1/auth/refresh HTTP/2.0” 200 37 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T05:38:15+00:00]: 172.100.0.1 - - [24/Sep/2024:12:38:15 +0000] “POST /detect-gateway/api/v1/auth/refresh HTTP/2.0” 200 37 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T06:37:15+00:00]: 172.100.0.1 - - [24/Sep/2024:13:37:15 +0000] “POST /detect-gateway/api/v1/auth/refresh HTTP/2.0” 200 37 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:29:00+00:00]: 172.100.0.1 - - [24/Sep/2024:14:29:00 +0000] “PUT /perception/api/v1/profile/people_noBG_Test_924 HTTP/2.0” 400 114 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:29:06+00:00]: 172.100.0.1 - - [24/Sep/2024:14:29:06 +0000] “PUT /perception/api/v1/profile/people_noBG_Test_924 HTTP/2.0” 400 114 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:29:10+00:00]: 172.100.0.1 - - [24/Sep/2024:14:29:10 +0000] “PUT /perception/api/v1/profile/people_noBG_Test_924 HTTP/2.0” 400 114 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:29:24+00:00]: 172.100.0.1 - - [24/Sep/2024:14:29:24 +0000] “PUT /perception/api/v1/profile/people_noBG_Test_924 HTTP/2.0” 400 114 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:29:25+00:00]: 172.100.0.1 - - [24/Sep/2024:14:29:25 +0000] “PUT /perception/api/v1/profile/people_noBG_Test_924 HTTP/2.0” 400 114 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:29:26+00:00]: 172.100.0.1 - - [24/Sep/2024:14:29:26 +0000] “PUT /perception/api/v1/profile/people_noBG_Test_924 HTTP/2.0” 400 114 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:29:26+00:00]: 172.100.0.1 - - [24/Sep/2024:14:29:26 +0000] “PUT /perception/api/v1/profile/people_noBG_Test_924 HTTP/2.0” 400 114 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:29:26+00:00]: 172.100.0.1 - - [24/Sep/2024:14:29:26 +0000] “PUT /perception/api/v1/profile/people_noBG_Test_924 HTTP/2.0” 400 114 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:29:26+00:00]: 172.100.0.1 - - [24/Sep/2024:14:29:26 +0000] “PUT /perception/api/v1/profile/people_noBG_Test_924 HTTP/2.0” 400 114 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:29:27+00:00]: 172.100.0.1 - - [24/Sep/2024:14:29:27 +0000] “PUT /perception/api/v1/profile/people_noBG_Test_924 HTTP/2.0” 400 114 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:29:33+00:00]: 172.100.0.1 - - [24/Sep/2024:14:29:33 +0000] “PUT /perception/api/v1/profile/people_no_background_filter_settings HTTP/2.0” 400 114 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:30:07+00:00]: 172.100.0.1 - - [24/Sep/2024:14:30:07 +0000] “PUT /perception/api/v1/profile/people_no_background_filter_settings HTTP/2.0” 400 114 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:30:20+00:00]: 172.100.0.1 - - [24/Sep/2024:14:30:20 +0000] “PUT /perception/api/v1/recording/play HTTP/2.0” 200 16 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:32:01+00:00]: 172.100.0.1 - - [24/Sep/2024:14:32:01 +0000] “PUT /perception/api/v1/profile/NoBG_Test HTTP/2.0” 400 114 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:32:02+00:00]: 172.100.0.1 - - [24/Sep/2024:14:32:02 +0000] “PUT /perception/api/v1/profile/NoBG_Test HTTP/2.0” 400 114 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:32:03+00:00]: 172.100.0.1 - - [24/Sep/2024:14:32:03 +0000] “PUT /perception/api/v1/profile/NoBG_Test HTTP/2.0” 400 114 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:32:13+00:00]: 172.100.0.1 - - [24/Sep/2024:14:32:13 +0000] “PUT /perception/api/v1/profile/NoBG_Test HTTP/2.0” 400 114 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:33:07+00:00]: 172.100.0.1 - - [24/Sep/2024:14:33:07 +0000] “PUT /perception/api/v1/profile/NoBG_Test HTTP/2.0” 400 114 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T07:35:22+00:00]: 2024/09/24 14:35:22 [error] 43#43: *46641 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.100.0.1, server: localhost, request: “GET /perception/api/v1/telemetry HTTP/2.0”, upstream: “http://172.100.0.4:8000/perception/api/v1/telemetry”, host: “apache2-nuc9i9”, referrer: “https://apache2-nuc9i9/”
[2024-09-24T07:35:22+00:00]: 2024/09/24 14:35:22 [error] 43#43: *46641 connect() failed (111: Connection refused) while connecting to upstream, client: 172.100.0.1, server: localhost, request: “GET /perception/api/v1/sensor HTTP/2.0”, upstream: “http://172.100.0.4:8000/perception/api/v1/sensor”, host: “apache2-nuc9i9”, referrer: “https://apache2-nuc9i9/”
[2024-09-24T07:35:22+00:00]: 2024/09/24 14:35:22 [error] 43#43: *46641 connect() failed (111: Connection refused) while connecting to upstream, client: 172.100.0.1, server: localhost, request: “GET /perception/api/v1/extrinsics HTTP/2.0”, upstream: “http://172.100.0.4:8000/perception/api/v1/extrinsics”, host: “apache2-nuc9i9”, referrer: “https://apache2-nuc9i9/”
[2024-09-24T07:35:22+00:00]: 2024/09/24 14:35:22 [error] 43#43: *46641 connect() failed (111: Connection refused) while connecting to upstream, client: 172.100.0.1, server: localhost, request: “GET /perception/api/v1/node HTTP/2.0”, upstream: “http://172.100.0.4:8000/perception/api/v1/node”, host: “apache2-nuc9i9”, referrer: “https://apache2-nuc9i9/”
[2024-09-24T07:35:22+00:00]: 2024/09/24 14:35:22 [error] 43#43: *46641 connect() failed (111: Connection refused) while connecting to upstream, client: 172.100.0.1, server: localhost, request: “GET /perception/api/v1/point_zones HTTP/2.0”, upstream: “http://172.100.0.4:8000/perception/api/v1/point_zones”, host: “apache2-nuc9i9”, referrer: “https://apache2-nuc9i9/”
[2024-09-24T07:36:15+00:00]: 172.100.0.1 - - [24/Sep/2024:14:36:15 +0000] “POST /detect-gateway/api/v1/auth/refresh HTTP/2.0” 200 37 “https://apache2-nuc9i9/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T08:08:55+00:00]: 172.100.0.1 - - [24/Sep/2024:15:08:55 +0000] “PUT /perception/api/v1/set_profile/%2Fhome%2Fapache2%2FDownloads%2FTest_no_bg_filter-People_2024-09-23_14_23_55.json HTTP/2.0” 400 129 “https://apache2-nuc9i9/perception/api/v1/swagger/ui” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
[2024-09-24T08:10:40+00:00]: 172.100.0.1 - - [24/Sep/2024:15:10:40 +0000] “PUT /perception/api/v1/set_profile/%2Fhome%2Fapache2%2FDownloads%2FTest_no_bg_filter_People_2024-09-23_14_23_55.json HTTP/2.0” 400 129 “https://apache2-nuc9i9/perception/api/v1/swagger/ui” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”
Those look like the web-gui logs. Can you grab the perception logs?
Also, can you try downloading one of your current profiles and uploading it with a new name. I wonder if the format of the profile is old and it is rejecting it for some reason, with no proper error message.
You are using the wrong endpoint in swagger. You need to use the upload profile endpoint not the set profile one:
That is not the same endpoint.
Your picture is “set_profile”, the one I am suggesting is “profile”.
And in the endpoint I am suggesting you select the file and choose a profile name.
My Bad… the originating instance was 2.3.2 and target was 2.3.3.
Thanks for the assist.