Running Rhasspy on Raspberry Pi 4 with Docker

Hi,

is it possible to run Rhasspy on a Raspberry 4 and Docker? When following the instructions Docker stucks on pulling the images.

Thanks and regards
Johannes

I have a pi4 with raspbian buster lite. No problem to run it.

Any log, error ?

Hi,

that’s weird. I use raspbian buster lite, too.
The daemon.log says:

Jan 16 21:52:21 raspberrypi systemd[1]: Starting Clean php session files...
Jan 16 21:52:21 raspberrypi systemd[1]: phpsessionclean.service: Succeeded.
Jan 16 21:52:21 raspberrypi systemd[1]: Started Clean php session files.
Jan 16 21:52:25 raspberrypi systemd[1]: Created slice User Slice of UID 1000.
Jan 16 21:52:25 raspberrypi systemd[1]: Starting User Runtime Directory /run/user/1000...
Jan 16 21:52:25 raspberrypi systemd[1]: Started User Runtime Directory /run/user/1000.
Jan 16 21:52:25 raspberrypi systemd[1]: Starting User Manager for UID 1000...
Jan 16 21:52:25 raspberrypi systemd[1046]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Jan 16 21:52:25 raspberrypi systemd[1046]: Reached target Timers.
Jan 16 21:52:25 raspberrypi systemd[1046]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Jan 16 21:52:25 raspberrypi systemd[1046]: Listening on GnuPG cryptographic agent and passphrase cache.
Jan 16 21:52:25 raspberrypi systemd[1046]: Listening on GnuPG network certificate management daemon.
Jan 16 21:52:25 raspberrypi systemd[1046]: Reached target Paths.
Jan 16 21:52:25 raspberrypi systemd[1046]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Jan 16 21:52:25 raspberrypi systemd[1046]: Reached target Sockets.
Jan 16 21:52:25 raspberrypi systemd[1046]: Reached target Basic System.
Jan 16 21:52:25 raspberrypi systemd[1]: Started User Manager for UID 1000.
Jan 16 21:52:25 raspberrypi systemd[1046]: Starting Music Player Daemon...
Jan 16 21:52:25 raspberrypi systemd[1]: Started Session c2 of user pi.
Jan 16 21:52:26 raspberrypi mpd[1058]: exception: failed to open log file "/var/log/mpd/mpd.log" (config line 39): Permission denied
Jan 16 21:52:26 raspberrypi systemd[1046]: mpd.service: Main process exited, code=exited, status=1/FAILURE
Jan 16 21:52:26 raspberrypi systemd[1046]: mpd.service: Failed with result 'exit-code'.
Jan 16 21:52:26 raspberrypi systemd[1046]: Failed to start Music Player Daemon.
Jan 16 21:52:26 raspberrypi systemd[1046]: Reached target Default.
Jan 16 21:52:26 raspberrypi systemd[1046]: Startup finished in 597ms.
Jan 16 21:52:28 raspberrypi systemd[1]: systemd-hostnamed.service: Succeeded.

I was going to guess it was an IPv6-related issue. I’m not really certain how/why IPv6 interferes with normal Linux operations, other than something might be misconfigured on the main router.

1 Like

Thanks for your reply fred. Why do you think it is an IPv6 related issue? Pulling other images like hello-world and debain worked perfectly fine.

It was my first thought, because I’ve seen lots of other recent posts on other forums where IPv6 broke certain features on RPi4 systems. It wasn’t based on anything you posted, and I only mentioned it just in case it might help.

Update to my problem:
It seems to be either a docker problem or a problem of my raspberry Pi. I do not understand why this happens.
Two steps helped: I disconnected LAN cable and used wifi. Downloads started then, but after some time, the process got stuck again (maily when extracting). I then set the max-concurrent.downloads of the docker deamon to 1. Now it does take longer until the process stucks. So with many attemps I get all images pulled. Thats not very satisfying but helps.

Ok guys, I’m stupid. I solved the problem:
The power supply I used had an output of 1A. Switched to another with 2A. Works perfectly fine now.

3 Likes