Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker 报hlink没有权限,试试使用sudo执行 #181

Open
KrDw9ec4 opened this issue May 4, 2024 · 1 comment
Open

docker 报hlink没有权限,试试使用sudo执行 #181

KrDw9ec4 opened this issue May 4, 2024 · 1 comment

Comments

@KrDw9ec4
Copy link

KrDw9ec4 commented May 4, 2024

docker部署,报hlink没有权限,试试使用sudo执行,实在想不明白 docker 部署我该怎么用 sudo 执行这个命令,查遍了也没发现相关的 issues……

docker compose 文件:

services:
  docker:
    image: likun7981/hlink:latest
    restart: on-failure
    ports:
      # 这个端口映射
      - 9090:9090
    volumes:
      # 这个表示存储空间映射
      - /mnt/tiplus/animes:/animes
      - /home/krdw/docker/data/hlink:/config
    environment:
      - PUID=1000
      - PGID=1000
      - UMASK=022
      - HLINK_HOME=/config

运行错误日志:

[24/05/04 20:17:30]  WARN  hlink没有权限
[24/05/04 20:17:30]  WARN   试试使用sudo执行: sudo hlink xxxx
file:///usr/local/lib/node_modules/hlink/node_modules/@hlink/core/lib/main/link.js:32
                throw new HLinkError(errorCode, `${chalk.gray(getDirBasePath(source, sourceFile))} ${chalk.cyan('>')} ${getDirBasePath(dest, path.join(originalDestPath, path.basename(sourceFile)))}`);
                      ^

HLinkError
    at link (file:///usr/local/lib/node_modules/hlink/node_modules/@hlink/core/lib/main/link.js:32:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async callback (file:///usr/local/lib/node_modules/hlink/node_modules/@hlink/core/lib/main/hlink.js:67:21)
    at async Promise.all (index 1)
    at async execAsyncByGroup (file:///usr/local/lib/node_modules/hlink/node_modules/@hlink/core/lib/utils/execAsyncByGroup.js:7:9)
    at async hlink (file:///usr/local/lib/node_modules/hlink/node_modules/@hlink/core/lib/main/hlink.js:62:9)
    at async main (file:///usr/local/lib/node_modules/hlink/node_modules/@hlink/core/lib/main/index.js:4:5) {
  isHlinkError: true,
  code: 'NotPermitted',
  filepath: '\x1B[90mcollect/GIRLS BAND CRY/[Nekomoe kissaten&LoliHouse] GIRLS BAND CRY - 02 [WebRip 1080p HEVC-10bit AAC ASSx2].mkv\x1B[39m \x1B[36m>\x1B[39m collect/GIRLS BAND CRY/[Nekomoe kissaten&LoliHouse] GIRLS BAND CRY - 02 [WebRip 1080p HEVC-10bit AAC ASSx2].mkv',
  reason: undefined,
  ignore: false
}

Node.js v18.16.0

[24/05/04 20:17:30]  ERROR  任务执行出错,已终止

目录都是当前用户所有,真不太清楚哪里有权限问题……

@KrDw9ec4
Copy link
Author

KrDw9ec4 commented May 5, 2024

貌似是因为我的移动硬盘是 exFat 格式的原因?在系统盘 ext4 上测试就没这个问题……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant