[Solved] Fails To Start decoding certificate metadata: unexpected end of JSON input


(Noah Huppert) #1

Problem

I encountered an error when trying to start Caddy:

Activating privacy features... 2019/02/08 02:06:01 decoding certificate metadata: unexpected end of JSON input

I found a previous thread with the same issue. However the solution in this thread was not relevant to my setup.

Solution

I figured out that the reason this error occurred is because the Caddy program did not have access to my $CADDYPATH directory.

Make sure to chown your $CADDYPATH so that the Caddy binary can access it

I am posting the answer here for anyone who might encounter this same issue.