Error after upgrading mautrix_whatsapp_ynh app to 0.8.0

My YunoHost server

Hardware: Odroid hc4
YunoHost version: 11.1
I have access to my server : Through SSH | through the webadmin

Description of my issue

Since an upgrade this morning of mautrix_whatsapp app, it’s not working anymore.

The upgrade log doesn’t looks bad : https://paste.yunohost.org/raw/eguzeziyux
but the service is not running and is in a loop trying to start :

Jan 03 16:38:48 quiwy.ninja systemd[1]: mautrix_whatsapp.service: Scheduled restart job, restart counter is at 6430.
Jan 03 16:38:48 quiwy.ninja systemd[1]: Stopped Matrix Whatsapp Bridge.
Jan 03 16:38:48 quiwy.ninja systemd[1]: Started Matrix Whatsapp Bridge.
Jan 03 16:38:48 quiwy.ninja mautrix-whatsapp[4008123]: [Jan  3, 2023 16:38:48] [INFO] Initializing mautrix-whatsapp 0.8.0 (Dec 16 2022, 19:11:40 with go1.19.4)
Jan 03 16:38:48 quiwy.ninja mautrix-whatsapp[4008123]: [Jan  3, 2023 16:38:48] [INFO] Bridge initialization complete, starting...
Jan 03 16:38:48 quiwy.ninja mautrix-whatsapp[4008123]: panic: failed to check if table exists: pq: password authentication failed for user "mautrix_whatsapp"
Jan 03 16:38:48 quiwy.ninja mautrix-whatsapp[4008123]: goroutine 1 [running]:
Jan 03 16:38:48 quiwy.ninja mautrix-whatsapp[4008123]: maunium.net/go/mautrix/util/dbutil.(*Database).tableExistsNoError(0x40005bf8b8?, {0x1014b8a?, 0xffffa3a69108?})
Jan 03 16:38:48 quiwy.ninja mautrix-whatsapp[4008123]:         /builds/mautrix/whatsapp/.cache/pkg/mod/maunium.net/go/mautrix@v0.12.4/util/dbutil/upgrades.go:58 +0x6c
Jan 03 16:38:48 quiwy.ninja mautrix-whatsapp[4008123]: maunium.net/go/mautrix/util/dbutil.(*Database).checkDatabaseOwner(0x400042e780)
Jan 03 16:38:48 quiwy.ninja mautrix-whatsapp[4008123]:         /builds/mautrix/whatsapp/.cache/pkg/mod/maunium.net/go/mautrix@v0.12.4/util/dbutil/upgrades.go:73 +0x54
Jan 03 16:38:48 quiwy.ninja mautrix-whatsapp[4008123]: maunium.net/go/mautrix/util/dbutil.(*Database).Upgrade(0x400042e780)
Jan 03 16:38:48 quiwy.ninja mautrix-whatsapp[4008123]:         /builds/mautrix/whatsapp/.cache/pkg/mod/maunium.net/go/mautrix@v0.12.4/util/dbutil/upgrades.go:107 +0x24
Jan 03 16:38:48 quiwy.ninja mautrix-whatsapp[4008123]: maunium.net/go/mautrix/bridge.(*Bridge).start(0x4000059000)
Jan 03 16:38:48 quiwy.ninja mautrix-whatsapp[4008123]:         /builds/mautrix/whatsapp/.cache/pkg/mod/maunium.net/go/mautrix@v0.12.4/bridge/bridge.go:476 +0x78
Jan 03 16:38:48 quiwy.ninja mautrix-whatsapp[4008123]: maunium.net/go/mautrix/bridge.(*Bridge).Main(0x4000059000)
Jan 03 16:38:48 quiwy.ninja mautrix-whatsapp[4008123]:         /builds/mautrix/whatsapp/.cache/pkg/mod/maunium.net/go/mautrix@v0.12.4/bridge/bridge.go:588 +0x414
Jan 03 16:38:48 quiwy.ninja mautrix-whatsapp[4008123]: main.main()
Jan 03 16:38:48 quiwy.ninja mautrix-whatsapp[4008123]:         /builds/mautrix/whatsapp/main.go:283 +0x2ec
Jan 03 16:38:48 quiwy.ninja systemd[1]: mautrix_whatsapp.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jan 03 16:38:48 quiwy.ninja systemd[1]: mautrix_whatsapp.service: Failed with result 'exit-code'.

Is there anything I can do to fix this issue ?

Hi,

Search your pg password in this file

/etc/yunohost/apps/mautrix_whatsapp/settings.yml

it’s the line begin with :

psqlpwd

Copy the value

Then edit the file

/opt/yunohost/mautrix_whatsapp/config.yaml

and add your password in the line afer the :slight_smile:

before :
uri: postgres://mautrix_whatsapp:@localhost:5432/mautrix_whatsapp

after:
uri: postgres://mautrix_whatsapp:STRONGPASSSWD@localhost:5432/mautrix_whatsapp

restart service

systemctl restart mautrix_whatsapp.service

View logs

journalctl -f -u mautrix_whatsapp

1 Like

Thank you for your help :slight_smile:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.