Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plausible_analytics_on_a_raspberry_pi_with_SSL #31

Open
utterances-bot opened this issue Sep 28, 2023 · 8 comments
Open

plausible_analytics_on_a_raspberry_pi_with_SSL #31

utterances-bot opened this issue Sep 28, 2023 · 8 comments

Comments

@utterances-bot
Copy link

Hosting Plausible Analytics On A Raspberry Pi 4 with SSL

Learn how to host Plausible, a privacy centric Google Analytics alternative, on your Raspberry Pi 4. This uses nginx, LetsEncrypt, and more for secure hosting.

https://janhendrikewers.uk/plausible_analytics_on_a_raspberry_pi_with_SSL.html

Copy link

Juanpam commented Sep 28, 2023

Hey! I was trying to follow your guide but I'm getting the following error when trying to run this on my pi:

[+] Running 1/11
⠧ plausible Pulling 1.7s
⠧ plausible_db 8 layers [⠀⠀⠀⠀⠀⠀⠀⠀] 0B/0B Pulling 1.7s
⠴ f8dec92eec42 Pulling fs layer 0.4s
⠴ 5bf5c2c99c40 Pulling fs layer 0.4s
⠴ 06bb3f13868e Pulling fs layer 0.4s
⠴ ddf89fc73cd7 Waiting 0.4s
⠴ 7d0d4712e714 Waiting 0.4s
⠴ f3ed74d03a2a Waiting 0.4s
⠴ ff13d7166906 Waiting 0.4s
⠴ dc98ef6aff76 Waiting 0.4s
✘ plausible_events_db Error 1.7s
no matching manifest for linux/arm/v8 in the manifest list entries

It's running a raspbian rather than ubuntu version. Not sure if that could have something to do with it.

@iwishiwasaneagle
Copy link
Owner

@Juanpam If you are using a RPi4, then please double check you are using Raspbian 64bit.

Copy link

Juanpam commented Sep 28, 2023

I installed Ubuntu 22.04 LTS with full support for arm64 architecture. It still fails. Also I noticed that you are referencing the docker-smtp folder in the shared docker-compose-yml file but there is no folder called like that in your repo. It fails if I leave it as it is in the current repo as well

@iwishiwasaneagle
Copy link
Owner

@Juanpam from your logs it's definitely an architecture issue. What's the output of uname -a?

Copy link

Juanpam commented Oct 10, 2023

@iwishiwasaneagle This is the output of said command:

  • Linux raspberrypi 5.15.0-1038-raspi #41-Ubuntu SMP PREEMPT Fri Sep 8 12:38:39 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

My first logs were from having an armhf architecture but to fix that I then installed Ubuntu 22.04 with full support for arm64 architecture. It fails but I don't have the logs with me. However I still found issues with the docker-smtp folder that is referenced in the docker compose file.

Thanks a lot for answering!

@iwishiwasaneagle
Copy link
Owner

Hmmm yeah the docker-smtp folder might have been an error. I don't have access to my RPi4 for a while but will double check my config when I do.

Copy link

asyba commented Dec 23, 2023

why do we need SSL and nginx?
If I have a self hosted website on a docker compose on my RPi4 and exposed to the internet with cloudflare tunnel with a domain that will have SSL provided by cloudflare. (we can do this with the free account)

Can we use that and avoid setting all nginx, ssl stuff that you did ?
I want to monitor my website that is on my RPi4 exposed to the internet.

@iwishiwasaneagle
Copy link
Owner

@asyba yes, I believe that that would be enough. I haven't had any experience with Cloudflare Tunnels but that sounds like an interesting solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants