Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vmbackup: cannot open snapshot: no such file or directory #6379

Open
3 tasks
hidakafinzelz opened this issue May 30, 2024 · 1 comment
Open
3 tasks

vmbackup: cannot open snapshot: no such file or directory #6379

hidakafinzelz opened this issue May 30, 2024 · 1 comment
Assignees
Labels

Comments

@hidakafinzelz
Copy link

Is your question request related to a specific component?

No response

Describe the question in detail

create snap and delete right now.

root@localhost-Standard-PC-i440FX-PIIX-1996:/home/localhost/workspace/localhost/vec# ./vicbackup/utils/vmbackup-prod -storageDataPath=/home/localhost/workspace/localhost/vec/data -snapshot.createURL=http://localhost:8428/snapshot/create -dst=fs:///home/localhost/workspace/localhost/vec/backtmp
2024-05-30T08:56:44.465Z info VictoriaMetrics/lib/logger/flag.go:12 build version: vmbackup-20240425-145523-tags-v1.101.0-0-g5334f0c2c
2024-05-30T08:56:44.465Z info VictoriaMetrics/lib/logger/flag.go:13 command-line flags
2024-05-30T08:56:44.466Z info VictoriaMetrics/lib/logger/flag.go:20 -dst="fs:///home/localhost/workspace/localhost/vec/backtmp"
2024-05-30T08:56:44.466Z info VictoriaMetrics/lib/logger/flag.go:20 -snapshot.createURL="secret"
2024-05-30T08:56:44.466Z info VictoriaMetrics/lib/logger/flag.go:20 -storageDataPath="/home/localhost/workspace/localhost/vec/data"
2024-05-30T08:56:44.467Z info VictoriaMetrics/app/vmbackup/main.go:67 Snapshot create url http://localhost:8428/snapshot/create
2024-05-30T08:56:44.467Z info VictoriaMetrics/app/vmbackup/main.go:78 Snapshot delete url http://localhost:8428/snapshot/delete
2024-05-30T08:56:44.468Z info VictoriaMetrics/lib/snapshot/snapshot.go:32 Creating snapshot
2024-05-30T08:56:44.844Z info VictoriaMetrics/lib/snapshot/snapshot.go:64 Snapshot 20240530085644-17D42B837EDE4E68 created
2024-05-30T08:56:44.844Z info VictoriaMetrics/lib/snapshot/snapshot.go:75 Deleting snapshot 20240530085644-17D42B837EDE4E68
2024-05-30T08:56:44.845Z info VictoriaMetrics/lib/httpserver/httpserver.go:119 starting server at http://127.0.0.1:8420/
2024-05-30T08:56:44.845Z info VictoriaMetrics/lib/httpserver/httpserver.go:120 pprof handlers are exposed at http://127.0.0.1:8420/debug/pprof/
2024-05-30T08:56:44.875Z info VictoriaMetrics/lib/snapshot/snapshot.go:108 Snapshot 20240530085644-17D42B837EDE4E68 deleted
2024-05-30T08:56:44.875Z fatal VictoriaMetrics/app/vmbackup/main.go:104 cannot create backup: cannot open snapshot at "/home/localhost/workspace/localhost/vec/data/snapshots/20240530085644-17D42B837EDE4E68": open /home/localhost/workspace/localhost/vec/data/snapshots/20240530085644-17D42B837EDE4E68: no such file or directory

Troubleshooting docs

@hidakafinzelz hidakafinzelz added the question The question issue label May 30, 2024
@dmitryk-dk dmitryk-dk self-assigned this May 30, 2024
@dmitryk-dk
Copy link
Contributor

Hi @hidakafinzelz ! As i can see from the log you incorrectly set the storage path. The error that you see happened before the folder was deleted. But the problem here i think is that you defined the storage data as -storageDataPath=/home/localhost/workspace/localhost/vec/data but you should defined it as -storageDataPath=/home/localhost/workspace/localhost/vec/

@Amper Amper added the vmbackup label May 30, 2024
@hagen1778 hagen1778 changed the title vmbackup faild vmbackup: cannot open snapshot: no such file or directory Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants