auto icon indicating copy to clipboard operation
auto copied to clipboard

Error: kill ESRCH on any auto command

Open preshonyee opened this issue 3 years ago • 7 comments

All of a sudden whenever I try to run any auto command, this is the error I keep getting. Don't know what to do at this point. image

preshonyee avatar May 23 '21 19:05 preshonyee

Maybe it's a windows issue? @adierkens or @zephraph could you verify?

hipstersmoothie avatar May 26 '21 00:05 hipstersmoothie

Hmmm, this is an interesting one. I don't think it's a windows issue.

ESRCH is a documented error code from POSIX kill when it's passed a PID that doesn't exist. Makes sense given that the very next call is process.kill.

Digging into that more the error is pointing to this

https://github.com/intuit/auto/blob/6051e9e5777518205c1ec186c9eb5f8143783eaa/packages/core/src/utils/verify-auth.ts#L28-L32

specifically that line 30

Is that - sign supposed to be there? If so, you might want to wrap that process call in a try/catch. Beyond that though, it seems like there might be an auth failure? Idk, @hipstersmoothie maybe it's clearer to you from this point.

zephraph avatar May 28 '21 00:05 zephraph

any news for this issue?

pidanmeng avatar Feb 09 '23 15:02 pidanmeng

this happens when we try to verify the auth with a push.

hipstersmoothie avatar Mar 18 '23 22:03 hipstersmoothie

I'm hitting this in an actions. Maybe the token I'm using doesn't have push rights

hipstersmoothie avatar Mar 18 '23 22:03 hipstersmoothie

in my case I'm trying to use auto core directly

hipstersmoothie avatar Mar 18 '23 22:03 hipstersmoothie

@hipstersmoothie I'm running into this issue when I try to run create-labels locally with a GH_TOKEN that has repo permissions.

I'm using a signing key via 1Password's ssh agent - so each process needs to be specifically granted access to run git operations, maybe that has something to do with it.

What's the suggested workflow for labels? Doing it as part of a workflow maybe?

UncleDave avatar Nov 30 '23 10:11 UncleDave