运行一段时间后报错,自动删除录像

Viewed 85

docker 安装的最新版。在运行一段时间后,突然删除了所有录像,然后又无法进入后台,docker显示错误如下:

程序构建时间: 2025-10-11 16:41:18 +0800 CST

程序启动时间: 2025-12-21 23:40:19.640618311 +0800 CST m=+0.012217936

程序结束 >>>>>>>>>>>>>>>

2025/12/21 23:40:19 ERROR run process failed err="exit status 2"

查看app.log 显示如下:
{"level":"info","ts":"2025-12-21 23:43:55.585","msg":"数据库连接信息","dsn":""}
{"level":"error","ts":"2025-12-21 23:43:55.586","msg":"程序依赖构建失败","err":"unable to open database file: out of memory (14)","stacktrace":"log/slog.Error\n\tlog/slog/logger.go:311\nmain.main\n\tlitecvs/cmd/server/main.go:328\nruntime.main\n\truntime/proc.go:283"}

2 Answers

在docker映射的目录下有./congfigs/app.log和./configs/crash.log.两个文件详细报错需要提供这两个文件

请问如何提交这个日志?日志里面几乎都是一样的,panic: unable to open database file: out of memory (14)
goroutine 1 [running]:
main.main()
litecvs/cmd/server/main.go:329 +0x3205。

{"level":"info","ts":"2025-12-21 23:47:21.834","msg":"数据库连接信息","dsn":""}
{"level":"error","ts":"2025-12-21 23:47:21.834","msg":"程序依赖构建失败","err":"unable to open database file: out of memory (14)","stacktrace":"log/slog.Error\n\tlog/slog/logger.go:311\nmain.main\n\tlitecvs/cmd/server/main.go:328\nruntime.main\n\truntime/proc.go:283"}

是以docker compose方式运行的么,是否指定了容器使用的内存大小。