Skip to content

Conversation

@alexislefebvre
Copy link
Contributor

@alexislefebvre alexislefebvre commented Jan 28, 2026

Q A
Branch? 4.2
Tickets .
License MIT
Doc PR .

It was generating one error per second:

php-1                | 2026/01/28 17:04:20.778  ERROR   Setting the "transport_url" directive is not available anymore, use the "transport" directive instead
php-1                | 2026/01/28 17:04:21.778  ERROR   Setting the "transport_url" directive is not available anymore, use the "transport" directive instead
php-1                | 2026/01/28 17:04:22.778  ERROR   Setting the "transport_url" directive is not available anymore, use the "transport" directive instead
php-1                | 2026/01/28 17:04:23.778  ERROR   Setting the "transport_url" directive is not available anymore, use the "transport" directive instead
php-1                | 2026/01/28 17:04:24.778  ERROR   Setting the "transport_url" directive is not available anymore, use the "transport" directive instead
php-1                | 2026/01/28 17:04:25.778  ERROR   Setting the "transport_url" directive is not available anymore, use the "transport" directive instead
php-1                | 2026/01/28 17:04:26.778  ERROR   Setting the "transport_url" directive is not available anymore, use the "transport" directive instead
php-1                | 2026/01/28 17:04:27.778  ERROR   Setting the "transport_url" directive is not available anymore, use the "transport" directive instead
php-1                | 2026/01/28 17:04:28.778  ERROR   Setting the "transport_url" directive is not available anymore, use the "transport" directive instead
php-1                | 2026/01/28 17:04:29.778  ERROR   Setting the "transport_url" directive is not available anymore, use the "transport" directive instead

Changing this remove these repeated errors but show one error once:

php-1                | 2026/01/28 17:04:30.778  ERROR   watcher unable to load latest config    {"config_file": "/etc/caddy/Caddyfile", "error": "adapting config using caddyfile: parsing caddyfile tokens for 'mercure': getting module named 'http.handlers.mercure.bolt:///data/mercure.db': module not registered: http.handlers.mercure.bolt:///data/mercure.db, at /etc/caddy/Caddyfile:31"}

@alexislefebvre alexislefebvre changed the title fix: error from caddy fix: error from Caddy Jan 28, 2026
@alexislefebvre
Copy link
Contributor Author

Mhh, this broke the php container in CI. 😬

@vincentchalamon
Copy link
Contributor

Once CI fixed, don't forget to apply this fix to https://github.com/api-platform/api-platform/blob/main/api/frankenphp/Caddyfile

@vincentchalamon
Copy link
Contributor

Error in CI:

Error: adapting config using caddyfile: parsing caddyfile tokens for 'mercure': getting module named 'http.handlers.mercure.bolt:///data/mercure.db': module not registered: http.handlers.mercure.bolt:///data/mercure.db, at /etc/caddy/Caddyfile:31

@alexislefebvre if you're stuck on this error, maybe @dunglas could help.

@alexislefebvre
Copy link
Contributor Author

alexislefebvre commented Jan 30, 2026

Someone else encountered the same error but ended up with another error after removing _url: https://stackoverflow.com/questions/79878069/caddy-crashes-with-an-error-when-configuring-mercure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants