ldez/traefik-certs-dumper

Crash due to EOF

Al2Klimov opened this issue · 3 comments

2019/12/25 19:11:13 file.go:96: error: EOF
ldez commented

Hello,

could you give more context:

  • Traefik version
  • source type
  • command line
  • a minimal reproducible example
  • ...
$ docker run -itv "/dev/null:/acme.json:ro" -v "$(pwd)/dump:/dump" ldez/traefik-certs-dumper file
Error: EOF
Usage:
  traefik-certs-dumper file [flags]

Flags:
  -h, --help             help for file
      --source string    Path to 'acme.json' file. (default "./acme.json")
      --version string   Traefik version. If empty use v1. Possible values: 'v2'.

Global Flags:
      --clean              Clean destination folder before dumping content. (default true)
      --config string      config file (default is $HOME/.traefik-certs-dumper.yaml)
      --crt-ext string     The file extension of the generated certificates. (default ".crt")
      --crt-name string    The file name (without extension) of the generated certificates. (default "certificate")
      --dest string        Path to store the dump content. (default "./dump")
      --domain-subdir      Use domain as sub-directory.
      --key-ext string     The file extension of the generated private keys. (default ".key")
      --key-name string    The file name (without extension) of the generated private keys. (default "privatekey")
      --post-hook string   Execute a command only if changes occurs on the data source. (works only with the watch mode)
      --watch              Enable watching changes.

2019/12/26 10:34:26 root.go:46: EOF

Not an actual real-world case, but a simulation of a not-yet-ready written to another FS acme.json.

That's the case if the Docker volume is just the acme.json.