Can't find UUID in /home/caddy/.caddy


(Paul Fontaine) #1

Hi,
I’am try to get some telemetry informations about my caddy server.
But i can’t find the UUID in /home/caddy/.caddy

In this folder i only have “acme” ,“locks” and “ocsp”

It’s a fresh install from today. Can you help me :blush: ?


(Matthew Fay) #2

Hi @leveloute, welcome to the Caddy community.

How did you install Caddy, and what does it output when you run it?


(Paul Fontaine) #3

Hi @Whitestrake,
I install caddy with like this ( on ubuntu 18.04 ) :

sudo apt-get install libcap2-bin curl -y
sudo -u caddy curl -fsSL https://getcaddy.com  | bash -s personal "http.git,http.upload"
sudo setcap cap_net_bind_service=+ep /usr/local/bin/caddy
create_caddyfile
runuser -l caddy -c "mkdir log"
mkdir /var/www
runuser -l caddy -c "mkdir log/ces-esport.fr"
mkdir /var/www/ces-esport.fr

Here is the output ( journalctl -u caddy ) :

Feb 26 16:41:29 localhost systemd[1]: Started Caddy - The HTTP/2 web server with automatic HTTPS.
Feb 26 16:41:29 localhost caddy[24645]: Activating privacy features… done.
Feb 26 16:41:29 localhost caddy[24645]: https://www.ces-esport.fr
Feb 26 16:41:29 localhost caddy[24645]: https://ces-esport.fr
Feb 26 16:41:29 localhost caddy[24645]: https://www.question.ces-esport.fr
Feb 26 16:41:29 localhost caddy[24645]: https://www.questions.ces-esport.fr
Feb 26 16:41:29 localhost caddy[24645]: https:/www.phpmyadmin.ces-esport.fr
Feb 26 16:41:29 localhost caddy[24645]: https:/phpmyadmin.ces-esport.fr
Feb 26 16:41:29 localhost caddy[24645]: https:/questions.ces-esport.fr
Feb 26 16:41:29 localhost caddy[24645]: https:/question.ces-esport.fr
Feb 26 16:41:29 localhost caddy[24645]: http:/www.ces-esport.fr
Feb 26 16:41:29 localhost caddy[24645]: http:/ces-esport.fr
Feb 26 16:41:29 localhost caddy[24645]: http:/www.question.ces-esport.fr
Feb 26 16:41:29 localhost caddy[24645]: http:/www.questions.ces-esport.fr
Feb 26 16:41:29 localhost caddy[24645]: http:/www.phpmyadmin.ces-esport.fr
Feb 26 16:41:29 localhost caddy[24645]: http:/phpmyadmin.ces-esport.fr
Feb 26 16:41:29 localhost caddy[24645]: http:/questions.ces-esport.fr
Feb 26 16:41:29 localhost caddy[24645]: http:/question.ces-esport.fr

(i delete the / of the urls to avoid new user link limitation)

Thank you by advance.

Paul


(Matthew Fay) #4

When you install via the bash script, telemetry is disabled by default (as it downloads the binary from the official website).

# To enable telemetry, export CADDY_TELEMETRY=on.

https://getcaddy.com/

Ensure the variable is exported before you run the script to download Caddy.


(Paul Fontaine) #5

So there is no way to enable it on a running caddy, without returning from sratch ?


(Sugarcube) #6

No, not possible.
(Although I am not sure what is actually included in the downloaded binaries, if they contain code close to the the public source code then it appears to be not possible.)

Telemetry is included in the binary or not, using a compile time flag. So you either have a binary with or else without telemetery. You can not switch it on or off at runtime, or even with restarting the binary.

In order to have telemetry in the binary, as @Whitestrake says you have to make sure to set CADDY_TELEMETRY before download, so you receive the right binary.

If you have a binary with telemetry enabled, you will see something like this appearing in the logs :
[NOTICE] Sending telemetry: