CouchDB Cannot Log into Fauxton Web UI
Brett Tiller
I’m running Minifab and I want to check the CouchDB tables/records. In the Fauxton log in page when I try to login using the default login values admin/password, I get error ‘Name or password is incorrect’. My url is http://127.0.0.1:7416/_utils/#/login , and am using the proper mapped port for CouchDb access.
When I check the login via the command line I see the following:
btiller@BRETTTLAPTOP3:~/mywork/primii$ curl -LI http://admin:password@localhost:7412/_utils/ HTTP/1.1 401 Unauthorized Cache-Control: must-revalidate Content-Length: 67 Content-Type: application/json Date: Wed, 13 Jul 2022 21:09:24 GMT Server: CouchDB/2.3.1 (Erlang OTP/19) X-Couch-Request-ID: 914aecb042 X-CouchDB-Body-Time: 0
However if I check the login with no user/password via the cli, it appears to be successful.
btiller@BRETTTLAPTOP3:~/mywork/primii$ curl -LI http://:@localhost:7412/_utils/ HTTP/1.1 200 OK Cache-Control: private, must-revalidate Content-Length: 1926 Content-Security-Policy: default-src 'self'; img-src 'self' data:; font-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; Content-Type: text/html Date: Wed, 13 Jul 2022 21:09:34 GMT last-modified: Mon, 29 Jun 2020 21:26:32 GMT Server: CouchDB/2.3.1 (Erlang OTP/19)
However I cannot use an empty username/password to log into the Fauxton web page as blank username/passwords are not allowed.
Does anyone know what are the credentials to log into the Fauxton web page to access CouchDb?
Thanks,
Brett Tiller Sr. Software Engineer 984-349-4239 (mobile)
https://www.linkedin.com/company/securboration
|
|
Sam Venzi
Hi Brett,
I think you might be able to find the credentials inside the CouchDB container environment variables. You may run an inspect command such as docker inspect couchdb and check for the Env property where the envs will be defined. If it’s not there, try to enter the container with docker exec -it couchdb sh and run the env command for a list of environment variables defined. If I am not mistaken your credentials should be defined in a env like COUCHDB_USER and COUCHDB_PASS. For reference, the official image repository explains the credential config: https://hub.docker.com/_/couchdb I hope it helps. Best regards, On 13 Jul 2022 18:18 -0300, Brett Tiller <btiller@...>, wrote:
|
|
Brett Tiller
Thanks Samuel, the second option resolved my issue. Much appreciated.
Brett Tiller Sr. Software Engineer 984-349-4239 (mobile)
From: Samuel Venzi <samuel.venzi@...>
Sent: Wednesday, July 13, 2022 6:34 PM To: fabric@...; Brett Tiller <btiller@...> Subject: Re: [Hyperledger Fabric] CouchDB Cannot Log into Fauxton Web UI
Hi Brett, On 13 Jul 2022 18:18 -0300, Brett Tiller <btiller@...>, wrote:
Message Sender is EXTERNAL to Securboration. Carefully examine this message before you open any links or attachments. |
|