Project

General

Profile

Actions

None #8766

open

APK installation from iot-server v 3.2 is failing with Unexpected response code 404

Added by Entgra Admin almost 2 years ago.

Status:
New
Priority:
None
Assignee:
-
Category:
-
Start date:
10/11/2020
Due date:
% Done:

0%

Estimated time:
0:00 h
Device Type:
Component:
Type:

Description

From Gitlab
------------------------
gitlabId --> 767 https://gitlab.com/entgra/product-iots/-/issues/767
labels -->
assignees -->
created_at --> 2020-11-10 13:37:00 IST +0530
updated_at --> 2020-11-10 13:37:00 IST +0530
------------------------

  1. Description
  1. Suggested Labels:

After log-in as alex/alexuser, i am trying to install a test app to the enrolled device but i am getting following error logs.

2020-11-06 13:52:41.933 12236-12881/org.wso2.iot.agent D/APIController: Result :[{"code":"INSTALL_APPLICATION","type":"PROFILE","id":31,"status":"PENDING","createdTimeStamp":"2020-11-06 13:52:12.72","isEnabled":true,"payLoad":"{\"url\":\"http://192.168.223.242:9763/store/api/mobileapp/getfile/8806b2b2dbaa168b.apk\",\"schedule\":\"\",\"packageName\":\"com.wso2.wso2con.mobile\",\"type\":\"ENTERPRISE\"}"}]
2020-11-06 13:52:41.937 12236-12881/org.wso2.iot.agent D/MessageProcessor: Pending Operations List: [{"code":"INSTALL_APPLICATION","type":"PROFILE","id":31,"status":"PENDING","createdTimeStamp":"2020-11-06 13:52:12.72","isEnabled":true,"payLoad":"{\"url\":\"http://192.168.223.242:9763/store/api/mobileapp/getfile/8806b2b2dbaa168b.apk\",\"schedule\":\"\",\"packageName\":\"com.wso2.wso2con.mobile\",\"type\":\"ENTERPRISE\"}"}]
2020-11-06 13:53:37.557 12236-12236/org.wso2.iot.agent D/APIController: [{"code":"INSTALL_APPLICATION","type":"PROFILE","id":31,"status":"PENDING","createdTimeStamp":"2020-11-06 13:52:12.72","isEnabled":true,"payLoad":"{\"url\":\"http:\/\/192.168.223.242:9763\/store\/api\/mobileapp\/getfile\/8806b2b2dbaa168b.apk\",\"schedule\":\"\",\"packageName\":\"com.wso2.wso2con.mobile\",\"type\":\"ENTERPRISE\"}"}]
2020-11-06 13:53:46.901 12236-12882/org.wso2.iot.agent D/Volley: [8656] BasicNetwork.logSlowRequests: HTTP response for request=<[ ] http://192.168.223.242:8280/store/api/mobileapp/getfile/8806b2b2dbaa168b.apk 0x42c4de96 NORMAL 49> [lifetime=9448], [size=272], [rc=404], [retryCount=0]

2020-11-06 13:53:46.908 12236-12882/org.wso2.iot.agent E/Volley: [8656] BasicNetwork.performRequest: Unexpected response code 404 for http://192.168.223.242:8280/store/api/mobileapp/getfile/8806b2b2dbaa168b.apk

2020-11-06 13:54:23.697 12236-12872/org.wso2.iot.agent D/MessageProcessor: Reply Payload:
[ {
"code":"INSTALL_APPLICATION",
"complianceType":null,
"createdTimeStamp":"2020-11-06 13:52:12.72",
"enabled":false,
"id":31,
"operationResponse":null,
"payLoad":{
"url":"http://192.168.223.242:9763/store/api/mobileapp/getfile/8806b2b2dbaa168b.apk",
"schedule":"",
"packageName":"com.wso2.wso2con.mobile",
"type":"ENTERPRISE"
},
"receivedTimeStamp":null,
"status":"COMPLETED",
"type":"PROFILE"
}, {
"code":"INSTALL_APPLICATION",
"complianceType":null,
"createdTimeStamp":null,
"enabled":false,
"id":31,
"operationResponse":"com.android.volley.ServerError",
"payLoad":null,
"receivedTimeStamp":null,
"status":"ERROR",
"type":null
}
]

  1. Suggested Assignees:

  1. Affected Product Version:
    iot-server 3.2
  1. OS, DB, other environment details and versions:
    Testing with Android Emulator from Android studio with OS version 11
  1. Steps to reproduce:
    After log-in as alex/alexuser, i am trying to install a test app to the enrolled device but i am getting following error.
  1. Related Issues:

No data to display

Actions

Also available in: Atom PDF