go-sonic / sonic

Sonic is a blogging platform developed by Go. Simple and powerful
MIT License
1.99k stars 255 forks source link

安装界面的`数据导入`功能无法使用 #396

Closed aaro-n closed 2 months ago

aaro-n commented 6 months ago

检查清单

是什么版本出现了此问题?

1.1.4

使用的什么数据库?

SQLite、MySQL(阿里云数据库,PlanetScale和TiDB Cloud)

使用的哪种方式部署?

Docker

在线站点地址

发生了什么?

删除所有数据,全新安装,在安装导向中有数据导入项,选择之前小工具-》博客备份-〉数据导出导出的json文件,上传后点击导入,提示“服务器错误”,在日志中未发现明显的错误。 导出markdown文档,在新网站导入markdown文档,正常。

相关日志输出

www@debian:~/sonic/data/logs$ cat sonic.log 
2024-03-02T11:58:26.662+0800    INFO    dal/dal.go:82   try to open SQLite3 db  {"path": "/sonic/sonic.db"}
2024-03-02T11:58:26.662+0800    INFO    dal/dal.go:47   connect database success
2024-03-02T11:58:26.909+0800    INFO    listener/start.go:87    Sonic started at         http://127.0.0.1:8080
2024-03-02T11:58:26.909+0800    INFO    listener/start.go:95    Sonic admin started at         http://127.0.0.1:8080/admin
2024-03-02T11:58:26.910+0800    DEBUG   listener/template_config.go:136 load theme success      {"theme": "Anatole"}
2024-03-02T11:58:34.654+0800    INFO    [GIN]   {"beginTime": "2024-03-02T11:58:34.653+0800", "status": 200, "latency": 0.00025968, "clientIP": "122.224.*.*", "method": "GET", "path": "/api/admin/is_installed"}
2024-03-02T12:02:00.616+0800    INFO    [GIN]   {"beginTime": "2024-03-02T12:02:00.616+0800", "status": 200, "latency": 0.00002364, "clientIP": "122.224.*.*", "method": "GET", "path": "/api/admin/is_installed"}

附加信息

version: '3'
services:

  sonic:
    restart: always
    image: gosonic/sonic:latest
    container_name: sonic
    ports:
      - "8080:8080"
    volumes:
      - /home/www/sonic/data:/sonic
github-actions[bot] commented 2 months ago

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days