webosbrew / dev-manager-desktop

Device/DevMode Manager for webOS TV
Apache License 2.0
1.14k stars 73 forks source link

Received SSH_MSG_DISCONNECT: 2:Packet corrupt on macOS Running on ARM #116

Open lrfsh opened 1 year ago

lrfsh commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

Any idea why I can't install anything, keep saying :Received SSH_MSG_DISCONNECT: 2:Packet corrupt

Screenshot 2023-04-14 at 23 26 48

Also when I try to install it manually with file

Screenshot 2023-04-14 at 23 26 58

I just updated the firmware, but this happened with the older one, so no change.

Firmware: 03.34.90 WebOS Version: 6.3.2

Client: MacOs 13.2.1 (22D68) - M2 MAX

EDIT: Working on Windows 11

Thank you!

mariotaku commented 1 year ago

Possibly the same as #89. Can you try the latest version?

lrfsh commented 1 year ago

I've tried with the latest version 1.11.13 before and it's the same error.

mariotaku commented 1 year ago

I see. This means it's possible a macOS (or arm only issue). Let me try reproduce on macOS.

490398290 commented 1 year ago

Running app on rosetta mode, app install successfully. May be a bug in M chips.

mariotaku commented 1 year ago

@490398290 Thank you so much for the info.

geoL86 commented 1 year ago

Can confirm it doesn't work on MacOS(13.3.1) and no way to test on anything else

mariotaku commented 1 year ago

I have temporarily disabled build for arm. I'll find a machine someday and investigate.

niteya-shah commented 1 year ago

I am facing the same issue but I am on x86_64 Linux(Ubuntu). I am using the 1.11.15 build

joshproehl commented 1 year ago

FYI I am also getting the "Packet Corrupt" error on x86_64 Linux. (Pop_OS, AppImage of 1.11.15 build)

It appears to be an intermittent issue. I can try loading the "Files" tab and it'll take about 3 tries of getting "Packet Corrupt" before the files actually show.

Trying to install any applications fails. The dialog is title "Failed to install Homebrew Channel", with either the message "SSH_MSG_DISCONNECT: 2:Packet corrupt", or simply the message "success".

TV Is running 05.30.40 Log file for an install attempt that resulted in the "packet corrupt" error:

[2023-06-18T14:36:33Z INFO  app::conn_pool::connection] DeviceConnection { id=REDACTED, device.name=REDACTED } created
[2023-06-18T14:36:33Z INFO  app::conn_pool::connection] Dropping DeviceConnection { id=REDACTED, device.name=REDACTED }, last_ok=false
[2023-06-18T14:36:33Z WARN  app::plugins::cmd] Proc { command=luna-send-pub -i luna://com.webos.appInstallService/dev/install '{"id":"com.ares.defaultName","ipkUrl":"/tmp/devman_dl_1687098993037.ipk","subscribe":true}', device.name=REDACTED } closed with IO { code: Other, message: " Success" }
[2023-06-18T14:36:34Z INFO  app::conn_pool::connection] DeviceConnection { id=REDACTED, device.name=REDACTED } created
[2023-06-18T14:36:34Z INFO  app::conn_pool::connection] Dropping DeviceConnection { id=REDACTED, device.name=REDACTED }, last_ok=false
fatih-celonis commented 1 year ago

I cannot install any app as well as I'm getting the Type error. Version 1.1.16 on Apple M1.

0x09AF commented 1 year ago

Not sure if the problem is related... But I built my own YouTube fork based on Cobalt and trying to install it - I get "Type Error". When I try to install it via ares-install - I get:

ares-install ERR! [ssh exec failure]: Command '/bin/rm -rf /media/developer/temp && /bin/mkdir -p /media/developer/temp' exited with code=1
ares-install ERR! [ssh exec failure]: (Original Message: rm: can't remove '/media/developer/temp': Permission denied)

My TV is not rooted. I was able to install the YouTube app 0.3.1 from the repo in the app selection, but sideloading and picking my own app doesn't work, giving me Type Error

mariotaku commented 1 year ago

@0x09AF would you mind sharing the IPK for me to install & replicate?

0x09AF commented 1 year ago

@mariotaku sure deal MEGA (>25 MB GitHub limit)

mariotaku commented 1 year ago

@mariotaku sure deal MEGA (>25 MB GitHub limit)

I can't seem to replicate. Do you have the homebrew channel app installed?

0x09AF commented 1 year ago

Do you mean, you are able to install it through Dev Manager's GUI? Is your TV not rooted either?
I do not have homebrew channel installed on the TV, just assumed if I can install YT through the app list, I should be able to install by picking the IPK manually as well.

throwaway96 commented 1 year ago

@0x09AF You're using an ares-install from either the webOS OSE CLI tools or an old version of the webOS TV CLI tools. You need at least version 1.12.4 of the webOS TV CLI tools.

0x09AF commented 1 year ago

I finally figured out how to use proper ares and not the npm version. Installed the ipk through ares-install, it was successful but the app doesn't launch on the TV. I tried installing the ipk I uploaded above with webos-dev-manager 1.18 and it still gave me "Type error"

fergardi commented 4 months ago

Are there any news on this issue? No new arm build for M1 has been done since last year?

mariotaku commented 4 months ago

I can't verify because I don't have one. @fergardi Would you mind if you can build on your machine, and verify? If it works I'll add universal build back.

poloba commented 4 months ago

Working perfectly on mac 12.7.1 Mac mini 2018

cegees commented 4 months ago

Working perfectly on mac 12.7.1 Mac mini 2018

Issue is the arm/Silicon macs, not Intel

fmillerr commented 1 month ago

webOS.Dev.Manager_1.99.3_universal.dmg in pre-release version 1.99.3 works on my 2020 M1 Macbook (macOS 14.5)

mariotaku commented 1 month ago

webOS.Dev.Manager_1.99.3_universal.dmg in pre-release version 1.99.3 works on my 2020 M1 Macbook (macOS 14.5)

Good to hear that! I'll use this build instead.