cron и фикс бага с пнг + защила filer

This commit is contained in:
kaktuz20000
2026-11-04 09:23:28 +03:00
parent a7a59ce335
commit 07e90e0f19
11 changed files with 192 additions and 152 deletions
@@ -44,9 +44,25 @@ finally:
"""
PRIVATE_CHECK_CODE = """
import socket
import sys
import urllib.error
import urllib.request
try:
socket.getaddrinfo("s3-core", 8888)
except socket.gaierror:
print("PASS: SeaweedFS master/filer network is isolated")
else:
raise RuntimeError("API network can resolve the SeaweedFS core service")
for port in (8181, 9101):
try:
socket.create_connection(("s3", port), timeout=1).close()
except OSError:
continue
raise RuntimeError("unexpected SeaweedFS gateway interface is reachable on port " + str(port))
try:
urllib.request.urlopen("http://s3:8333/messenger-attachments/", timeout=3)
except urllib.error.HTTPError as error: