Comments (5)
Adding DATABASE_URL
and CLICKHOUSE_DATABASE_URL
set to default values wouldn't really change anything.
I'm going to close this issue as it's not related to Plausible but rather to ClickHouse. You might have a better chance of getting help in finding an image that works on Raspberry Pi on https://github.com/clickhouse/clickhouse or https://t.me/clickhouse_en
from community-edition.
Output from sudo docker container ls
:
85689772ac39 ghcr.io/plausible/community-edition:v2.1.0 "/entrypoint.sh sh -ā¦" 9 minutes ago Up 4 seconds 127.0.0.1:8000->8000/tcp hosting-plausible-1
72f62ddc7c1c clickhouse/clickhouse-server:24.3.3.102-alpine "/entrypoint.sh" 9 minutes ago Restarting (132) 58 seconds ago hosting-plausible_events_db-1
aa611a6fb187 postgres:16-alpine "docker-entrypoint.sā¦" 9 minutes ago Up 9 minutes 5432/tcp hosting plausible_db-1
from community-edition.
š @paullotz
Plausible fails because it cannot connect to ClickHouse (Ch.Connection (#PID<0.174.0>) failed to connect).
ClickHouse cannot be connected to because it is not running (Restarting (132)).
ClickHouse is not running because it uses illegal instructions (exit code 132).
This is probably relevant: plausible/analytics#3817 (comment)
from community-edition.
@paullotz I think a had a similar issue first running the containers.
Guess adding DATABASE_URL
and CLICKHOUSE_DATABASE_URL
did the trick.
This URLs has to fit with your docker-compose config.
plausible-conf.env
BASE_URL=https://plausible.mydomain.com
SECRET_KEY_BASE=***
TOTP_VAULT_KEY=***
DISABLE_REGISTRATION=true
DATABASE_URL=postgres://postgres:postgres@plausible_db:5432/plausible_db
CLICKHOUSE_DATABASE_URL=http://plausible_events_db:8123/plausible_events_db
docker-compose.yml
name: plausible
services:
# **************************************
# MAILSERVICE
# **************************************
mail:
image: sverzegnassi/smtp
container_name: plausible_mail
hostname: smtpmail
restart: always
env_file:
- plausible-conf.env
# **************************************
# DATABASE
# **************************************
plausible_db:
image: postgres:14-alpine
container_name: plausible_db
hostname: postgres
restart: always
volumes:
- ./data/db-plausible:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
# **************************************
# EVENTS DATABASE
# **************************************
plausible_events_db:
image: clickhouse/clickhouse-server:23.3.7.5-alpine
container_name: plausible_events_db
hostname: clickhouse
restart: always
volumes:
- ./data/db-clickhouse:/var/lib/clickhouse
- ./clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro
- ./clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/logging.xml:ro
ulimits:
nofile:
soft: 262144
hard: 262144
# **************************************
# PLAUSIBLE SERVICE
# **************************************
plausible:
image: ghcr.io/plausible/community-edition:latest
container_name: plausible_plausible
hostname: plausible
restart: always
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db
migrate && /entrypoint.sh run"
depends_on:
- plausible_db
- plausible_events_db
- mail
ports:
- 127.0.0.1:8000:8000
env_file:
- plausible-conf.env
Hope this helps.
from community-edition.
The solution seems to be to build your own ClickHouse image. Please see ClickHouse/ClickHouse#50852
from community-edition.
Related Issues (20)
- Upgrade from 1.5 to 2.1 RC resulted in data loss HOT 2
- CH volume for logs
- Feature Request: Expose custom JS API to detect unique user/visitor HOT 1
- Clickhouse version 23.3 no longer supported HOT 3
- document DATA_DIR HOT 1
- [error] <PID> running PlausibleWeb.Endpoint (connection stream id ) terminated | (Protocol.UndefinedError) protocol Jason.Encoder not implemented for HOT 5
- Preview doesn't load HOT 2
- Plausible log in weekly/monthly email reports points to a HTTP 404 link HOT 3
- Caddy-gen doesn't support ARM
- External Postgres DB connection (with ssl, digitalocean) does not work HOT 7
- enable query_log in ClickHouse HOT 1
- Database plausible_events_db does not exist HOT 8
- Account creation fails HOT 4
- Import CSV failed with no explanation HOT 2
- docker-compose install broken (non-responsive registration form) HOT 17
- websocket issue with apache2 HOT 12
- Unique visitors not working (Remix) HOT 3
- GMAIL: Messages missing a valid Message-ID HOT 3
- site_setup_success_email says that you're using trial
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from community-edition.