Skip to content

按照 readm 操作,systemd 无法启动 #120

@cyclinder

Description

@cyclinder
Jan 30 06:01:51 ubuntu systemd[1]: clash-for-linux.service: Scheduled restart job, restart counter is at 134.
Jan 30 06:01:51 ubuntu systemd[1]: Started clash-for-linux.service - Clash for Linux.
Jan 30 06:01:51 ubuntu bash[628848]: CPU architecture: amd64
Jan 30 06:01:51 ubuntu bash[628848]: [WARN] SYSTEMD_MODE=true 且 CLASH_URL 为空,跳过订阅更新,使用本地兜底配置启动
Jan 30 06:01:51 ubuntu bash[628848]: 正在启动Clash服务...
Jan 30 06:01:51 ubuntu bash[628848]: [INFO] SYSTEMD_MODE=true,前台启动交给 systemd 监管
Jan 30 06:01:51 ubuntu bash[628848]: [INFO] Using config: /opt/clash-for-linux/conf/config.yaml
Jan 30 06:01:51 ubuntu bash[628848]: [INFO] Using runtime dir: /opt/clash-for-linux/conf
Jan 30 06:01:51 ubuntu bash[628848]: time="2026-01-30T06:01:51.414686868Z" level=info msg="Start initial configuration in progress"
Jan 30 06:01:51 ubuntu bash[628848]: time="2026-01-30T06:01:51.414893089Z" level=fatal msg="Parse config error: path is not subpath of home directory or SAFE_PATHS: /opt/clash-for-linux/.config/mihomo/ui \n allowed paths: [/opt/clash-for-linux/conf]"
Jan 30 06:01:51 ubuntu systemd[1]: clash-for-linux.service: Main process exited, code=exited, status=1/FAILURE
Jan 30 06:01:51 ubuntu systemd[1]: clash-for-linux.service: Failed with result 'exit-code'.
Jan 30 06:01:56 ubuntu systemd[1]: clash-for-linux.service: Scheduled restart job, restart counter is at 135.
Jan 30 06:01:56 ubuntu systemd[1]: Started clash-for-linux.service - Clash for Linux.
Jan 30 06:01:56 ubuntu bash[628915]: CPU architecture: amd64
Jan 30 06:01:56 ubuntu bash[628915]: [WARN] SYSTEMD_MODE=true 且 CLASH_URL 为空,跳过订阅更新,使用本地兜底配置启动
Jan 30 06:01:56 ubuntu bash[628915]: 正在启动Clash服务...
Jan 30 06:01:56 ubuntu bash[628915]: [INFO] SYSTEMD_MODE=true,前台启动交给 systemd 监管
Jan 30 06:01:56 ubuntu bash[628915]: [INFO] Using config: /opt/clash-for-linux/conf/config.yaml
Jan 30 06:01:56 ubuntu bash[628915]: [INFO] Using runtime dir: /opt/clash-for-linux/conf
Jan 30 06:01:56 ubuntu bash[628915]: time="2026-01-30T06:01:56.915461518Z" level=info msg="Start initial configuration in progress"
Jan 30 06:01:56 ubuntu bash[628915]: time="2026-01-30T06:01:56.915653722Z" level=fatal msg="Parse config error: path is not subpath of home directory or SAFE_PATHS: /opt/clash-for-linux/.config/mihomo/ui \n allowed paths: [/opt/clash-for-linux/conf]"
Jan 30 06:01:56 ubuntu systemd[1]: clash-for-linux.service: Main process exited, code=exited, status=1/FAILURE
Jan 30 06:01:56 ubuntu systemd[1]: clash-for-linux.service: Failed with result 'exit-code'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions