Gitea siliently fails to start #12931

Closed
opened 2025-11-02 10:25:29 -06:00 by GiteaMirror · 9 comments
Owner

Originally created by @KazzmanK on GitHub (Apr 29, 2024).

Description

D:\Apps\Gitea-BETA>.\gitea-1.22.0-rc1-windows-4.0-amd64.exe web
2024/04/29 10:32:11 ...etting/repository.go:298:loadRepositoryFrom() [W] SCRIPT_TYPE "bash" is not on the current PATH. Are you sure that this is the correct SCRIPT_TYPE?
2024/04/29 10:32:11 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 24740
2024/04/29 10:32:11 ...etting/repository.go:298:loadRepositoryFrom() [W] SCRIPT_TYPE "bash" is not on the current PATH. Are you sure that this is the correct SCRIPT_TYPE?
2024/04/29 10:32:11 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.22.0-rc1 built with GNU Make 4.3, go1.22.1 : bindata, sqlite, sqlite_unlock_notify
2024/04/29 10:32:11 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: dev
2024/04/29 10:32:11 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: D:/Apps/Gitea-BETA/gitea-1.22.0-rc1-windows-4.0-amd64.exe
2024/04/29 10:32:11 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: D:\Apps\gitea-BETA
2024/04/29 10:32:11 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: D:\Apps\gitea-BETA\custom
2024/04/29 10:32:11 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: D:\Apps\Gitea-BETA\custom\conf\app.ini
2024/04/29 10:32:11 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server
2024/04/29 10:32:11 routers/init.go:115:InitWebInstalled() [I] Git version: 2.44.0, Wire Protocol Version 2 Enabled (home: D:\Apps\gitea-BETA\data\home)

that is all output, process terminates

In logfile there is a

2024/04/29 10:45:31 ...s/storage/storage.go:219:initActions() [I] Initialising Actions storage with type: local
2024/04/29 10:45:31 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at D:\Apps\gitea-BETA\data\actions_log
2024/04/29 10:45:31 ...s/storage/storage.go:223:initActions() [I] Initialising ActionsArtifacts storage with type: local
2024/04/29 10:45:31 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at D:\Apps\gitea-BETA\data\actions_artifacts
2024/04/29 10:45:31 .../templates/mailer.go:86:func1() [F] Failed to parse mail template, err: failed to parse template [issue/_default/body]: template: issue/_default:35: function "Str2html" not defined

After removing template , it does not exit, but in log now

2024/04/29 10:48:33 ...s/graceful/server.go:50:NewServer() [I] Starting new Web server: tcp:0.0.0.0:3002 on PID: 15412
2024/04/29 10:48:33 ...s/graceful/server.go:63:func1() [D] Starting server on tcp:0.0.0.0:3002 (PID: 15412)

in web browser it is
Not Found: /

Gitea Version

1.22.0-rc1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

command line

Database

None

