-
Notifications
You must be signed in to change notification settings - Fork 688
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目录挂载的问题 #460
Comments
nginx.conf中配置的media映射为/var/loonflow-media. 应该不会传到/opt/loonflow/media/. 你是用代码中docker-compose.yml启动的么? |
现在我用docker-compose.yml重新启动了一遍,上传附件提示:
|
服务器磁盘空间不够了? |
现在可以上传了,但文件确实还是传到了/opt/loonflow/media/ticket_file,nginx.conf配置我也没有做任何更改。 |
是个bug. 这里写的上传到os.path.join(settings.MEDIA_ROOT, 'ticket_file/{}'.format(file_name): loonflow/service/ticket/ticket_base_service.py Line 2564 in b0e236b
所以导致写到opt/loonflow/media目录下了。 你可以暂时先这么处理: 1.进到容器将 /opt/loonflow/settings/config.py中MEDIA_ROOT 配置改成/var/loonflow-media 2.然后kill 杀掉uwsgi进程,再重启uwsgi: /opt/venv/loonflow/bin/uwsgi /opt/loonflow/uwsgi.ini |
好的,问题解决了,不过MEDIA_ROOT 配置改成/var/loonflow-media后,还要手动在该文件夹内创建ticket_file文件夹才行。 |
下个版本会修复这个问题, 也会优化需要手工创建ticket_file的问题 |
使用的版本:最新
默认挂载的容器目录为/var/loonflow-media,但是附件上传之后,并没有上传到这个文件夹啊,而是上传到了/opt/loonflow/media/里面去了,搞的前端无论如何也访问不了附件,我尝试挂载容器目录/opt/loonflow/media/,结果上传直接报错。
完全看不懂是什么操作
The text was updated successfully, but these errors were encountered: