webosose / build-webos

webOS OSE build layer
682 stars 126 forks source link

ares-install stuck indefinitely #27

Closed Aniketh01 closed 3 months ago

Aniketh01 commented 2 years ago

I'm not sure if this is the right platform for such issues, anyhow:

I have been trying to install apps to webOS OSE via ares-install and it doesn't seem to complete the process and is stuck at processing. Below you can find the verbose log of ares-install

ares-install --device target com.limelight.webos_1.4.0_arm.ipk -v
ares-install verb argv {
ares-install verb argv   device: 'target',
ares-install verb argv   level: 'verbose',
ares-install verb argv   argv: {
ares-install verb argv     remain: [ 'com.limelight.webos_1.4.0_arm.ipk' ],
ares-install verb argv     cooked: [
ares-install verb argv       '--device',
ares-install verb argv       'target',
ares-install verb argv       'com.limelight.webos_1.4.0_arm.ipk',
ares-install verb argv       '--level',
ares-install verb argv       'verbose'
ares-install verb argv     ],
ares-install verb argv     original: [ '--device', 'target', 'com.limelight.webos_1.4.0_arm.ipk', '-v' ]
ares-install verb argv   }
ares-install verb argv }
ares-install info install() pkgPath: com.limelight.webos_1.4.0_arm.ipk
ares-install info install#install() installing com.limelight.webos_1.4.0_arm.ipk
ares-install info install#makeSession() need to make new session
ares-install info novacom#Session() opening session to 'target'
ares-install info novacom#Resolver()#load()
[Info] Set target device : target
ares-install info novacom#Resolver()#getDeviceBy() key: name , value: target
ares-install verb novacom#Session()#begin() target: {
ares-install verb novacom#Session()#begin()   name: 'target',
ares-install verb novacom#Session()#begin()   type: undefined,
ares-install verb novacom#Session()#begin()   privateKeyName: undefined,
ares-install verb novacom#Session()#begin()   passphase: undefined,
ares-install verb novacom#Session()#begin()   description: 'new device description',
ares-install verb novacom#Session()#begin()   conn: [ 'ssh' ],
ares-install verb novacom#Session()#begin()   devId: null,
ares-install verb novacom#Session()#begin()   addr: 'ssh://root@<IP_ADDRESS>:22',
ares-install verb novacom#Session()#begin()   host: '<IP_ADDRESS>',
ares-install verb novacom#Session()#begin()   port: 22,
ares-install verb novacom#Session()#begin()   username: 'root',
ares-install verb novacom#Session()#begin()   default: true,
ares-install verb novacom#Session()#begin()   profile: 'ose',
ares-install verb novacom#Session()#begin()   files: 'stream',
ares-install verb novacom#Session()#begin()   password: '',
ares-install verb novacom#Session()#begin()   privateKey: undefined
ares-install verb novacom#Session()#begin() }
ares-install info novacom#Session()#begin() ssh session event: connected
ares-install info novacom#Session()#run() cmd:/bin/rm -rf /media/developer/temp && /bin/mkdir -p /media/developer/temp && /bin/chmod 777 /media/developer/temp, opt:{}
Installing package com.limelight.webos_1.4.0_arm.ipk
.   Processing
ares-install info novacom#Session()#put() uploding into device: /media/developer/temp/com.limelight.webos_1.4.0_arm.ipk from host: com.limelight.webos_1.4.0_arm.ipk
ares-install verb novacom#Session()#put() sftpPut()::start
ares-install verb novacom#Session()#sftpPut() host:com.limelight.webos_1.4.0_arm.ipk => device:/media/developer/temp/com.limelight.webos_1.4.0_arm.ipk
ares-install verb Error: Received exit code 127 while establishing SFTP session
ares-install info novacom#Session()#put() sftp is not available, attempt transfering file via streamPut
ares-install info novacom#Session()#streamPut() streaming into device:/media/developer/temp/com.limelight.webos_1.4.0_arm.ipk
ares-install info novacom#Session()#run() cmd:/bin/cat > "/media/developer/temp/com.limelight.webos_1.4.0_arm.ipk", opt:{}
... Processing
ares-install info novacom#Session()#run() cmd:/bin/ls -l "/media/developer/temp/com.limelight.webos_1.4.0_arm.ipk", opt:{}
ares-install verb novacom#Session()#run() on data (stdout)
ares-install verb install#install() ls -l: -rw-r--r-- 1 root root 910774 Feb 23 06:53 /media/developer/temp/com.limelight.webos_1.4.0_arm.ipk
ares-install verb install#install()
ares-install info novacom#Session()#run() cmd:/usr/bin/tail -c 200 "/media/developer/temp/com.limelight.webos_1.4.0_arm.ipk" | /usr/bin/md5sum, opt:{}
ares-install verb novacom#Session()#run() on data (stdout)
ares-install verb install#install() srcMd5: fa591849cb73258990c1ff54014c5355 , dstMd5: fa591849cb73258990c1ff54014c5355
ares-install verb luna#send() calling: -i luna://com.webos.appInstallService/dev/install '{"id":"com.ares.defaultName","ipkUrl":"/media/developer/temp/com.limelight.webos_1.4.0_arm.ipk","subscribe":true}'
ares-install info novacom#Session()#run() cmd:/usr/bin/luna-send-pub -i luna://com.webos.appInstallService/dev/install '{"id":"com.ares.defaultName","ipkUrl":"/media/developer/temp/com.limelight.webos_1.4.0_arm.ipk","subscribe":true}', opt:{}
..  Processing
ssuminahn commented 2 years ago

@Aniketh01 How is com.limelight.webos_1.4.0_arm.ipk packaged? Did you use CLI or oe-build? And how did you build it? We need more information about the ipk and the environment we're testing in.

And is the target rpi4 correct? rpi4 does not support arm architecture. If the app is arm architecture, you will be seen error message like below.

$ ares-install com.jasmine.native.app_0.0.1_arm.ipk [Info] Set target device : target Installing package com.jasmine.native.app_0.0.1_arm.ipk ares-install ERR! [com.webos.appInstallService failure]: luna-send command failed