375 Star 3.4K Fork 1K

GVP州的先生 / MrDoc

 / 详情

疑似缓存问题

待办的
创建于  
2023-02-09 16:06

去年底用docker run 部署测试的mrdoc想换成正式用,因为之前测试的时候把一些框架都定好了也上穿了一些文档。
今天在启动的时候发现启动之后只剩下一个项目了,并且之前上传的文件还有写的文档也都无法展示了。直接跳转页面到文集首页报404。但是这些文件和文件在后台是可以看到记录的(文档管理、素材管理)Linux中的/media/attachment/目录可以看到之前的文件。不过素材库里的图片都能预览。
怀疑是不是缓存给刷没了,因为每次启动不是都换刷新缓存嘛

评论 (4)

习惯 创建了任务

上面说的【项目】是文集

docker启动日志,对了没用mysql
docker run -it --rm --name mrdoc2 -p 10087:10086 -v /root/MrDoc:/app/MrDoc zmister/mrdoc:v4
[uWSGI] getting INI configuration from /app/MrDoc/config/uwsgi.ini
No changes detected
Operations to perform:
Apply all migrations: admin, app_admin, app_api, app_doc, auth, contenttypes, sessions
Running migrations:
No migrations to apply.
WARNING: This will irreparably remove EVERYTHING from your search index in connection 'default'.
Your choices after this are to restore from backups or rebuild via the rebuild_index command.
Are you sure you wish to continue? [y/N] Removing all documents from your index because you said so.
All documents removed.
Indexing 21 文档
Building prefix dict from the default dictionary ...
Dumping model to file cache /tmp/jieba.cache
Loading model cost 0.707 seconds.
Prefix dict has been built successfully.

我自己的问题,我默认用的admin用户登录的。
但是之前的项目用adminA的超级管理员创建的,登录adminA用户可以看到了。

不过,这是不是也算一个问题。默认的admin是超级管理员,adminA也是。他们不是全局管理员吗,怎么理解

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
Python
1
https://gitee.com/zmister/MrDoc.git
git@gitee.com:zmister/MrDoc.git
zmister
MrDoc
MrDoc

搜索帮助