alexbelgium / hassio-addons

My homeassistant addons
MIT License
1.36k stars 193 forks source link

❓ WHATSAPPER : Cannot Start in Home Assistant #1358

Closed siw1973 closed 2 weeks ago

siw1973 commented 2 months ago

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

alexbelgium commented 2 months ago

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

alexbelgium commented 2 months ago

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 ;)

siw1973 commented 2 months ago

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 ?

alexbelgium commented 2 months ago

Ah ah, no problem.

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

baldarn commented 2 months ago

Hi! will try to have a look today ;)

siw1973 commented 2 months ago

@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.

baldarn commented 2 months ago

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

alexbelgium commented 2 months ago

thanks very much!

baldarn commented 2 months ago

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

siw1973 commented 2 months ago

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

baldarn commented 2 months ago

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

baldarn commented 2 months ago

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

will fix today. I hope :/

siw1973 commented 2 months ago

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

will fix today. I hope :/

No worries, thanks for the help.

siw1973 commented 2 months ago

@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")

baldarn commented 2 months ago

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

baldarn commented 2 months ago

@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 commented 2 months ago

pr to remove the line

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

baldarn commented 2 months ago

the issue should be solved in version 2024.4.29-1

@siw1973 could you give a try? :)

siw1973 commented 2 months ago

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.

baldarn commented 2 months ago

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

try to update the addons.

siw1973 commented 2 months ago

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 commented 2 months ago

All OK 👍

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

Thanks for all your help !

siw1973 commented 2 months ago

@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.

alexbelgium commented 2 months ago

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

baldarn commented 2 months ago

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 commented 2 months ago

@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

siw1973 commented 2 months ago

LOL !

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

Thanks again 👍

baldarn commented 2 months ago

@siw1973 lol!

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

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

siw1973 commented 2 months ago

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

baldarn commented 2 months ago

this could fix things :)

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

baldarn commented 2 weeks ago

@alexbelgium you can close this ;)