Originally created by @KazzmanK on GitHub (Apr 29, 2024). ### Description ``` D:\Apps\Gitea-BETA>.\gitea-1.22.0-rc1-windows-4.0-amd64.exe web 2024/04/29 10:32:11 ...etting/repository.go:298:loadRepositoryFrom() [W] SCRIPT_TYPE "bash" is not on the current PATH. Are you sure that this is the correct SCRIPT_TYPE? 2024/04/29 10:32:11 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 24740 2024/04/29 10:32:11 ...etting/repository.go:298:loadRepositoryFrom() [W] SCRIPT_TYPE "bash" is not on the current PATH. Are you sure that this is the correct SCRIPT_TYPE? 2024/04/29 10:32:11 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.22.0-rc1 built with GNU Make 4.3, go1.22.1 : bindata, sqlite, sqlite_unlock_notify 2024/04/29 10:32:11 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: dev 2024/04/29 10:32:11 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: D:/Apps/Gitea-BETA/gitea-1.22.0-rc1-windows-4.0-amd64.exe 2024/04/29 10:32:11 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: D:\Apps\gitea-BETA 2024/04/29 10:32:11 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: D:\Apps\gitea-BETA\custom 2024/04/29 10:32:11 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: D:\Apps\Gitea-BETA\custom\conf\app.ini 2024/04/29 10:32:11 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server 2024/04/29 10:32:11 routers/init.go:115:InitWebInstalled() [I] Git version: 2.44.0, Wire Protocol Version 2 Enabled (home: D:\Apps\gitea-BETA\data\home) ``` that is all output, process terminates In logfile there is a ``` 2024/04/29 10:45:31 ...s/storage/storage.go:219:initActions() [I] Initialising Actions storage with type: local 2024/04/29 10:45:31 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at D:\Apps\gitea-BETA\data\actions_log 2024/04/29 10:45:31 ...s/storage/storage.go:223:initActions() [I] Initialising ActionsArtifacts storage with type: local 2024/04/29 10:45:31 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at D:\Apps\gitea-BETA\data\actions_artifacts 2024/04/29 10:45:31 .../templates/mailer.go:86:func1() [F] Failed to parse mail template, err: failed to parse template [issue/_default/body]: template: issue/_default:35: function "Str2html" not defined ``` After removing template , it does not exit, but in log now ``` 2024/04/29 10:48:33 ...s/graceful/server.go:50:NewServer() [I] Starting new Web server: tcp:0.0.0.0:3002 on PID: 15412 2024/04/29 10:48:33 ...s/graceful/server.go:63:func1() [D] Starting server on tcp:0.0.0.0:3002 (PID: 15412) ``` in web browser it is ` Not Found: / ` ### Gitea Version 1.22.0-rc1 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? command line ### Database None
GiteaMirror added the type/bug label 2025-11-02 10:25:29 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Apr 29, 2024):

Could you enable debug log?

https://docs.gitea.com/help/support#more-config-options-for-logs

@wxiaoguang commented on GitHub (Apr 29, 2024): Could you enable debug log? https://docs.gitea.com/help/support#more-config-options-for-logs
Author
Owner

@KazzmanK commented on GitHub (Apr 29, 2024):

2024/04/29 10:48:32 ...s/setting/session.go:77:loadSessionFrom() [I] Session Service Enabled
2024/04/29 10:48:32 ...es/setting/mailer.go:237:loadMailerFrom() [I] Mail Service Enabled
2024/04/29 10:48:32 ...es/setting/mailer.go:259:loadNotifyMailFrom() [I] Notify Mail Service Enabled
2024/04/29 10:48:32 ...s/storage/storage.go:176:initAttachments() [I] Initialising Attachment storage with type: local
2024/04/29 10:48:32 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at D:\Apps\gitea-BETA\data\attachments
2024/04/29 10:48:32 ...s/storage/storage.go:166:initAvatars() [I] Initialising Avatar storage with type: local
2024/04/29 10:48:32 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at D:\Apps\gitea-BETA\data\avatars
2024/04/29 10:48:32 ...s/storage/storage.go:192:initRepoAvatars() [I] Initialising Repository Avatar storage with type: local
2024/04/29 10:48:32 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at D:\Apps\gitea-BETA\data\repo-avatars
2024/04/29 10:48:32 ...s/storage/storage.go:198:initRepoArchives() [I] Initialising Repository Archive storage with type: local
2024/04/29 10:48:32 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at D:\Apps\gitea-BETA\data\repo-archive
2024/04/29 10:48:32 ...s/storage/storage.go:219:initActions() [I] Initialising Actions storage with type: local
2024/04/29 10:48:32 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at D:\Apps\gitea-BETA\data\actions_log
2024/04/29 10:48:32 ...s/storage/storage.go:223:initActions() [I] Initialising ActionsArtifacts storage with type: local
2024/04/29 10:48:32 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at D:\Apps\gitea-BETA\data\actions_artifacts
2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "mail" starts running
2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "notification-service" starts running
2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "repo-archive" starts running
2024/04/29 10:48:32 routers/init.go:134:InitWebInstalled() [I] SQLite3 support is enabled
2024/04/29 10:48:32 routers/common/db.go:23:InitDBEngine() [I] Beginning ORM engine initialization.
2024/04/29 10:48:32 routers/common/db.go:30:InitDBEngine() [I] ORM engine initialization attempt #1/10...
2024/04/29 10:48:32 cmd/web.go:194:serveInstalled() [I] PING DATABASE sqlite3
2024/04/29 10:48:32 cmd/web.go:194:serveInstalled() [W] Table system_setting Column version db default is , struct default is 1
2024/04/29 10:48:32 cmd/web.go:194:serveInstalled() [W] Table project Column card_type db default is 0, struct default is 
2024/04/29 10:48:32 cmd/web.go:194:serveInstalled() [W] Table project Column card_type db nullable is false, struct nullable is true
2024/04/29 10:48:32 cmd/web.go:194:serveInstalled() [W] Table hook_task has column repo_id but struct has not related field
2024/04/29 10:48:32 routers/init.go:140:InitWebInstalled() [I] ORM engine initialization successful!
2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "tag_sync" starts running
2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "push_update" starts running
2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "branch_sync" starts running
2024/04/29 10:48:32 ...er/issues/indexer.go:76:func1() [I] PID 15412: Initializing Issue Indexer: bleve
2024/04/29 10:48:32 ...exer/code/indexer.go:153:func3() [I] PID: 15412 Initializing Repository Indexer at: D:/Apps/gitea-BETA/indexers/repos.bleve
2024/04/29 10:48:32 ...xer/stats/indexer.go:41:populateRepoIndexer() [I] Populating the repo stats indexer with existing repositories
2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "repo_stats_update" starts running
2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "mirror" starts running
2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "webhook_sender" starts running
2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "pr_patch_checker" starts running
2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "pr_auto_merge" starts running
2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "task" starts running
2024/04/29 10:48:32 ...xer/stats/indexer.go:87:populateRepoIndexer() [I] Done (re)populating the repo stats indexer with existing repositories
2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "code_indexer" starts running
2024/04/29 10:48:32 ...exer/code/indexer.go:234:func4() [I] Repository Indexer Initialization took 1.5982ms
2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "issue_indexer" starts running
2024/04/29 10:48:32 ...er/issues/indexer.go:153:func2() [I] Issue Indexer Initialization took 1.5982ms
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: update_mirrors
2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "actions_ready_job" starts running
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: repo_health_check
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: check_repo_stats
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: archive_cleanup
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: sync_external_users
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: deleted_branches_cleanup
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: update_migration_poster_id
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: cleanup_hook_task_table
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: cleanup_actions
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: delete_inactive_accounts
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: delete_repo_archives
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: git_gc_repos
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: resync_all_sshkeys
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: resync_all_sshprincipals
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: resync_all_hooks
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: reinit_missing_repos
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: delete_missing_repos
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: delete_generated_repository_avatars
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: delete_old_actions
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: update_checker
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: delete_old_system_notices
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: rebuild_issue_indexer
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: stop_zombie_tasks
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: stop_endless_tasks
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: cancel_abandoned_jobs
2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: start_schedule_tasks
2024/04/29 10:48:32 ...ates/htmlrenderer.go:115:initHTMLRenderer() [D] Creating auto-reloading HTML Renderer
2024/04/29 10:48:33 ...s/actions/cleanup.go:36:cleanExpiredArtifacts() [I] Found 0 expired artifacts
2024/04/29 10:48:33 ...s/actions/cleanup.go:60:cleanNeedDeleteArtifacts() [I] Found 0 artifacts pending deletion
2024/04/29 10:48:33 ...s/actions/cleanup.go:73:cleanNeedDeleteArtifacts() [D] No more artifacts pending deletion
2024/04/29 10:48:33 cmd/web.go:304:listen() [I] Listen: http://0.0.0.0:3002
2024/04/29 10:48:33 cmd/web.go:308:listen() [I] AppURL(ROOT_URL): https://git******/
2024/04/29 10:48:33 ...s/graceful/server.go:50:NewServer() [I] Starting new Web server: tcp:0.0.0.0:3002 on PID: 15412
2024/04/29 10:48:33 ...s/graceful/server.go:63:func1() [D] Starting server on tcp:0.0.0.0:3002 (PID: 15412)

