codenotary / immudb

immudb - immutable database based on zero trust, SQL/Key-Value/Document model, tamperproof, data change history
https://immudb.io
Other
8.54k stars 341 forks source link

Playground and web console don't seem to be working #1726

Closed ricardo8990 closed 10 months ago

ricardo8990 commented 1 year ago

What happened

I am evaluating either if immudb is a good choice as a main ledger DB for us. However, when I tried to go through the playground it doesn't seem to be working. Am I using it the wrong way?

What you expected to happen

How to reproduce it (as minimally and precisely as possible)

https://github.com/codenotary/immudb/assets/1802934/e95a54b8-7c29-4b40-bcc6-63d46e45f49e

On the other hand, I tried to run it locally using (from the docs):

docker run -d --net host -p 8080:8080 -it --rm --name immudb codenotary/immudb:latest

The log shows:

 _                               _ _
(_)                             | | |
 _ _ __ ___  _ __ ___  _   _  __| | |__
| | '_ ` _ \| '_ ` _ \| | | |/ _` | '_ \
| | | | | | | | | | | | |_| | (_| | |_) |
|_|_| |_| |_|_| |_| |_|\__,_|\__,_|_.__/

immudb 1.5.0
Commit  : 6103e9a00dd062f466b5a275cbaea18a647c69a1
Built at: Wed, 21 Jun 2023 16:39:19 UTC
Static  : true
================ Config ================
Data dir         : /var/lib/immudb
Address          : 0.0.0.0:3322
Metrics address  : 0.0.0.0:9497/metrics
Sync replication : false
Config file      : configs/immudb.toml
Log format       : text
Max recv msg size: 33554432
Auth enabled     : true
Dev mode         : true
Default database : defaultdb
Maintenance mode : false
Synced mode      : true
----------------------------------------
Superadmin default credentials
   Username      : immudb
   Password      : immudb
========================================

immudb 2023/07/03 21:34:39 INFO: Creating database 'systemdb' {replica = false}...
immudb 2023/07/03 21:34:40 INFO: Binary Linking up to date at '/var/lib/immudb/systemdb'
immudb 2023/07/03 21:34:40 INFO: Index '/var/lib/immudb/systemdb/index' {ts=0, discarded_snapshots=0} successfully loaded
immudb 2023/07/03 21:34:40 INFO: Indexing in progress at '/var/lib/immudb/systemdb'
immudb 2023/07/03 21:34:40 INFO: Loading SQL Engine for database 'systemdb' {replica = false}...
immudb 2023/07/03 21:34:40 INFO: SQL Engine ready for database 'systemdb' {replica = false}
immudb 2023/07/03 21:34:40 INFO: Database 'systemdb' successfully created {replica = false}
immudb 2023/07/03 21:34:40 INFO: Admin user 'immudb' successfully created
immudb 2023/07/03 21:34:40 INFO: Creating database 'defaultdb' {replica = false}...
immudb 2023/07/03 21:34:40 INFO: Binary Linking up to date at '/var/lib/immudb/defaultdb'
immudb 2023/07/03 21:34:40 INFO: Index '/var/lib/immudb/defaultdb/index' {ts=0, discarded_snapshots=0} successfully loaded
immudb 2023/07/03 21:34:40 INFO: Indexing in progress at '/var/lib/immudb/defaultdb'
immudb 2023/07/03 21:34:40 INFO: Loading SQL Engine for database 'defaultdb' {replica = false}...
immudb 2023/07/03 21:34:40 INFO: SQL Engine ready for database 'defaultdb' {replica = false}
immudb 2023/07/03 21:34:40 INFO: Database 'defaultdb' successfully created {replica = false}
immudb 2023/07/03 21:34:40 INFO: Started with an empty default database
immudb 2023/07/03 21:34:40 INFO: Flushing index '/var/lib/immudb/systemdb/index' {ts=1, cleanup_percentage=0.00/0.00, since_cleanup=1} requested via SnapshotSince...
immudb 2023/07/03 21:34:40 INFO: Index '/var/lib/immudb/systemdb/index' {ts=1, cleanup_percentage=0.00/0.00} successfully flushed
immudb 2023/07/03 21:34:40 INFO: Flushing index '/var/lib/immudb/systemdb/index' {ts=1} finished with: 1 inner nodes, 0 leaf nodes, 1 entries
immudb 2023/07/03 21:34:40 INFO: sessions guard started
immudb 2023/07/03 21:34:40 INFO: pgsql server is running at port 5432
immudb 2023/07/03 21:34:40 INFO: Webconsole enabled: 0.0.0.0:8080
immudb 2023/07/03 21:34:40 INFO: Web API server enabled on 0.0.0.0:8080/api (http)
You can now use immuadmin and immuclient CLIs to login with the immudb superadmin user and start using immudb.

However, if I tried to access the web console at localhost:8080 but the connection is refused:

image

Is there any additional step am I missing?

Thanks in advance

jeroiraz commented 1 year ago

Thanks for reporting it @ricardo8990, the playground seems to had an issue with the automated upgrade... We'll investigate it.

Regarding the webconsole, it should be working, have you tried with the binary? Are you using macos? if so you could try with docker run -d -p 8080:8080 -it --name immudb codenotary/immudb:latest