Appium constantly reopening app without running the tests

Background
I dont know why but my tests stoped working, right now instead of running normally appium only pops up my app and close after few secs without starting tests. It repeats like ~10 times and start the tests or just simply shut down.

I have tried with:
Restarting device
On/of dev options
On/of usb debug
Restarting/Killing ADB
Reinstalling UIAutomator server
Changing UIA2 to UIA (same effect)

Real device
My caps
capabilities.setCapability(“platformName”, “Android”);
capabilities.setCapability(“deviceName”, “01ab61510c375d29”);
capabilities.setCapability(“appPackage”, “.debug”);
capabilities.setCapability(“appActivity”, “.EntryActivity”);
capabilities.setCapability(“app”, “/app-debug.apk”);
capabilities.setCapability(“autoGrantPermissions”, true);
capabilities.setCapability(“newCommandTimeout”, 1200);
capabilities.setCapability(“automationName”, “UIAutomator2”);
driver = new AppiumDriver(capabilities);
driver.manage().timeouts().implicitlyWait(10, TimeUnit.MINUTES);

Does anyone know what is going on?

Appium logs:
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/dawid.florczak/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“am”,“force-stop”,“io.appium.uiautomator2.server”]
[UiAutomator2] Starting uiautomator2 server v0.3.0
[UiAutomator2] Running command: ‘adb -s 01ab61510c375d29 shell am instrument -w io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner’
[UiAutomator2] Waiting up to 20000ms for UiAutomator2 to be online…
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: “{“sessionId”:“SESSIONID”,“status”:0,“value”:“Status Invoked”}”
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8200/wd/hub/session] with body: {“desiredCapabilities:””}}
[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:“cc114afb-c812-45e4-a169-ac811d688e79”,“status”:0,“value”:“Created Session”}
[UiAutomator2] UiAutomator2 did not start the activity we were waiting for, ‘EntryActivity’. Starting it ourselves
[debug] [ADB] Device API level: 23
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/adb’ with args: [”-P",5037,"-s",“01ab61510c375d29”,“shell”,“am”,“start”,"-W","-n",".EntryActivity","-S","-a",“android.intent.action.MAIN”,"-c",“android.intent.category.LAUNCHER”,"-f",“0x10200000”]
[Appium] New AndroidUiautomator2Driver session created successfully, session 5a1698c3-e86b-4fcd-9ee9-3b864e857253 added to master session list
[debug] [BaseDriver] Event ‘newSessionStarted’ logged at 1522232400928 (12:20:00 GMT+0200 (CEST))
[debug] [MJSONWP] Responding to client with driver.createSession() result: {“app”:“debug.apk”,“appActivity”:“EntryActivity”,“appPackage”:“debug”,“autoGrantPermissions”:true,“automationName”:“UIAutomator2”,“deviceName”:“01ab61510c375d29”,“newCommandTimeout”:1200,“platformName”:“android”}
[HTTP] <-- POST /wd/hub/session 200 35600 ms - 368
Mar 28, 2018 12:20:00 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
[HTTP] --> GET /wd/hub/session/5a1698c3-e86b-4fcd-9ee9-3b864e857253 {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: [“5a1698c3-e86b-4fcd-9ee9-3b864e857253”]
[debug] [MJSONWP] Responding to client with driver.getSession() result: {“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“app”:""}
[HTTP] <-- GET /wd/hub/session/5a1698c3-e86b-4fcd-9ee9-3b864e857253 200 6 ms - 1035
[HTTP] --> GET /wd/hub/session/5a1698c3-e86b-4fcd-9ee9-3b864e857253 {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: [“5a1698c3-e86b-4fcd-9ee9-3b864e857253”]
[debug] [MJSONWP] Responding to client with driver.getSession() result: {“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“app”:""}
[HTTP] <-- GET /wd/hub/session/5a1698c3-e86b-4fcd-9ee9-3b864e857253 200 9 ms - 1035
[HTTP] --> POST /wd/hub/session/5a1698c3-e86b-4fcd-9ee9-3b864e857253/timeouts {“type”:“implicit”,“ms”:600000}
[debug] [MJSONWP] Calling AppiumDriver.timeouts() with args: [“implicit”,600000,“5a1698c3-e86b-4fcd-9ee9-3b864e857253”]
[debug] [BaseDriver] Set implicit wait to 600000ms
[debug] [MJSONWP] Responding to client with driver.timeouts() result: null
[HTTP] <-- POST /wd/hub/session/5a1698c3-e86b-4fcd-9ee9-3b864e857253/timeouts 200 4 ms - 76
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.7.2”,“revision”:null}}
[HTTP] <-- GET /wd/hub/status 200 31 ms - 83
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“app”:""}]}]
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1522232403182 (12:20:03 GMT+0200 (CEST))
[Appium] Merged W3C capabilities {“desiredCapabilities”:{“app”:“into desiredCapabilities object {“app”:”/app-deb…
[Appium] Creating new AndroidUiautomator2Driver (v0.11.0) session
[Appium] Capabilities:
[Appium] app: /app-debug.apk
[Appium] appActivity: EntryActivity
[Appium] appPackage: debug
[Appium] autoGrantPermissions: true
[Appium] automationName: UIAutomator2
[Appium] deviceName: 01ab61510c375d29
[Appium] newCommandTimeout: 1200
[Appium] platformName: android
[BaseDriver] Session created with session id: dbb3db8d-49b8-40f4-abd1-feecebb73a18
[BaseDriver] Using local app ‘/app-debug.apk’
[debug] [UiAutomator2] Checking whether app is actually present
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_131
[ADB] Checking whether adb is present
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[AndroidDriver] Using device: 01ab61510c375d29
[ADB] Checking whether adb is present
[debug] [ADB] Setting device id to 01ab61510c375d29
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“getprop”,“ro.build.version.sdk”]
[debug] [ADB] Current device property ‘ro.build.version.sdk’: 23
[debug] [ADB] Device API level: 23
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“getprop”,“ro.build.version.release”]
[debug] [ADB] Current device property ‘ro.build.version.release’: 6.0.1
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“wm”,“size”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“wm”,“density”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“getprop”,“ro.product.model”]
[debug] [ADB] Current device property ‘ro.product.model’: Nexus 5
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“getprop”,“ro.product.manufacturer”]
[debug] [ADB] Current device property ‘ro.product.manufacturer’: LGE
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“am”,“force-stop”,“io.appium.uiautomator2.server”]
[debug] [UiAutomator2] [UIAutomator2]
[debug] [UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:INSTRUMENTATION_RESULT: shortMsg=Process crashed.
[debug] [UiAutomator2] [UIAutomator2] INSTRUMENTATION_CODE: 0
[ADB] Checking whether aapt is present
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“pm”,“list”,“packages”,“io.appium.uiautomator2.server”]
[debug] [ADB] App is installed
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“pm”,“list”,“packages”,“io.appium.uiautomator2.server.test”]
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for io.appium.uiautomator2.server
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“dumpsys”,“package”,“io.appium.uiautomator2.server”]
[debug] [UiAutomator2] Waiting up to 20000ms for instrumentation ‘io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner’ to be available
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“pm”,“list”,“instrumentation”]
[debug] [UiAutomator2] Instrumentation ‘io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner’ available
[debug] [ADB] Running ‘/Users/dawid.florczak/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“wait-for-device”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/dawid.florczak/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“echo”,“ping”]
[AndroidDriver] setDeviceLanguageCountry requires language or country.
[AndroidDriver] Got language: ‘null’ and country: ‘null’
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Pushing settings apk to device…
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/dawid.florczak/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“pm”,“list”,“packages”,“io.appium.settings”]
[Appium] Welcome to Appium v1.7.2
[HTTP] Could not start REST http interface listener. The requested port may already be in use. Please make sure there is no other instance of this server running already.
uncaughtException: listen EADDRINUSE 0.0.0.0:4723
{“date”:“Wed Mar 28 2018 12:20:09 GMT+0200 (CEST)”,“process”:{“pid”:17240,“uid”:501,“gid”:20,“cwd”:"/Users/",“execPath”:"/Users/users/.nvm/versions/node/v6.2.2/bin/node",“version”:“v6.2.2”,“argv”:["/Users/dawid.florczak/.nvm/versions/node/v6.2.2/bin/node","/Users/user/.nvm/versions/node/v6.2.2/lib/node_modules/appium/build/lib/main.js","–port",“4723”,"–address",“0.0.0.0”],“memoryUsage”:{“rss”:167317504,“heapTotal”:145920000,“heapUsed”:121748272}},“os”:{“loadavg”:[3.00537109375,2.86328125,2.7451171875],“uptime”:2507013},“trace”:[{“column”:11,“file”:“util.js”,“function”:“Object.exports._errnoException”,“line”:1007,“method”:"_errnoException",“native”:false},{“column”:20,“file”:“util.js”,“function”:“exports._exceptionWithHostPort”,“line”:1030,“method”:"_exceptionWithHostPort",“native”:false},{“column”:14,“file”:“net.js”,“function”:“Server._listen2”,“line”:1253,“method”:"_listen2",“native”:false},{“column”:10,“file”:“net.js”,“function”:“listen”,“line”:1289,“method”:null,“native”:false},{“column”:9,“file”:“net.js”,“function”:null,“line”:1399,“method”:null,“native”:false},{“column”:11,“file”:“internal/process/next_tick.js”,“function”:"_combinedTickCallback",“line”:77,“method”:null,“native”:false},{“column”:9,“file”:“internal/process/next_tick.js”,“function”:“process._tickCallback”,“line”:98,“method”:"_tickCallback",“native”:false}],“stack”:[“Error: listen EADDRINUSE 0.0.0.0:4723”," at Object.exports._errnoException (util.js:1007:11)"," at exports._exceptionWithHostPort (util.js:1030:20)"," at Server._listen2 (net.js:1253:14)"," at listen (net.js:1289:10)"," at net.js:1399:9"," at _combinedTickCallback (internal/process/next_tick.js:77:11)"," at process._tickCallback (internal/process/next_tick.js:98:9)"]}
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for io.appium.settings
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“dumpsys”,“package”,“io.appium.settings”]
[ADB] Checking whether aapt is present
[debug] [ADB] The installed ‘io.appium.settings’ package does not require upgrade (5 >= 5)
[debug] [ADB] Device API level: 23
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“dumpsys”,“package”,“io.appium.settings”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“pm”,“dump”,“io.appium.settings”]
[debug] [ADB] Got the following command chunks to execute: pm,grant,io.appium.settings,android.permission.WRITE_SETTINGS,;,pm,grant,io.appium.settings,android.permission.ACCESS_MOCK_LOCATION,;
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“pm”,“grant”,“io.appium.settings”,“android.permission.WRITE_SETTINGS”,";",“pm”,“grant”,“io.appium.settings”,“android.permission.ACCESS_MOCK_LOCATION”,";"]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“ps”]
[debug] [ADB] Device API level: 23
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“appops”,“set”,“io.appium.settings”,“android:mock_location”,“allow”]
[debug] [AndroidDriver] Pushing unlock helper app to device…
[debug] [ADB] Getting install status for io.appium.unlock
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“pm”,“list”,“packages”,“io.appium.unlock”]
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for io.appium.unlock
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“dumpsys”,“package”,“io.appium.unlock”]
[ADB] Checking whether aapt is present
[debug] [ADB] The installed ‘io.appium.unlock’ package does not require upgrade (2 >= 2)
[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8201
[debug] [ADB] Forwarding system: 8201 to device: 6790
[debug] [ADB] Running ‘/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“forward”,“tcp:8201”,“tcp:6790”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“dumpsys”,“window”]
[AndroidDriver] Screen already unlocked, doing nothing
[debug] [AndroidDriver] Extracting strings from apk /app-debug.apk null /var/folders/xc/2h4t72hn3mv6xrcx4n988zr00000gn/T/.debug
[debug] [ADB] Extracting strings for language: default
[debug] [ADB] Device API level: 23
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“getprop”,“persist.sys.locale”]
[debug] [ADB] Current device property ‘persist.sys.locale’: pl-PL
[debug] [ADB] Reading strings from converted strings.json
[debug] [ADB] Running ‘adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“push”,"/var/folders/xc/2h4t72hn3mv6xrcx4n988zr00000gn/T/.debug/strings.json","/data/local/tmp"]
[debug] [ADB] Checking app cert for /app-debug.apk
[debug] [ADB] Starting ‘/build-tools/27.0.3/apksigner’ with args ‘verify,/app-debug.apk’
[debug] [ADB] ‘/app-debug.apk’ is already signed.
[AndroidDriver] Remote apk path is /data/local/tmp/c2eba8ab479cd8a0e75901d241fbf593.apk
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“ls”,"/data/local/tmp/c2eba8ab479cd8a0e75901d241fbf593.apk"]
[debug] [AndroidDriver] Checking if app is installed
[debug] [ADB] Getting install status for .debug
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“pm”,“list”,“packages”,”.debug”]
[debug] [ADB] App is installed
[AndroidDriver] Apk is already on remote and installed, resetting
[debug] [AndroidDriver] Running fast reset (stop and clear)
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“am”,“force-stop”,".debug"]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“pm”,“clear”,”.debug”]
[debug] [ADB] Device API level: 23
[ADB] Checking whether aapt is present
[ADB] Extracting package and launch activity from manifest
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“pm”,“dump”,".debug"]
[debug] [ADB] Got the following command chunks to execute: pm,grant,.debug,android.permission.READ_EXTERNAL_STORAGE,;,pm,grant,.debug,android.permission.WRITE_EXTERNAL_STORAGE,;
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“pm”,“grant”,".debug",“android.permission.READ_EXTERNAL_STORAGE”,";",“pm”,“grant”,“debug”,“android.permission.WRITE_EXTERNAL_STORAGE”,";"]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/adb’ with args: ["-P",5037,"-s",“01ab61510c375d29”,“shell”,“am”,“force-stop”,“io.appium.uiautomator2.server”]
[UiAutomator2] Starting uiautomator2 server v0.3.0
[UiAutomator2] Running command: ‘adb -s 01ab61510c375d29 shell am instrument -w io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner’
[UiAutomator2] Waiting up to 20000ms for UiAutomator2 to be online…
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8201/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8201/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8201/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8201/wd/hub/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: “{“sessionId”:“SESSIONID”,“status”:0,“value”:“Status Invoked”}”
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8201/wd/hub/session] with body: {“desiredCapabilities”:{“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“app”:”/debug.apk”,“appActivity”:“EntryActivity”,“appPackage”:".debug",“autoGrantPermissions”:true,“automationName”:“UIAutomator2”,“deviceName”:“01ab61510c375d29”,“newCommandTimeout”:1200,“platformName”:“android”},“app”:“debug.apk”,“appActivity”:“EntryActivity”,“appPackage”:".debug",“autoGrantPermissions”:true,“automationName”:“UIAutomator2”,“deviceName”:“01ab61510c375d29”,“newCommandTimeout”:1200,“platformName”:“android”,“deviceUDID”:“01ab61510c375d29”,“platformVersion”:“6.0.1”,“deviceScreenSize”:“1080x1920”,“deviceScreenDensity”:480,“deviceModel”:“Nexus 5”,“deviceManufacturer”:“LGE”}}
[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:“0be026f1-4f06-4a03-92dd-164edd8682d2”,“status”:0,“value”:“Created Session”}
[UiAutomator2] UiAutomator2 did not start the activity we were waiting for, ‘.debug/.EntryActivity’. Starting it ourselves
[debug] [ADB] Device API level: 23
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected

Looks like you’ve got a previous Appium server in a stuck state. Try this command:

ps aux | grep appium

and then kill any appium processes (you may need to use -9) that are still open. Alternatively, you could reboot the Linux machine.