Comments (7)
Sorry for the inconvenience.
It should be $data_home/metadata
, where $data_home
is default to /tmp/greptimedb
greptimedb/config/standalone.example.toml
Line 166 in 6668d6b
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.
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.
It should never print a message with the error code without the relevant detail like the file name.
from greptimedb.
Maybe we should check permission before
Or enrich the error with path configured when getting such IO error.
from greptimedb.
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.
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.
"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)
- improve observability for procedure
- Fuzz insert test failed HOT 10
- Fuzz alter logical table failed HOT 1
- panic when executing a flow job
- Write requests may stall too long when the write buffer is full HOT 1
- Make auto-create/alter table through gRPC put request optional
- Support "show status" HOT 4
- Support to drop multiple tables HOT 1
- failed to write data using prometheus remote_write HOT 2
- Implement an information schema table to inspect flow node's internal state. HOT 2
- Workflow run 'Release' failed HOT 3
- [Tracking issue] open regions in batches
- Checking if database is used currently when dropping database HOT 1
- Workflow run 'Release' failed HOT 1
- Workflow run 'Release' failed HOT 1
- Metadata upgrade tool
- deps: Use opendal's PrometheusLayer directly HOT 2
- Consider ignoring existing corrupted data instead of throwing an error
- Failed to flush physical metric table
- Use into_bytes_stream and into_bytes_sink instead of io::copy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from greptimedb.