简体   繁体   English

AH02026: 获取 SSL session 缓存锁失败

[英]AH02026: Failed to acquire SSL session cache lock

First post, apologies if I get anything wrong.第一次发帖,如有错误请见谅。

Apache/2.4.6 (CentOS 7) Apache/2.4.6 (CentOS 7)

I am seeing repeated warnings in the ssl_error_logs of many of my virtual hosts.我在许多虚拟主机的 ssl_error_logs 中看到重复警告。 The warnings are:警告是:

[ssl:warn] [pid 8995] (22)Invalid argument: AH02027: Failed to release SSL session cache lock [ssl:warn] [pid 8995] (22)无效参数:AH02027: 无法释放 SSL session 缓存锁

[ssl:warn] [pid 8997] (22)Invalid argument: AH02026: Failed to acquire SSL session cache lock [ssl:warn] [pid 8997] (22)无效参数:AH02026: 无法获取 SSL session 缓存锁

If I restart httpd these errors go away for up to a few days but then re-appear.如果我重新启动 httpd,这些错误 go 会消失几天,然后重新出现。

I have read around this issue but can find no solution.我已经阅读了这个问题,但找不到解决方案。 Can anyone help?任何人都可以帮忙吗?

I have the same problem with Apache/2.4.41 on Ubuntu 20.04.3 LTS.我对 Ubuntu 20.04.3 LTS 上的 Apache/2.4.41 有同样的问题。 I have not been able to figure out a solution.我一直无法找到解决方案。 An apache2-restart solves the problem for a while (minutes to hours), then it comes back. apache2-restart 解决了一段时间(几分钟到几小时)的问题,然后又回来了。 It re-occurs faster when the apache2-load is higher.当 apache2-load 较高时,它会更快地重新出现。 Because of this my apache error-logfiles are nearly as big as my access-logfiles.因此,我的 apache 错误日志文件几乎与我的访问日志文件一样大。 I have not touched the SSL configuration coming with the distribution, so I assume that this is a common problem on sites with heavy load.我还没有接触过随发行版提供的 SSL 配置,所以我认为这是重负载站点上的常见问题。

Does it make sense to disable SSL caching completely?完全禁用 SSL 缓存是否有意义? SSL caching does not seem to work correctly anyway. SSL 缓存似乎无论如何都无法正常工作。

This happens when the APACHE_RUN_USER is used for ssh login purposes too.当 APACHE_RUN_USER 用于 ssh 登录目的时也会发生这种情况。 Then systemd clears all the locks of the user during logout including the locks used by apache2.然后 systemd 在注销期间清除用户的所有锁,包括 apache2 使用的锁。

The solution is to prevent systemd from removing the locks:解决方案是防止 systemd 移除锁:

Add the following line to /etc/systemd/logind.conf将以下行添加到 /etc/systemd/logind.conf

RemoveIPC=no删除IPC=否

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM