升级到7.0之后WEB端不能上传文件


#1

[05/30/2019 11:19:37 AM] …/common/seaf-db.c(425): Error prepare statement SELECT tmp_file_path FROM WebUploadTempFiles WHERE repo_id = ? AND file_path = ?: sqlite3_prepare_v2 failed: no such table: WebUploadTempFiles.
[05/30/2019 11:19:37 AM] upload-file.c(1127): Failed to get upload temp file path from db.
[05/30/2019 11:22:32 AM] …/common/seaf-db.c(425): Error prepare statement SELECT tmp_file_path FROM WebUploadTempFiles WHERE repo_id = ? AND file_path = ?: sqlite3_prepare_v2 failed: no such table: WebUploadTempFiles.
[05/30/2019 11:22:32 AM] upload-file.c(1127): Failed to get upload temp file path from db.

SQLite 碰到的升级7.0后WEB端不能上传文件。
image
[/quote]

已经解决:

如果是sqlite3安装,执行如下:

sqlite3 /<你的路径>/seafile-data/seafile.db

CREATE TABLE [WebUploadTempFiles]( [id] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, [repo_id] CHAR(40) NOT NULL, [file_path] TEXT NOT NULL, [tmp_file_path] TEXT NOT NULL );

.quit