Snažím se nainstalovat plausible, což je alternativa k Google Analytics.
Instaluji docker verzi a součastí je ClickHouse a s tím mám problém.
ClickHouse se odmítá spustit s chybou:
plausible_events_db-1 | /entrypoint.sh: explicitly skip changing user ‘default’
plausible_events_db-1 | Processing configuration file ‘/etc/clickhouse-server/config.xml’.
plausible_events_db-1 | Merging configuration file ‘/etc/clickhouse-server/config.d/disable_async_metrics.xml’.
plausible_events_db-1 | Merging configuration file ‘/etc/clickhouse-server/config.d/docker_related_config.xml’.
plausible_events_db-1 | Merging configuration file ‘/etc/clickhouse-server/config.d/ipv4-only.xml’.
plausible_events_db-1 | Merging configuration file ‘/etc/clickhouse-server/config.d/logs.xml’.
plausible_events_db-1 | Merging configuration file ‘/etc/clickhouse-server/config.d/low-resources.xml’.
plausible_events_db-1 | Logging warning to /var/log/clickhouse-server/clickhouse-server.log
plausible_events_db-1 | Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
plausible_events_db-1 | 2025.04.14 13:32:48.145941 [ 1 ] {} Application: std::exception. Code: 1001, type: std::__1::__fs::filesystem::filesystem_error, e.what() = filesystem error: in directory_iterator::directory_iterator(…): Permission denied [“/sys/block”], Stack trace (when copying this message, always include the lines below):
plausible_events_db-1 |
plausible_events_db-1 | 0. std::system_error::system_error(std::error_code, String const&) @ 0x0000000018a055f5
plausible_events_db-1 | 1. std::__fs::filesystem::filesystem_error::filesystem_error[abi:v15007](String const&, std::__fs::filesystem::path const&, std::error_code) @ 0x000000000d7bb821
plausible_events_db-1 | 2. void std::__fs::filesystem::__throw_filesystem_error[abi:v15007]<String&, std::__fs::filesystem::path const&, std::error_code const&>(String&, std::__fs::filesystem::path const&, std::error_code const&) @ 0x00000000189b8eba
plausible_events_db-1 | 3. std::__fs::filesystem::detail::(anonymous namespace)::ErrorHandler::report(std::error_code const&) const (.llvm.1570443736777904000) @ 0x00000000189b7340
plausible_events_db-1 | 4. std::__fs::filesystem::directory_iterator::directory_iterator(std::__fs::filesystem::path const&, std::error_code*, std::__fs::filesystem::directory_options) @ 0x00000000189b71a7
plausible_events_db-1 | 5. DB::AsynchronousMetrics::openBlockDevices() @ 0x000000000d8a689a
plausible_events_db-1 | 6. DB::AsynchronousMetrics::AsynchronousMetrics(unsigned int, std::function<std::vector<DB::ProtocolServerMetrics, std::allocatorDB::ProtocolServerMetrics> ()> const&, bool, bool) @ 0x000000000d8a4b59
plausible_events_db-1 | 7. DB::ServerAsynchronousMetrics::ServerAsynchronousMetrics(std::shared_ptr<DB::Context const>, unsigned int, bool, unsigned int, std::function<std::vector<DB::ProtocolServerMetrics, std::allocatorDB::ProtocolServerMetrics> ()> const&, bool, bool) @ 0x00000000121867f3
plausible_events_db-1 | 8. DB::Server::main(std::vector<String, std::allocator> const&) @ 0x000000000d9fa7f9
plausible_events_db-1 | 9. Poco::Util::Application::run() @ 0x000000001666fd66
plausible_events_db-1 | 10. DB::Server::run() @ 0x000000000d9f5f10
plausible_events_db-1 | 11. Poco::Util::ServerApplication::run(int, char**) @ 0x0000000016678be7
plausible_events_db-1 | 12. mainEntryClickHouseServer(int, char**) @ 0x000000000d9f2d93
plausible_events_db-1 | 13. main @ 0x0000000008640abc
plausible_events_db-1 | 14. ? @ 0x00007fe125afcd90
plausible_events_db-1 | 15. ? @ 0x00007fe125afce40
plausible_events_db-1 | 16. _start @ 0x00000000065e102e
plausible_events_db-1 |
plausible_events_db-1 | Cannot print extra info for Poco::Exception (version 24.12.6.70 (official build))
plausible_events_db-1 exited with code 0
Chybí mu přístup do /sys/block. Na radu AI jsem zakázal asynchronous_metric_log pomocí <asynchronous_metric_log remove=“1” /> ale to nepomohlo.
Nemá někdo radu jak ClickHouse spustit. Pod kvm se mi to zdá zbytečně komplikované.
Díky.