Skip to content

fix: error from Caddy#581

Merged
vincentchalamon merged 1 commit intoapi-platform:4.2from
alexislefebvre:fix-error-from-Caddy
Feb 4, 2026
Merged

fix: error from Caddy#581
vincentchalamon merged 1 commit intoapi-platform:4.2from
alexislefebvre:fix-error-from-Caddy

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

This comment was marked as resolved.

@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

@vincentchalamon
Copy link
Contributor

Fixed with https://mercure.rocks/docs/UPGRADE#0-17

@vincentchalamon
Copy link
Contributor

Backport available on api-platform/api-platform here: api-platform/api-platform#2976

@vincentchalamon vincentchalamon merged commit 09b9cbc into api-platform:4.2 Feb 4, 2026
7 checks passed
@alexislefebvre alexislefebvre deleted the fix-error-from-Caddy branch February 4, 2026 17:08
@alexislefebvre
Copy link
Contributor Author

Thanks @vincentchalamon!

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