@KazzmanK commented on GitHub (Apr 29, 2024): ``` 2024/04/29 10:48:32 ...s/setting/session.go:77:loadSessionFrom() [I] Session Service Enabled 2024/04/29 10:48:32 ...es/setting/mailer.go:237:loadMailerFrom() [I] Mail Service Enabled 2024/04/29 10:48:32 ...es/setting/mailer.go:259:loadNotifyMailFrom() [I] Notify Mail Service Enabled 2024/04/29 10:48:32 ...s/storage/storage.go:176:initAttachments() [I] Initialising Attachment storage with type: local 2024/04/29 10:48:32 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at D:\Apps\gitea-BETA\data\attachments 2024/04/29 10:48:32 ...s/storage/storage.go:166:initAvatars() [I] Initialising Avatar storage with type: local 2024/04/29 10:48:32 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at D:\Apps\gitea-BETA\data\avatars 2024/04/29 10:48:32 ...s/storage/storage.go:192:initRepoAvatars() [I] Initialising Repository Avatar storage with type: local 2024/04/29 10:48:32 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at D:\Apps\gitea-BETA\data\repo-avatars 2024/04/29 10:48:32 ...s/storage/storage.go:198:initRepoArchives() [I] Initialising Repository Archive storage with type: local 2024/04/29 10:48:32 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at D:\Apps\gitea-BETA\data\repo-archive 2024/04/29 10:48:32 ...s/storage/storage.go:219:initActions() [I] Initialising Actions storage with type: local 2024/04/29 10:48:32 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at D:\Apps\gitea-BETA\data\actions_log 2024/04/29 10:48:32 ...s/storage/storage.go:223:initActions() [I] Initialising ActionsArtifacts storage with type: local 2024/04/29 10:48:32 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at D:\Apps\gitea-BETA\data\actions_artifacts 2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "mail" starts running 2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "notification-service" starts running 2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "repo-archive" starts running 2024/04/29 10:48:32 routers/init.go:134:InitWebInstalled() [I] SQLite3 support is enabled 2024/04/29 10:48:32 routers/common/db.go:23:InitDBEngine() [I] Beginning ORM engine initialization. 2024/04/29 10:48:32 routers/common/db.go:30:InitDBEngine() [I] ORM engine initialization attempt #1/10... 2024/04/29 10:48:32 cmd/web.go:194:serveInstalled() [I] PING DATABASE sqlite3 2024/04/29 10:48:32 cmd/web.go:194:serveInstalled() [W] Table system_setting Column version db default is , struct default is 1 2024/04/29 10:48:32 cmd/web.go:194:serveInstalled() [W] Table project Column card_type db default is 0, struct default is 2024/04/29 10:48:32 cmd/web.go:194:serveInstalled() [W] Table project Column card_type db nullable is false, struct nullable is true 2024/04/29 10:48:32 cmd/web.go:194:serveInstalled() [W] Table hook_task has column repo_id but struct has not related field 2024/04/29 10:48:32 routers/init.go:140:InitWebInstalled() [I] ORM engine initialization successful! 2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "tag_sync" starts running 2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "push_update" starts running 2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "branch_sync" starts running 2024/04/29 10:48:32 ...er/issues/indexer.go:76:func1() [I] PID 15412: Initializing Issue Indexer: bleve 2024/04/29 10:48:32 ...exer/code/indexer.go:153:func3() [I] PID: 15412 Initializing Repository Indexer at: D:/Apps/gitea-BETA/indexers/repos.bleve 2024/04/29 10:48:32 ...xer/stats/indexer.go:41:populateRepoIndexer() [I] Populating the repo stats indexer with existing repositories 2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "repo_stats_update" starts running 2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "mirror" starts running 2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "webhook_sender" starts running 2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "pr_patch_checker" starts running 2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "pr_auto_merge" starts running 2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "task" starts running 2024/04/29 10:48:32 ...xer/stats/indexer.go:87:populateRepoIndexer() [I] Done (re)populating the repo stats indexer with existing repositories 2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "code_indexer" starts running 2024/04/29 10:48:32 ...exer/code/indexer.go:234:func4() [I] Repository Indexer Initialization took 1.5982ms 2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "issue_indexer" starts running 2024/04/29 10:48:32 ...er/issues/indexer.go:153:func2() [I] Issue Indexer Initialization took 1.5982ms 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: update_mirrors 2024/04/29 10:48:32 ...queue/workergroup.go:271:doRun() [D] Queue "actions_ready_job" starts running 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: repo_health_check 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: check_repo_stats 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: archive_cleanup 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: sync_external_users 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: deleted_branches_cleanup 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: update_migration_poster_id 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: cleanup_hook_task_table 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: cleanup_actions 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: delete_inactive_accounts 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: delete_repo_archives 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: git_gc_repos 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: resync_all_sshkeys 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: resync_all_sshprincipals 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: resync_all_hooks 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: reinit_missing_repos 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: delete_missing_repos 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: delete_generated_repository_avatars 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: delete_old_actions 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: update_checker 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: delete_old_system_notices 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: rebuild_issue_indexer 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: stop_zombie_tasks 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: stop_endless_tasks 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: cancel_abandoned_jobs 2024/04/29 10:48:32 ...rvices/cron/tasks.go:159:RegisterTask() [D] Registering task: start_schedule_tasks 2024/04/29 10:48:32 ...ates/htmlrenderer.go:115:initHTMLRenderer() [D] Creating auto-reloading HTML Renderer 2024/04/29 10:48:33 ...s/actions/cleanup.go:36:cleanExpiredArtifacts() [I] Found 0 expired artifacts 2024/04/29 10:48:33 ...s/actions/cleanup.go:60:cleanNeedDeleteArtifacts() [I] Found 0 artifacts pending deletion 2024/04/29 10:48:33 ...s/actions/cleanup.go:73:cleanNeedDeleteArtifacts() [D] No more artifacts pending deletion 2024/04/29 10:48:33 cmd/web.go:304:listen() [I] Listen: http://0.0.0.0:3002 2024/04/29 10:48:33 cmd/web.go:308:listen() [I] AppURL(ROOT_URL): https://git******/ 2024/04/29 10:48:33 ...s/graceful/server.go:50:NewServer() [I] Starting new Web server: tcp:0.0.0.0:3002 on PID: 15412 2024/04/29 10:48:33 ...s/graceful/server.go:63:func1() [D] Starting server on tcp:0.0.0.0:3002 (PID: 15412) ```
Author
Owner

