Skip to content

Constant reloading of configfile in 2.7.4 #5789

@jorismak

Description

@jorismak

Just upgraded from caddy 2.5-ish I guess, to 2.7.4.

I get the constant reloaded from config file as well now.
Dumping the autosave.json through jq and to different files and then looking at the differences,
it appears there is another 'undeterministic' problem in the vhost names.

*** 1.json      2023-08-29 15:27:53.476468912 +0200
--- 2.json      2023-08-29 15:28:01.206467772 +0200
***************
*** 3081,3089 ****
                },
                "match": {
                  "sni": [
                    "thiccrm.dev.local",
!                   "thicform.dev.local",
!                   "thicpartners.dev.local"
                  ]
                }
              },
--- 3081,3089 ----
                },
                "match": {
                  "sni": [
+                   "thicpartners.dev.local",
                    "thiccrm.dev.local",
!                   "thicform.dev.local"
                  ]
                }
              },

In my caddyfile:

thiccrm.dev.local, thicform.dev.local, thicpartners.dev.local {
        bind localhost
        tls /home/joris/vhosts/wildcard.dev.local.crt /home/joris/vhosts/wildcard.dev.local.pem
        root * /home/joris/vhosts/thiccrm/public
        php_fastcgi unix//run/php/php8.1-fpm.sock
        file_server
}

(there is a lot more, but this is the culprit)

Originally posted by @jorismak in #5538 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐞Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions