Unable to create remote connection (Mac > Android (Samsung S22 Ultra))

Platform: MacOS 12.4, Katalon version 8.4, Device: Samsung S22 Ultra

Trying to record my first test, but I am having issues connecting to my Android phone. Log file (below)

I have updated Appium, Android Studio, Java and NodeJS

I dont know, but it feels like ADB is randomly breaking, because the device is not recognised after I get the error (need to physically reconnect device), but not sure what would cause this?

e[35m[Appium]e[39m Welcome to Appium v1.22.3
e[35m[Appium]e[39m Non-default server args:
e[35m[Appium]e[39m   port: 50409
e[35m[Appium]e[39m   tmpDir: /var/folders/_w/s92dfnmx4w5g62cgsgqm46mxbl549n/T//Katalon/Appium/Temp1659438367046
e[35m[Appium]e[39m   chromedriverPort: 50411
e[35m[Appium]e[39m Deprecated server args:
e[35m[Appium]e[39m   e[31m--chromedriver-porte[39m => --default-capabilities
e[35m[Appium]e[39m Default capabilities, which will be added to each request unless overridden by desired capabilities:
e[35m[Appium]e[39m   chromedriverPort: 50411
e[35m[Appium]e[39m Appium REST http interface listener started on 0.0.0.0:50409
e[35m[HTTP]e[39m e[37m-->e[39m e[37mGETe[39m e[37m/wd/hub/statuse[39m
e[35m[HTTP]e[39m e[90m{}e[39m
[debug] e[35m[GENERIC]e[39m Calling AppiumDriver.getStatus() with args: []
[debug] e[35m[GENERIC]e[39m Responding to client with driver.getStatus() result: {"build":{"version":"1.22.3"}}
e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/status e[39me[32m200e[39m e[90m5 ms - 68e[39m
e[35m[HTTP]e[39m e[90me[39m
e[35m[HTTP]e[39m e[37m-->e[39m e[37mGETe[39m e[37m/wd/hub/statuse[39m
e[35m[HTTP]e[39m e[90m{}e[39m
[debug] e[35m[GENERIC]e[39m Calling AppiumDriver.getStatus() with args: []
[debug] e[35m[GENERIC]e[39m Responding to client with driver.getStatus() result: {"build":{"version":"1.22.3"}}
e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/status e[39me[32m200e[39m e[90m1 ms - 68e[39m
e[35m[HTTP]e[39m e[90me[39m
e[35m[HTTP]e[39m e[37m-->e[39m e[37mPOSTe[39m e[37m/wd/hub/sessione[39m
e[35m[HTTP]e[39m e[90m{"desiredCapabilities":{"app":"/Users/mac.user/Downloads/4064857.apk","noReset":true,"deviceName":"samsung SM-S908B (Android 12)","fullReset":false,"platform":"ANDROID","newCommandTimeout":1800,"platformVersion":"12","automationName":"uiautomator2","autoGrantPermissions":true,"platformName":"Android","udid":"R3CT204X7TR","systemPort":50420},"capabilities":{"firstMatch":[{"appium:app":"/Users/mac.user/Downloads/4064857.apk","appium:autoGrantPermissions":true,"appium:automationName":"uiautomator2","appium:deviceName":"samsung SM-S908B (Android 12)","appium:fullReset":false,"appium:newCommandTimeout":1800,"appium:noReset":true,"platform":"ANDROID","platformName":"android","appium:platformVersion":"12","appium:systemPort":50420,"appium:udid":"R3CT204X7TR"}]}}e[39m
[debug] e[35m[W3C]e[39m Calling AppiumDriver.createSession() with args: [{"app":"/Users/mac.user/Downloads/4064857.apk","noReset":true,"deviceName":"samsung SM-S908B (Android 12)","fullReset":false,"platform":"ANDROID","newCommandTimeout":1800,"platformVersion":"12","automationName":"uiautomator2","autoGrantPermissions":true,"platformName":"Android","udid":"R3CT204X7TR","systemPort":50420},null,{"firstMatch":[{"appium:app":"/Users/mac.user/Downloads/4064857.apk","appium:autoGrantPermissions":true,"appium:automationName":"uiautomator2","appium:deviceName":"samsung SM-S908B (Android 12)","appium:fullReset":false,"appium:newCommandTimeout":1800,"appium:noReset":true,"platform":"ANDROID","platformName":"android","appium:platformVersion":"12","appium:systemPort":50420,"appium:udid":"R3CT204X7TR"}]}]
[debug] e[35m[BaseDriver]e[39m Event 'newSessionRequested' logged at 1659438368482 (13:06:08 GMT+0200 (Central European Summer Time))
e[35m[BaseDriver]e[39m The following capabilities are not standard capabilities and should have an extension prefix:
e[35m[BaseDriver]e[39m   platform
e[35m[BaseDriver]e[39m   chromedriverPort
e[35m[Appium]e[39m Appium v1.22.3 creating new AndroidUiautomator2Driver (v1.70.1) session
[debug] e[35m[BaseDriver]e[39m W3C capabilities and MJSONWP desired capabilities were provided
[debug] e[35m[BaseDriver]e[39m Creating session with W3C capabilities: {
[debug] e[35m[BaseDriver]e[39m   "alwaysMatch": {
[debug] e[35m[BaseDriver]e[39m     "appium:platform": "ANDROID",
[debug] e[35m[BaseDriver]e[39m     "platformName": "android",
[debug] e[35m[BaseDriver]e[39m     "appium:chromedriverPort": 50411,
[debug] e[35m[BaseDriver]e[39m     "appium:app": "/Users/mac.user/Downloads/4064857.apk",
[debug] e[35m[BaseDriver]e[39m     "appium:autoGrantPermissions": true,
[debug] e[35m[BaseDriver]e[39m     "appium:automationName": "uiautomator2",
[debug] e[35m[BaseDriver]e[39m     "appium:deviceName": "samsung SM-S908B (Android 12)",
[debug] e[35m[BaseDriver]e[39m     "appium:fullReset": false,
[debug] e[35m[BaseDriver]e[39m     "appium:newCommandTimeout": 1800,
[debug] e[35m[BaseDriver]e[39m     "appium:noReset": true,
[debug] e[35m[BaseDriver]e[39m     "appium:platformVersion": "12",
[debug] e[35m[BaseDriver]e[39m     "appium:systemPort": 50420,
[debug] e[35m[BaseDriver]e[39m     "appium:udid": "R3CT204X7TR"
[debug] e[35m[BaseDriver]e[39m   },
[debug] e[35m[BaseDriver]e[39m   "firstMatch": [
[debug] e[35m[BaseDriver]e[39m     {}
[debug] e[35m[BaseDriver]e[39m   ]
[debug] e[35m[BaseDriver]e[39m }
e[35m[BaseDriver]e[39m The following capabilities were provided, but are not recognized by Appium:
e[35m[BaseDriver]e[39m   platform
e[35m[BaseDriver]e[39m Session created with session id: 12cdaee5-8c91-44f0-b03e-2da02520d06b
e[35m[BaseDriver]e[39m Using local app '/Users/mac.user/Downloads/4064857.apk'
[debug] e[35m[UiAutomator2]e[39m Checking whether app is actually present
e[35m[ADB]e[39m Found 1 'build-tools' folders under '/Users/mac.user/.katalon/tools/android_sdk' (newest first):
e[35m[ADB]e[39m     /Users/mac.user/.katalon/tools/android_sdk/build-tools/29.0.2
e[35m[ADB]e[39m Using 'adb' from '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb'
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 start-server'
e[35m[AndroidDriver]e[39m Retrieving device list
[debug] e[35m[ADB]e[39m Trying to find a connected android device
[debug] e[35m[ADB]e[39m Getting connected devices
[debug] e[35m[ADB]e[39m Connected devices: [{"udid":"R3CT204X7TR","state":"device"}]
e[35m[AndroidDriver]e[39m Using device: R3CT204X7TR
e[35m[ADB]e[39m Using 'adb' from '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb'
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 start-server'
[debug] e[35m[ADB]e[39m Setting device id to R3CT204X7TR
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell getprop ro.build.version.sdk'
[debug] e[35m[ADB]e[39m Current device property 'ro.build.version.sdk': 31
e[35m[ADB]e[39m Getting device platform version
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell getprop ro.build.version.release'
[debug] e[35m[ADB]e[39m Current device property 'ro.build.version.release': 12
[debug] e[35m[ADB]e[39m Device API level: 31
e[35m[UiAutomator2]e[39m Relaxing hidden api policy
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''
[debug] e[35m[AndroidDriver]e[39m Parsing package and activity from app manifest
e[35m[ADB]e[39m Package name: 'com.companyname.vmm'
e[35m[ADB]e[39m Main activity name: 'com.companyname.vmm.MainActivity'
[debug] e[35m[AndroidDriver]e[39m Parsed package and activity are: com.companyname.vmm/com.companyname.vmm.MainActivity
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR wait-for-device'
[debug] e[35m[ADB]e[39m Reconnecting adb (target offline)
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR reconnect offline'
[debug] e[35m[ADB]e[39m Getting connected devices
[debug] e[35m[ADB]e[39m Connected devices: [{"udid":"R3CT204X7TR","state":"device"}]
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR wait-for-device'
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell echo ping'
[debug] e[35m[AndroidDriver]e[39m Pushing settings apk to device...
[debug] e[35m[ADB]e[39m Getting install status for io.appium.settings
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell dumpsys package io.appium.settings'
[debug] e[35m[ADB]e[39m 'io.appium.settings' is not installed
[debug] e[35m[ADB]e[39m App '/usr/local/lib/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk' is not installed
[debug] e[35m[ADB]e[39m Installing '/usr/local/lib/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk'
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR help'
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR features'
e[35m[ADB]e[39m The application at '/usr/local/lib/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk' will not be cached, because the device under test has confirmed the support of streamed installs
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR install -g /usr/local/lib/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk'
e[35m[ADB]e[39m The installation of 'settings_apk-debug.apk' took 554ms
[debug] e[35m[ADB]e[39m Install command stdout: Performing Streamed Install
[debug] e[35m[ADB]e[39m Success
[debug] e[35m[ADB]e[39m Getting IDs of all 'io.appium.settings' processes
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell 'pgrep --help; echo $?''
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'
[debug] e[35m[ADB]e[39m Getting IDs of all 'io.appium.settings' processes
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'
[debug] e[35m[ADB]e[39m Starting Appium Settings app
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell am start -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER'
[debug] e[35m[ADB]e[39m Getting IDs of all 'io.appium.settings' processes
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'
[debug] e[35m[ADB]e[39m Getting IDs of all 'io.appium.settings' processes
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell appops set io.appium.settings android:mock_location allow'
[debug] e[35m[Logcat]e[39m Starting logs capture with command: /Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR logcat -v threadtime
[debug] e[35m[UiAutomator2]e[39m Forwarding UiAutomator2 Server port 6790 to local port 50420
[debug] e[35m[ADB]e[39m Forwarding system: 50420 to device: 6790
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR forward tcp:50420 tcp:6790'
[debug] e[35m[ADB]e[39m Getting install status for io.appium.uiautomator2.server
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell dumpsys package io.appium.uiautomator2.server'
[debug] e[35m[ADB]e[39m 'io.appium.uiautomator2.server' is installed
[debug] e[35m[ADB]e[39m Getting package info for 'io.appium.uiautomator2.server'
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell dumpsys package io.appium.uiautomator2.server'
[debug] e[35m[ADB]e[39m The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('4.27.0' >= '4.27.0')
[debug] e[35m[UiAutomator2]e[39m io.appium.uiautomator2.server installation state: sameVersionInstalled
[debug] e[35m[ADB]e[39m Checking app cert for /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.27.0.apk
e[35m[ADB]e[39m Using 'apksigner.jar' from '/Users/mac.user/.katalon/tools/android_sdk/build-tools/29.0.2/lib/apksigner.jar'
[debug] e[35m[ADB]e[39m Starting apksigner: '/Applications/Katalon Studio.app/Contents/Eclipse/jre/Contents/Home/bin/java' -Xmx1024M -Xss1m -jar /Users/mac.user/.katalon/tools/android_sdk/build-tools/29.0.2/lib/apksigner.jar verify --print-certs /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.27.0.apk
[debug] e[35m[ADB]e[39m apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] e[35m[ADB]e[39m Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] e[35m[ADB]e[39m Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] e[35m[ADB]e[39m Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] e[35m[ADB]e[39m 
[debug] e[35m[ADB]e[39m sha256 hash did match for 'appium-uiautomator2-server-v4.27.0.apk'
e[35m[ADB]e[39m '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.27.0.apk' is signed with the default certificate
[debug] e[35m[ADB]e[39m Getting install status for io.appium.uiautomator2.server.test
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell dumpsys package io.appium.uiautomator2.server.test'
[debug] e[35m[ADB]e[39m 'io.appium.uiautomator2.server.test' is installed
[debug] e[35m[ADB]e[39m Checking app cert for /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk
[debug] e[35m[ADB]e[39m Starting apksigner: '/Applications/Katalon Studio.app/Contents/Eclipse/jre/Contents/Home/bin/java' -Xmx1024M -Xss1m -jar /Users/mac.user/.katalon/tools/android_sdk/build-tools/29.0.2/lib/apksigner.jar verify --print-certs /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk
[debug] e[35m[ADB]e[39m apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] e[35m[ADB]e[39m Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] e[35m[ADB]e[39m Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] e[35m[ADB]e[39m Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] e[35m[ADB]e[39m 
[debug] e[35m[ADB]e[39m sha256 hash did match for 'appium-uiautomator2-server-debug-androidTest.apk'
e[35m[ADB]e[39m '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate
e[35m[UiAutomator2]e[39m Server packages are not going to be (re)installed
[debug] e[35m[UiAutomator2]e[39m Waiting up to 30000ms for services to be available
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell pm list instrumentation'
[debug] e[35m[UiAutomator2]e[39m Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available
e[35m[ADB]e[39m Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist
[debug] e[35m[ADB]e[39m Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server.test",";"]]
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;'
[debug] e[35m[ADB]e[39m Checking app cert for /Users/mac.user/Downloads/4064857.apk
[debug] e[35m[ADB]e[39m Starting apksigner: '/Applications/Katalon Studio.app/Contents/Eclipse/jre/Contents/Home/bin/java' -Xmx1024M -Xss1m -jar /Users/mac.user/.katalon/tools/android_sdk/build-tools/29.0.2/lib/apksigner.jar verify --print-certs /Users/mac.user/Downloads/4064857.apk
[debug] e[35m[ADB]e[39m apksigner stdout: Signer #1 certificate DN: CN=Unknown, OU=Unknown, O=companyname Software International AS, L=Oslo, ST=Unknown, C=NO
[debug] e[35m[ADB]e[39m Signer #1 certificate SHA-256 digest: ce5bfeca47231c3b439815119135323473ae3d8d9e18a1ed8f34e9ec9866c24a
[debug] e[35m[ADB]e[39m Signer #1 certificate SHA-1 digest: 5e12a243d95e0c3346e5c1669366e96a543a3a76
[debug] e[35m[ADB]e[39m Signer #1 certificate MD5 digest: ff135f408e18184d0a051774229cce9f
[debug] e[35m[ADB]e[39m 
e[35m[ADB]e[39m '/Users/mac.user/Downloads/4064857.apk' is signed with a non-default certificate
[debug] e[35m[ADB]e[39m Getting install status for com.companyname.vmm
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell dumpsys package com.companyname.vmm'
[debug] e[35m[ADB]e[39m 'com.companyname.vmm' is not installed
[debug] e[35m[ADB]e[39m App '/Users/mac.user/Downloads/4064857.apk' is not installed
[debug] e[35m[ADB]e[39m Installing '/Users/mac.user/Downloads/4064857.apk'
e[35m[ADB]e[39m The application at '/Users/mac.user/Downloads/4064857.apk' will not be cached, because the device under test has confirmed the support of streamed installs
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR install -g /Users/mac.user/Downloads/4064857.apk'
[debug] e[35m[UiAutomator2]e[39m Deleting UiAutomator2 session
[debug] e[35m[UiAutomator2]e[39m Deleting UiAutomator2 server session
[debug] e[35m[WD Proxy]e[39m Matched '/' to command name 'deleteSession'
e[35m[UiAutomator2]e[39m Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell am force-stop com.companyname.vmm'
e[35m[UiAutomator2]e[39m Unable to force stop app: Error executing adbExec. Original error: 'Command '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell am force-stop com.companyname.vmm' exited with code 1'; Command output: * daemon not running; starting now at tcp:5037
e[35m[UiAutomator2]e[39m * daemon started successfully
e[35m[UiAutomator2]e[39m error: device offline
e[35m[UiAutomator2]e[39m 
[debug] e[35m[Logcat]e[39m Stopping logcat capture
[debug] e[35m[Logcat]e[39m Logcat already stopped
[debug] e[35m[ADB]e[39m Removing forwarded port socket connection: 50420 
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR forward --remove tcp:50420'
e[35m[UiAutomator2]e[39m Unable to remove system port forward: Error executing adbExec. Original error: 'Command '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR forward --remove tcp\:50420' exited with code 1'; Command output: adb: error: device offline
e[35m[UiAutomator2]e[39m 
e[35m[UiAutomator2]e[39m Restoring hidden api policy to the device default configuration
[debug] e[35m[ADB]e[39m Running '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy''
[debug] e[35m[BaseDriver]e[39m Event 'newSessionStarted' logged at 1659438390607 (13:06:30 GMT+0200 (Central European Summer Time))
[debug] e[35m[W3C]e[39m Encountered internal error running command: Error executing adbExec. Original error: 'Command '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy'' exited with code 1'; Command output: error: device offline
[debug] e[35m[W3C]e[39m 
[debug] e[35m[W3C]e[39m Error: Command '/Users/mac.user/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s R3CT204X7TR shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy'' exited with code 1
[debug] e[35m[W3C]e[39m     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/appium/node_modules/teen_process/lib/exec.js:113:19)
[debug] e[35m[W3C]e[39m     at ChildProcess.emit (node:events:513:28)
[debug] e[35m[W3C]e[39m     at maybeClose (node:internal/child_process:1091:16)
[debug] e[35m[W3C]e[39m     at Socket.<anonymous> (node:internal/child_process:449:11)
[debug] e[35m[W3C]e[39m     at Socket.emit (node:events:513:28)
[debug] e[35m[W3C]e[39m     at Pipe.<anonymous> (node:net:757:14)
e[35m[HTTP]e[39m e[37m<-- POST /wd/hub/session e[39me[31m500e[39m e[90m22154 ms - 1203e[39m
e[35m[HTTP]e[39m e[90me[39m

@samuel.verhaest did you follow all steps in the [Mobile] Android Setup | Katalon Docs?
You can also check your device is listed based on the following thread: Mobile is Not recognised by Katalon Studio - #7 by Oliver_Howard.

All steps followed yes. The device does get recognised, everything seems to start up, I see appium flashing up on the phone, then it just errors and the device is no longer recognised (until I re-plug it)

I tested Katalon on my personal PC with same device and cable and all was good, but I need Katalon on my work computer (mac)

Then it is probably a problem with your work computer. You can try following this article: How to Use Android Trusted Devices.

Make sure the device can trust the work computer and vice versa. So they can connect with each other. Another thing is that you need to make sure there is no security config that can block the device from your work computer.