ChineseSubFinder/ChineseSubFinder

linux的docker无法启动

5536086 opened this issue · 0 comments

你使用的 chinesesubfinder 是什么版本,什么环境?

chinesesubfinder 版本: docker latest

环境: docker

在程序运行日志头部或者 Web UI 可以看到

你遇到什么问题了?

无法打开webui,docker的logs: Need do Setup, then do PreJob;Need do Setup, then do CornJob

你的问题弄重现嘛?

能够重新

你期望的结果

期望能够正常运行

给出当前程序的配置文件

{
          "SpeedDevMode":  false,
          "user_info":  {
                    "username":  "",
                    "password":  ""
          },
          "common_settings":  {
                    "interval_or_assign_or_custom":  0,
                    "scan_interval":  "@every 6h",
                    "threads":  1,
                    "run_scan_at_start_up":  false,
                    "movie_paths":  [

                    ],
                    "series_paths":  [

                    ],
                    "local_static_file_port":  "19037"
          },
          "subtitle_sources":  {
                    "assrt_settings":  {
                              "enabled":  false,
                              "token":  ""
                    },
                    "subtitle_best_settings":  {
                              "enabled":  false,
                              "api_key":  ""
                    }
          },
          "advanced_settings":  {
                    "proxy_settings":  {
                              "use_proxy":  false,
                              "use_which_proxy_protocol":  "[http](https://www.json.cn/http)",
                              "local_http_proxy_server_port":  "19036",
                              "input_proxy_address":  "127.0.0.1",
                              "input_proxy_port":  "10809",
                              "need_pwd":  false,
                              "input_proxy_username":  "",
                              "input_proxy_password":  ""
                    },
                    "tmdb_api_settings":  {
                              "enable":  false,
                              "api_key":  "",
                              "use_alternate_base_url":  false
                    },
                    "debug_mode":  false,
                    "save_full_season_tmp_subtitles":  false,
                    "sub_type_priority":  0,
                    "sub_name_formatter":  0,
                    "save_multi_sub":  false,
                    "custom_video_exts":  [

                    ],
                    "fix_time_line":  false,
                    "topic":  1,
                    "suppliers_settings":  {
                              "xunlei":  {
                                        "name":  "xunlei",
                                        "root_url":  "http://sub.xmp.sandai.net:8000/subxl/%s.json",
                                        "search_url":  "",
                                        "daily_download_limit":  -1
                              },
                              "shooter":  {
                                        "name":  "shooter",
                                        "root_url":  "https://www.shooter.cn/api/subapi.php",
                                        "search_url":  "",
                                        "daily_download_limit":  -1
                              },
                              "assrt":  {
                                        "name":  "assrt",
                                        "root_url":  "https://api.assrt.net/v1",
                                        "search_url":  "",
                                        "daily_download_limit":  -1
                              },
                              "a4k":  {
                                        "name":  "a4k",
                                        "root_url":  "https://www.a4k.net/",
                                        "search_url":  "/search?keyword=",
                                        "daily_download_limit":  -1
                              },
                              "subhd":  {
                                        "name":  "subhd",
                                        "root_url":  "https://subhd.tv/",
                                        "search_url":  "/search/%s",
                                        "daily_download_limit":  20
                              },
                              "zimuku":  {
                                        "name":  "zimuku",
                                        "root_url":  "https://zimuku.org/",
                                        "search_url":  "/search?q=%s",
                                        "daily_download_limit":  20
                              },
                              "subtitle_best":  {
                                        "name":  "subtitle_best",
                                        "root_url":  "https://api.subtitle.best/share-sub/v1",
                                        "search_url":  "/search-movie",
                                        "daily_download_limit":  -1
                              }
                    },
                    "scan_logic":  {
                              "skip_chinese_movie":  false,
                              "skip_chinese_series":  false
                    },
                    "task_queue":  {
                              "max_retry_times":  3,
                              "one_job_time_out":  300,
                              "interval":  10,
                              "expiration_time":  90,
                              "download_sub_during_x_days":  7,
                              "one_sub_download_interval":  12,
                              "check_pulic_ip_target_site":  ""
                    },
                    "download_file_cache":  {
                              "ttl":  4320,
                              "unit":  "hour"
                    }
          },
          "emby_settings":  {
                    "enable":  false,
                    "address_url":  "",
                    "api_key":  "",
                    "max_request_video_number":  500,
                    "skip_watched":  false,
                    "movie_paths_mapping":  {

                    },
                    "series_paths_mapping":  {

                    },
                    "auto_or_manual":  true,
                    "threads":  4
          },
          "developer_settings":  {
                    "enable":  false,
                    "bark_server_address":  ""
          },
          "timeline_fixer_settings":  {
                    "max_offset_time":  700,
                    "min_offset":  0.2,
                    "thread_count":  5
          },
          "experimental_function":  {
                    "auto_change_sub_encode":  {
                              "enable":  false,
                              "des_encode_type":  0
                    },
                    "chs_cht_changer":  {
                              "enable":  false,
                              "des_chinese_language_type":  0
                    },
                    "remote_chrome_settings":  {
                              "enable":  false,
                              "remote_docker_url":  "",
                              "remote_adblock_path":  "",
                              "remote_user_data_dir":  ""
                    },
                    "api_key_settings":  {
                              "enabled":  false,
                              "key":  ""
                    },
                    "local_chrome_settings":  {
                              "enabled":  false,
                              "local_chrome_exe_f_path":  ""
                    },
                    "share_sub_settings":  {
                              "share_sub_enabled":  false
                    },
                    "extend_log":  {
                              "SysLog":  {
                                        "enable":  false,
                                        "network":  "",
                                        "address":  "",
                                        "priority":  0,
                                        "tag":  ""
                              }
                    }
          }
}

