Skip to content

ubuntu启动服务时提示backend启动失败,实际上是因为服务器配置低启动慢 #520

@rainsongsky

Description

@rainsongsky

Pre-checks

What problem does this solve?

报错: 提示backend 启动失败,实际上是因为测试ubuntu配置低,启动慢

@iZbp162y6ikigwdn9hmfn1Z:~/Clawith$ ./restart.sh
🔄 Stopping existing services...
🐘 PostgreSQL already running (port 5432)
🚀 Starting backend...
🔄 Running schema migrations...
🔄 Running data migrations...
2026-05-05 09:41:55.248 | INFO | main:migrate:29 - No schedules found to migrate.
❌ Backend failed to start in 10s

Proposed solution

修改 ./restart.sh 中 start_backend()

wait_for_port $BACKEND_PORT "Backend" 10

修改为
wait_for_port $BACKEND_PORT "Backend" 30

测试成功。

Willing to contribute?

  • I'd be interested in working on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions