An unknown server-side error occurred, Bad app: ⁨/../../. App(ipa) paths need to be absolute or an URL to a compressed file - ios

While I am running the JsonScript in the appium inspector
Environment used:
"platformName": "iOS",
"deviceName": "iPhone Simulator",
"platformVersion": "12.1",
"app": "⁨⁨/../../...ipa",
"automationName":
"XCUITest",
"noReset": true
It is not starting the appium inspector and throwing the error
An unknown server-side error occurred while processing the command.
Original error: Bad app: ⁨⁨/../../. App(ipa) paths need to be absolute
or an URL to a compressed file

The simple way is create the app folder in the project root folder. Move your filename.ipa file inside app folder. Your app path will be
"app": "/app/filename.ipa"

Related

An unknown server-side error occurred while processing the command. Original error: multi-disk zip files are not supported: found disk number: 8224

When I try to create appium server, i get this error
An unknown server-side error occurred while processing the command. Original error: multi-disk zip files are not supported: found disk number: 8224
Appium v1.17.1
{
"platformName": "Android",
"deviceName": "Any device name",
"app": "C:\Users\A196673\OneDrive - DEKRA SE\Desktop\apk\ApiDemos-debug.apk",
"udid": "emulator-5554",
"autmationName": "UiAutomator2"
}
i installed everything good but can not create server

Appium Client app problem for start inspection or start testing

Here's the steps of problem I am facing:
**Predefined: My Android SDK path and JDK path has been given in config section. Also "Session override" is checked **
I'm opening the Appium Client.
Starting the server.
Starting"Inspector session" Choosing the previously saved device with capatalities.
Choosing automatic server.
Trying to start thesession.
After sometime, I'm ending seeing this message:
Error
An unknown server-side error occurred while processing the command. Original error: zipAlignApk failed. Original error: spawn EPERM. Stdout: 'undefined'; Stderr: 'undefined'
The capabilites I've provided:
{
"deviceName": "",
"platformName": "",
"platformVersion": "",
"appPackage": "",
"appActivity": ""
}
Note: I have used appium desktop in same pc before... But somehow seeing this message now... In between, I've done several Android Studio installation.
enter image description here

Appium - Install iOS apps from a testflight public url

I'm trying to install / run an iOS app from a test flight public url when using appium desktop but get the following error when starting the session:
"An unknown server-side error occurred while processing the command. Original error: Could not install app: 'ENOTDIR: not a directory, scandir '/var/folders/[DIRECTORY_PATH]/[RANDOM_GENERATED_CODE].app''"
The desired capabilities I provided to appium desktop are shown below:
{
"automationName": "XCUITest",
"platformName": "iOS",
"deviceName": "[DEVICE_NAME]",
"platformVersion": "13.3",
"xcodeOrgId": "[XCODE_ORG_ID]",
"xcodeSigningId": "iPhone Developer",
"udid": "[DEVICE_UDID]",
"bundleId": "[APP_BUNDLE_ID]",
"updatedWDABundleId": "[WEDRIVER_AGENT_RUNNER]",
"app": "https://testflight.apple.com/join/[RANDOM_GENERATED_CODE]"
}
Does appium support this functionality? If so what am i missing?
You should try to download the app before setting up Appium. (with bash script or Java itself)
After downloading, set the local URL in the capabilities.
This error:
install app: 'ENOTDIR: not a directory, scandir '/var/folders/[DIRECTORY_PATH]/[RANDOM_GENERATED_CODE].app''"
Seems to indicate you are pointing to a file, not a directory, which is what the executing code expected. Are you supposed to expand the artifacts from TestFlight before using them? Perhaps something is wrong with the [DirectoryPath] you specified. What's actually at that location after the failure occurs?

Problem In Opening Appium Inspector with calculator seesion

"deviceName": "Moto C Plus",
"udid": "ZZ2222MGJM",
"platformName": "Android",
"platformVersion": "7.0",
"appPackage": "com.google.android.calculator",
"appActivity": "com.android.calculator2.Calculator"
when click on startSession button
error :
Error
An unknown server-side error occurred while processing the command. Original error: zipAlignApk failed. Original error: Command 'C:\Users\ANIL\Desktop\android-sdk\platform-tools\zipalign.exe -f 4 C:\Users\ANIL\AppData\Local\Temp\20191017-3868-paf3kz.h4yu\appium-uiautomator2-server-debug-androidTest.apk C:\Users\ANIL\AppData\Local\Temp\20191017-3868-1e9g3nn.xgdch\appium.tmp' exited with code 3221225781. Stdout: ''; Stderr: ''
I think you need to add the automationName parameter to your desired capabilities here. Something like:
automationName: UiAutomator1
Or
automationName: UiAutomator2
You can read about the automationName parameter under the Appium docs: http://appium.io/docs/en/writing-running-appium/caps/
It basically tells Appium which device-native automation framework to use.

Appium - iOS - Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4

I'm trying to connect Appium 1.12.1 to a physical iOS device with Automatic Server. These are the capabilities I am trying:
{
"browserName": "Safari",
"platformName": "iOS",
"platformVersion": "12.1",
"deviceName": "iPhone 6",
"automationName": "XCUITest",
"startIWDP": true,
"udid": "auto"
}
I am getting a lengthy error that starts with:
An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65 xcodebuild error message: 2019-04-09 10:14:08.626 xcodebuild[22198:212737] Error writing xctestrun file: Error Domain=NSCocoaErrorDomain Code=4 "The folder “WebDriverAgentRunner_iphoneos12.2-arm64.xctestrun” doesn’t exist."
I had the same problem.
In "/Users/YOUR_NAME/Library/Developer/Xcode/DerivedData/" I have two folders:
WebDriverAgent-akxhdiizyykdxefsthlnfyomlaiz
WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu
And Appium tried take the folder from WebDriverAgent-akxhdiizyykdxefsthlnfyomlaiz but need WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu.
I copied from WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu to WebDriverAgent-akxhdiizyykdxefsthlnfyomlaiz and now all work good.

Resources