Scott
07/22/2024, 5:55 AMerror connecting to primary db: code: 516, message: signoz: Authentication failed: password is incorrect, or there is no user with such name.
More details in ๐งต ... any help is greatly appreciated!
UPDATE: fixed ...
1. quick workaround: don't use +
chars in the password for credentials signoz uses to connect to the external instance. specifically the query service uses a URL format, and passwords are not properly url-encoded, so `+`'s turn into spaces according to the url.
2. https://github.com/SigNoz/charts/issues/473Scott
07/22/2024, 5:56 AMsignoz
user I created for the clickhouse instance, but all migrations ran to completion.Scott
07/22/2024, 5:56 AMScott
07/22/2024, 5:57 AMScott
07/22/2024, 5:58 AMfullnameOverride: signoz
global:
imageRegistry: *****************
clickhouse:
enabled: false
externalClickhouse:
host: clickhouse-clickhouse.clickhouse-v2.svc.cluster.local
cluster: default
user: signoz
existingSecret: clickhouse-auth
existingSecretPasswordKey: password
k8s-infra:
enabled: false
schemaMigrator:
args:
- --cluster-name=default
queryService:
additionalArgs:
- --cluster=default
configVars:
telemetryEnabled: false
(note the modifications to use the cluster name default
instead of cluster
)Scott
07/22/2024, 6:00 AMsignoz
. Here are the grants for that user:
- GRANT SELECT ON *.*
- GRANT CLUSTER ON *.*
- GRANT REMOTE ON *.*
- GRANT ALL ON signoz_logs.*
- GRANT ALL ON signoz_metrics.*
- GRANT ALL ON signoz_traces.*
Scott
07/22/2024, 6:03 AMScott
07/22/2024, 6:26 AM+
. this does not get properly url-encoded for the query service! it relies on a url like
<tcp://host>:port?user=abc&password=$(CLICKHOUSE_PASSWORD)
and of course, any `+`'s in the password, according to any url-decoding, are turned into spaces! when i manually dropped in the password to this URL, and url encoded it myself -- e.g. +
becomes %2B
... everything works fine.Darren Smith
07/22/2024, 7:50 AM