I’m running Appium tests written in JavaScript (WebdriverIO) against an Amazon emulator and physical device, but the app isn’t launching and JSON-RPC calls fail with a "socket hang up" error. Also, vdcm list-methods only shows the usage message instead of listing available RPC methods.
Environment:
macOS (local dev machine)
Node.js v20.15.1
Appium Server 2.12.1 (local)
WebdriverIO client (JavaScript)
Emulator: emulator-5554
Physical device: Fire TV Stick 4K (connected via adb)
Running vda -s emulator-5554 shell "vdcm list-methods" should list available methods (injectInputKeyEvent, captureScreenshot, etc.).
Actual Behavior:
App does not launch.
Test script fails with:
WebDriverError: An unknown server-side error occurred while processing the command.
Original error: socket hang up when running "execute/sync" with method "POST" and args "jsonrpc: injectInputKeyEvent"
vdcm list-methods output:
Device Config Manager Tool
Usage:
vdcm get <key>
vdcm set <key> <value>
vdcm --help
vdcm --version
Arguments did not match expected patterns%
No RPC methods are shown.
Same behavior after retries, app relaunches, or emulator/device restarts.
What I already tried:
Verified Appium–WebdriverIO compatibility.
Reinstalled Kepler driver (v3.30.0).
Confirmed device detection:
vda devices
emulator-5554 device
Checked network access and Appium endpoint (localhost:4723).
Tried multiple apps including com.amazon.keplervideoapp.main.
Welcome to Amazon Developer Community !
Thanks for writing in, please allow me some time to look into this and I will update you as soon as I have something.
Thank you for contacting us and sharing about your experience while working with Appium. What I can tell from your description is that automation-toolkit.service may not be running. Service requires a file activation as explained on Set Up Testing with Appium | Design and Develop Vega Apps
touch /tmp/automation-toolkit.enable
Could you please first run the command above on your FireTV and/or Vega Virtual Device and try again? Please let me know if this solves your problem.
I see from your previous post that you were testing on the Vega Virtual Device and this last screenshot is now from the FireTV. Also note that from the developer shell it’s not possible to use systemctl, hence the “error message”, so this may be a false positive.
Can you confirm if once following the file activation mechanism, did you attempted to use Appium?
I was testing on both the Vega Virtual Device and a Fire TV—apologies for the confusion earlier. I’ve been following the file activation steps as described in the documentation linked below.
Please find the screen shot of the Vega Virtual device.