-
Notifications
You must be signed in to change notification settings - Fork 335
Open
Labels
bugSomething isn't workingSomething isn't working
Description
配置如下,使用sqlite数据库
使用zip代码包上传分析
KOALAWIKI_REPOSITORIES=/repositories
TASK_MAX_SIZE_PER_USER=5
REPAIR_MERMAID=1
CHAT_MODEL=glm-4.6
ANALYSIS_MODEL=glm-4.6
CHAT_API_KEY=xxxxxxxxx
LANGUAGE=中文
ENDPOINT=https://open.bigmodel.cn/api/coding/paas/v4
DB_TYPE=sqlite
DB_CONNECTION_STRING=Data Source=/data/KoalaWiki.db
UPDATE_INTERVAL=1
EnableSmartFilter=true
ENABLE_INCREMENTAL_UPDATE=true
ENABLE_CODED_DEPENDENCY_ANALYSIS=false
ENABLE_WAREHOUSE_FUNCTION_PROMPT_TASK=false
ENABLE_WAREHOUSE_DESCRIPTION_TASK=false查看日志发现,文档其实有正常生成,但是似乎在保存到数据库失败
[13:00:45 INF] Prompt tokens: 70881. Completion tokens: 736. Total tokens: 71617.
[13:00:45 INF] 文档精炼成功,文档:xxxxx
[13:00:45 INF] 处理仓库;/app/repositories/xxxxxx,处理标题:xxxxxx 完成!
[13:00:45 ERR] 处理文档失败: Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'NOT NULL constraint failed: DocumentFileItemSources.Address'.
at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable`1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChangesAsync(IList`1 entries, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(IList`1 entriesToSave, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChangesAsync(StateManager stateManager, Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.DbContext.SaveChangesAsync(Boolean acceptAllChangesOnSuccess, CancellationToken cancellationToken)
at KoalaWiki.Core.DataAccess.KoalaWikiContext`1.SaveChangesAsync(CancellationToken cancellationToken) in /src/KoalaWiki.Core/DataAccess/KoalaWikiContext.cs:line 68
at KoalaWiki.KoalaWarehouse.DocumentPending.DocumentPendingService.HandlePendingDocumentsAsync(List`1 documents, Kernel fileKernel, String catalogue, String gitRepository, Warehouse warehouse, String path, IKoalaWikiContext dbContext, Nullable`1 classifyType) in /src/src/KoalaWiki/KoalaWarehouse/DocumentPending/DocumentPendingService.cs:line 111
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working