Chenyme / Chenyme-AAVT

这是一个全自动(音频)视频翻译项目。利用Whisper识别声音,AI大模型翻译字幕,最后合并字幕视频,生成翻译后的视频。
MIT License
1.67k stars 152 forks source link

'docker compose up' doesn't work - Permission denied: '/app/config/font.txt' #75

Open beeender opened 1 week ago

beeender commented 1 week ago

操作系统

linux

项目版本

923691c4a716d0c294b2306c7c01dd8bf1b08131

Python版本

No response

错误描述

重现步骤

❯ docker compose up
[+] Running 2/2
 ✔ Network chenyme-aavt_chenyme-aavt  Created                                                                                                                                         0.0s
 ✔ Container chenyme-aavt             Created                                                                                                                                         0.1s
Attaching to chenyme-aavt
chenyme-aavt  | rsync: [generator] chgrp "/app/config/." failed: Operation not permitted (1)
chenyme-aavt  | rsync: [receiver] mkstemp "/app/config/.audio.toml.d3JqEi" failed: Permission denied (13)
chenyme-aavt  | rsync: [receiver] mkstemp "/app/config/.blog.toml.uKmUCF" failed: Permission denied (13)
chenyme-aavt  | rsync: [receiver] mkstemp "/app/config/.font.txt.37FQbU" failed: Permission denied (13)
chenyme-aavt  | rsync: [receiver] mkstemp "/app/config/.llms.toml.IJYG9p" failed: Permission denied (13)
chenyme-aavt  | rsync: [receiver] mkstemp "/app/config/.project.toml.CNXAMK" failed: Permission denied (13)
chenyme-aavt  | rsync: [receiver] mkstemp "/app/config/.prompt.json.ka5XKq" failed: Permission denied (13)
chenyme-aavt  | rsync: [receiver] mkstemp "/app/config/.translate.toml.jlKMwE" failed: Permission denied (13)
chenyme-aavt  | rsync: [receiver] mkstemp "/app/config/.video.toml.xEIqIB" failed: Permission denied (13)
chenyme-aavt  | rsync: [receiver] mkstemp "/app/config/.whisper.toml.8G9bim" failed: Permission denied (13)
chenyme-aavt  | rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.2.7]
chenyme-aavt  | rsync: [generator] chgrp "/app/cache/." failed: Operation not permitted (1)
chenyme-aavt  | rsync: [generator] recv_generator: mkdir "/app/cache/audio" failed: Permission denied (13)
chenyme-aavt  | *** Skipping any contents from this failed directory ***
chenyme-aavt  | rsync: [generator] recv_generator: mkdir "/app/cache/blog" failed: Permission denied (13)
chenyme-aavt  | *** Skipping any contents from this failed directory ***
chenyme-aavt  | rsync: [generator] recv_generator: mkdir "/app/cache/public" failed: Permission denied (13)
chenyme-aavt  | *** Skipping any contents from this failed directory ***
chenyme-aavt  | rsync: [generator] recv_generator: mkdir "/app/cache/translate" failed: Permission denied (13)
chenyme-aavt  | *** Skipping any contents from this failed directory ***
chenyme-aavt  | rsync: [generator] recv_generator: mkdir "/app/cache/tts" failed: Permission denied (13)
chenyme-aavt  | *** Skipping any contents from this failed directory ***
chenyme-aavt  | rsync: [generator] recv_generator: mkdir "/app/cache/video" failed: Permission denied (13)
chenyme-aavt  | *** Skipping any contents from this failed directory ***
chenyme-aavt  | rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.2.7]
chenyme-aavt  |
chenyme-aavt  |  █████╗  █████╗ ██╗   ██╗████████╗
chenyme-aavt  | ██╔══██╗██╔══██╗██║   ██║╚══██╔══╝
chenyme-aavt  | ███████║███████║██║   ██║   ██║
chenyme-aavt  | ██╔══██║██╔══██║╚██╗ ██╔╝   ██║
chenyme-aavt  | ██║  ██║██║  ██║ ╚████╔╝    ██║
chenyme-aavt  | ╚═╝  ╚═╝╚═╝  ╚═╝  ╚═══╝     ╚═╝
chenyme-aavt  |
chenyme-aavt  | ╔═╗┬ ┬┌─┐┌┐┌┬ ┬┌┬┐┌─┐
chenyme-aavt  | ║  ├─┤├┤ │││└┬┘│││├┤
chenyme-aavt  | ╚═╝┴ ┴└─┘┘└┘ ┴ ┴ ┴└─┘
chenyme-aavt  |
chenyme-aavt  | 欢迎使用 Chenyme-AAVT V0.9.0!
chenyme-aavt  | 首次使用的登录密码为:chenymeaavt
chenyme-aavt  | 可前往设置中关闭项目保护功能
chenyme-aavt  |
chenyme-aavt  |
chenyme-aavt  |   You can now view your Streamlit app in your browser.
chenyme-aavt  |
chenyme-aavt  |   Local URL: http://localhost:8501
chenyme-aavt  |   Network URL: http://172.18.0.2:8501
chenyme-aavt  |   External URL: http://213.202.218.47:8501
chenyme-aavt  |
chenyme-aavt  | 2024-10-17 13:30:34.821 Uncaught app exception
chenyme-aavt  | Traceback (most recent call last):
chenyme-aavt  |   File "/app/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 85, in exec_func_with_error_handling
chenyme-aavt  |     result = func()
chenyme-aavt  |              ^^^^^^
chenyme-aavt  |   File "/app/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 576, in code_to_exec
chenyme-aavt  |     exec(code, module.__dict__)
chenyme-aavt  |   File "/app/Chenyme-AAVT.py", line 8, in <module>
chenyme-aavt  |     get_font_data()
chenyme-aavt  |   File "/app/utils/get_font.py", line 45, in get_font_data
chenyme-aavt  |     with open(path, 'w', encoding='utf-8') as file:
chenyme-aavt  |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chenyme-aavt  | PermissionError: [Errno 13] Permission denied: '/app/config/font.txt'
chenyme-aavt  | 2024-10-17 13:30:55.708 Uncaught app exception
chenyme-aavt  | Traceback (most recent call last):
chenyme-aavt  |   File "/app/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 85, in exec_func_with_error_handling
chenyme-aavt  |     result = func()
chenyme-aavt  |              ^^^^^^
chenyme-aavt  |   File "/app/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 576, in code_to_exec
chenyme-aavt  |     exec(code, module.__dict__)
chenyme-aavt  |   File "/app/Chenyme-AAVT.py", line 8, in <module>
chenyme-aavt  |     get_font_data()
chenyme-aavt  |   File "/app/utils/get_font.py", line 45, in get_font_data
chenyme-aavt  |     with open(path, 'w', encoding='utf-8') as file:
chenyme-aavt  |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chenyme-aavt  | PermissionError: [Errno 13] Permission denied: '/app/config/font.txt'
^A[^B^CGracefully stopping... (press Ctrl+C again to force)
[+] Stopping 0/1
[+] Stopping 1/1nyme-aavt  Stopping                                                                                                                        ✔ Container chenyme-aavt  Stopped                                                                                                                  10.2s
canceled
PermissionError: [Errno 13] Permission denied: '/app/config/font.txt'
Traceback:

File "/app/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 85, in exec_func_with_error_handling
    result = func()
             ^^^^^^
File "/app/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 576, in code_to_exec
    exec(code, module.__dict__)
File "/app/Chenyme-AAVT.py", line 8, in <module>
    get_font_data()
File "/app/utils/get_font.py", line 45, in get_font_data
    with open(path, 'w', encoding='utf-8') as file:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


### 错误截图

_No response_

### 其他信息(可选)

_No response_
solitudealma commented 1 week ago

sudo启动试试?