WebDriverException: unknown error: unable to unzip 'file' - selenium

This question is similar to the one asked here but I'm not sure that the solution is. I'm getting this error when attaching a file called 'PDF_ùâàæ.pdf' using the latest image.
unknown error: unable to unzip 'file'
from unknown error: archive error: (unknown error: could not unzip archive), entry error: (unknown error: invalid data descriptor signature)
(Session info: chrome=62.0.3202.62)
(Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 3.16.0-4-amd64 x86_64) (WARNING: The server did not provide any stacktrace information)
With updated image the error is the same:
org.openqa.selenium.WebDriverException: unknown error: unable to unzip 'file'
from unknown error: archive error: (unknown error: could not unzip archive), entry error: (unknown error: invalid data descriptor signature)
(Session info: chrome=67.0.3396.62)
(Driver info: chromedriver=2.39.562737 (dba483cee6a5f15e2e2d73df16968ab10b38a2bf),platform=Linux 3.16.0-4-amd64 x86_64) (WARNING: The server did not provide any stacktrace information)

Related

Selenium error: Chrome failed to start: exited abnormally. (unknown error: DevToolsActivePort file doesn't exist)

options = Options()
options.add_argument('use-fake-device-for-media-stream')
options.BinaryLocation = "/usr/bin/chromium-browser"
driver = webdriver.Chrome(executable_path="/usr/bin/chromedriver",options=options)
On executing the above with sudo python3 script_name.py, the following errows shows up:
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /snap/chromium/current/command-chromium.wrapper is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
The above error doesnt show up on executing python3 script_name.py, I believe that has to do something with the display.
Please let me know how I can resolve this.
Other details:
Chromium version: 85.0.4183.83
Selenium version:3.141.0
Chrome webDriver version: 85.0.4183.83

from unknown error: archive error: (unknown error: could not write file to temp dir), entry error: (unknown error: leftover data after zip entry)

I am running parallel scenarios on remote using selenoid but after some time and after some scenarios got passed, they fail because of following error while file upload.
unknown error: unable to unzip 'file' from unknown error: archive error: (unknown error: could not write file to temp dir), entry error: (unknown error: leftover data after zip entry)
But When I run one of that failing scenario again, it passes with no error.
I am using parallel_split_test gem to divide scenarios, selenoid for remote testing, Selenium-webdriver vrsion (3.142.7) and ruby 2.5.5

How to resolve that msys2 fail to update the package database and core system packages

Hi I just installed msys2 with exe file that i download through https://www.msys2.org/. So after I installed I was asked to update with comand pacman -Syu However I fail to do Here I compile together the output on the msys2 shell
$ pacman -Syuu
:: Synchronizing package databases...
error: failed retrieving file 'mingw32.db' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'mingw32.db' from sourceforge.net : Could not resolve host: sourceforge.net
error: failed retrieving file 'mingw32.db' from www2.futureware.at : Could not resolve host: www2.futureware.at
error: failed retrieving file 'mingw32.db' from mirror.yandex.ru : Could not resolve host: mirror.yandex.ru
error: failed retrieving file 'mingw32.db' from mirrors.tuna.tsinghua.edu.cn : Could not resolve host: mirrors.tuna.tsinghua.edu.cn
error: failed retrieving file 'mingw32.db' from mirrors.ustc.edu.cn : Could not resolve host: mirrors.ustc.edu.cn
error: failed retrieving file 'mingw32.db' from mirror.bit.edu.cn : Could not resolve host: mirror.bit.edu.cn
error: failed retrieving file 'mingw32.db' from mirror.selfnet.de : Could not resolve host: mirror.selfnet.de
error: failed to update mingw32 (invalid url for server)
error: failed retrieving file 'mingw64.db' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'mingw64.db' from sourceforge.net : Could not resolve host: sourceforge.net
error: failed retrieving file 'mingw64.db' from www2.futureware.at : Could not resolve host: www2.futureware.at
error: failed retrieving file 'mingw64.db' from mirror.yandex.ru : Could not resolve host: mirror.yandex.ru
error: failed retrieving file 'mingw64.db' from mirrors.tuna.tsinghua.edu.cn : Could not resolve host: mirrors.tuna.tsinghua.edu.cn
error: failed retrieving file 'mingw64.db' from mirrors.ustc.edu.cn : Could not resolve host: mirrors.ustc.edu.cn
error: failed retrieving file 'mingw64.db' from mirror.bit.edu.cn : Could not resolve host: mirror.bit.edu.cn
error: failed retrieving file 'mingw64.db' from mirror.selfnet.de : Could not resolve host: mirror.selfnet.de
error: failed to update mingw64 (invalid url for server)
error: failed retrieving file 'msys.db' from repo.msys2.org : Could not resolve host: repo.msys2.org
error: failed retrieving file 'msys.db' from sourceforge.net : Could not resolve host: sourceforge.net
error: failed retrieving file 'msys.db' from www2.futureware.at : Could not resolve host: www2.futureware.at
error: failed retrieving file 'msys.db' from mirror.yandex.ru : Could not resolve host: mirror.yandex.ru
error: failed retrieving file 'msys.db' from mirrors.tuna.tsinghua.edu.cn : Could not resolve host: mirrors.tuna.tsinghua.edu.cn
error: failed retrieving file 'msys.db' from mirrors.ustc.edu.cn : Could not resolve host: mirrors.ustc.edu.cn
error: failed retrieving file 'msys.db' from mirror.bit.edu.cn : Could not resolve host: mirror.bit.edu.cn
error: failed retrieving file 'msys.db' from mirror.selfnet.de : Could not resolve host: mirror.selfnet.de
error: failed to update msys (invalid url for server)
error: failed to synchronize all databases

`react-native run-android` fails when I pass `--deviceId`

I have a react-native project that builds fine with react-native run-android. But if I run it as react-native run-android --deviceId xxxx, I get the following error:
> Task :#remobile_react-native-qrcode-local-image:verifyReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':#remobile_react-native-qrcode-local-image:verifyReleaseResources'.
> 1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:7: error: resource android:attr/colorError not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:11: error: resource android:attr/colorError not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2734: error: resource android:attr/fontStyle not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2735: error: resource android:attr/font not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2736: error: resource android:attr/fontWeight not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2737: error: resource android:attr/fontVariationSettings not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2738: error: resource android:attr/ttcIndex not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2902: error: resource android:attr/startX not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2905: error: resource android:attr/startY not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2908: error: resource android:attr/endX not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2911: error: resource android:attr/endY not found.
/home/justin/BlueWallet/node_modules/#remobile/react-native-qrcode-local-image/android/build/intermediates/res/merged/release/values/values.xml:2919: error: resource android:attr/offset not found.
error: failed linking references.
It's quite strange. It's as if react-native can't interpret static files in a QR-code library when passing a --deviceId. Any ideas why this might be?
Here's the repo if anyone is interested.

react-native-tcp:verifyReleaseResources FAILED

Get an Error when I create a Signed APK.
Task :react-native-tcp:verifyReleaseResources FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-tcp:verifyReleaseResources'.
java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.
Aapt2Exception: Android resource linking failed
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless
.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored no
t found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values-v26\values-v2
6.xml:7: error: resource android:attr/colorError not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values-v26\values-v2
6.xml:11: error: resource android:attr/colorError not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values-v26\values-v2
6.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not fo
und.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values-v28\values-v2
8.xml:7: error: resource android:attr/dialogCornerRadius not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values-v28\values-v2
8.xml:11: error: resource android:attr/dialogCornerRadius not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:27
11: error: resource android:attr/fontStyle not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:27
12: error: resource android:attr/font not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:27
13: error: resource android:attr/fontWeight not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:27
14: error: resource android:attr/fontVariationSettings not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:27
15: error: resource android:attr/ttcIndex not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:27
96: error: resource android:attr/startX not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:27
99: error: resource android:attr/startY not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:28
02: error: resource android:attr/endX not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:28
05: error: resource android:attr/endY not found.
C:\Users\Ali\Desktop\Android\ReactNative\VestaSignageHandler\node_modules\reac
t-native-tcp\android\build\intermediates\res\merged\release\values\values.xml:28
13: error: resource android:attr/offset not found.
error: failed linking references.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1m 56s
55 actionable tasks: 3 executed, 52 up-to-date
You have to use RN 0.55.4 and install "stream" and "stream-browserify" dependency by using npm and it would be work. it might work on last version of RN but i don't test it.
if you got error when create signed APK, use: gradlew assembleRelease --console plain