# Error reading InfluxDB. Status Code: 401?

**URL:** <https://community.influxdata.com/t/error-reading-influxdb-status-code-401/29994>\
**Category:** Systems\
**Created:** [May 18, 2023, 1:41pm UTC](https://community.influxdata.com/t/error-reading-influxdb-status-code-401/29994 "2023-05-18T13:41:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Malik\_Rizwan](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/malik_rizwan/32/13481_2.png) [@Malik\_Rizwan](https://community.influxdata.com/u/Malik_Rizwan)\
**Post date:** [May 18, 2023, 1:41pm UTC](https://community.influxdata.com/t/error-reading-influxdb-status-code-401/29994/1 "2023-05-18T13:41:50Z")

</div>

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
> 
> ![influxdb](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/3/32d05e334c4ca308f32cbcb5fb0d30ba73884c62.png)

---

<div class="post-metadata">

**Author:** ![AVVS\_Sudheer](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/avvs_sudheer/32/13075_2.png) [@AVVS\_Sudheer](https://community.influxdata.com/u/AVVS_Sudheer)\
**Post date:** [May 19, 2023, 3:48am UTC](https://community.influxdata.com/t/error-reading-influxdb-status-code-401/29994/2 "2023-05-19T03:48:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Malik\_Rizwan](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/malik_rizwan/32/13481_2.png) [@Malik\_Rizwan](https://community.influxdata.com/u/Malik_Rizwan)\
**Post date:** [May 19, 2023, 5:56am UTC](https://community.influxdata.com/t/error-reading-influxdb-status-code-401/29994/3 "2023-05-19T05:56:53Z")

</div>

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