You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem occurs when I go through the web interface and am presented with the "Select update" dialog. The campaigner returns a 500 error. The error dialog then says:
No updates found. Create some updates first.
This part is identical to advancedtelematic/campaigner#133. The workaround is to use the REST APIs to create a campaign. However, this just "moves" the problem to another location. Now, when the client requests the list of available campaigns, it gets:
It looks like the campaigns are not properly associated with the device group, yet my REST API request to create the campaign was successful and appears to match what is expected. The body of my campaign creation looks like:
I decided to look into this again to see what the issue could be. After creating a campaign, etc., I issued the following command:
curl -s http://localhost:8200/api/v1/namespaces/default/services/campaigner/proxy/api/v2/device/b64ecec0-d493-47b8-8663-8e6b36db60e4/campaigns
and received the following output:
{"error_id":"25b92db0-80fb-49c9-b789-c543662798d7","description":"Tcp command [Connect(localhost:8085,None,List(),Some(10 seconds),true)] failed because of java.net.ConnectException: Connection refused"}
I looked at the campaigner code to see what connects to port 8085 on localhost.... userProfile. We do not have user profiles in ota-community-edition. Why is this code still present in the open source version of campaigner?
In the campaigner source (class DeviceCampaigns), the UserProfileHttpClient::externalResolverUri issues a GET /api/v1/namespace_settings/default request to retrieve a URI of some type. Would a fix be to remove this completely and just execute the code within the "case Some(x) =>" block?
The problem occurs when I go through the web interface and am presented with the "Select update" dialog. The campaigner returns a 500 error. The error dialog then says:
No updates found. Create some updates first.
This part is identical to advancedtelematic/campaigner#133. The workaround is to use the REST APIs to create a campaign. However, this just "moves" the problem to another location. Now, when the client requests the list of available campaigns, it gets:
This is very different from what we had received from the OTA Connect commercial solution as shown below:
It looks like the campaigns are not properly associated with the device group, yet my REST API request to create the campaign was successful and appears to match what is expected. The body of my campaign creation looks like:
Is there something missing?
The text was updated successfully, but these errors were encountered: