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

unable to login into SPV Wallet web-frontend #750

Open
Klar opened this issue Oct 21, 2024 · 2 comments
Open

unable to login into SPV Wallet web-frontend #750

Klar opened this issue Oct 21, 2024 · 2 comments
Assignees

Comments

@Klar
Copy link
Contributor

Klar commented Oct 21, 2024

Latest beta release:

➜  spv-wallet-1.0.0-beta.32 ./start.sh
Welcome in SPV Wallet!
Select your database:
1. postgresql
2. sqlite
>2
Select your cache storage:
1. freecache
2. redis
>2
Do you want to run spv-wallet? [Y/n]
>
Do you want to run spv-wallet-admin? [Y/n]
>
Do you want to run block-headers-service? [Y/n]
>
Do you want to run spv-wallet-web-frontend? [Y/n]
>
Do you want to run spv-wallet-web-backend? [Y/n]
>
Define admin xPub (Leave empty to use the default one)
>
To login to the admin panel, you will need to provide the admin xPriv.
You choose to use default admin xPub, so you can use the following xPriv:
xprv9s21ZrQH143K3CbJXirfrtpLvhT3Vgusdo8coBritQ3rcS7Jy7sxWhatuxG5h2y1Cqj8FKmPp69536gmjYRpfga2MJdsGyBsnB12E19CESK
What PayMail domain should be configured in applications?
>
Do you want to expose the services on  and its subdomains? [y/N]
>
Do you want to run everything in the background? [y/N]
>
File .env.config updated!
[+] Running 5/5
 ✔ spv-wallet Pulled                                                                                                                                                                                                                     1.6s 
 ✔ wallet-frontend Pulled                                                                                                                                                                                                                1.5s 
 ✔ wallet-backend Pulled                                                                                                                                                                                                                 1.5s 
 ✔ block-headers-service Pulled                                                                                                                                                                                                          1.6s 
 ✔ spv-wallet-admin Pulled          

No domain selected, able to login into SPV Wallet admin.

It seems the SPV Wallet web-frontend does not use the correct url for the api call?

GET http://api/v1/config net::ERR_NAME_NOT_RESOLVED

Screenshot from 2024-10-21 10-44-46

@dorzepowski dorzepowski self-assigned this Oct 21, 2024
@dorzepowski
Copy link
Contributor

I cannot reproduce the exact error.
I have similar error for some time after running the start.sh, because the backend isn't ready yet.
Can you ensure in docker that the wallet-backend is running? Or eventually run start.sh and then wait for some time (arround 1 minute), then in start.sh output you should be able to see logs with prefix wallet-backend-1
and then check if the problem still persists?

@Klar
Copy link
Contributor Author

Klar commented Oct 21, 2024

➜  ~ docker ps
CONTAINER ID   IMAGE                                 COMMAND                  CREATED       STATUS                 PORTS                                               NAMES
08577db944be   bsvb/spv-wallet:latest                "./entrypoint.sh"        5 hours ago   Up 5 hours             0.0.0.0:3003->3003/tcp, :::3003->3003/tcp           spv-wallet-spv-wallet-1
e5ff915f9401   bsvb/spv-wallet-web-backend:latest    "./entrypoint.sh"        5 hours ago   Up 5 hours             0.0.0.0:8180->8180/tcp, :::8180->8180/tcp           spv-wallet-wallet-backend-1
0717fcc83721   bsvb/spv-wallet-admin:latest          "/docker-entrypoint.…"   5 hours ago   Up 5 hours             80/tcp, 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp   spv-wallet-spv-wallet-admin-1
6feff59b6323   postgres                              "docker-entrypoint.s…"   2 days ago    Up 5 hours (healthy)   0.0.0.0:5432->5432/tcp, :::5432->5432/tcp           spv-wallet-wallet-postgresql-1
d827d8e57091   redis                                 "docker-entrypoint.s…"   2 days ago    Up 5 hours (healthy)   0.0.0.0:6379->6379/tcp, :::6379->6379/tcp           spv-wallet-wallet-redis-1
65303b5500d0   bsvb/block-headers-service:latest     "./entrypoint.sh --p…"   2 days ago    Up 5 hours             0.0.0.0:8080->8080/tcp, :::8080->8080/tcp           spv-wallet-block-headers-service-1
37212d659c8f   bsvb/spv-wallet-web-frontend:latest   "/docker-entrypoint.…"   2 days ago    Up 5 hours             0.0.0.0:3002->80/tcp, [::]:3002->80/tcp             spv-wallet-wallet-frontend-1
➜  ~ docker logs --follow spv-wallet-wallet-backend-1
2024-10-21 08:43:42.889 DBG host=wallet-postgresql port=5432 user=postgres password=postgres dbname=postgres sslmode=disable application=spv-wallet-web-backend ecs.version=1.6.0 service=database
2024-10-21 08:43:42.929 INF Successfully connected! application=spv-wallet-web-backend ecs.version=1.6.0 service=database
2024-10-21 08:43:43.212 DBG Websocket server started application=spv-wallet-web-backend ecs.version=1.6.0 service=websocket
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:	export GIN_MODE=release
 - using code:	gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /swagger/*any             --> github.com/swaggo/gin-swagger.CustomWrapHandler.func1 (5 handlers)
[GIN-debug] GET    /status                   --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/status.getStatus (5 handlers)
[GIN-debug] GET    /api/v1/config            --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/config.(*handler).getPublicConfig-fm (5 handlers)
[GIN-debug] POST   /api/v1/user              --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/users.(*handler).register-fm (5 handlers)
[GIN-debug] GET    /api/v1/user              --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/users.(*handler).getUser-fm (7 handlers)
[GIN-debug] POST   /api/v1/sign-in           --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/access.(*handler).signIn-fm (5 handlers)
[GIN-debug] POST   /api/v1/sign-out          --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/access.(*handler).signOut-fm (7 handlers)
[GIN-debug] POST   /api/v1/transaction       --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/transactions.(*handler).createTransaction-fm (7 handlers)
[GIN-debug] POST   /api/v1/transaction/search --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/transactions.(*handler).getTransactions-fm (7 handlers)
[GIN-debug] GET    /api/v1/transaction/:id   --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/transactions.(*handler).getTransaction-fm (7 handlers)
[GIN-debug] PUT    /api/v1/contact/:paymail  --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).upsertContact-fm (7 handlers)
[GIN-debug] PATCH  /api/v1/contact/accepted/:paymail --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).acceptContact-fm (7 handlers)
[GIN-debug] PATCH  /api/v1/contact/rejected/:paymail --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).rejectContact-fm (7 handlers)
[GIN-debug] PATCH  /api/v1/contact/confirmed --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).confirmContact-fm (7 handlers)
[GIN-debug] POST   /api/v1/contact/search    --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).getContacts-fm (7 handlers)
[GIN-debug] POST   /api/v1/contact/totp      --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).generateTotp-fm (7 handlers)
[GIN-debug] GET    /api/websocket            --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/websocket.(*server).SetupEntrypoint.WrapH.func4 (9 handlers)
2024-10-21 08:43:43.237 INF Starting server on address :8180 application=spv-wallet-web-backend ecs.version=1.6.0 service=http-server
2024-10-21 13:17:25.948 DBG host=wallet-postgresql port=5432 user=postgres password=postgres dbname=postgres sslmode=disable application=spv-wallet-web-backend ecs.version=1.6.0 service=database
2024-10-21 13:17:25.957 INF Successfully connected! application=spv-wallet-web-backend ecs.version=1.6.0 service=database
2024-10-21 13:17:26.155 DBG Websocket server started application=spv-wallet-web-backend ecs.version=1.6.0 service=websocket
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:	export GIN_MODE=release
 - using code:	gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /swagger/*any             --> github.com/swaggo/gin-swagger.CustomWrapHandler.func1 (5 handlers)
[GIN-debug] GET    /status                   --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/status.getStatus (5 handlers)
[GIN-debug] GET    /api/v1/config            --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/config.(*handler).getPublicConfig-fm (5 handlers)
[GIN-debug] POST   /api/v1/user              --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/users.(*handler).register-fm (5 handlers)
[GIN-debug] GET    /api/v1/user              --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/users.(*handler).getUser-fm (7 handlers)
[GIN-debug] POST   /api/v1/sign-in           --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/access.(*handler).signIn-fm (5 handlers)
[GIN-debug] POST   /api/v1/sign-out          --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/access.(*handler).signOut-fm (7 handlers)
[GIN-debug] POST   /api/v1/transaction       --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/transactions.(*handler).createTransaction-fm (7 handlers)
[GIN-debug] POST   /api/v1/transaction/search --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/transactions.(*handler).getTransactions-fm (7 handlers)
[GIN-debug] GET    /api/v1/transaction/:id   --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/transactions.(*handler).getTransaction-fm (7 handlers)
[GIN-debug] PUT    /api/v1/contact/:paymail  --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).upsertContact-fm (7 handlers)
[GIN-debug] PATCH  /api/v1/contact/accepted/:paymail --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).acceptContact-fm (7 handlers)
[GIN-debug] PATCH  /api/v1/contact/rejected/:paymail --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).rejectContact-fm (7 handlers)
[GIN-debug] PATCH  /api/v1/contact/confirmed --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).confirmContact-fm (7 handlers)
[GIN-debug] POST   /api/v1/contact/search    --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).getContacts-fm (7 handlers)
[GIN-debug] POST   /api/v1/contact/totp      --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/http/endpoints/api/contacts.(*handler).generateTotp-fm (7 handlers)
[GIN-debug] GET    /api/websocket            --> github.com/bitcoin-sv/spv-wallet-web-backend/transports/websocket.(*server).SetupEntrypoint.WrapH.func4 (9 handlers)
2024-10-21 13:17:26.169 INF Starting server on address :8180 application=spv-wallet-web-backend ecs.version=1.6.0 service=http-server

I did a docker restart spv-wallet-wallet-backend-1, still same error.

Screenshot from 2024-10-21 15-19-48

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