qoollo / bob

Distributed BLOB storage
MIT License
31 stars 3 forks source link

Bob does not start in test mode #843

Open ikopylov opened 1 year ago

ikopylov commented 1 year ago

Multiple problems:

  1. Bob can't create data directory
  2. Bob tries to read logger config file, but it should not do this in test mode

First error:

thread 'main' panicked at 'Failed to create bob folder: Os { code: 2, kind: NotFound, message: "No such file or directory" }', bob-apps/bin/bobd.rs:360:42
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)

Second error:

[root@local-node-2 ~]# bobd testmode --data /opt/disk1/bob
Bob is starting
Data directory: /opt/disk1/bob
gRPC API available at: 127.0.0.1:20000
REST API available at: http://0.0.0.0:8000
REST API Put and Get available at: http://0.0.0.0:8000/data
thread 'main' panicked at 'can't find log config: unable to determine the file format', bob-apps/bin/bobd.rs:94:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)