Getting error while running automation script in appium

Hi,

I am running the Mobile automation script on one Windows Desktop system with below software set up, but getting the below errors. PFA file for the full Appium Logs during run. Can anyone please response for the same at the earliest.

Software Set Up:
1.Android Studio
2.Appium
3.Mobile/Tablet connected to system
4.Selenium/Appium Driver code for Automation

Errors in Appium Log:
1.[warn] e[35m[BaseDriver]e[39m Capability ‘noReset’ changed from string to boolean. This may cause unexpected behavior.

2.[warn] e[35m[AndroidDriver]e[39m No app sent in, not parsing package/activity

3.[warn] e[35m[ADB]e[39m apksigner stderr: ERROR: Registry editing has been disabled by your administrator.

4.[warn] e[35m[ADB]e[39m Exception in thread “main” java.nio.file.AccessDeniedException: C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk
[warn] e[35m[ADB]e[39m at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
[warn] e[35m[ADB]e[39m at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
[warn] e[35m[ADB]e[39m at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
[warn] e[35m[ADB]e[39m at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:376)
[warn] e[35m[ADB]e[39m at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
[warn] e[35m[ADB]e[39m at java.nio.file.Files.move(Files.java:1395)
[warn] e[35m[ADB]e[39m at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:352)
[warn] e[35m[ADB]e[39m at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:83)
[warn] e[35m[ADB]e[39m

5.warn] e[35m[ADB]e[39m Cannot use apksigner tool for signing. Defaulting to sign.jar. Original error: Command ‘apksigner.bat sign --key ‘C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8’ --cert ‘C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem’ ‘C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’’ exited with code 1; StdErr: ERROR: Registry editing has been disabled by your administrator.
[warn] e[35m[ADB]e[39m Exception in thread “main” java.nio.file.AccessDeniedException: C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk
[warn] e[35m[ADB]e[39m at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
[warn] e[35m[ADB]e[39m at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
[warn] e[35m[ADB]e[39m at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
[warn] e[35m[ADB]e[39m at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:376)
[warn] e[35m[ADB]e[39m at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
[warn] e[35m[ADB]e[39m at java.nio.file.Files.move(Files.java:1395)
[warn] e[35m[ADB]e[39m at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:352)
[warn] e[35m[ADB]e[39m at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:83)
[warn] e[35m[ADB]e[39m

6.[warn] 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

7.[warn] e[35m[UiAutomator2]e[39m Unable to remove port forward ‘Error executing adbExec. Original error: ‘Command ‘C:\Users\Sumit.Chouhtel\AppData\Local\Android\sdk\platform-tools\adb.exe -P 5037 -s RFXTBIC00014974 forward --remove tcp:8200’ exited with code 1’; Stderr: ‘adb.exe: error: listener ‘tcp:8200’ not found’; Code: ‘1’’

Thanks
Swatiappium-server-logs.txt (24.1 KB)

@swati_dave how you installed appium on machine? hope with:

npm install -g appium

No I installed exe file for appium and run the same for installation.

install with npm :slight_smile:

Thank you Aleksei for the response!!

I have got the below solution:

Need to click option as ‘Only For Me’ while installing the Appium Desktop app. (If we select ‘For all users’ option than there will be error in appium run).

Regards
Swati Dave

Ah. It same as “-g” option :slight_smile: