0

Just changed harddrive, and thought I would spin off a node from snapshot instead of copying .tezos-node folder, but it seems that the import operation does not exists anymore:

$ ./tezos-node snapshot import 694626-BKrv2G5sRNJW.rolling
tezos-node: OPERATION argument: invalid argument: import
Usage: tezos-node snapshot [OPTION]... OPERATION FILE
Try `tezos-node snapshot --help' or `tezos-node --help' for more information.

$ ./tezos-node snapshot --help
SYNOPSIS
       tezos-node snapshot [OPTION]... OPERATION FILE

DESCRIPTION
       The snapshot command is meant to export snapshots files. Several
       operations are possible:

       export allows to export a snapshot of the current node state into a
       file.

MISC OPTIONS
       --data-dir=DIR
           The directory where the Tezos node will store all its data.

       --rolling
           Force export command to dump a minimal snapshot based on the
           rolling mode.

ARGUMENTS
       OPERATION (required)
           Operation to perform. Possible value: export.
[...]

No mention of import, anyone knows what's happening?

4
  • using $ ./tezos-node --version d272059b (2019-04-08 09:57:21 +0200)
    – petronius
    Nov 16, 2019 at 20:23
  • There is an (old) version of mainnet where you can export snapshots but not import them. You should update your node (git pull && make build-deps && eval $(opam env) && make)
    – vect0r
    Nov 16, 2019 at 22:23
  • God... It couldnt be not up to date, as I checked out the repo yesterday. Sudden inspiration: $ git remote get-url origin https://github.com/tezos/tezos.git !!! Correct repo is gitlab, not github, they should remove this old mirror... Thanks @vect0r, add that as answer and i'll accept it.
    – petronius
    Nov 17, 2019 at 8:00
  • Hum, yes. The tezos sources are hosted on gitlab. It should be less confusing, I agree.
    – vect0r
    Nov 17, 2019 at 10:30

1 Answer 1

0

I seems that your node is not up-to-date. You should:

  • Ensure the repository address: https://gitlab.com/tezos/tezos/ (it can be checked using git remote get-url origin)

  • update the node: git pull && make build-deps && eval $(opam env) && make

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.