Suddenly cannot start appium service programmatically

I must be missing some dependencies I think because it was working before I wiped my computer clean.

The test suite starts appium service automatically like so:

appium_service = AppiumService()
        args=['--local-timezone', '--address', APPIUM_SERVICE_HOST, '-p', APPIUM_SERVICE_PORT])

It was working flawlessly before I had to wipe clean my computer. After reinstallation it gets stuck after starting a test:

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

and the only way out is to interrupt it with keyboard.

Appium service logs is full of messages like this (and nothing else until keyboard interruption):

2022-08-23 15:16:50:059 [Appium] Appium REST http interface listener started on localhost:4723
2022-08-23 15:16:50:263 [HTTP] --> HEAD /status
2022-08-23 15:16:50:264 [HTTP] {}
2022-08-23 15:16:50:272 [HTTP] No route found for /status
2022-08-23 15:16:50:276 [HTTP] <-- HEAD /status 404 12 ms - 211
2022-08-23 15:16:50:277 [HTTP] 
2022-08-23 15:16:51:278 [HTTP] --> HEAD /status
2022-08-23 15:16:51:278 [HTTP] {}
2022-08-23 15:16:51:283 [HTTP] No route found for /status
2022-08-23 15:16:51:284 [HTTP] <-- HEAD /status 404 6 ms - 211
2022-08-23 15:16:51:284 [HTTP] 
2022-08-23 15:16:52:292 [HTTP] --> HEAD /status

Any ideas how to solve?

you can see this. I guess it is similar, check my last comment there.

I would guess there is a miss match between your client version, appium version (notice that appium 2 acts differently, if you use it) and you npm or node version.
if you use appium 2 then, your npm version should be above 6 (if I remember correctly). also update node version.

1 Like

did you get this during test execution or when you tried to install appium globally after you wiped your computer?

add the versions you use. appium, npm, node, client.