Giter Site home page Giter Site logo

Comments (5)

ruslandoga avatar ruslandoga commented on August 20, 2024 1

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.

paullotz avatar paullotz commented on August 20, 2024

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.

ruslandoga avatar ruslandoga commented on August 20, 2024

šŸ‘‹ @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.

wreidlinger avatar wreidlinger commented on August 20, 2024

@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.

ruslandoga avatar ruslandoga commented on August 20, 2024

The solution seems to be to build your own ClickHouse image. Please see ClickHouse/ClickHouse#50852

from community-edition.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.