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

Execute restore full error Process exited with status 1 #16

Closed
foesa-yang opened this issue Jul 29, 2021 · 1 comment
Closed

Execute restore full error Process exited with status 1 #16

foesa-yang opened this issue Jul 29, 2021 · 1 comment

Comments

@foesa-yang
Copy link

foesa-yang commented Jul 29, 2021

[foesa.yang@foesa nebula-br]$ ./bin/br restore full --meta "192.168.8.136:9559" --storage "local:///home/foesa.yang/backup" --name "BACKUP_2021_07_29_07_55_08" --user "foesa.yang"
Error: Process exited with status 1
Usage:
  br restore full [flags]

Flags:
  -h, --help   help for full

Global Flags:
      --concurrent int      max concurrent(for aliyun OSS) (default 5)
      --extra_args string   storage utils(oss/hdfs/s3) args for restore
      --log string          log path (default "br.log")
      --meta string         meta server
      --name string         backup name
      --storage string      storage path
      --user string         user for meta and storage

The following is the file information in br.log.

{"level":"info","ts":1627553333.970491,"caller":"remote/ssh.go:78","msg":"succeed to reach remote","addr of local":"192.168.8.136:37420"}
{"level":"info","ts":1627553333.9705858,"caller":"restore/restore.go:62","msg":"local address","address":"192.168.8.136"}
{"level":"info","ts":1627553333.9706125,"caller":"storage/storage.go:47","msg":"parsed external storage","schema":"local","path":"/home/foesa.yang/backup"}
{"level":"info","ts":1627553333.9706397,"caller":"metaclient/meta.go:73","msg":"start open meta","addr":"192.168.8.136:9559"}
{"level":"info","ts":1627553333.972423,"caller":"restore/restore.go:670","msg":"listcluster result","listcluster":"{\"code\":0,\"leader\":{\"host\":\"\",\"port\":0},\"meta_servers\":[{\"host\":\"127.0.0.1\",\"port\":9559}],\"storage_servers\":[{\"host\":{\"host\":\"127.0.0.1\",\"port\":9779},\"dir\":{\"root\":\"L3Vzci9sb2NhbC9uZWJ1bGE=\",\"data\":[\"L3Vzci9sb2NhbC9uZWJ1bGEvZGF0YS9zdG9yYWdl\"]}}]}"}
{"level":"info","ts":1627553333.9724572,"caller":"restore/restore.go:514","msg":"will get meta info","addr":"127.0.0.1:9559"}
{"level":"info","ts":1627553333.9724658,"caller":"metaclient/meta.go:73","msg":"start open meta","addr":"127.0.0.1:9559"}
{"level":"info","ts":1627553333.9729211,"caller":"restore/restore.go:685","msg":"meta node","node addr":"127.0.0.1:9559"}
{"level":"info","ts":1627553334.1419668,"caller":"remote/ssh.go:104","msg":"ssh will exec","addr":"127.0.0.1","cmd":"ls /home/foesa.yang/backup/BACKUP_2021_07_29_07_55_08","user":"foesa.yang"}
{"level":"info","ts":1627553334.16159,"caller":"remote/ssh.go:113","msg":"Command execution completed","addr":"127.0.0.1","cmd":"ls /home/foesa.yang/backup/BACKUP_2021_07_29_07_55_08"}
{"level":"info","ts":1627553334.165854,"caller":"remote/ssh.go:104","msg":"ssh will exec","addr":"127.0.0.1","cmd":"ls /home/foesa.yang/backup/BACKUP_2021_07_29_07_55_08","user":"foesa.yang"}
{"level":"info","ts":1627553334.1791985,"caller":"remote/ssh.go:113","msg":"Command execution completed","addr":"127.0.0.1","cmd":"ls /home/foesa.yang/backup/BACKUP_2021_07_29_07_55_08"}
{"level":"info","ts":1627553334.1792378,"caller":"restore/restore.go:106","msg":"download metafile","cmd":["cp","/home/foesa.yang/backup/BACKUP_2021_07_29_07_55_08/BACKUP_2021_07_29_07_55_08.meta","/tmp/"]}
{"level":"info","ts":1627553334.181504,"caller":"restore/restore.go:714","msg":"restore target's backup suffix","suffix":"_old_1627553334"}
{"level":"info","ts":1627553334.377977,"caller":"remote/ssh.go:104","msg":"ssh will exec","addr":"127.0.0.1","cmd":"cd /usr/local/nebula && scripts/nebula.service stop storaged","user":"foesa.yang"}
{"level":"info","ts":1627553334.3780446,"caller":"remote/ssh.go:104","msg":"ssh will exec","addr":"127.0.0.1","cmd":"cd /usr/local/nebula && scripts/nebula.service stop metad","user":"foesa.yang"}
{"level":"info","ts":1627553334.424814,"caller":"remote/ssh.go:113","msg":"Command execution completed","addr":"127.0.0.1","cmd":"cd /usr/local/nebula && scripts/nebula.service stop storaged"}
{"level":"info","ts":1627553334.4248772,"caller":"remote/ssh.go:113","msg":"Command execution completed","addr":"127.0.0.1","cmd":"cd /usr/local/nebula && scripts/nebula.service stop metad"}
{"level":"info","ts":1627553334.620101,"caller":"remote/ssh.go:104","msg":"ssh will exec","addr":"127.0.0.1","cmd":"mv /usr/local/nebula/data/meta/nebula /usr/local/nebula/data/meta/nebula_old_1627553334 && mkdir -p /usr/local/nebula/data/meta/nebula","user":"foesa.yang"}
{"level":"info","ts":1627553334.6201143,"caller":"remote/ssh.go:104","msg":"ssh will exec","addr":"127.0.0.1","cmd":"mv /usr/local/nebula/data/storage/nebula /usr/local/nebula/data/storage/nebula_old_1627553334 && mkdir -p /usr/local/nebula/data/storage/nebula","user":"foesa.yang"}
{"level":"error","ts":1627553334.6387486,"caller":"remote/ssh.go:110","msg":"ssh run failed","error":"Process exited with status 1","addr":"127.0.0.1","cmd":"mv /usr/local/nebula/data/storage/nebula /usr/local/nebula/data/storage/nebula_old_1627553334 && mkdir -p /usr/local/nebula/data/storage/nebula","stacktrace":"github.com/vesoft-inc/nebula-br/pkg/remote.(*Client).ExecCommandBySSH\n\t/home/foesa.yang/nebula-br/pkg/remote/ssh.go:110\ngithub.com/vesoft-inc/nebula-br/pkg/restore.remoteCommandConcurrentRunner.func1\n\t/home/foesa.yang/nebula-br/pkg/restore/restore.go:305\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/home/foesa.yang/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57"}
{"level":"error","ts":1627553334.6389482,"caller":"remote/ssh.go:110","msg":"ssh run failed","error":"Process exited with status 1","addr":"127.0.0.1","cmd":"mv /usr/local/nebula/data/meta/nebula /usr/local/nebula/data/meta/nebula_old_1627553334 && mkdir -p /usr/local/nebula/data/meta/nebula","stacktrace":"github.com/vesoft-inc/nebula-br/pkg/remote.(*Client).ExecCommandBySSH\n\t/home/foesa.yang/nebula-br/pkg/remote/ssh.go:110\ngithub.com/vesoft-inc/nebula-br/pkg/restore.remoteCommandConcurrentRunner.func1\n\t/home/foesa.yang/nebula-br/pkg/restore/restore.go:305\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/home/foesa.yang/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:57"}
{"level":"error","ts":1627553334.639028,"caller":"restore/restore.go:739","msg":"backup original failed","error":"Process exited with status 1","stacktrace":"github.com/vesoft-inc/nebula-br/pkg/restore.(*Restore).RestoreCluster\n\t/home/foesa.yang/nebula-br/pkg/restore/restore.go:739\ngithub.com/vesoft-inc/nebula-br/cmd.newFullRestoreCmd.func2\n\t/home/foesa.yang/nebula-br/cmd/restore.go:63\ngithub.com/spf13/cobra.(*Command).execute\n\t/home/foesa.yang/go/pkg/mod/github.com/spf13/[email protected]/command.go:850\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/home/foesa.yang/go/pkg/mod/github.com/spf13/[email protected]/command.go:958\ngithub.com/spf13/cobra.(*Command).Execute\n\t/home/foesa.yang/go/pkg/mod/github.com/spf13/[email protected]/command.go:895\nmain.main\n\t/home/foesa.yang/nebula-br/main.go:17\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225"}
@linkensphere201
Copy link
Contributor

The user indicated by --user should have write permission on target directory (e.g. /usr/local/nebula/data/meta/nebula) of
the storage or meta service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants