I am currently running signoz on a server using do...
# support
k
I am currently running signoz on a server using docker compose. I made some updates to the otel-collector config file and use rsync to sync the files to the server. After restarting the containers I am getting this error .
Copy code
27. DB::TCPHandler::run() @ 0x0000000012246a79 in /usr/bin/clickhouse
28. Poco::Net::TCPServerConnection::start() @ 0x0000000014c6fc52 in /usr/bin/clickhouse
29. Poco::Net::TCPServerDispatcher::run() @ 0x0000000014c70a51 in /usr/bin/clickhouse
30. Poco::PooledThread::run() @ 0x0000000014d678e7 in /usr/bin/clickhouse
31. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000014d65edc in /usr/bin/clickhouse

2024.01.10 21:47:22.091833 [ 1041 ] {c8111b1c-5305-4d06-8b32-73acb2a509b1} <Error> executeQuery: std::exception. Code: 1001, type: std::__1::__fs::filesystem::filesystem_error, e.what() = filesystem error: in create_directories: Permission denied ["/var/lib/clickhouse/store/bd8/bd8667db-f6ec-4272-9b87-83e2c111663c/tmp_insert_20240110_150792_150792_0"]
Cannot print extra info for Poco::Exception (version 23.11.1.2711 (official build)) (from 172.20.0.8:43348) (in query: INSERT INTO signoz_metrics.distributed_samples_v2 VALUES), Stack trace (when copying this message, always include the lines below):

0. std::system_error::system_error(std::error_code, String const&) @ 0x0000000016a27955 in /usr/bin/clickhouse
1. std::__fs::filesystem::filesystem_error::filesystem_error[abi:v15000](String const&, std::__fs::filesystem::path const&, std::error_code) @ 0x000000000c549621 in /usr/bin/clickhouse
2. void std::__fs::filesystem::__throw_filesystem_error[abi:v15000]<String&, std::__fs::filesystem::path const&, std::error_code const&>(String&, std::__fs::filesystem::path const&, std::error_code const&) @ 0x00000000169de35a in /usr/bin/clickhouse
3. std::__fs::filesystem::detail::(anonymous namespace)::ErrorHandler<bool>::report(std::error_code const&) const (.llvm.14483552974555787744) @ 0x00000000169e16b6 in /usr/bin/clickhouse
4. std::__fs::filesystem::__create_directories(std::__fs::filesystem::path const&, std::error_code*) @ 0x00000000169e1eb9 in /usr/bin/clickhouse
5. DB::DiskLocal::createDirectories(String const&) @ 0x00000000104d12d9 in /usr/bin/clickhouse
6. DB::DataPartStorageOnDiskBase::createDirectories() @ 0x0000000011c22477 in /usr/bin/clickhouse
7. DB::MergeTreeDataWriter::writeTempPartImpl(DB::BlockWithPartition&, std::shared_ptr<DB::StorageInMemoryMetadata const> const&, std::shared_ptr<DB::Context const>, long, bool) @ 0x0000000011f1d6b5 in /usr/bin/clickhouse
8. DB::MergeTreeSink::consume(DB::Chunk) @ 0x0000000012051c8c in /usr/bin/clickhouse
9. DB::SinkToStorage::onConsume(DB::Chunk) @ 0x00000000125d46e2 in /usr/bin/clickhouse
10. void std::__function::__policy_invoker<void ()>::__call_impl<std::__function::__default_alloc_func<DB::ExceptionKeepingTransform::work()::$_1, void ()>>(std::__function::__policy_storage const*) @ 0x000000001250f9eb in /usr/bin/clickhouse
11. DB::runStep(std::function<void ()>, DB::ThreadStatus*, std::atomic<unsigned long>*) @ 0x000000001250f6fc in /usr/bin/clickhouse
12. DB::ExceptionKeepingTransform::work() @ 0x000000001250edd3 in /usr/bin/clickhouse
13. DB::ExecutionThreadContext::executeTask() @ 0x00000000122a117a in /usr/bin/clickhouse
14. DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic<bool>*) @ 0x0000000012297e90 in /usr/bin/clickhouse
15. DB::PipelineExecutor::executeStep(std::atomic<bool>*) @ 0x0000000012297648 in /usr/bin/clickhouse
16. DB::DistributedSink::writeToLocal(DB::Cluster::ShardInfo const&, DB::Block const&, unsigned long) @ 0x0000000011bd8c78 in /usr/bin/clickhouse
17. DB::DistributedSink::writeAsyncImpl(DB::Block const&, unsigned long) @ 0x0000000011bd64a1 in /usr/bin/clickhouse
18. DB::DistributedSink::consume(DB::Chunk) @ 0x0000000011bd2dea in /usr/bin/clickhouse
19. DB::SinkToStorage::onConsume(DB::Chunk) @ 0x00000000125d46e2 in /usr/bin/clickhouse
20. void std::__function::__policy_invoker<void ()>::__call_impl<std::__function::__default_alloc_func<DB::ExceptionKeepingTransform::work()::$_1, void ()>>(std::__function::__policy_storage const*) @ 0x000000001250f9eb in /usr/bin/clickhouse
21. DB::runStep(std::function<void ()>, DB::ThreadStatus*, std::atomic<unsigned long>*) @ 0x000000001250f6fc in /usr/bin/clickhouse
22. DB::ExceptionKeepingTransform::work() @ 0x000000001250edd3 in /usr/bin/clickhouse
23. DB::ExecutionThreadContext::executeTask() @ 0x00000000122a117a in /usr/bin/clickhouse
24. DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic<bool>*) @ 0x0000000012297e90 in /usr/bin/clickhouse
25. DB::PipelineExecutor::executeStep(std::atomic<bool>*) @ 0x0000000012297648 in /usr/bin/clickhouse
26. DB::TCPHandler::runImpl() @ 0x0000000012236e57 in /usr/bin/clickhouse
27. DB::TCPHandler::run() @ 0x0000000012246a79 in /usr/bin/clickhouse
28. Poco::Net::TCPServerConnection::start() @ 0x0000000014c6fc52 in /usr/bin/clickhouse
29. Poco::Net::TCPServerDispatcher::run() @ 0x0000000014c70a51 in /usr/bin/clickhouse
30. Poco::PooledThread::run() @ 0x0000000014d678e7 in /usr/bin/clickhouse
31. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000014d65edc in /usr/bin/clickhouse

2024.01.10 21:47:22.092103 [ 1041 ] {c8111b1c-5305-4d06-8b32-73acb2a509b1} <Error> TCPHandler: Code: 1001. DB::Exception: std::__1::__fs::filesystem::filesystem_error: filesystem error: in create_directories: Permission denied ["/var/lib/clickhouse/store/bd8/bd8667db-f6ec-4272-9b87-83e2c111663c/tmp_insert_20240110_150792_150792_0"]. (STD_EXCEPTION), Stack trace (when copying this message, always include the lines below):
s
It says permission denied. Make sure
/var/lib/clickhouse/
has read/write permissions.
k
I have fixed this thanks