Warning about file "pb.proto" being already registered

I am sure this is known (EDIT - it is: pb.proto warning · Issue #3525 · caddyserver/caddy · GitHub, I am keeping this post in case someone would be looking for it here, feel free to delete it if not appropriate for the forum) but just in case, I noticed a warning when (re)starting caddy (v2.1.0 h1:MC4d65RCVaEKy1iOFjsD51mybOwS8qdEVBi7ESDhUfE=) - I left the last line from the previous run

{"level":"info","ts":1593545734.2722967,"msg":"shutting down apps then terminating","signal":"SIGTERM"}
2020/06/30 19:35:47 WARNING: proto: file "pb.proto" is already registered
A future release will panic on registration conflicts. See:
https://developers.google.com/protocol-buffers/docs/reference/go/faq#namespace-conflict
{"level":"info","ts":1593545748.0162666,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
{"level":"info","ts":1593545748.03735,"logger":"admin","msg":"admin endpoint started","address":"tcp/localhost:2019","enforce_origin":false,"origins":["localhost:2019","[::1]:2019","127.0.0.1:2019"]}
{"level":"info","ts":1593545748.0379236,"logger":"http","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv0","http_port":80}

I run caddy in a docker container, so when checking for the version I saw the same warning:

/etc/docker # docker exec -it caddy sh  
/srv # caddy version
2020/06/30 19:40:15 WARNING: proto: file "pb.proto" is already registered
A future release will panic on registration conflicts. See:
https://developers.google.com/protocol-buffers/docs/reference/go/faq#namespace-conflict

v2.1.0 h1:MC4d65RCVaEKy1iOFjsD51mybOwS8qdEVBi7ESDhUfE=
/srv #
1 Like

This is a known problem: pb.proto warning · Issue #3525 · caddyserver/caddy · GitHub, fixed in 2.1.1

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.