While using signoz, I forgot password. My role is ...
# support
k
While using signoz, I forgot password. My role is admin and I am not able to reset password because this feature is not provided. Can anyone help me?
a
You can exec inside query-service container and remove all users and organisations:
Copy code
docker exec -it query-service sh
OR
Copy code
kubectl -n platform exec -it pod/my-release-signoz-query-service-0 -- sh
Run the following:
Copy code
# install sqlite
apk update
apk add sqlite

# open sqlite with signoz.db
sqlite3 /var/lib/signoz/signoz.db

# (sqlite shell) check existing users
select * from users;

# (sqlite shell) delete all users
delete from users where 1=1;

# (sqlite shell) verify user deletion
select * from users;

# (sqlite shell) check existing organizations
select * from organizations;

# (sqlite shell) delete organization
delete from organizations where 1=1;

# (sqlite shell) verify org deletion
select * from organizations;

# press CTRL + D to exit from sqlite shell
# safely exit from the query-service container
exit
k
Thank you