The local appium server has not been started reason timed out

Hi I am facing this issue were the local Appium server is not getting started after updating the Appium to the v1.22.3 version .

This the code that i have written.

@BeforeSuite
	@Step("Starting Appium server")
	public void globalSetup(ITestContext context) throws Exception {
		// Load Props
		loadProperties("appiumTests.properties");

		// Load Secrets, Create the file
		loadSecrets(System.getProperty("user.home") + "/automationSecrets.properties");

		// Get Suite name
		prop.setProperty("SuiteName", context.getName());

		if (getRestartDeviceProperty().equals("true")) {
			DeviceInteractions.rebootDevice(getPlatformData(), getDeviceUdidData(getDeviceNameData()));
		}
		logger.info("Building Appium Server...");
		AppiumServiceBuilder builder = new AppiumServiceBuilder()
				.withAppiumJS(new File("/usr/local/lib/node_modules/appium/build/lib/main.js"))
				.withArgument(GeneralServerFlag.LOG_LEVEL, "info").withArgument(GeneralServerFlag.RELAXED_SECURITY)
				.withLogFile(new File(System.getProperty("user.dir") + "/logs/appium.log")).usingAnyFreePort();

		service = builder.build();
		logger.info("Appium server is built.");
		logger.info("Starting appium server...");
		service.start();
		logger.info("Appium server started.");
		cleanFileContent("report.txt");

		// Clean TestID file
		prop.setProperty(testRailRunIDProp, "");
	}

The error that i am getting is

[Appium] Welcome to Appium v1.22.3
[Appium] Non-default server args:
[Appium] port: 47928
[Appium] logFile: /Users/subh/IdeaProjects/mobile_automation/logs/appium.log
[Appium] loglevel: info
[Appium] relaxedSecurityEnabled: true
[Appium] Appium REST http interface listener started on 0.0.0.0:47928
[HTTP] → GET /status
[HTTP] {}
[HTTP] ← GET /status 404 12 ms - 211
[HTTP]
[HTTP] → GET /status
[HTTP] {}
[HTTP] ← GET /status 404 9 ms - 211

This version is over 2 years out of support. You should really update to Appium 2.

I was able to resolve this issue by updating the Appium to Appium 2 and also downloading the Appium drivers and change my calling my driver like this

driver = new AndroidDriver(new URL(getServiceUrl(),“”), capabilities);

1 Like