#4562 安装过程中报错,panic: runtime error: invalid memory address or nil pointer dereference

Closed
created 9 months ago by fendouge · 1 comments
在容器中启动启动,无法启动起来。 bash-5.1# ./opendata web 2023/07/21 10:59:14 cmd/web.go:107:runWeb() [I] Starting Gitea on PID: 14876[] 2023/07/21 10:59:14 ...dules/setting/git.go:96:newGit() [I] Git Version: 2.32.5, Wire Protocol Version 2 Enabled[] 2023/07/21 10:59:14 ...es/setting/markup.go:61:newMarkupSanitizer() [W] Skipping empty section: markup.sanitizer.1.[] 2023/07/21 10:59:14 .../setting/finetune.go:74:getFineTuneConfig() [E] Unmarshal(panguConfig) failed:unexpected end of JSON input[] 2023/07/21 10:59:14 .../setting/finetune.go:79:getFineTuneConfig() [E] Unmarshal(panguConfig) failed:unexpected end of JSON input[] 2023/07/21 10:59:14 .../setting/finetune.go:85:getFineTuneConfig() [E] Unmarshal(panguConfig) failed:unexpected end of JSON input[] 2023/07/21 10:59:14 .../setting/finetune.go:91:getFineTuneConfig() [E] Unmarshal(panguConfig) failed:unexpected end of JSON input[] 2023/07/21 10:59:14 .../setting/finetune.go:97:getFineTuneConfig() [E] Unmarshal(panguConfig) failed:unexpected end of JSON input[] 2023/07/21 10:59:14 .../setting/finetune.go:103:getFineTuneConfig() [E] Unmarshal(panguConfig) failed:unexpected end of JSON input[] 2023/07/21 10:59:14 routers/init.go:142:GlobalInit() [T] AppPath: /data/aiforge/opendata[] 2023/07/21 10:59:14 routers/init.go:143:GlobalInit() [T] AppWorkPath: /data/aiforge[] 2023/07/21 10:59:14 routers/init.go:144:GlobalInit() [T] Custom path: /data/aiforge/custom[] 2023/07/21 10:59:14 routers/init.go:145:GlobalInit() [T] Log path: /data/aiforge/log[] 2023/07/21 10:59:14 routers/init.go:150:GlobalInit() [I] Delete all repository archives[] 2023/07/21 10:59:14 ...dules/setting/log.go:233:newLogService() [I] Gitea v2023-07-21 10:59:14.005261998 +0000 UTC m=+0.247131472 built with GNU Make 4.3, go1.16.6 : bindata, sqlite, sqlite_unlock_notify[] 2023/07/21 10:59:14 ...dules/setting/log.go:279:newLogService() [I] Gitea Log Mode: Console(Console:info)[] 2023/07/21 10:59:14 ...les/setting/cache.go:70:newCacheService() [I] Cache Service Enabled[] 2023/07/21 10:59:14 ...les/setting/cache.go:81:newCacheService() [I] Last Commit Cache Service Enabled[] 2023/07/21 10:59:14 ...s/setting/session.go:63:newSessionService() [I] Session Service Enabled[] 2023/07/21 10:59:14 ...s/setting/webhook.go:60:newWebhookService() [I] New WebhookService Inited.[] 2023/07/21 10:59:14 ...s/setting/indexer.go:86:newIndexerService() [I] New IndexerService Inited.[] 2023/07/21 10:59:14 ...les/setting/queue.go:163:NewQueueService() [I] New QueueService Inited.[] 2023/07/21 10:59:14 ...s/storage/storage.go:60:Init() [I] local storage inited.[] 2023/07/21 10:59:14 ...s/storage/storage.go:86:Init() [I] obs cli inited.[] 2023/07/21 10:59:14 routers/init.go:68:NewServices() [I] storage init succeed.[] 2023/07/21 10:59:14 routers/init.go:70:NewServices() [I] mailer.NewContext() succeed.[] 2023/07/21 10:59:14 routers/init.go:72:NewServices() [I] cache.NewContext() succeed.[] 2023/07/21 10:59:14 routers/init.go:74:NewServices() [I] notification.NewContext() succeed.[] 2023/07/21 10:59:14 routers/init.go:76:NewServices() [I] decompression.NewContext() succeed.[] 2023/07/21 10:59:14 ...bel_redis_service.go:14:Init() [I] start to connect redis.[] 2023/07/21 10:59:14 routers/init.go:78:NewServices() [I] labelmsg.Init() succeed.[] 2023/07/21 10:59:14 ...rvice/modelsevice.go:22:Init() [I] url nums=1[] 2023/07/21 10:59:14 routers/init.go:80:NewServices() [I] modelappservice.Init() succeed.[] 2023/07/21 10:59:14 ...rvice/modelsevice.go:39:consumerOrder() [I] goroutine id=130consumer order start...[] 2023/07/21 10:59:20 routers/search.go:31:InitESClient() [I] es init error.[] 2023/07/21 10:59:20 routers/init.go:82:NewServices() [I] ES Client succeed.[] 2023/07/21 10:59:20 routers/init.go:188:GlobalInit() [I] SQLite3 Supported[] 2023/07/21 10:59:20 routers/init.go:58:checkRunMode() [I] Run Mode: Production[] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xd8914a] goroutine 584 [running]: xorm.io/xorm.(*Session).Init(0xc006fae1c0) /data/aiforge/vendor/xorm.io/xorm/session.go:98 +0x2a xorm.io/xorm.(*Engine).NewSession(...) /data/aiforge/vendor/xorm.io/xorm/engine.go:226 xorm.io/xorm.(*Engine).Limit(0x0, 0x1e, 0x0, 0x0, 0x0, 0xc007baf920) /data/aiforge/vendor/xorm.io/xorm/engine.go:666 +0x5d code.gitea.io/gitea/models.GetLast20PublicFeeds(0xa333360, 0x22, 0x22, 0xc0004cddc0, 0x415f18, 0x58, 0xc0004cdde0, 0x40db75) /data/aiforge/models/action.go:521 +0x4f3 code.gitea.io/gitea/services/socketwrap.initActionQueue() /data/aiforge/services/socketwrap/clientManager.go:92 +0x49 code.gitea.io/gitea/services/socketwrap.(*ClientsManager).Run(0xc00000f7e8) /data/aiforge/services/socketwrap/clientManager.go:34 +0x37 created by code.gitea.io/gitea/routers/routes.RegisterRoutes /data/aiforge/routers/routes/routes.go:348 +0x474
ychao_1983 commented 9 months ago
Owner
https://openi.pcl.ac.cn/OpenI/aiforge#user-content-%E5%BC%80%E5%8F%91%E8%80%85%E6%8C%87%E5%8D%97 参照开发者指南
ychao_1983 closed this issue 1 month ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.