未启用http/2支持(安装http2和tls twisted extras)

ghhaqwfi  于 2021-06-10  发布在  Redis
关注(0)|答案(1)|浏览(1282)

我创建了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应用配置中启用HTTP2.0。但不起作用。
任何人都可以帮我。
r55awzrz

r55awzrz1#

你能试着直接在容器服务中运行redis来看看它是否有效吗?我更关心的是安全攻击消息,这意味着根据链接,有人(健康检查或其他东西)正试图连接到redis作为http端点。
在通道中,http/2消息只是一个信息日志,所以这不应该是一个问题。
此外,您还可以共享有关您正在尝试构建的图像的更多信息,以便可以识别任何设置问题。

相关问题