@wxiaoguang commented on GitHub (Apr 29, 2024):

3 problems here ...

  1. The silent failure: it could be a framework bug, I will take a look later (#30758)
  2. The Str2html problem: it is a breaking change in 1.22 https://github.com/go-gitea/gitea/releases/tag/v1.22.0-rc1
  3. Not Found: /: When there are [I] Starting new Web server: tcp:0.0.0.0:3002 on PID: 15412, the server should be ready to serve. The "Not Found: /" doesn't seem to be a Gitea's message. Are you using reverse proxy?

`

@wxiaoguang commented on GitHub (Apr 29, 2024): 3 problems here ... 1. The silent failure: it could be a framework bug, I will take a look later (#30758) 2. The `Str2html` problem: it is a breaking change in 1.22 https://github.com/go-gitea/gitea/releases/tag/v1.22.0-rc1 3. ` Not Found: /`: When there are `[I] Starting new Web server: tcp:0.0.0.0:3002 on PID: 15412`, the server should be ready to serve. The "Not Found: /" doesn't seem to be a Gitea's message. Are you using reverse proxy? `
Author
Owner

@KazzmanK commented on GitHub (Apr 29, 2024):

finally i was forced to restart a box.
looks like a socket leak after multiple start attempts
Your framework does not indicate that http port is in use.

Breaking change noted, thank you for pointing

@KazzmanK commented on GitHub (Apr 29, 2024): finally i was forced to restart a box. looks like a socket leak after multiple start attempts Your framework does not indicate that http port is in use. Breaking change noted, thank you for pointing
Author
Owner

@wxiaoguang commented on GitHub (Apr 29, 2024):

Your framework does not indicate that http port is in use.

It should have reported (the code reads so ....) no idea why the error doesn't show up in the logs ....

Will take a look later.

image

@wxiaoguang commented on GitHub (Apr 29, 2024): > Your framework does not indicate that http port is in use. It should have reported (the code reads so ....) no idea why the error doesn't show up in the logs .... Will take a look later. <details> ![image](https://github.com/go-gitea/gitea/assets/2114189/8a813fab-e797-416a-be24-a04b217b9104) </details>
Author
Owner

@wxiaoguang commented on GitHub (Apr 29, 2024):

Your framework does not indicate that http port is in use.

Did a quick test on Windows, the error message is reported:

image

@wxiaoguang commented on GitHub (Apr 29, 2024): > Your framework does not indicate that http port is in use. Did a quick test on Windows, the error message is reported: ![image](https://github.com/go-gitea/gitea/assets/2114189/8d785a5f-ccb2-48f1-aac3-ea9246b5bc63)
Author
Owner

@KazzmanK commented on GitHub (Apr 29, 2024):

That is because of binding
You try to occupy 0.0.0.0,
but if other process already occupy just 127.0.0.1 only, there will be no exception

To summarize

  • In release notes breaking changes Breaking summary for template refactoring (https://github.com/go-gitea/gitea/pull/29395) we should pay attention to Custom templates users. I, for instance, read through them and did not realize that "breaking summary" means "recreate all your templates"
  • Dirty staging environment had 127.0.0.1 port occupied by something, but Gitea started on 0.0.0.0, so no errors, and mess with http replies
@KazzmanK commented on GitHub (Apr 29, 2024): That is because of binding You try to occupy 0.0.0.0, but if other process already occupy just 127.0.0.1 only, there will be no exception To summarize - In release notes breaking changes `Breaking summary for template refactoring (https://github.com/go-gitea/gitea/pull/29395)` we should pay attention to `Custom templates users`. I, for instance, read through them and did not realize that "breaking summary" means "recreate all your templates" - Dirty staging environment had 127.0.0.1 port occupied by something, but Gitea started on 0.0.0.0, so no errors, and mess with http replies
Author
Owner

@wxiaoguang commented on GitHub (Apr 29, 2024):

  • Dirty staging environment had 127.0.0.1 port occupied by something, but Gitea started on 0.0.0.0, so no errors, and mess with http replies

It is the OS's behavior and all network programs work this way:


func main() {
	l1, err := net.Listen("tcp", "0.0.0.0:8080")
	if err != nil {
		panic(err)
	}
	l2, err := net.Listen("tcp", "127.0.0.1:8080")
	if err != nil {
		panic(err)
	}
	fmt.Println(l1.Addr().String())
	fmt.Println(l2.Addr().String())
}

This simple program also succeeds.

@wxiaoguang commented on GitHub (Apr 29, 2024): > * Dirty staging environment had 127.0.0.1 port occupied by something, but Gitea started on 0.0.0.0, so no errors, and mess with http replies It is the OS's behavior and all network programs work this way: ``` func main() { l1, err := net.Listen("tcp", "0.0.0.0:8080") if err != nil { panic(err) } l2, err := net.Listen("tcp", "127.0.0.1:8080") if err != nil { panic(err) } fmt.Println(l1.Addr().String()) fmt.Println(l2.Addr().String()) } ``` This simple program also succeeds.
Author
Owner

@wxiaoguang commented on GitHub (Apr 29, 2024):

  • In release notes breaking changes Breaking summary for template refactoring (https://github.com/go-gitea/gitea/pull/29395) we should pay attention to Custom templates users. I, for instance, read through them and did not realize that "breaking summary" means "recreate all your templates"

The formal release note is still working in progress 😢 the details for the breaking are in " Breaking summary for template refactoring #29395 ", these contents will be in the release note.

Update: I added a quick note "All custom templates need to follow these changes" to the rc1 changelog.

@wxiaoguang commented on GitHub (Apr 29, 2024): > * In release notes breaking changes `Breaking summary for template refactoring (https://github.com/go-gitea/gitea/pull/29395)` we should pay attention to `Custom templates users`. I, for instance, read through them and did not realize that "breaking summary" means "recreate all your templates" The formal release note is still working in progress 😢 the details for the breaking are in " Breaking summary for template refactoring #29395 ", these contents will be in the release note. Update: I added a quick note "All custom templates need to follow these changes" to the rc1 changelog.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12931