Ipk not installing in Emulator

I have installed the latest emulator and SDK (CLI). I was trying to load my basic web app IPK into the emulator version 6.0. However, it is showing “installation failed” when attempting to install in the emulator. Additionally, it prompts me to check the port and IP address while installing from VS Code, which are the same. How can I solve this issue?

You can use App Manager. Please refer to Emulator Developer Guide. Thank you.

install
This is the message what i get while installing from App Manager

Can you share the results of the ares-setup-device -F -v and ares-install -d <your_emulator_name> -l -v commands? Thank you.

This is the out what i get while running the first command ares-setup-device -F -v

PS C:\Users\aswin\OneDrive\Desktop\webOs\mini> ares-setup-device -F -v
ares-setup-device verb argv { listfull: true,
ares-setup-device verb argv level: ‘verbose’,
ares-setup-device verb argv argv:
ares-setup-device verb argv { remain: ,
ares-setup-device verb argv cooked: [ ‘–listfull’, ‘–level’, ‘verbose’ ],
ares-setup-device verb argv original: [ ‘-F’, ‘-v’ ] } }
ares-setup-device verb Resolver#load()
ares-setup-device verb Resolver#_loadOne() Regist privateKey : need to set a SSH private key in C:\Users\aswin.ssh for’emulator’
ares-setup-device verb Resolver#_loadOne() Unable to find SSH private key named ‘ssh’ from 'C:\Users\aswin.ssh for ‘tv’
ares-setup-device verb Resolver#list()
[
{
“profile”: “tv”,
“name”: “emulator”,
“default”: false,
“deviceinfo”: {
“ip”: “192.168.56.1”,
“port”: “9922”,
“user”: “emulator”
},
“connection”: [
“ssh”
],
“details”: {
“platform”: “starfish”,
“password”: “”,
“description”: “LG webOS TV Emulator”
}
},
{
“profile”: “tv”,
“name”: “tc”,
“default”: false,
“deviceinfo”: {
“ip”: “192.168.10.98”,
“port”: “9922”,
“user”: “prisoner”
},
“connection”: [
“ssh”
],
“details”: {
“platform”: “starfish”,
“password”: “asdf”,
“description”: “new device”
}
},
{
“profile”: “tv”,
“name”: “tv”,
“default”: false,
“deviceinfo”: {
“ip”: “192.168.10.98”,
“port”: “9922”,
“user”: “prisoner”
},
“connection”: [
“ssh”
],
“details”: {
“platform”: “starfish”,
“privatekey”: “ssh”,
“passphrase”: “AC9723”,
“description”: “tv”
}
},
{
“profile”: “tv”,
“name”: “tb”,
“default”: true,
“deviceinfo”: {
“ip”: “192.168.10.98”,
“port”: “9922”,
“user”: “prisoner”
},
“connection”: [
“ssh”
],
“details”: {
“platform”: “starfish”,
“privatekey”: “tb_webos”,
“passphrase”: “AC9723”,
“description”: “new device”
}
}
]
ares-setup-device info finish(): [ undefined ]

This is the result for second command ares-install -d <your_emulator_name> -l -v

PS C:\Users\aswin\OneDrive\Desktop\webOs\mini> ares-install -d emulator -l -v
ares-install verb argv { device: ‘emulator’,
ares-install verb argv list: true,
ares-install verb argv level: ‘verbose’,
ares-install verb argv argv:
ares-install verb argv { remain: ,
ares-install verb argv cooked: [ ‘–device’, ‘emulator’, ‘–list’, ‘–level’, ‘verbose’ ],
ares-install verb argv original: [ ‘-d’, ‘emulator’, ‘-l’, ‘-v’ ] } }
ares-install info novacom.Session() opening session to ‘emulator’
ares-install verb Resolver#load()
ares-install verb Resolver#_loadOne() Regist privateKey : need to set a SSH private key in C:\Users\aswin.ssh for’emulator’
ares-install verb Resolver#_loadOne() Unable to find SSH private key named ‘ssh’ from 'C:\Users\aswin.ssh for ‘tv’
ares-install verb Resolver#getDeviceBy() key: name , value: emulator
ares-install ERR! [Tips]: Connection timed out. Please check the device IP address or the port number
ares-install verb Error
at new b (C:\Users\aswin\OneDrive\Desktop\webOS_TV_SDK\CLI\lib\base\error-handler.js:7:92)
at Object.e.getErrMsg (C:\Users\aswin\OneDrive\Desktop\webOS_TV_SDK\CLI\lib\base\error-handler.js:21:268)
at Socket. (C:\Users\aswin\OneDrive\Desktop\webOS_TV_SDK\CLI\lib\base\novacom.js:16:481)
at emitNone (events.js:106:13)
at Socket.emit (events.js:208:7)
at Socket._onTimeout (net.js:422:8)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)

