Skip to content

caretakerctl status responds with 405: Method Not Allowed #92

@Pingu501

Description

@Pingu501

Hey there, I really like the simplicity of caretakerd! Testing it currently in a couple of projects and noticed that running e.g. caretakerctl status php-fpm will result in

errors.Error: Unexpected response from 'tcp://localhost:57955': 405 - 405: Method Not Allowed
	at github.com/echocat/caretakerd/client.(*Client).transformError(client.go:363)
	at github.com/echocat/caretakerd/client.(*Client).getPlain(client.go:370)
	at github.com/echocat/caretakerd/client.(*Client).GetServiceStatus(client.go:266)
	at github.com/echocat/caretakerd/app.registerStatusCommand.func1(control.go:96)
	at github.com/echocat/caretakerd/app.registerStatusCommand.getActionWrapper.func2(control.go:52)
	at github.com/echocat/caretakerd/app.registerStatusCommand.getActionWrapper.actionWrapper.func3(control.go:17)
	at github.com/alecthomas/kingpin/v2.(*actionMixin).applyActions(actions.go:28)
	at github.com/alecthomas/kingpin/v2.(*Application).applyActions(app.go:568)
	at github.com/alecthomas/kingpin/v2.(*Application).execute(app.go:398)
	at github.com/alecthomas/kingpin/v2.(*Application).Parse(app.go:230)
	at main.main(main.go:21)

The configuration file:

rpc:
  enabled: true

services:
  # main process
  php-fpm:
    type: master
    command: [ '/usr/local/sbin/php-fpm' ]

Is this a known issue? Can reproduce this with different configurations.

caretakerctl version
caretakerctl
 Version:      v1.0.13
 Git revision: 177f9a8a7fc26ee79758cdd9ce33598ac9b78ca1
 Built:        2025-12-02T11:15:09Z
 Go version:   go1.25.0
 OS/Arch:      linux/amd64

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions