I am getting an error while starting session in inspector session .Please find the below details

This is the capabilities I have given in automatic server
{
“deviceName”: “Moto”,
“platformversion”: “6.0.1”,
“udid”: “ZY222WLBK6”,
“platformName”: “Android”,
“appPackage”: “passengerAppPackageName”,
“appActivity”: “passengerAppActivityName”
}

This is the appium server logs
[Appium] Welcome to Appium v1.10.0
[Appium] Non-default server args:
[Appium] address: 127.0.0.1
[Appium] Appium REST http interface listener started on 127.0.0.1:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {“desiredCapabilities”:{“appActivity”:“passengerAppActivityName”,“appPackage”:“passengerAppPackageName”,“deviceName”:“Moto”,“platformName”:“Android”,“platformversion”:“6.0.1”,“udid”:“ZY222WLBK6”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“appActivity”:“passengerAppActivityName”,“appPackage”:“passengerAppPackageName”,“deviceName”:“Moto”,“platformName”:“Android”,“platformversion”:“6.0.1”,“udid”:“ZY222WLBK6”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1544589976078 (10:16:16 GMT+0530 (India Standard Time))
[Appium] Creating new AndroidDriver (v4.7.0) session
[Appium] Capabilities:
[Appium] appActivity: passengerAppActivityName
[Appium] appPackage: passengerAppPackageName
[Appium] deviceName: Moto
[Appium] platformName: Android
[Appium] platformversion: 6.0.1
[Appium] udid: ZY222WLBK6
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[BaseDriver] Creating session with MJSONWP desired capabilities: {“appActivity”:"passengerAp…
[BaseDriver] The following capabilities were provided, but are not recognized by appium: platformversion, connectHardwareKeyboard.
[BaseDriver] Session created with session id: a6cbdc60-afde-4bb8-b3cf-4d9f84297dfc
[AndroidDriver] Java version is: 1.8.0_151
[AndroidDriver] Retrieving device list
[ADB] Trying to find a connected android device
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[AndroidDriver] Using device: ZY222WLBK6
[ADB] Setting device id to ZY222WLBK6
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell getprop ro.build.version.sdk’
[ADB] Current device property ‘ro.build.version.sdk’: 23
[ADB] Device API level: 23
[AndroidDriver] Consider setting ‘automationName’ capability to ‘uiautomator2’ on Android >= 6, since UIAutomator framework is not maintained anymore by the OS vendor.
[AndroidDriver] Starting Android session
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 wait-for-device’
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell echo ping’
[AndroidDriver] Pushing settings apk to device…
[ADB] Getting install status for io.appium.settings
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell dumpsys package io.appium.settings’
[ADB] ‘io.appium.settings’ is installed
[ADB] Getting package info for ‘io.appium.settings’
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell dumpsys package io.appium.settings’
[ADB] The version name of the installed ‘io.appium.settings’ is greater or equal to the application version name (‘2.11.0’ >= ‘2.11.0’)
[ADB] There is no need to install/upgrade ‘C:\Program Files (x86)\Appium\resources\app\node_modules\io.appium.settings\apks\settings_apk-debug.apk’
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell ps’
[AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[ADB] Device API level: 23
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell appops set io.appium.settings android:mock_location allow’
[AndroidDriver] setDeviceLanguageCountry requires language or country.
[AndroidDriver] Got language: ‘undefined’ and country: ‘undefined’
[Logcat] Starting logcat capture
[ADB] Getting device platform version
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell getprop ro.build.version.release’
[ADB] Current device property ‘ro.build.version.release’: 6.0.1
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell wm size’
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell getprop ro.product.model’
[ADB] Current device property ‘ro.product.model’: MotoG3-TE
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell getprop ro.product.manufacturer’
[ADB] Current device property ‘ro.product.manufacturer’: motorola
[AndroidDriver] No app sent in, not parsing package/activity
[AndroidDriver] No app capability. Assuming it is already on the device
[ADB] Getting install status for passengerAppPackageName
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell dumpsys package passengerAppPackageName’
[ADB] ‘passengerAppPackageName’ is not installed
[AndroidDriver] Shutting down Android driver
[AndroidDriver] Called deleteSession but bootstrap wasn’t active
[Logcat] Stopping logcat capture
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell am force-stop io.appium.unlock’
[AndroidDriver] Not cleaning generated files. Add clearSystemFiles capability if wanted.
[BaseDriver] Event ‘newSessionStarted’ logged at 1544589982517 (10:16:22 GMT+0530 (India Standard Time))
[MJSONWP] Encountered internal error running command: Error: ‘app’ option is required for reinstall
[MJSONWP] at Object.helpers.resetApp (C:\Program Files (x86)\Appium\resources\app\node_modules\appium-android-driver\lib\android-helpers.js:352:11)
[MJSONWP] at process._tickCallback (internal/process/next_tick.js:68:7)
[HTTP] <-- POST /wd/hub/session 500 6445 ms - 175
[HTTP]
[HTTP] --> DELETE /wd/hub/session
[HTTP] {}
[HTTP] No route found. Setting content type to ‘text/plain’
[HTTP] <-- DELETE /wd/hub/session 404 7 ms - 57
[HTTP]
[HTTP] --> POST /wd/hub/session
[HTTP] {“desiredCapabilities”:{“appActivity”:“passengerAppActivityName”,“appPackage”:“passengerAppPackageName”,“deviceName”:“Moto”,“platformName”:“Android”,“platformversion”:“6.0.1”,“udid”:“ZY222WLBK6”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“appActivity”:“passengerAppActivityName”,“appPackage”:“passengerAppPackageName”,“deviceName”:“Moto”,“platformName”:“Android”,“platformversion”:“6.0.1”,“udid”:“ZY222WLBK6”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1544589990308 (10:16:30 GMT+0530 (India Standard Time))
[Appium] Creating new AndroidDriver (v4.7.0) session
[Appium] Capabilities:
[Appium] appActivity: passengerAppActivityName
[Appium] appPackage: passengerAppPackageName
[Appium] deviceName: Moto
[Appium] platformName: Android
[Appium] platformversion: 6.0.1
[Appium] udid: ZY222WLBK6
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[BaseDriver] Creating session with MJSONWP desired capabilities: {“appActivity”:"passengerAp…
[BaseDriver] The following capabilities were provided, but are not recognized by appium: platformversion, connectHardwareKeyboard.
[BaseDriver] Session created with session id: 70302a6c-483a-4fd8-9868-6411b1b0155f
[AndroidDriver] Java version is: 1.8.0_151
[AndroidDriver] Retrieving device list
[ADB] Trying to find a connected android device
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[AndroidDriver] Using device: ZY222WLBK6
[ADB] Setting device id to ZY222WLBK6
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell getprop ro.build.version.sdk’
[ADB] Current device property ‘ro.build.version.sdk’: 23
[ADB] Device API level: 23
[AndroidDriver] Consider setting ‘automationName’ capability to ‘uiautomator2’ on Android >= 6, since UIAutomator framework is not maintained anymore by the OS vendor.
[AndroidDriver] Starting Android session
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 wait-for-device’
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell echo ping’
[AndroidDriver] Pushing settings apk to device…
[ADB] Getting install status for io.appium.settings
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell dumpsys package io.appium.settings’
[ADB] ‘io.appium.settings’ is installed
[ADB] Getting package info for ‘io.appium.settings’
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell dumpsys package io.appium.settings’
[ADB] The version name of the installed ‘io.appium.settings’ is greater or equal to the application version name (‘2.11.0’ >= ‘2.11.0’)
[ADB] There is no need to install/upgrade ‘C:\Program Files (x86)\Appium\resources\app\node_modules\io.appium.settings\apks\settings_apk-debug.apk’
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell ps’
[AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[ADB] Device API level: 23
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell appops set io.appium.settings android:mock_location allow’
[AndroidDriver] setDeviceLanguageCountry requires language or country.
[AndroidDriver] Got language: ‘undefined’ and country: ‘undefined’
[Logcat] Starting logcat capture
[ADB] Getting device platform version
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell getprop ro.build.version.release’
[ADB] Current device property ‘ro.build.version.release’: 6.0.1
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell wm size’
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell getprop ro.product.model’
[ADB] Current device property ‘ro.product.model’: MotoG3-TE
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell getprop ro.product.manufacturer’
[ADB] Current device property ‘ro.product.manufacturer’: motorola
[AndroidDriver] No app sent in, not parsing package/activity
[AndroidDriver] No app capability. Assuming it is already on the device
[ADB] Getting install status for passengerAppPackageName
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell dumpsys package passengerAppPackageName’
[ADB] ‘passengerAppPackageName’ is not installed
[AndroidDriver] Shutting down Android driver
[AndroidDriver] Called deleteSession but bootstrap wasn’t active
[Logcat] Stopping logcat capture
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell am force-stop io.appium.unlock’
[AndroidDriver] Not cleaning generated files. Add clearSystemFiles capability if wanted.
[BaseDriver] Event ‘newSessionStarted’ logged at 1544589997776 (10:16:37 GMT+0530 (India Standard Time))
[MJSONWP] Encountered internal error running command: Error: ‘app’ option is required for reinstall
[MJSONWP] at Object.helpers.resetApp (C:\Program Files (x86)\Appium\resources\app\node_modules\appium-android-driver\lib\android-helpers.js:352:11)
[MJSONWP] at process._tickCallback (internal/process/next_tick.js:68:7)
[HTTP] <-- POST /wd/hub/session 500 7474 ms - 175
[HTTP]
[HTTP] --> DELETE /wd/hub/session
[HTTP] {}
[HTTP] No route found. Setting content type to ‘text/plain’
[HTTP] <-- DELETE /wd/hub/session 404 1 ms - 57
[HTTP]
[HTTP] --> POST /wd/hub/session
[HTTP] {“desiredCapabilities”:{“appActivity”:“passengerAppActivityName”,“appPackage”:“passengerAppPackageName”,“deviceName”:“Moto”,“platformName”:“Android”,“platformversion”:“6.0.1”,“udid”:“ZY222WLBK6”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“appActivity”:“passengerAppActivityName”,“appPackage”:“passengerAppPackageName”,“deviceName”:“Moto”,“platformName”:“Android”,“platformversion”:“6.0.1”,“udid”:“ZY222WLBK6”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null]
[BaseDriver] Event ‘newSessionRequested’ logged at 1544590002028 (10:16:42 GMT+0530 (India Standard Time))
[Appium] Creating new AndroidDriver (v4.7.0) session
[Appium] Capabilities:
[Appium] appActivity: passengerAppActivityName
[Appium] appPackage: passengerAppPackageName
[Appium] deviceName: Moto
[Appium] platformName: Android
[Appium] platformversion: 6.0.1
[Appium] udid: ZY222WLBK6
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[BaseDriver] Creating session with MJSONWP desired capabilities: {“appActivity”:"passengerAp…
[BaseDriver] The following capabilities were provided, but are not recognized by appium: platformversion, connectHardwareKeyboard.
[BaseDriver] Session created with session id: df78d372-aed1-4127-a69f-70a8dba01fee
[AndroidDriver] Java version is: 1.8.0_151
[AndroidDriver] Retrieving device list
[ADB] Trying to find a connected android device
[ADB] Getting connected devices…
[ADB] 1 device(s) connected
[AndroidDriver] Using device: ZY222WLBK6
[ADB] Setting device id to ZY222WLBK6
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell getprop ro.build.version.sdk’
[ADB] Current device property ‘ro.build.version.sdk’: 23
[ADB] Device API level: 23
[AndroidDriver] Consider setting ‘automationName’ capability to ‘uiautomator2’ on Android >= 6, since UIAutomator framework is not maintained anymore by the OS vendor.
[AndroidDriver] Starting Android session
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 wait-for-device’
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell echo ping’
[AndroidDriver] Pushing settings apk to device…
[ADB] Getting install status for io.appium.settings
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell dumpsys package io.appium.settings’
[ADB] ‘io.appium.settings’ is installed
[ADB] Getting package info for ‘io.appium.settings’
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell dumpsys package io.appium.settings’
[ADB] The version name of the installed ‘io.appium.settings’ is greater or equal to the application version name (‘2.11.0’ >= ‘2.11.0’)
[ADB] There is no need to install/upgrade ‘C:\Program Files (x86)\Appium\resources\app\node_modules\io.appium.settings\apks\settings_apk-debug.apk’
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell ps’
[ADB] Device API level: 23
[ADB] Device API level: 23
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell am start -W -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000’
[ADB] Device API level: 23
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell appops set io.appium.settings android:mock_location allow’
[AndroidDriver] setDeviceLanguageCountry requires language or country.
[AndroidDriver] Got language: ‘undefined’ and country: ‘undefined’
[Logcat] Starting logcat capture
[ADB] Getting device platform version
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell getprop ro.build.version.release’
[ADB] Current device property ‘ro.build.version.release’: 6.0.1
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell wm size’
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell getprop ro.product.model’
[ADB] Current device property ‘ro.product.model’: MotoG3-TE
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell getprop ro.product.manufacturer’
[ADB] Current device property ‘ro.product.manufacturer’: motorola
[AndroidDriver] No app sent in, not parsing package/activity
[AndroidDriver] No app capability. Assuming it is already on the device
[ADB] Getting install status for passengerAppPackageName
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell dumpsys package passengerAppPackageName’
[ADB] ‘passengerAppPackageName’ is not installed
[AndroidDriver] Shutting down Android driver
[AndroidDriver] Called deleteSession but bootstrap wasn’t active
[Logcat] Stopping logcat capture
[ADB] Running ‘C:\Users\neethu.jose\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s ZY222WLBK6 shell am force-stop io.appium.unlock’
[AndroidDriver] Not cleaning generated files. Add clearSystemFiles capability if wanted.
[BaseDriver] Event ‘newSessionStarted’ logged at 1544590010855 (10:16:50 GMT+0530 (India Standard Time))
[MJSONWP] Encountered internal error running command: Error: ‘app’ option is required for reinstall
[MJSONWP] at Object.helpers.resetApp (C:\Program Files (x86)\Appium\resources\app\node_modules\appium-android-driver\lib\android-helpers.js:352:11)
[MJSONWP] at process._tickCallback (internal/process/next_tick.js:68:7)
[HTTP] <-- POST /wd/hub/session 500 8829 ms - 175
[HTTP]
[HTTP] --> DELETE /wd/hub/session
[HTTP] {}
[HTTP] No route found. Setting content type to ‘text/plain’
[HTTP] <-- DELETE /wd/hub/session 404 1 ms - 57
[HTTP]
[HTTP] --> GET /wd/hub/sessions
[HTTP] {}
[GENERIC] Calling AppiumDriver.getSessions() with args: []
[GENERIC] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /wd/hub/sessions 200 2 ms - 40