Unknown server issue socket hang up

just never used. I am with Appium 7+ years and Appium server builder was absent in beginning.
So just used to work in pure terminal.

Have you resolved your problem?

Unfortunately not, my testsuite is still failing the rest of the test cases around 17 minutes time which is pretty ridiculous, no issue when running locally but only happened when using Jenkins to run the Appium testsuite

adb uninstall io.appium.uiautomator2.server
adb uninstall io.appium.uiautomator2.server.test

Run These commands in terminal after closing appium server and start server again.

See the blow link for details:

Hi, just want to share my finding that solves the issue.

Apparently in my Appium repo, one of my teammates found out that it has duplicate dependencies causing the Appium to create two different drivers in the middle of the testing, causing conflict and thus failing/skipping the test after 20 minutes mark.

implementation ‘com.github.appium:java-client:7.4.1’
implementation ‘io.appium:java-client:7.5.1’

Deleting one of them will eventually solve the issue.