如果是使用 Docker,请给出对应的配置信息

version: "3"
services:
chinesesubfinder:
image: allanpk716/chinesesubfinder:latest
volumes:
- ./config:/config # 冒号左边请修改为你想在主机上保存配置、日志等文件的路径
- /home/Medias:/media # 请修改为你的媒体目录,冒号右边可以改成你方便记忆的目录,多个媒体目录需要分别映射进来
- ./browser:/root/.cache/rod/browser # 容器重启后无需再次下载 chrome,除非 go-rod 更新
environment:
- PUID=0 # uid
- PGID=0 # gid
- PERMS=True # 是否重设/media权限
- TZ=Asia/Shanghai # 时区
- UMASK=000 # 权限掩码
restart: always
network_mode: bridge
hostname: chinesesubfinder
container_name: chinesesubfinder
ports:
- 19035:19035 # 从0.20.0版本开始,通过webui来设置
- 19037:19037 # webui 的视频列表读取图片用,务必设置不要暴露到外网
logging:
driver: "json-file"
options:
max-size: "100m" # 限制docker控制台日志大小,可自行调整

给出媒体文件夹的目录结构

电影目录结构
1

请给出当次问题的完整日志

日志在程序的 Logs 目录下,如果你用的是 docker ,那么需要你映射出来。

