lego: Renew just dies with no error (sometimes it says EOF)

run command works fine, renew fails silently for me

This is my cron that’s been working for months

/usr/local/bin/lego -email=devops@example.com -d=example.com -d=d1.example.com -d=d2.example.com --path=/etc/lego --dns=route53

This is the output I get (sometimes the EOF line is missing)

2017/01/08 23:28:49 [INFO][example.com] acme: Trying renewal with 1408 hours remaining
2017/01/08 23:28:49 [INFO][example.com, d1.example.com, d2.example.com] acme: Obtaining bundled SAN certificate
2017/01/08 23:28:51 EOF

Only started happening in Dec I believe. Any ideas?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 20 (7 by maintainers)

Most upvoted comments

I seem to have also encountered this error. It fails in the same spot, however mine spit out a panic.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xc8 pc=0x7fb1a3f5f935]

goroutine 18 [running]:
panic(0x7fb1a48ae740, 0xc420012070)
	/usr/lib/go/src/runtime/panic.go:500 +0x1a5
github.com/xenolf/lego/acme.(*Client).getChallenges.func1(0xc4204182a0, 0xc420408840, 0xc4204087e0, 0xc420429300, 0xf)
	/go/src/github.com/xenolf/lego/acme/client.go:529 +0x195
created by github.com/xenolf/lego/acme.(*Client).getChallenges
	/go/src/github.com/xenolf/lego/acme/client.go:542 +0x115