我正在本地计算机(Mac - Intel 芯片组)中设置 Signoz。我正在使用 docker-cli 来设置 Signoz。
最初它给出了 signoz-clickhouse 的错误权限被拒绝。这个问题已经解决了。
现在我得到了 signoz-zookeeper-1
的相同许可被拒绝signoz-zookeeper-1 | zookeeper 16:03:30.60
signoz-zookeeper-1 | zookeeper 16:03:30.60 Welcome to the Bitnami zookeeper container
signoz-zookeeper-1 | zookeeper 16:03:30.60 Subscribe to project updates by watching https://github.com/bitnami/containers
signoz-zookeeper-1 | zookeeper 16:03:30.61 Submit issues and feature requests at https://github.com/bitnami/containers/issues
signoz-zookeeper-1 | zookeeper 16:03:30.61
signoz-zookeeper-1 | zookeeper 16:03:30.61 INFO ==> ** Starting ZooKeeper setup **
hotrod | 2024-06-25T16:03:30.648Z INFO frontend/server.go:96 HTTP request received {"service": "frontend", "trace_id": "29585290fab71791", "span_id": "29585290fab71791", "method": "GET", "url": "/dispatch?customer=123&nonse=0.6308392664170006"}
signoz-zookeeper-1 | zookeeper 16:03:30.64 WARN ==> You have set the environment variable ALLOW_ANONYMOUS_LOGIN=yes. For safety reasons, do not use this flag in a production environment.
hotrod | 2024-06-25T16:03:30.650Z INFO customer/client.go:54 Getting customer {"service": "frontend", "component": "customer_client", "trace_id": "29585290fab71791", "span_id": "29585290fab71791", "customer_id": "123"}
hotrod | http://0.0.0.0:8081/customer?customer=123
hotrod | 2024-06-25T16:03:30.652Z INFO customer/server.go:67 HTTP request received {"service": "customer", "trace_id": "29585290fab71791", "span_id": "13b1a5690dcc28de", "method": "GET", "url": "/customer?customer=123"}
hotrod | 2024-06-25T16:03:30.652Z INFO customer/database.go:73 Loading customer {"service": "customer", "component": "mysql", "trace_id": "29585290fab71791", "span_id": "13b1a5690dcc28de", "customer_id": "123"}
signoz-zookeeper-1 | chown: changing ownership of '/bitnami/zookeeper/data': Permission denied
signoz-zookeeper-1 exited with code 1
我可以通过授予 usr/var/clickhouse
目录的权限来解决
signoz-clickhouse问题。下面的命令对我有用
chmod 755 /var/lib/clickhouse/
解决
signoz-zookeeper-1
权限问题的任何建议
当 SigNoz 中 clickhouse/zookeeper 使用的数据目录的所有权/权限不够宽松时,就会出现此问题。
发生这种情况的原因有多种。最常见的是在 root 和非 root 用户之间切换。
您可以通过更新
data/clickhouse
和 data/zookeeper-1
目录的所有权/权限来解决此问题。
确保在更新之前关闭集群并重新启动。
cd ~/signoz # change directory to repo root
make down-signoz # bring down SigNoz cluster
# try updating ownership to the container user UID (usually 1000 or 1001)
chown -R 1000:1000 deploy/docker/clickhouse-setup/data/zookeeper-1
# bring SigNoz cluster back up
make run-signoz