appium: Appium 2.0 beta cannot start a session on some Windows OS machines

The problem

I am trying to start a test against new Appium Beta-25 version, with real Android device, on top of Windows 10 OS machine. The problem is that appium is showing an error on the appium server side as follow:

[HTTP] {"capabilities":{"firstMatch":[{"appium:noReset":true,"appium:fullReset":false,"appium:appPackage":"com.shs.wanderguard","appium:appActivity":"com.shs.wanderguard.activity.SplashActivity","appium:udid":"HGAGTKE7","appium:automationName":"UiAutomator2","appium:uiautomator2ServerInstallTimeout":"120000","appium:app":"C:\\workspace\\builds\\wg\\wg.apk","appium:newCommandTimeout":"500","appium:allowTestPackages":true,"appium:autoGrantPermissions":true,"appium:wdaLocalPort":"4723","platformName":"Android"}]},"desiredCapabilities":{"noReset":true,"fullReset":false,"appPackage":"com.shs.wanderguard","appActivity":"com.shs.wanderguard.activity.SplashActivity","udid":"HGAGTKE7","automationName":"UiAutomator2","uiautomator2ServerInstallTimeout":"120000","app":"C:\\workspace\\builds\\wg\\wg.apk","newCommandTimeout":"500","allowTestPackages":true,"autoGrantPermissions":true,"wdaLocalPort":"4723","platformName":"Android"}}
[debug] [HTTP] No route found for /wd/hub/session
[HTTP] <-- POST /wd/hub/session 404 1 ms - 211
[HTTP]
appiu[Appium] Received SIGINT - shutting down
[debug] [Appium] There are no active sessions for cleanup
[HTTP] Waiting until the server is closed
[HTTP] Received server close event

The problem is not happening on top of Mac OS machine.

I am starting the appium server with the following CLI command:

appium --base-path /wd/hub

Environment

  • Appium version (or git revision) that exhibits the issue: 2.0.0-beta.25
  • Last Appium version that did not exhibit the issue (if applicable): 1.22.1
  • Desktop OS/version used to run Appium: Windows OS 10
  • Node.js version (unless using Appium.app|exe): v16.13.2
  • Npm or Yarn package manager: npm
  • Mobile platform/version under test: Android OS 8
  • Real device or emulator/simulator: Real device
  • Appium CLI or Appium.app|exe: Appium CLI

Details

  • Listing available drivers √ Listing available drivers
  • windows@2.0.1 [installed (NPM)]
  • uiautomator2@2.0.3 [installed (NPM)]

Link to Appium logs

https://github.com/bwomsm1/AppiumLogs/blob/master/appium_win.log

Code To Reproduce Issue [ Good To Have ]

Just try to launch any empty test on Windows OS env

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

it looks like this is the issue: https://github.com/moby/moby/issues/24029. so it’s git-bash’s fault. the workaround/solution is here. i.e.

MSYS_NO_PATHCONV=1 appium --base-path="/wd/hub"

you may want to export that env var so it’s always on for your terminal sessions.

closing this issue since we’ve confirmed this is a git bash issue, not an Appium one.