Hi all,

Managed to get it work without docker.

Now have a final problem,

redis://localhost:6379/0
redis://localhost:6379/1

https://redis.io/docs/latest/commands/select/

Does kvrocks support logical database 0-16?

It seems we connect to different database but they share the same key and
values.

Thanks.

Peter



On Sat, Jan 11, 2025 at 5:53 PM hulk <hulk.webs...@gmail.com> wrote:

> Hi,
>
> > kvrocks implements the Redis protocol based on rocksdb
> > Usage:
>  >   -c, --config <filename>         set config file to <filename>, or `-`
>
> Seems the configuration file `var/lib/kvrocks/kvrocks.conf` is missing
> inside the docker.
>
> You can try to use `docker exec` to enter the docker and check if this file
> exists.
> Guess you mount the `/var/lib/kvrocks` volume but the configuration file is
> missing.
>
> On Sat, 11 Jan 2025 at 13:18, Admin SuperMama <admin@supermama.cloud>
> wrote:
>
> > Here's the text:
> >
> > CONTAINER ID   IMAGE
> > COMMAND                  CREATED          STATUS
> > PORTS     NAMES
> > 0db65592a793   apache/kvrocks
> >  "kvrocks -c /var/lib…"   18 seconds ago   Restarting (1) 3 seconds ago
> >         klt-kvrocks-sg-c2d-c-20250111-051526-uuok
> > 61261012c01d   gcr.io/stackdriver-agents/stackdriver-logging-agent:1.9.9
> > "/entrypoint.sh /usr…"   22 seconds ago   Up 19 seconds
> >        stackdriver-logging-agent
> >
> > docker logs 0db65592a793
> > kvrocks implements the Redis protocol based on rocksdb
> > Usage:
> >     -c, --config <filename>         set config file to <filename>, or `-`
> > for stdin
> >     -v, --version                   print version information
> >     -h, --help                      print this help message
> >     --<config-key> <config-value>   overwrite specific config option
> > <config-key> to <config-value>
> > kvrocks implements the Redis protocol based on rocksdb
> > Usage:
> >     -c, --config <filename>         set config file to <filename>, or `-`
> > for stdin
> >     -v, --version                   print version information
> >     -h, --help                      print this help message
> >     --<config-key> <config-value>   overwrite specific config option
> > <config-key> to <config-value>
> > kvrocks implements the Redis protocol based on rocksdb
> > Usage:
> >     -c, --config <filename>         set config file to <filename>, or `-`
> > for stdin
> >     -v, --version                   print version information
> >     -h, --help                      print this help message
> >     --<config-key> <config-value>   overwrite specific config option
> > <config-key> to <config-value>
> > kvrocks implements the Redis protocol based on rocksdb
> >
> > Machine log:
> >
> > DEFAULT 2025-01-11T05:16:35.735615Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] 2025-01-11T05:16:35.735369053Z network
> > connect eb7feb9ac252acd49d1e3cda8a76f9d1f953dba51a5c40524a11f2c4497547ff
> >
> >
> (container=0db65592a793df445d2d3e46211d76813d28366f846e885dfd925a75d6642923,
> > name=host, type=host)
> > DEFAULT 2025-01-11T05:16:35.737506Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] 2025-01-11T05:16:35.737330131Z volume
> > mount 9f8da084c523a1ee9162bfe68566a04e96efe73318030d5dd40b03bdc3bde047
> >
> >
> (container=0db65592a793df445d2d3e46211d76813d28366f846e885dfd925a75d6642923,
> > destination=/var/lib/kvrocks, driver=local, propagation=,
> read/write=true)
> > DEFAULT 2025-01-11T05:16:35.807646Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] 2025-01-11T05:16:35.807403771Z
> container
> > start 0db65592a793df445d2d3e46211d76813d28366f846e885dfd925a75d6642923
> > (image=apache/kvrocks, name=klt-kvrocks-sg-c2d-c-20250111-051526-uuok)
> > DEFAULT 2025-01-11T05:16:35.815815Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] time="2025-01-11T05:16:35.815783572Z"
> > level=info msg="ignoring event"
> >
> container=0db65592a793df445d2d3e46211d76813d28366f846e885dfd925a75d6642923
> > module=libcontainerd namespace=moby topic=/tasks/delete
> > type="*events.TaskDelete"
> > DEFAULT 2025-01-11T05:16:35.831677Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] 2025-01-11T05:16:35.829395998Z network
> > disconnect
> eb7feb9ac252acd49d1e3cda8a76f9d1f953dba51a5c40524a11f2c4497547ff
> >
> >
> (container=0db65592a793df445d2d3e46211d76813d28366f846e885dfd925a75d6642923,
> > name=host, type=host)
> > DEFAULT 2025-01-11T05:16:35.835486Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] 2025-01-11T05:16:35.835341352Z volume
> > unmount 9f8da084c523a1ee9162bfe68566a04e96efe73318030d5dd40b03bdc3bde047
> >
> >
> (container=0db65592a793df445d2d3e46211d76813d28366f846e885dfd925a75d6642923,
> > driver=local)
> > DEFAULT 2025-01-11T05:16:35.840380Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] 2025-01-11T05:16:35.840241018Z
> container
> > die 0db65592a793df445d2d3e46211d76813d28366f846e885dfd925a75d6642923
> > (exitCode=1, image=apache/kvrocks,
> > name=klt-kvrocks-sg-c2d-c-20250111-051526-uuok)
> > DEFAULT 2025-01-11T05:16:36.493764755Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] kvrocks implements the Redis protocol
> > based on rocksdb
> > DEFAULT 2025-01-11T05:16:36.494232204Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] Usage:
> > DEFAULT 2025-01-11T05:16:36.494402754Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] -c, --config <filename> set config file
> > to <filename>, or `-` for stdin
> > DEFAULT 2025-01-11T05:16:36.494577424Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] -v, --version print version information
> > DEFAULT 2025-01-11T05:16:36.494726594Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] -h, --help print this help message
> > DEFAULT 2025-01-11T05:16:36.494881584Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] --<config-key> <config-value> overwrite
> > specific config option <config-key> to <config-value>
> > DEFAULT 2025-01-11T05:17:01.434616Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] 2025-01-11T05:17:01.434352579Z network
> > connect eb7feb9ac252acd49d1e3cda8a76f9d1f953dba51a5c40524a11f2c4497547ff
> >
> >
> (container=0db65592a793df445d2d3e46211d76813d28366f846e885dfd925a75d6642923,
> > name=host, type=host)
> > DEFAULT 2025-01-11T05:17:01.437206Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] 2025-01-11T05:17:01.437024466Z volume
> > mount 9f8da084c523a1ee9162bfe68566a04e96efe73318030d5dd40b03bdc3bde047
> >
> >
> (container=0db65592a793df445d2d3e46211d76813d28366f846e885dfd925a75d6642923,
> > destination=/var/lib/kvrocks, driver=local, propagation=,
> read/write=true)
> > DEFAULT 2025-01-11T05:17:01.511427Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] 2025-01-11T05:17:01.511236051Z
> container
> > start 0db65592a793df445d2d3e46211d76813d28366f846e885dfd925a75d6642923
> > (image=apache/kvrocks, name=klt-kvrocks-sg-c2d-c-20250111-051526-uuok)
> > DEFAULT 2025-01-11T05:17:01.521600Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] time="2025-01-11T05:17:01.521536221Z"
> > level=info msg="ignoring event"
> >
> container=0db65592a793df445d2d3e46211d76813d28366f846e885dfd925a75d6642923
> > module=libcontainerd namespace=moby topic=/tasks/delete
> > type="*events.TaskDelete"
> > DEFAULT 2025-01-11T05:17:01.536139Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] 2025-01-11T05:17:01.535768166Z network
> > disconnect
> eb7feb9ac252acd49d1e3cda8a76f9d1f953dba51a5c40524a11f2c4497547ff
> >
> >
> (container=0db65592a793df445d2d3e46211d76813d28366f846e885dfd925a75d6642923,
> > name=host, type=host)
> > DEFAULT 2025-01-11T05:17:01.543353Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] 2025-01-11T05:17:01.543202239Z volume
> > unmount 9f8da084c523a1ee9162bfe68566a04e96efe73318030d5dd40b03bdc3bde047
> >
> >
> (container=0db65592a793df445d2d3e46211d76813d28366f846e885dfd925a75d6642923,
> > driver=local)
> > DEFAULT 2025-01-11T05:17:01.548034Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] 2025-01-11T05:17:01.547915514Z
> container
> > die 0db65592a793df445d2d3e46211d76813d28366f846e885dfd925a75d6642923
> > (exitCode=1, image=apache/kvrocks,
> > name=klt-kvrocks-sg-c2d-c-20250111-051526-uuok)
> > DEFAULT 2025-01-11T05:17:02.493093524Z [resource.labels.instanceId:
> > kvrocks-sg-c2d-c-20250111-051526] kvrocks implements the Redis protocol
> > based on rocksdb
> >
> >
> > On Sat, Jan 11, 2025 at 12:12 PM hulk <hulk.webs...@gmail.com> wrote:
> >
> > > Hi
> > >
> > > The attachment looks broken, could you please provide the error
> messages
> > in
> > > text format?
> > >
> > > On Sat, 11 Jan 2025 at 10:30, Admin SuperMama <admin@supermama.cloud>
> > > wrote:
> > >
> > > > Hi all,
> > > >
> > > > I am trying to test out kvrocks on GCP VM and failed with errors.
> > It's a
> > > > simple GCP machine with ContainerOS, which we used for running other
> > > docker
> > > > images without issue.
> > > >
> > > > Docker runs fine on my macbook.
> > > >
> > > > Maybe I am missing arguments for kvrocks to start? Please advice
> > thanks!
> > > >
> > > >
> > > > Keep restarting:
> > > > [image: image.png]
> > > > Log suggests that there's some issue and the kvrocks command print
> out
> > a
> > > > help message, but did not specify whats the error.
> > > > [image: image.png]
> > > > Docker configuration with no special arguments.
> > > > [image: image.png]
> > > > Thanks your help much appreciated.
> > > >
> > > > Peter
> > > >
> > >
> > >
> > > --
> > > Best Regards,
> > > - *Hulk Lin*
> > >
> >
>
>
> --
> Best Regards,
> - *Hulk Lin*
>

Reply via email to