hassio-addons icon indicating copy to clipboard operation
hassio-addons copied to clipboard

❓ WHATSAPPER : Cannot Start in Home Assistant

Open siw1973 opened this issue 9 months ago • 30 comments

https://github.com/alexbelgium/hassio-addons/issues/1358#issuecomment-2080480998

siw1973 avatar Apr 27 '24 11:04 siw1973

Hi, just change the portainer password in the addon options and it will reset its database

alexbelgium avatar Apr 27 '24 11:04 alexbelgium

Data for addons can be stored in different places : /data (within addons) gets deleted when addon is un-installed, but /config is remanent and can only be deleted by using a tool such as my filebrowser addon. Ha had indeed some quirks to know to understand why things behave how they do ;)

alexbelgium avatar Apr 27 '24 11:04 alexbelgium

Hi, just change the portainer password in the addon options and it will reset its database

I truly am an idiot.........

With respect to Whatsapper I'm getting the following message on start up :

TypeError: Cannot read properties of null (reading '1') at LocalWebCache.persist (/app/node_modules/whatsapp-web.js/src/webCache/LocalWebCache.js:34:69) at /app/node_modules/whatsapp-web.js/src/Client.js:744:36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Node.js v18.18.2

I've found reference to changing the launch arguements here : https://github.com/pedroslopez/whatsapp-web.js/issues/2885

But can't figure out where to do this.

Should I create a new question ?

siw1973 avatar Apr 27 '24 11:04 siw1973

Ah ah, no problem.

For whatsapper dear @baldarn would you have an idea? thanks !

alexbelgium avatar Apr 27 '24 15:04 alexbelgium

Hi! will try to have a look today ;)

baldarn avatar Apr 29 '24 07:04 baldarn

@baldarn Thank you, I can't find an idiots guide to setting this up, if I've missed one let me know and I'll have a go.

I have HASSOS hosted on a standard VMWare instance running on Windows 11 Pro.

siw1973 avatar Apr 29 '24 07:04 siw1973

the issue seems to be well known. I'll try to solve that and push another version of the addon :/

baldarn avatar Apr 29 '24 07:04 baldarn

thanks very much!

alexbelgium avatar Apr 29 '24 09:04 alexbelgium

@alexbelgium we can try to update with this. we could solve the issue :/

baldarn avatar Apr 29 '24 10:04 baldarn

Wow, you guys are agile and efficient ! Let me know when it's up on HACS and I'll test straight away 👍

siw1973 avatar Apr 29 '24 10:04 siw1973

@siw1973 not yet, I did an error in the pr for the update :(

baldarn avatar Apr 29 '24 10:04 baldarn

still some errors... damn upgrades of libraries and docker images :/

will fix today. I hope :/

baldarn avatar Apr 29 '24 10:04 baldarn

still some errors... damn upgrades of libraries and docker images :/

will fix today. I hope :/

No worries, thanks for the help.

siw1973 avatar Apr 29 '24 10:04 siw1973

@baldarn The Whatsapper update popped up on HA and I tried to install, got the following message in the Log 👍

homeassistant.exceptions.HomeAssistantError: Error updating Whatsapper: Can't install ghcr.io/alexbelgium/whatsapper-amd64:2024.4.29: 500 Server Error for http+docker://localhost/v1.43/images/create?tag=2024.4.29&fromImage=ghcr.io%2Falexbelgium%2Fwhatsapper-amd64&platform=linux%2Famd64: Internal Server Error ("manifest unknown")

siw1973 avatar Apr 29 '24 12:04 siw1973

@siw1973 yes... something is broken due some updates of dependencies in these months... will try to give a look today :'(

baldarn avatar Apr 29 '24 12:04 baldarn

@alexbelgium the error seems related to this change

whatsapper/Dockerfile:37

https://github.com/alexbelgium/hassio-addons/commit/a29a371cbc37b3bc89f439eaeaea369e7f430966

error link: https://github.com/alexbelgium/hassio-addons/actions/runs/8876921382/job/24369467874

what is this needed for? is this necessary?

baldarn avatar Apr 29 '24 12:04 baldarn

pr to remove the line

https://github.com/alexbelgium/hassio-addons/issues/1365

baldarn avatar Apr 29 '24 13:04 baldarn

the issue should be solved in version 2024.4.29-1

@siw1973 could you give a try? :)

baldarn avatar Apr 29 '24 13:04 baldarn

Hi there unfortunatley a same error on Update :

Can't install ghcr.io/alexbelgium/whatsapper-amd64:2024.4.29: 500 Server Error for http+docker://localhost/v1.43/images/create?tag=2024.4.29&fromImage=ghcr.io%2Falexbelgium%2Fwhatsapper-amd64&platform=linux%2Famd64: Internal Server Error ("manifest unknown")

I even removed the Intergation and then couldn't get it to Install either, has the same error.

siw1973 avatar Apr 29 '24 13:04 siw1973

mmm strange. that was solved to me. it seems you are updating the old version.

try to update the addons.

baldarn avatar Apr 29 '24 13:04 baldarn

I deleted the old Add On and now can't get it to Install. Anything that may not have been removed ? Disabled the Firewall on the VM host just to make sure.

siw1973 avatar Apr 29 '24 13:04 siw1973

All OK 👍

Restarted the whole VM stack and go to the QR code screen.

Thanks for all your help !

siw1973 avatar Apr 29 '24 14:04 siw1973

@baldarn Quick one, do I need to do any Port Forwarding as I have 443 in use elsewhere exposed to the Internet ?

After linking I'm not getting anything on https://IP:4000 or HTTP://IP:4000.

The log is repeating QR codes even though the original one is Linked in WhatsApp.

siw1973 avatar Apr 29 '24 14:04 siw1973

Manifest unknown just means it can't find the build online :-) either due to build not yet completed or failed ; or due to the HA cache being not refreshed

alexbelgium avatar Apr 29 '24 14:04 alexbelgium

I'm trying the system locally, but is not working. it seems whatsapp changed his web app and the library that I'm using is still not working for saving the state

see

https://github.com/pedroslopez/whatsapp-web.js/pull/2816

baldarn avatar Apr 29 '24 14:04 baldarn

@baldarn Quick one, do I need to do any Port Forwarding as I have 443 in use elsewhere exposed to the Internet ?

After linking I'm not getting anything on https://IP:4000 or HTTP://IP:4000.

The log is repeating QR codes even though the original one is Linked in WhatsApp.

this is related to the error of the underneith library. I'm in contact with the WWeb.js folks to see how they are proceding

baldarn avatar Apr 29 '24 14:04 baldarn

LOL !

I'm the kiss of Doom..... Always late to the party and it's invariably closing down when I arrive !

Thanks again 👍

siw1973 avatar Apr 29 '24 14:04 siw1973

@siw1973 lol!

I think something will came out in the next days or weeks.

if not, I will consider moving to another library ;)

baldarn avatar Apr 29 '24 14:04 baldarn

I modded the title and intial query to not make me look like a total idiot :-)

siw1973 avatar Apr 29 '24 14:04 siw1973

this could fix things :)

https://github.com/alexbelgium/hassio-addons/pull/1367

baldarn avatar Apr 29 '24 16:04 baldarn