[INFO]: 2024-02-24 17:23:52 - LiteMode is true
[INFO]: 2024-02-24 17:23:52 - ChineseSubFinder Version: v0.55.3 Lite
[INFO]: 2024-02-24 17:23:52 - Reload Log Settings, level = Info
[INFO]: 2024-02-24 17:23:52 - Speed Dev Mode is Off
[INFO]: 2024-02-24 17:23:52 - Download.SupplierCheck() Start ...
[INFO]: 2024-02-24 17:23:52 - PreDownloadProcess.Init().Check().Wait()...
[INFO]: 2024-02-24 17:23:52 - PreDownloadProcess.Init() Start...
[INFO]: 2024-02-24 17:23:52 - ClearRodTmpRootFolder Done
[INFO]: 2024-02-24 17:23:52 - PreDownloadProcess.Init() End
[INFO]: 2024-02-24 17:23:52 - PreDownloadProcess.Check() Start...
[INFO]: 2024-02-24 17:23:52 - UseHttpProxy = false
[INFO]: 2024-02-24 17:23:55 - UrlConnectednessTest Target Site https://baidu.com Speed: 3035 ms, Status: true
[INFO]: 2024-02-24 17:23:55 - Check Sub Supplier Start...
[ERROR]: 2024-02-24 17:23:56 - a4k CheckAlive.Get Get "https://www.a4k.net": dial tcp: lookup www.a4k.net on 169.254.169.254:53: no such host
[WARNING]: 2024-02-24 17:23:56 - a4k Check Alive = false
[INFO]: 2024-02-24 17:23:56 - xunlei Check Alive = true, Speed = 267 ms
[INFO]: 2024-02-24 17:23:56 - shooter Check Alive = true, Speed = 392 ms
[INFO]: 2024-02-24 17:23:56 - Alive Supplier: xunlei
[INFO]: 2024-02-24 17:23:56 - Alive Supplier: shooter
[INFO]: 2024-02-24 17:23:56 - Check Sub Supplier End
[WARNING]: 2024-02-24 17:23:56 - MoviePaths not set, len == 0
[WARNING]: 2024-02-24 17:23:56 - SeriesPaths not set, len == 0
[INFO]: 2024-02-24 17:23:56 - PreDownloadProcess.Check() End
[INFO]: 2024-02-24 17:23:56 - PreDownloadProcess.Wait() Done.
[INFO]: 2024-02-24 17:23:56 - Download.SupplierCheck() End
[INFO]: 2024-02-24 17:23:56 - Try Start Http Server At Port 19035
[INFO]: 2024-02-24 17:23:56 - Need do Setup, then do PreJob
[INFO]: 2024-02-24 17:23:56 - Need do Setup, then do CornJob
[INFO]: 2024-02-24 17:35:30 - LiteMode is true
[INFO]: 2024-02-24 17:35:30 - ChineseSubFinder Version: v0.55.3 Lite
[INFO]: 2024-02-24 17:35:30 - Reload Log Settings, level = Info
[INFO]: 2024-02-24 17:35:30 - Speed Dev Mode is Off
[INFO]: 2024-02-24 17:35:30 - Download.SupplierCheck() Start ...
[INFO]: 2024-02-24 17:35:30 - PreDownloadProcess.Init().Check().Wait()...
[INFO]: 2024-02-24 17:35:30 - PreDownloadProcess.Init() Start...
[INFO]: 2024-02-24 17:35:30 - ClearRodTmpRootFolder Done
[INFO]: 2024-02-24 17:35:30 - PreDownloadProcess.Init() End
[INFO]: 2024-02-24 17:35:30 - PreDownloadProcess.Check() Start...
[INFO]: 2024-02-24 17:35:30 - UseHttpProxy = false
[INFO]: 2024-02-24 17:35:30 - UrlConnectednessTest Target Site https://baidu.com Speed: 526 ms, Status: true
[INFO]: 2024-02-24 17:35:30 - Check Sub Supplier Start...
[INFO]: 2024-02-24 17:35:30 - xunlei Check Alive = true, Speed = 60 ms
[ERROR]: 2024-02-24 17:35:30 - a4k CheckAlive.Get Get "https://www.a4k.net": dial tcp: lookup www.a4k.net on 169.254.169.254:53: no such host
[WARNING]: 2024-02-24 17:35:30 - a4k Check Alive = false
[INFO]: 2024-02-24 17:35:30 - shooter Check Alive = true, Speed = 165 ms
[INFO]: 2024-02-24 17:35:30 - Alive Supplier: xunlei
[INFO]: 2024-02-24 17:35:30 - Alive Supplier: shooter
[INFO]: 2024-02-24 17:35:30 - Check Sub Supplier End
[WARNING]: 2024-02-24 17:35:30 - MoviePaths not set, len == 0
[WARNING]: 2024-02-24 17:35:30 - SeriesPaths not set, len == 0
[INFO]: 2024-02-24 17:35:30 - PreDownloadProcess.Check() End
[INFO]: 2024-02-24 17:35:30 - PreDownloadProcess.Wait() Done.
[INFO]: 2024-02-24 17:35:30 - Download.SupplierCheck() End
[INFO]: 2024-02-24 17:35:30 - Try Start Http Server At Port 19035
[INFO]: 2024-02-24 17:35:30 - Need do Setup, then do PreJob
[INFO]: 2024-02-24 17:35:30 - Need do Setup, then do CornJob