Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fabric operator console cannot start #185

Open
thapld opened this issue Aug 9, 2023 · 1 comment
Open

Fabric operator console cannot start #185

thapld opened this issue Aug 9, 2023 · 1 comment

Comments

@thapld
Copy link

thapld commented Aug 9, 2023

What happened?

image

Seems console read wrong config
Here DB_CONNECTION_STRING
http://couchdb:Ahrl?+6HY,n{fT/8&mzVGOjpQsC9K5PWiX*DL71aB#bR0FxEc^3NMqk4Uduw@2SJ@console-fabric-operations-console--couchdb:5984

image

What did you expect to happen?

Run successfully

How can we reproduce it (as minimally and precisely as possible)?

openssl genrsa -out ca.key 2048

openssl req -x509 -new -nodes -days 365 -key ca.key -out ca.crt -subj "/CN=console"

kubectl create secret tls console-tls-secret --cert=ca.crt --key=ca.key

kubectl get secrets

export CONSOLE_PASSWORD="admin"
export TLS_SECRET_NAME="console-operator-tls"
kubectl hlf console create --name=console --namespace=default --version="v1.0.5-30" --image="ghcr.io/hyperledger-labs/fabric-console"
--admin-user="admin" --admin-pwd="$CONSOLE_PASSWORD" --tls-secret-name="$TLS_SECRET_NAME"

Anything else we need to know?

No response

Kubernetes version

# kubectl get nodes -o wide
@Linkadi98
Copy link

Linkadi98 commented Jan 4, 2024

The log from couchdb pod is very clear that it says it has no _userdb then we need to create one in order to start console. But I found a litle bit weird that the couchdb had no admin account so that we cannot access to couchdb api to create new db. I have looked at the source code and find the account of couchdb image is couchdb/couchdb but this account has not worked at all. Have no idea what is going on. The file log.ini inside couchdb pod has a line ;admin=mysecretpassword, this exactly the admin account but it is commented and cannot be use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants