https://signoz.io logo
#support
Title
# support
k

Kasim Ali

10/04/2022, 11:48 AM
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

Ankit Nayan

10/04/2022, 11:58 AM
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

Kasim Ali

10/04/2022, 12:00 PM
Thank you
6 Views