Error reading InfluxDB. Status Code: 401?

influx v1 shell
Connected to InfluxDB OSS v2.7.1

ls
ERR: 401 Unauthorized: unauthorized access
SHOW DATABASES
ERR: 401 Unauthorized: unauthorized access
Please help me i am facing this issue and i am unable to fine config file for influxdb

Hi,

Please check the config file and the token whether it is matching with the token in UI. If it is not matching then recreate the config file

Regards
Sudheer

I am unable to find the config file can you tell me where is config file located of influxdb2
Thanks