claude-code-router icon indicating copy to clipboard operation
claude-code-router copied to clipboard

Service startup timeout, please manually run claude-code start to start the service

Open wanghaichen1 opened this issue 6 months ago • 16 comments

ccr code
Service not running, starting service...
Service startup timeout, please manually run claude-code start to start the service
claude --version
1.0.24 (Claude Code)

wanghaichen1 avatar Jun 16 '25 02:06 wanghaichen1

What is your claude-code-router version? You can use the command ccr -v to find it.

musistudio avatar Jun 16 '25 04:06 musistudio

 ~ % ccr -v claude-code version: 1.0.5  ~ % claude -v 1.0.24 (Claude Code)  ~ %

我也出现了这样的问题,怎么解决它呢?

hnynf avatar Jun 16 '25 06:06 hnynf

Same here

facelezzzz avatar Jun 16 '25 06:06 facelezzzz

same here

oryx123 avatar Jun 16 '25 06:06 oryx123

I don't log in my claude account. Can I use the project without loging?

oryx123 avatar Jun 16 '25 06:06 oryx123

有人解决了吗?

Song-Mao avatar Jun 16 '25 07:06 Song-Mao

in wsl2,same error

chinaver2002 avatar Jun 16 '25 07:06 chinaver2002

我解决了,我的系统是windows,遇到这个错误是因为我在vscode的终端内执行的ccr code命令

1:在wsl中运行“ccr start”,配置大模型信息后能看到启动成功 2:另开一个wsl,运行"ccr code"

Image

Song-Mao avatar Jun 16 '25 08:06 Song-Mao

我这里依靠这个方法成功解决问题

oryx123 avatar Jun 16 '25 08:06 oryx123

我解决了,我的系统是windows,遇到这个错误是因为我在vscode的终端内执行的ccr code命令

1:在wsl中运行“ccr start”,配置大模型信息后能看到启动成功 2:另开一个wsl,运行"ccr code"

Image

It works now!

facelezzzz avatar Jun 16 '25 08:06 facelezzzz

出现这个错误的都是Windows用户吗?看起来像Windows和Mac有些区别,等有机会我借个Windows系统试试

musistudio avatar Jun 16 '25 10:06 musistudio

Same error, ubuntu 24.04.

tninja avatar Jun 16 '25 13:06 tninja

Same error, ubuntu 24.04.

Check the port and PID file status:

lsof -i:3456

ls ~/.claude-code-router/.claude-code-router.pid

musistudio avatar Jun 16 '25 14:06 musistudio

Thanks for reply:

Same error, ubuntu 24.04.

Check the port and PID file status:

lsof -i:3456

(nothing returned)

ls ~/.claude-code-router/.claude-code-router.pid

ls: cannot access '/home/tninja/.claude-code-router/.claude-code-router.pid': No such file or directory

tninja avatar Jun 16 '25 20:06 tninja

Try updating to version v1.0.7.

npm install -g @musistudio/claude-code-router

musistudio avatar Jun 16 '25 22:06 musistudio

Thanks! ccr code works now after ccr start. Great work!

tninja avatar Jun 17 '25 03:06 tninja

Mac os, same error.

Service not running, starting service...
Service startup timeout, please manually run `ccr start` to start the service

Environments:

1.0.43 (Claude Code)
claude-code-router version: 1.0.14

ccr code works if I run ccr start first, but it will rewrite config file.

kky42 avatar Jul 05 '25 19:07 kky42

Mac os, same error.

Service not running, starting service... Service startup timeout, please manually run ccr start to start the service Environments:

1.0.43 (Claude Code) claude-code-router version: 1.0.14 ccr code works if I run ccr start first, but it will rewrite config file.

You can check if the format of your config.json is correct. I made a mistake when writing it earlier, but after modifying it, i can start directly.

SexyGun avatar Jul 07 '25 06:07 SexyGun

Add your configuration to ~/.claude-code-router/config.json, and then run ccr code to solve this problem.

yakami129 avatar Jul 15 '25 03:07 yakami129

config.json

The issue on my end was that the content in this configuration file (~/.claude-code-router/config.json) was written incorrectly, making the file content not in JSON format. As a result, an error occurred during startup. It worked fine after correcting the content.

johnnian avatar Jul 21 '25 10:07 johnnian

Same error, ubuntu 24.04.

Check the port and PID file status:

lsof -i:3456

ls ~/.claude-code-router/.claude-code-router.pid

Ubuntu24.04, it occurs to me that VScode is watching port 3456, default port of ccr. Thus I set "PORT":3457 in ~/.claude-code-router/config.json , and "ccr start" works fine now for me. Hope this help.

a957924278 avatar Sep 15 '25 07:09 a957924278