ajnart / homarr

Customizable browser's home page to interact with your homeserver's Docker containers (e.g. Sonarr/Radarr)
https://homarr.dev
MIT License
5.5k stars 254 forks source link

Homarr on Raspberry Pi 4 #1900

Open scargill opened 4 months ago

scargill commented 4 months ago

Environment

Docker

Version

brand new version

Describe the problem

I installed homarr on my Buster (up to date) RPI4 - 32 bit Rasperry pi operating system.... everything went well but when done - nothing on :7575 so I tried "docker-compose logs -f" and the same datetime error cropped up dozens of times.

Logs

pi@mainpi:homarr:19:16[1]> docker-compose up -d Creating network "homarr_default" with the default driver Pulling homarr (ghcr.io/ajnart/homarr:latest)... latest: Pulling from ajnart/homarr a27027e97f26: Pull complete 506ed8fe4f99: Pull complete c160838454f3: Pull complete b367e880b5e1: Pull complete 029f6f985aba: Pull complete 37efd809deef: Pull complete 5f59dc570989: Pull complete 5c06f8e88f0a: Pull complete 2797d303fcd8: Pull complete 892239e42108: Pull complete bcc0d3a1dbe1: Pull complete fa16cf3b639f: Pull complete 3b3e48fdf609: Pull complete 5f33efe7c7e8: Pull complete 054a67cf1c82: Pull complete dca91c003c73: Pull complete a73ee7129290: Pull complete 6012955b253a: Pull complete ee348a90c02b: Pull complete 336d3496989d: Pull complete d0e5cf102f71: Pull complete 604ffca6e60b: Pull complete 0c03648fdfb6: Pull complete 45bfec182f4a: Pull complete 5366ac29657b: Pull complete 4da879541162: Pull complete 32cbc06f79c5: Pull complete 794f2f68d1b4: Pull complete cacb797b5d8c: Pull complete c301844fe23f: Pull complete Digest: sha256:04763e5d6141e3643c14c5ded9bdcd036cc00341032e886529420b1bf7cee70e Status: Downloaded newer image for ghcr.io/ajnart/homarr:latest Creating homarr ... done pi@mainpi:homarr:19:28[0]>

Context

All looks good in the install above - but no site running at :7575 and no I didnt mess up the docker-compose.yml - exactly the same is working perfectly on my nanopi-r6s.... but I'd rather use the PI than have 2 machines running constantly.

v_gettimeofday(&tv))' failed. homarr | Aborted (core dumped) homarr | Starting production server... homarr | Node.js[19]: ../src/util.cc:195:double node::GetCurrentTimeInMicroseconds(): Assertion (0) == (uv_gettimeofday(&tv))' failed. homarr | Aborted (core dumped) homarr | Exporting hostname... homarr | Migrating database... homarr | Node.js[7]: ../src/util.cc:195:double node::GetCurrentTimeInMicroseconds(): Assertion(0) == (uv_gettimeofday(&tv))' failed.

I'm on nodejs 18 with other programs erlying on it.

Please tick the boxes

github-actions[bot] commented 4 months ago

Hi 👋. Thank you for submitting your first issue to Homarr. Please ensure that you've provided all nessesary information. You can use the three dots > Edit button to update your post with additional images and information. Depending on the current volume of requests, the team should get in conact with you shortly.

manuel-rw commented 4 months ago

Have you had a look at...

https://stackoverflow.com/questions/69775057/docker-image-fails-to-run-on-raspberry-pi-with-strange-node-error.

https://github.com/nodejs/docker-node/issues/1746

scargill commented 4 months ago

Have you had a look at...

https://stackoverflow.com/questions/69775057/docker-image-fails-to-run-on-raspberry-pi-with-strange-node-error.

nodejs/docker-node#1746

That suggests reverting to nodejs 16 - I'm on nodejs 18 - and my node-red setup relies on it - any other solutions?

manuel-rw commented 4 months ago

I'm confused. Do you run using Docker or Nodejs now? You specified in the issue that you're using Docker. However, now you're talking about Nodejs.

The nodejs version in the docker is isolated to your host nodejs. Also, the link does not ask you to downgrade but to change how you run the container: https://stackoverflow.com/a/70820624

Also, brand new version is insufficient and does not explain what version you're running. Please post your actual version instead. If you're unable to find you're version, post your image hash.

scargill commented 4 months ago

My mistake... DOCKER and docker-compose. Arm7 32 but Raspberry Pi.

scargill commented 4 months ago

The extra option in the link.. Docker-compose doesn't recognise it.

manuel-rw commented 4 months ago

The extra option in the link.. Docker-compose doesn't recognise it.

Did you append it as an option to the compose command or the docker-compose.yml file? You should put it in the yml file:

        restart: always
        security_opt:
            - seccomp:unconfined
github-actions[bot] commented 2 months ago

Hello 👋, this issue has been open for 60 days without activity. We mark issues to help prioritise and close dead issues. Can you confirm that this issue is still relevant on the latest version? I'll remove the stale label as soon as there is further activity on this issue. Thank you 🙏

scargill commented 2 months ago

Thanks for caring - meanwhile abandoned RPi4 and went to rpi5 and Homarr seems to be working perfectly, thanks.

manuel-rw commented 2 months ago

Ok, thanks for the update.

Can we close this issue then? I cannot reproduce this on my side. For everyone that has this problem:

scargill commented 2 months ago

close for me and thanks...

manuel-rw commented 2 months ago

I'm sorry that we weren't able to figure out the problem on your Rpi 4. It looks to me that some upstream problem may be causing it and that it isn't a problem with Homarr in a direct way. I hope that this hasn't caused you too much frustration.

I'm currently on holidays and cannot look into this much deeper. Please let us know if you have ideas how we could further troubleshoot this.

If you have other questions or problems, we're happy to help you and answer them.

Cheers 🥂