未启用HTTP/2支持(安装http2和tls-Twisted附加组件)



我创建了Azure web应用程序容器服务。我正在尝试构建redis镜像和私人Django频道镜像。我收到上面的错误,容器正在停止。这些是我在web应用程序容器中的日志。enter code here

2020-07-08T01:24:20.575Z ERROR -`enter code here` multi-container unit was not started successfully
2020-07-08T01:24:20.585Z INFO - Container logs from kiwi-message-delivery_redis_0_530c2465 = 2020-07-08T01:20:34.613961396Z 1:C 08 Jul 2020 01:20:34.613 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
2020-07-08T01:20:34.622739022Z 1:C 08 Jul 2020 01:20:34.622 # Redis version=6.0.5, bits=64, commit=00000000, modified=0, pid=1, just started
2020-07-08T01:20:34.623124845Z 1:C 08 Jul 2020 01:20:34.622 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
2020-07-08T01:20:34.708013928Z 1:M 08 Jul 2020 01:20:34.707 Running mode=standalone, port=6379.
2020-07-08T01:20:34.708440853Z 1:M 08 Jul 2020 01:20:34.708 # Server initialized
2020-07-08T01:20:34.708763573Z 1:M 08 Jul 2020 01:20:34.708 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
2020-07-08T01:20:34.709083492Z 1:M 08 Jul 2020 01:20:34.708 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
2020-07-08T01:20:34.709659826Z 1:M 08 Jul 2020 01:20:34.709 Ready to accept connections
2020-07-08T01:20:37.186901553Z 1:M 08 Jul 2020 01:20:37.186 # Possible SECURITY ATTACK detected. It looks like somebody is sending POST or Host: commands to Redis. This is likely due to an attacker attempting to use Cross Protocol Scripting to compromise your Redis instance. Connection aborted.
2020-07-08T01:21:38.792293857Z 1:M 08 Jul 2020 01:21:38.792 # Possible SECURITY ATTACK detected. It looks like somebody is sending POST or Host: commands to Redis. This is likely due to an attacker attempting to use Cross Protocol Scripting to compromise your Redis instance. Connection aborted.
2020-07-08T01:22:39.333304667Z 1:M 08 Jul 2020 01:22:39.333 # Possible SECURITY ATTACK detected. It looks like somebody is sending POST or Host: commands to Redis. This is likely due to an attacker attempting to use Cross Protocol Scripting to compromise your Redis instance. Connection aborted.
2020-07-08T01:23:40.870740206Z 1:M 08 Jul 2020 01:23:40.870 # Possible SECURITY ATTACK detected. It looks like somebody is sending POST or Host: commands to Redis. This is likely due to an attacker attempting to use Cross Protocol Scripting to compromise your Redis instance. Connection aborted.
2020-07-08T01:24:24.447Z INFO - Container logs from kiwi-message-delivery_channels_0_530c2465 = 2020-07-08T01:20:43.833567596Z 2020-07-08 01:20:43,832 INFO Starting server at tcp:port=8000:interface=0.0.0.0
2020-07-08T01:20:43.834721057Z 2020-07-08 01:20:43,834 INFO HTTP/2 support not enabled (install the http2 and tls Twisted extras)
2020-07-08T01:20:43.841353805Z 2020-07-08 01:20:43,840 INFO Configuring endpoint tcp:port=8000:interface=0.0.0.0
2020-07-08T01:20:43.843852936Z 2020-07-08 01:20:43,843 INFO Listening on TCP address 0.0.0.0:8000
2020-07-08T01:24:29.155Z INFO - Stopping site kiwi-message-delivery because it failed during startup.

我尝试在Web应用程序配置中启用HTTP 2.0。但不起作用。

任何人都请帮我做这件事。

您可以尝试直接在容器服务中运行redis吗?我更关心的是安全攻击消息,这意味着根据每个链接,有人(健康检查或其他什么(试图作为http端点连接到redis。

在通道中,HTTP/2消息只是一个信息日志,所以这不应该是一个问题。

此外,您还可以共享有关您正在尝试构建的图像的更多信息,以便识别任何设置问题。

最新更新