同机器部署:
COMPOSE_FILE=‘docker-compose.yml,python-pipeline.yml’
开发者5.0版本,完全按照教程部署的,
添加 内网访问脚本文件 到.env也不行
PYTHON_STARTER_ALTERNATIVE_FILE_SERVER_ROOT='https://aaa.ltd/seafhttp/'# 不行
# http://127.0.0.1:8082/也不行,
# 内网 FILE_SERVER_ROOT 地址
PYTHON_STARTER_USE_ALTERNATIVE_FILE_SERVER_ROOT=True
PYTHON_SCHEDULER_AUTH_TOKEN=3cf32068-262c-4ffc-02c5-6099ae6c0749
PYTHON_SCHEDULER_URL=http://python-scheduler
PYTHON_SCHEDULER_LOGS_DIR=/opt/seatable/python-pipeline/logs/scheduler-logs
PYTHON_STARTER_USE_ALTERNATIVE_FILE_SERVER_ROOT=True
PYTHON_STARTER_ALTERNATIVE_FILE_SERVER_ROOT=http://seatable
PYTHON_STARTER_LOGS_DIR=/opt/seatable/python-pipeline/logs/starter-logs
SEATABLE_SCHEDULER_IMAGE=seatable/seatable-python-scheduler:latest
SEATABLE_STARTER_IMAGE=seatable/seatable-python-starter:latest
SEATABLE_RUNNER_IMAGE=seatable/seatable-python-runner:latest
starter.log
[2024-08-13 23:46:26,808] [ERROR] root runner.py:204 run_python Failed to get script from http://seatable/seafhttp/files/86be5bc5-e9ca-4aae-bfd9-fd104413d6e7/JMT3.py, response: <Response [404]>
nginx.access.log
- 192.168.160.6 [13/Aug/2024:23:45:12 +0800] "POST /run-script/ HTTP/1.1" 403 72 "-" "python-requests/2.31.0" 0.008
- 192.168.208.6 [13/Aug/2024:23:46:26 +0800] "POST /run-script/ HTTP/1.1" 200 17 "-" "python-requests/2.31.0" 0.037
- 192.168.192.2 [13/Aug/2024:23:46:26 +0800] "POST /script-result/ HTTP/1.1" 200 7 "-" "python-starter/3.1.1" 0.010
- 192.168.208.6 [13/Aug/2024:23:46:29 +0800] "GET /run-script/39/?dtable_uuid=7deb1b49-0025-4af4-a99e-1315545c9273&script_name=JMT3.py HTTP/1.1" 200 306 "-" "python-requests/2.31.0" 0.006
- 192.168.208.6 [13/Aug/2024:23:46:40 +0800] "GET /tasks/7deb1b49-0025-4af4-a99e-1315545c9273/JMT3.py/logs/?page=1&per_page=15 HTTP/1.1" 200 551 "-" "python-requests/2.31.0" 0.009
- 192.168.208.6 [13/Aug/2024:23:46:43 +0800] "GET /tasks/7deb1b49-0025-4af4-a99e-1315545c9273/JMT3.py/logs/39/?order_by=-id HTTP/1.1" 200 310 "-" "python-requests/2.31.0" 0.004
scheduler.log
[2024-08-13 23:46:03] Updating CA certificates...
[2024-08-13 23:46:04] Start nginx ...
[2024-08-13 23:46:04] nginx ready
[2024-08-13 23:46:04] Start cron
[2024-08-13 23:46:04] Starting SeaTable Python Scheduler ...
127.0.0.1 - - [2024-08-13 23:46:26] "POST /run-script/ HTTP/1.0" 200 144 0.027076
127.0.0.1 - - [2024-08-13 23:46:26] "POST /script-result/ HTTP/1.0" 200 141 0.009235
127.0.0.1 - - [2024-08-13 23:46:29] "GET /run-script/39/?dtable_uuid=7deb1b49-0025-4af4-a99e-1315545c9273&script_name=JMT3.py HTTP/1.0" 200 641 0.005765
127.0.0.1 - - [2024-08-13 23:46:40] "GET /tasks/7deb1b49-0025-4af4-a99e-1315545c9273/JMT3.py/logs/?page=1&per_page=15 HTTP/1.0" 200 7686 0.008665
127.0.0.1 - - [2024-08-13 23:46:43] "GET /tasks/7deb1b49-0025-4af4-a99e-1315545c9273/JMT3.py/logs/39/?order_by=-id HTTP/1.0" 200 643 0.003207
seatable文件配置,dtable_web_settings.py
DTABLE_SERVER_URL = 'https://aaa.ltd/dtable-server/'
DTABLE_SOCKET_URL = 'https://aaa.ltd/'
# for dtable-web
DTABLE_WEB_SERVICE_URL = 'https://aaa.ltd/'
# for dtable-db
DTABLE_DB_URL = 'https://aaa.ltd/dtable-db/'
# for dtable-storage-server
DTABLE_STORAGE_SERVER_URL = 'http://127.0.0.1:6666/'
NEW_DTABLE_IN_STORAGE_SERVER = True
# for seaf-server
FILE_SERVER_ROOT = 'https://aaa.ltd/seafhttp/'
ENABLE_USER_TO_SET_NUMBER_SEPARATOR = True