Git Product home page Git Product logo

Comments (7)

waynexia avatar waynexia commented on May 27, 2024

Sorry for the inconvenience.

It should be $data_home/metadata, where $data_home is default to /tmp/greptimedb

data_home = "/tmp/greptimedb/"

If /tmp is not available, could you please try to override the default data home with --data-home command line option? E.g.:

greptime standalone start --data-home "/var/lib/greptime"

from greptimedb.

waynexia avatar waynexia commented on May 27, 2024

BTW, the Permission denied error is from third-party dep raft-engine. Maybe we should check permission before passing it to raft-engine.

from greptimedb.

yurivict avatar yurivict commented on May 27, 2024

It should never print a message with the error code without the relevant detail like the file name.

from greptimedb.

tisonkun avatar tisonkun commented on May 27, 2024

Maybe we should check permission before

Or enrich the error with path configured when getting such IO error.

from greptimedb.

waynexia avatar waynexia commented on May 27, 2024

There should be a log right before the error that contains the directory, like here is what I get from my env:

2024-02-20T02:53:31.195714Z  INFO log: Create raft log directory: ../no_permission/metadata    
Error: 0: Failed to start frontend, at /home/wayne/repo/greptimedb-dev/src/cmd/src/standalone.rs:400:10
1: Failed to open raft engine backend, at /home/wayne/repo/greptimedb-dev/src/frontend/src/instance.rs:176:14
2: Failed to perform raft-engine operation, at src/log-store/src/raft_engine/backend.rs:46:43
3: Io(Os { code: 13, kind: PermissionDenied, message: "Permission denied" })

@yurivict do you have a similar thing?

from greptimedb.

yurivict avatar yurivict commented on May 27, 2024

Maybe there was a line "INFO log: Create raft log directory:", but it is several lines above and doesn't make it clear whether it was successful or not.

"Permission denied" should be in the same line with the file name for which permission was denied.

from greptimedb.

tisonkun avatar tisonkun commented on May 27, 2024

"Permission denied" should be in the same line with the file name for which permission was denied.

This is impossible or even more cumbersome due to Rust's std io lib design - it wraps what errno returns without context aware.

We can instead enrich the context as in #3327 so that result is like:

Error: 0: Failed to start frontend, at /Users/tison/Brittani/greptimedb/src/cmd/src/standalone.rs:400:10
1: Failed to open raft engine backend, at /Users/tison/Brittani/greptimedb/src/frontend/src/instance.rs:176:14
2: Failed to perform IO on path: /var/root/metadata, at src/log-store/src/raft_engine/backend.rs:50:10
3: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }

Not the same line, but the same stack.

from greptimedb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.