Please check the parameters of the ares-setup-device command carefully. For the emulator, the username must be developer, and the privatekey must be webos_emul. And the password and passphrase are not required. Thank you.

Sorry, I have made all the changes what you have said but it is giving this error while installing
PS C:\Users\aswin\OneDrive\Desktop\webOs\mini> ares-install com.domain.app_0.0.1_all.ipk -d emulator
ares-install ERR! [Tips]: Connection timed out. Please check the device IP address or the port number

Please modify the emulator as follows:
image
If the problem persists, you can reset the list using the ares-setup-device -R command. This command will remove all current target devices but will add the emulator as default. Thank you.

I removed all the devices using the ares-setup-device -R commad. Still it is shoeing the same error. I have also tried modifying the emulator as in the image given above. It is also giving the same error
PS C:\Users\aswin\OneDrive\Desktop\webOs\mini> ares-install com.domain.app_0.0.1_all.ipk -d emulator
ares-install ERR! [Tips]: Connection timed out. Please check the device IP address or the port number

Can you share the results of the ares-setup-device -F -v and ares-install -d emulator -l -v commands again? Thank you.

This is the result that i get whle running these commands

PS C:\Users\aswin\OneDrive\Desktop\webOs\mini> ares-setup-device -F -v
ares-setup-device verb argv { listfull: true,
ares-setup-device verb argv level: ‘verbose’,
ares-setup-device verb argv argv:
ares-setup-device verb argv { remain: ,
ares-setup-device verb argv cooked: [ ‘–listfull’, ‘–level’, ‘verbose’ ],
ares-setup-device verb argv original: [ ‘-F’, ‘-v’ ] } }
ares-setup-device verb Resolver#load()
ares-setup-device verb Resolver#list()
[
{
“profile”: “tv”,
“name”: “emulator”,
“default”: true,
“deviceinfo”: {
“ip”: “127.0.0.1”,
“port”: “6622”,
“user”: “developer”
},
“connection”: [
“ssh”
],
“details”: {
“platform”: “starfish”,
“privatekey”: “webos_emul”,
“description”: “LG webOS TV Emulator”
}
}
]
ares-setup-device info finish(): [ undefined ]
PS C:\Users\aswin\OneDrive\Desktop\webOs\mini> ares-install -d emulator -l -v
ares-install verb argv { device: ‘emulator’,
ares-install verb argv list: true,
ares-install verb argv level: ‘verbose’,
ares-install verb argv argv:
ares-install verb argv { remain: ,
ares-install verb argv cooked: [ ‘–device’, ‘emulator’, ‘–list’, ‘–level’, ‘verbose’ ],
ares-install verb argv original: [ ‘-d’, ‘emulator’, ‘-l’, ‘-v’ ] } }
ares-install info novacom.Session() opening session to ‘emulator’
ares-install verb Resolver#load()
ares-install verb Resolver#getDeviceBy() key: name , value: emulator
ares-install ERR! [Tips]: Connection timed out. Please check the device IP address or the port number
ares-install verb Error
at new b (C:\Users\aswin\OneDrive\Desktop\webOS_TV_SDK\CLI\lib\base\error-handler.js:7:92)
at Object.e.getErrMsg (C:\Users\aswin\OneDrive\Desktop\webOS_TV_SDK\CLI\lib\base\error-handler.js:21:268)
at Socket. (C:\Users\aswin\OneDrive\Desktop\webOS_TV_SDK\CLI\lib\base\novacom.js:16:481)
at emitNone (events.js:106:13)
at Socket.emit (events.js:208:7)
at Socket._onTimeout (net.js:422:8)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)

Please share the result of the ares -V command as well. And please run the emulator first before installing the app. After running the emulator, please enter netstat -ano | findstr 6622 command from the command prompt in Windows and share the result. Thank you.

After keeping the Emulator in On state and installing the ipk this is now installing but emulator is not showing anything. The screen of emulator is shared here.

This is the result what i get after running the command
PS C:\Users\aswin\OneDrive\Desktop\webOs\mini> ares -V
webOS TV CLI Version: 1.12.4-j27
PS C:\Users\aswin\OneDrive\Desktop\webOs\mini> netstat -ano

Active Connections

