northsea4 / mdcx-docker

在Docker容器中运行 MDCX,并通过Web界面或远程桌面进行控制。Run MDCX in a Docker container, accessible and controllable via a web interface or remote desktop.
GNU General Public License v3.0
601 stars 77 forks source link

[BUG] 提示无文件权限 #31

Closed fhyoga closed 11 months ago

fhyoga commented 11 months ago

是否存在已有问题?

问题描述

搜刮后没有写入权限

预期表现

No response

复现步骤

文件夹

image image

其他没有特殊配置

环境

- 操作系统:
- Docker服务安装方式:

CPU架构

amd64

使用的镜像

mdcx-builtin-gui-base

Docker创建方式

使用极空间的GUI创建的

容器日志

日志信息

X2023-11-23T17:31:32.627837790Z [app         ]  To: /av/碧しの/failed/HEYZO-1242.mp4 
�2023-11-23T17:31:32.627842011Z [app         ]  Error: [Errno 2] No such file or directory: '/av/碧しの/failed/HEYZO-1242.mp4'
Q2023-11-23T17:31:32.627845545Z [app         ] Traceback (most recent call last):
T2023-11-23T17:31:32.627848701Z [app         ]   File "shutil.py", line 815, in move
�2023-11-23T17:31:32.627851875Z [app         ] FileNotFoundError: [Errno 2] No such file or directory: '/av/碧しの/HEYZO-1242 美痴女~ヤリマン先生がイク!~/HEYZO-1242.mp4' -> '/av/碧しの/failed/HEYZO-1242.mp4'
r2023-11-23T17:31:32.627855859Z [app         ] During handling of the above exception, another exception occurred:
Q2023-11-23T17:31:32.627858937Z [app         ] Traceback (most recent call last):
c2023-11-23T17:31:32.627874976Z [app         ]   File "Function/Function.py", line 94, in move_file
T2023-11-23T17:31:32.627878485Z [app         ]   File "shutil.py", line 835, in move
U2023-11-23T17:31:32.627881583Z [app         ]   File "shutil.py", line 434, in copy2
X2023-11-23T17:31:32.627884557Z [app         ]   File "shutil.py", line 256, in copyfile
�2023-11-23T17:31:32.627887621Z [app         ] FileNotFoundError: [Errno 2] No such file or directory: '/av/碧しの/failed/HEYZO-1242.mp4'
Q2023-11-23T17:31:32.901439263Z [app         ] Traceback (most recent call last):
h2023-11-23T17:31:32.901472627Z [app         ]   File "MDCx_Main.py", line 10804, in creat_failed_folder
T2023-11-23T17:31:32.901478831Z [app         ]   File "os.py", line 225, in makedirs
t2023-11-23T17:31:32.901483018Z [app         ] PermissionError: [Errno 13] Permission denied: '/av/碧しの/failed'
]2023-11-23T17:31:32.903562061Z [app         ]  Move File: /av/碧しの/CPN15B~J/CCDV-35.mp4
U2023-11-23T17:31:32.903585544Z [app         ]  To: /av/碧しの/failed/CCDV-35.mp4 
~2023-11-23T17:31:32.903591203Z [app         ]  Error: [Errno 2] No such file or directory: '/av/碧しの/failed/CCDV-35.mp4'
Q2023-11-23T17:31:32.903595358Z [app         ] Traceback (most recent call last):
T2023-11-23T17:31:32.903598765Z [app         ]   File "shutil.py", line 815, in move
�2023-11-23T17:31:32.903602358Z [app         ] FileNotFoundError: [Errno 2] No such file or directory: '/av/碧しの/CPN15B~J/CCDV-35.mp4' -> '/av/碧しの/failed/CCDV-35.mp4'
r2023-11-23T17:31:32.903606419Z [app         ] During handling of the above exception, another exception occurred:
Q2023-11-23T17:31:32.903609925Z [app         ] Traceback (most recent call last):
c2023-11-23T17:31:32.903613266Z [app         ]   File "Function/Function.py", line 94, in move_file
T2023-11-23T17:31:32.903616734Z [app         ]   File "shutil.py", line 835, in move
U2023-11-23T17:31:32.903620013Z [app         ]   File "shutil.py", line 434, in copy2
X2023-11-23T17:31:32.903623260Z [app         ]   File "shutil.py", line 256, in copyfile
�2023-11-23T17:31:32.903626741Z [app         ] FileNotFoundError: [Errno 2] No such file or directory: '/av/碧しの/failed/CCDV-35.mp4'
�2023-11-23T17:31:39.915168170Z [app         ] 110520_001  无码 javbus(1s) -> iqqtv[jp](2s) -> iqqtv[zh_cn](1s) -> jav321(0s) -> javdb(7s) -> freejavbt(2s)
Q2023-11-23T17:31:40.344456001Z [app         ] Traceback (most recent call last):
h2023-11-23T17:31:40.344490605Z [app         ]   File "MDCx_Main.py", line 10804, in creat_failed_folder
T2023-11-23T17:31:40.344496770Z [app         ]   File "os.py", line 225, in makedirs
t2023-11-23T17:31:40.344500761Z [app         ] PermissionError: [Errno 13] Permission denied: '/av/碧しの/failed'
�2023-11-23T17:31:40.346827775Z [app         ]  Move File: /av/碧しの/110520_001 碧しの ~碧しの スペシャル版~/110520_001.mp4
X2023-11-23T17:31:40.346852988Z [app         ]  To: /av/碧しの/failed/110520_001.mp4 
�2023-11-23T17:31:40.346858771Z [app         ]  Error: [Errno 2] No such file or directory: '/av/碧しの/failed/110520_001.mp4'
Q2023-11-23T17:31:40.346862675Z [app         ] Traceback (most recent call last):
T2023-11-23T17:31:40.346865862Z [app         ]   File "shutil.py", line 815, in move
�2023-11-23T17:31:40.346869061Z [app         ] FileNotFoundError: [Errno 2] No such file or directory: '/av/碧しの/110520_001 碧しの ~碧しの スペシャル版~/110520_001.mp4' -> '/av/碧しの/failed/110520_001.mp4'
r2023-11-23T17:31:40.346895873Z [app         ] During handling of the above exception, another exception occurred:
Q2023-11-23T17:31:40.346900640Z [app         ] Traceback (most recent call last):
c2023-11-23T17:31:40.346904092Z [app         ]   File "Function/Function.py", line 94, in move_file
T2023-11-23T17:31:40.346907410Z [app         ]   File "shutil.py", line 835, in move
U2023-11-23T17:31:40.346910599Z [app         ]   File "shutil.py", line 434, in copy2
X2023-11-23T17:31:40.346913630Z [app         ]   File "shutil.py", line 256, in copyfile
�2023-11-23T17:31:40.346916689Z [app         ] FileNotFoundError: [Errno 2] No such file or directory: '/av/碧しの/failed/110520_001.mp4'
�2023-11-23T17:31:43.051646849Z [app         ] 050118_679 -cd1 无码 javbus(0s) -> iqqtv[jp](2s) -> iqqtv[zh_cn](3s) -> jav321(0s) -> freejavbt(1s) -> javdb(11s)
Q2023-11-23T17:31:43.447320896Z [app         ] Traceback (most recent call last):
h2023-11-23T17:31:43.447357606Z [app         ]   File "MDCx_Main.py", line 10804, in creat_failed_folder
T2023-11-23T17:31:43.447364158Z [app         ]   File "os.py", line 225, in makedirs
t2023-11-23T17:31:43.447368084Z [app         ] PermissionError: [Errno 13] Permission denied: '/av/碧しの/failed'
l2023-11-23T17:31:43.449433828Z [app         ]  Move File: /av/碧しの/050118_679 M痴女/050118_679-1.mp4
Z2023-11-23T17:31:43.449457456Z [app         ]  To: /av/碧しの/failed/050118_679-1.mp4 
�2023-11-23T17:31:43.449462588Z [app         ]  Error: [Errno 2] No such file or directory: '/av/碧しの/failed/050118_679-1.mp4'
Q2023-11-23T17:31:43.449466184Z [app         ] Traceback (most recent call last):
T2023-11-23T17:31:43.449469337Z [app         ]   File "shutil.py", line 815, in move
�2023-11-23T17:31:43.449472675Z [app         ] FileNotFoundError: [Errno 2] No such file or directory: '/av/碧しの/050118_679 M痴女/050118_679-1.mp4' -> '/av/碧しの/failed/050118_679-1.mp4'
r2023-11-23T17:31:43.449476338Z [app         ] During handling of the above exception, another exception occurred:
Q2023-11-23T17:31:43.449479516Z [app         ] Traceback (most recent call last):
c2023-11-23T17:31:43.449482691Z [app         ]   File "Function/Function.py", line 94, in move_file
T2023-11-23T17:31:43.449486120Z [app         ]   File "shutil.py", line 835, in move
U2023-11-23T17:31:43.449489483Z [app         ]   File "shutil.py", line 434, in copy2
X2023-11-23T17:31:43.449492650Z [app         ]   File "shutil.py", line 256, in copyfile
�2023-11-23T17:31:43.449495825Z [app         ] FileNotFoundError: [Errno 2] No such file or directory: '/av/碧しの/failed/050118_679-1.mp4'
Q2023-11-23T17:31:43.641667153Z [app         ] Traceback (most recent call last):
h2023-11-23T17:31:43.641729659Z [app         ]   File "MDCx_Main.py", line 10804, in creat_failed_folder
T2023-11-23T17:31:43.641790628Z [app         ]   File "os.py", line 225, in makedirs
t2023-11-23T17:31:43.641805721Z [app         ] PermissionError: [Errno 13] Permission denied: '/av/碧しの/failed'
Q2023-11-23T17:31:43.642906485Z [app         ] Traceback (most recent call last):
h2023-11-23T17:31:43.642937929Z [app         ]   File "MDCx_Main.py", line 10804, in creat_failed_folder
T2023-11-23T17:31:43.642947383Z [app         ]   File "os.py", line 225, in makedirs
t2023-11-23T17:31:43.642955432Z [app         ] PermissionError: [Errno 13] Permission denied: '/av/碧しの/failed'
j2023-11-23T17:31:43.648385479Z [app         ]  Move File: /av/碧しの/050118_679 M痴女/050118_679.mp4
X2023-11-23T17:31:43.648452704Z [app         ]  To: /av/碧しの/failed/050118_679.mp4 
�2023-11-23T17:31:43.648467237Z [app         ]  Error: [Errno 2] No such file or directory: '/av/碧しの/failed/050118_679.mp4'
Q2023-11-23T17:31:43.648475998Z [app         ] Traceback (most recent call last):
T2023-11-23T17:31:43.648483442Z [app         ]   File "shutil.py", line 815, in move
�2023-11-23T17:31:43.648490904Z [app         ] FileNotFoundError: [Errno 2] No such file or directory: '/av/碧しの/050118_679 M痴女/050118_679.mp4' -> '/av/碧しの/failed/050118_679.mp4'
r2023-11-23T17:31:43.648499152Z [app         ] During handling of the above exception, another exception occurred:
Q2023-11-23T17:31:43.648506230Z [app         ] Traceback (most recent call last):
c2023-11-23T17:31:43.648513266Z [app         ]   File "Function/Function.py", line 94, in move_file
T2023-11-23T17:31:43.648533601Z [app         ]   File "shutil.py", line 835, in move
U2023-11-23T17:31:43.648540840Z [app         ]   File "shutil.py", line 434, in copy2
X2023-11-23T17:31:43.648547609Z [app         ]   File "shutil.py", line 256, in copyfile
�2023-11-23T17:31:43.648650416Z [app         ] FileNotFoundError: [Errno 2] No such file or directory: '/av/碧しの/failed/050118_679.mp4'
l2023-11-23T17:31:43.648954237Z [app         ]  Move File: /av/碧しの/050118_679 M痴女/050118_679-2.mp4
Z2023-11-23T17:31:43.648975314Z [app         ]  To: /av/碧しの/failed/050118_679-2.mp4 
�2023-11-23T17:31:43.648984000Z [app         ]  Error: [Errno 2] No such file or directory: '/av/碧しの/failed/050118_679-2.mp4'
Q2023-11-23T17:31:43.648991515Z [app         ] Traceback (most recent call last):
T2023-11-23T17:31:43.648998443Z [app         ]   File "shutil.py", line 815, in move
�2023-11-23T17:31:43.649005646Z [app         ] FileNotFoundError: [Errno 2] No such file or directory: '/av/碧しの/050118_679 M痴女/050118_679-2.mp4' -> '/av/碧しの/failed/050118_679-2.mp4'
r2023-11-23T17:31:43.649013310Z [app         ] During handling of the above exception, another exception occurred:
Q2023-11-23T17:31:43.649020425Z [app         ] Traceback (most recent call last):
c2023-11-23T17:31:43.649026995Z [app         ]   File "Function/Function.py", line 94, in move_file
T2023-11-23T17:31:43.649090470Z [app         ]   File "shutil.py", line 835, in move
U2023-11-23T17:31:43.649101862Z [app         ]   File "shutil.py", line 434, in copy2
X2023-11-23T17:31:43.649231692Z [app         ]   File "shutil.py", line 256, in copyfile
�2023-11-23T17:31:43.649251870Z [app         ] FileNotFoundError: [Errno 2] No such file or directory: '/av/碧しの/failed/050118_679-2.mp4'
c2023-11-23T17:31:43.659966255Z [app         ] 🎉 All finished!!! Total 7 , Success 0 , Failed 7
fhyoga commented 11 months ago
image

应该是这个用户配置的问题,默认的是1000

改成0,会有什么风险吗?或者还有其他方案吗

northsea4 commented 11 months ago

两个建议:

  1. USER_ID, GROUP_ID 修改为你极空间默认用户的uid和gid,ssh里执行id可以看到,或者还有其他方式查看,我没有这个设备不太清楚。
  2. USER_ID=0, GROUP_ID=0,应该也是可以的,但是注意这时候MDCx新创建的目录/文件是属于root的,宿主机的其他应用可能没有权限读写。当然这里说的是UMASK=0022的情况,这时候新建的目录/文件的权限是 0777 - 0022 = 0755,也就是所有者可以读写执行,其他则只能读和执行。