我在ovh服务器上使用Symfony 4.4在生产模式下设置Mercure有困难。它在dev模式下运行良好,但是当我试图在prod中部署它时,我遇到了这个问题。
loading initial config: loading new config: http app module: start: tcp: listening on :443: listen tcp :443: bind: address already in use这是我的卡迪文件
{
# {$GLOBAL_OPTIONS}
}
{$SERVER_NAME:monsite.fr}
log
route {
redir / /.well-known/mercure/ui/
encode zstd gzip
mercure {
# Transport to use (default to Bolt)
transport_url {$MERCURE_TRANSPORT_URL:bolt://mercure.db}
# Publisher JWT key
publisher_jwt {env.MERCURE_PUBLISHER_JWT_KEY} {env.MERCURE_PUBLISHER_JWT_ALG}
# Subscriber JWT key
subscriber_jwt {env.MERCURE_SUBSCRIBER_JWT_KEY} {env.MERCURE_SUBSCRIBER_JWT_ALG}
# Permissive configuration for the development environment
cors_origins *
publish_origins *
demo
anonymous
subscriptions
# Extra directives
{$MERCURE_EXTRA_DIRECTIVES}
}
respond /healthz 200
respond "Not Found" 404
}因此,我试图用端口3000更改端口,但是得到了以下错误:
2022/08/29 11:28:41.230 ERROR tls.issuance.acme.acme_client deactivating authorization {"identifier": "monsite.fr", "authz": "https://acme.zerossl.com/v2/DV90/authz/BXGXc1Fhb2xL6WN4PNWyGw", "error": "request to https://acme.zerossl.com/v2/DV90/authz/BXGXc1Fhb2xL6WN4PNWyGw failed after 1 attempts: context canceled"}
2022/08/29 11:28:41.230 ERROR tls.obtain could not get certificate from issuer {"identifier": "monsite.fr", "issuer": "acme.zerossl.com-v2-DV90", "error": "[monsite.fr] solving challenges: [monsite.fr] context canceled (order=https://acme.zerossl.com/v2/DV90/order/Db-LeFrtzvBUllnxtuU8og) (ca=https://acme.zerossl.com/v2/DV90)"}
2022/08/29 11:28:41.230 INFO tls.obtain releasing lock {"identifier": "monsite.fr"}
2022/08/29 11:28:41.230 ERROR tls.obtain unable to unlock {"identifier": "monsite.fr", "lock_key": "issue_cert_monsite.fr", "error": "remove /root/.local/share/caddy/locks/issue_cert_monsite.fr.lock: no such file or directory"}
2022/08/29 11:28:41.230 ERROR tls job failed {"error": "monsite.fr: obtaining certificate: [monsite.fr] Obtain: [monsite.fr] solving challenges: [monsite.fr] context canceled (order=https://acme.zerossl.com/v2/DV90/order/Db-LeFrtzvBUllnxtuU8og) (ca=https://acme.zerossl.com/v2/DV90)"}我在域上有一个“让我们加密”证书,但是我在网上发现更改端口不适用于“让我们加密”。
但是端口80和443已经在使用了,我能做些什么来使它工作呢?
发布于 2022-09-05 13:43:23
我也有过同样的问题,这也让我成功了:
停止使用端口443的程序,启动合并服务器(它将获得证书),重新启动使用端口443的程序。
然而,我不确定证书更新是否会正常工作。
https://stackoverflow.com/questions/73528435
复制相似问题