Proto Local Address Foreign Address State PID
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 1352
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:5040 0.0.0.0:0 LISTENING 10800
TCP 0.0.0.0:5357 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:6622 0.0.0.0:0 LISTENING 30876
TCP 0.0.0.0:7680 0.0.0.0:0 LISTENING 16044
TCP 0.0.0.0:9998 0.0.0.0:0 LISTENING 30876
TCP 0.0.0.0:19001 0.0.0.0:0 LISTENING 30876
TCP 0.0.0.0:19002 0.0.0.0:0 LISTENING 20548
TCP 0.0.0.0:49664 0.0.0.0:0 LISTENING 1084
TCP 0.0.0.0:49665 0.0.0.0:0 LISTENING 712
TCP 0.0.0.0:49666 0.0.0.0:0 LISTENING 2796
TCP 0.0.0.0:49667 0.0.0.0:0 LISTENING 3316
TCP 0.0.0.0:49668 0.0.0.0:0 LISTENING 4740
TCP 0.0.0.0:49670 0.0.0.0:0 LISTENING 1048
TCP 127.0.0.1:49742 127.0.0.1:49743 ESTABLISHED 1280
TCP 127.0.0.1:49743 127.0.0.1:49742 ESTABLISHED 1280
TCP 127.0.0.1:49812 0.0.0.0:0 LISTENING 11652
TCP 127.0.0.1:49812 127.0.0.1:50769 ESTABLISHED 11652
TCP 127.0.0.1:50769 127.0.0.1:49812 ESTABLISHED 10780
TCP 127.0.0.1:54400 0.0.0.0:0 LISTENING 31232
TCP 127.0.0.1:61078 127.0.0.1:61079 ESTABLISHED 3260
TCP 127.0.0.1:61079 127.0.0.1:61078 ESTABLISHED 3260
TCP 192.168.1.3:139 0.0.0.0:0 LISTENING 4
TCP 192.168.1.3:49462 20.198.119.143:443 ESTABLISHED 5272
TCP 192.168.1.3:50584 52.55.65.158:443 ESTABLISHED 3872
TCP 192.168.1.3:50778 172.217.194.188:5228 ESTABLISHED 12140
TCP 192.168.1.3:50930 52.163.231.110:443 ESTABLISHED 29128
TCP 192.168.1.3:51137 23.44.10.32:443 CLOSE_WAIT 31576
TCP 192.168.1.3:51138 23.44.10.32:443 CLOSE_WAIT 31576
TCP 192.168.1.3:51139 23.44.10.18:443 CLOSE_WAIT 31576
TCP 192.168.1.3:51140 23.44.10.18:443 CLOSE_WAIT 31576
TCP 192.168.1.3:51141 23.44.10.18:443 CLOSE_WAIT 31576
TCP 192.168.1.3:51142 23.44.10.18:443 CLOSE_WAIT 31576
TCP 192.168.1.3:51143 23.44.10.18:443 CLOSE_WAIT 31576
TCP 192.168.1.3:51879 20.212.88.117:443 ESTABLISHED 33164
TCP 192.168.1.3:52482 13.126.70.76:443 ESTABLISHED 5188
TCP 192.168.1.3:53221 131.253.33.203:80 TIME_WAIT 0
TCP 192.168.1.3:53225 52.123.173.15:443 ESTABLISHED 29128
TCP 192.168.1.3:53226 20.42.65.84:443 ESTABLISHED 29128
TCP 192.168.1.3:53230 20.42.65.92:443 TIME_WAIT 0
TCP 192.168.1.3:53231 142.250.195.142:443 TIME_WAIT 0
TCP 192.168.1.3:53232 20.42.65.92:443 TIME_WAIT 0
TCP 192.168.1.3:53233 20.42.73.24:443 TIME_WAIT 0
TCP 192.168.1.3:53234 192.168.1.1:53 TIME_WAIT 0
TCP 192.168.1.3:53235 192.168.1.1:53 TIME_WAIT 0
TCP 192.168.1.3:53236 192.168.1.1:53 TIME_WAIT 0
TCP 192.168.1.3:53237 192.168.1.1:53 TIME_WAIT 0
TCP 192.168.1.3:53238 142.250.195.49:443 TIME_WAIT 0
TCP 192.168.56.1:139 0.0.0.0:0 LISTENING 4
TCP [::]:135 [::]:0 LISTENING 1352
TCP [::]:445 [::]:0 LISTENING 4
TCP [::]:5357 [::]:0 LISTENING 4
TCP [::]:7680 [::]:0 LISTENING 16044
TCP [::]:19002 [::]:0 LISTENING 20548
TCP [::]:49664 [::]:0 LISTENING 1084
TCP [::]:49665 [::]:0 LISTENING 712
TCP [::]:49666 [::]:0 LISTENING 2796
TCP [::]:49667 [::]:0 LISTENING 3316
TCP [::]:49668 [::]:0 LISTENING 4740
TCP [::]:49670 [::]:0 LISTENING 1048
TCP [::1]:49669 [::]:0 LISTENING 4976
UDP 0.0.0.0:123 : 10864
UDP 0.0.0.0:3702 : 8992
UDP 0.0.0.0:3702 : 8992
UDP 0.0.0.0:5050 : 10800
UDP 0.0.0.0:5353 : 33196
UDP 0.0.0.0:5353 : 33196
UDP 0.0.0.0:5353 : 12140
UDP 0.0.0.0:5353 : 4080
UDP 0.0.0.0:5353 : 12140
UDP 0.0.0.0:5353 : 12140
UDP 0.0.0.0:5353 : 4080
UDP 0.0.0.0:5353 : 2192
UDP 0.0.0.0:5353 : 12140
UDP 0.0.0.0:5353 : 33196
UDP 0.0.0.0:5353 : 33196
UDP 0.0.0.0:5353 : 4080
UDP 0.0.0.0:5353 : 4080
UDP 0.0.0.0:5355 : 2192
UDP 0.0.0.0:51458 : 29128
UDP 0.0.0.0:57582 : 30876
UDP 0.0.0.0:57583 : 30876
UDP 0.0.0.0:57584 : 30876
UDP 0.0.0.0:57585 : 30876
UDP 0.0.0.0:61310 : 2192
UDP 0.0.0.0:61311 : 30876
UDP 0.0.0.0:61312 : 30876
UDP 0.0.0.0:62073 : 8992
UDP 127.0.0.1:1900 : 7244
UDP 127.0.0.1:10010 : 11652
UDP 127.0.0.1:49664 127.0.0.1:49664 4064
UDP 127.0.0.1:55282 : 7244
UDP 127.0.0.1:60000 : 9324
UDP 192.168.1.3:137 : 4
UDP 192.168.1.3:138 : 4
UDP 192.168.1.3:1900 : 7244
UDP 192.168.1.3:55281 : 7244
UDP 192.168.56.1:137 : 4
UDP 192.168.56.1:138 : 4
UDP 192.168.56.1:1900 : 7244
UDP 192.168.56.1:55280 : 7244
UDP [::]:123 : 10864
UDP [::]:3702 : 8992
UDP [::]:3702 : 8992
UDP [::]:5353 : 4080
UDP [::]:5353 : 33196
UDP [::]:5353 : 4080
UDP [::]:5353 : 12140
UDP [::]:5353 : 33196
UDP [::]:5353 : 12140
UDP [::]:5353 : 2192
UDP [::]:5355 : 2192
UDP [::]:51458 : 29128
UDP [::]:61310 : 2192
UDP [::]:62074 : 8992
UDP [::1]:1900 : 7244
UDP [::1]:55279 : 7244
UDP [fe80::1b3c:b437:a45d:9cd%20]:1900 : 7244
UDP [fe80::1b3c:b437:a45d:9cd%20]:55277 : 7244
UDP [fe80::bd0b:d2c7:73fc:b89%5]:1900 : 7244
UDP [fe80::bd0b:d2c7:73fc:b89%5]:55278 : 7244

Please check again with this sample app. Thank you.

Thankyou. Now the emulator and the sample app is working.
I tried a new IPK which is build of angular it is not working only a blank black sceen appears

new app *{margin:0;padding:0;box-sizing:border-box;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;scrollbar-gutter:stable}::-webkit-scrollbar{display:none}body{height:100vh;background-color:#000}

This is the index .html file and this is the screen ![Screenshot 2024-03-26 143346|690x425](upload://y4mfOtxj041jPycs4BmhbFDQHi8.png)

Please make sure your app has an appinfo.json file and the mandatory properties are set correctly. You can generate a template using the ares-generate command. Please generate a basic web app template, move your app resources to the template, and try again. You can also refer to the package structure of the sample app above. Thank you.

I followed the same step but the javascript file is not being loaded.
I did this in angular and then created a web app template and loaded into it.
Still it is not working.
The ipk is being installed and opened only a black screen appears


webOS TV uses different web engines depending on the webOS version. Please check compatibility with the web engine. Thank you.

Versions are same. Are there any additional steps to follow when loading an Angular project after building it, copying the JavaScript (JS) files, CSS files, and assets, and adding them to the index.html?