Open SergeyShidlovsky opened 3 years ago
@SergeyShidlovsky video recorder container logs could help to diagnose. We unfortunately don't have Windows available.
I have the same problem, after disable WSL 2 in docker settings Video recorded works fine.
Logs from container with WSL 2 enabled:
2021/03/03 10:48:04 [17] [VIDEO_ERROR] [Failed to rename /opt/selenoid/video/selenoide9e31f300553f1729bce65fa19dfe109.mp4 to /opt/selenoid/video/Test_Scenario.mp4: rename /opt/selenoid/video/selenoide9e31f300553f1729bce65fa19dfe109.mp4 /opt/selenoid/video/Test_Scenario.mp4: no such file or directory]
@ArysX @SergeyShidlovsky are you installing Selenoid with CM tool?
@vania-pooh , I apologize for such a late response,
@ArysX @SergeyShidlovsky are you installing Selenoid with CM tool?
Yes, I had installed selenoid using configuration management, Also, I have launched selenoid using the command 'cm.exe selenoid start --vnc'
@ArysX, thanks for the logs
Have the same issue using docker-compose, videos are not saved.
Seems to be a CM bug. Will investigate.
@vania-pooh Any updates with this bug?
Just moved from vagrant and virtualbox to WSL 2. Same error. We use WSL 2 with Rancher Desktop.
We plan to completely deprecate this tool and move to raw Docker commands instead. Too many weird cases to cover.
@vania-pooh ok, thanks. We now moved to plain docker and videos work as expected.
@vania-pooh … are you talking about deprecation of Selenoid Configuration Manager Tool?
@SergeyShidlovsky we are considering this.
@benzman81 Hi, could you help me to setup selenoid with Rancher desktop. Currently I am facing issue for selenoid container being in Restarting status. Do you know if you faced this same issue ?
@benzman81 Hi, could you help me to setup selenoid with Rancher desktop. Currently I am facing issue for selenoid container being in Restarting status. Do you know if you faced this same issue ?
I can share parts of our start script we use for rancher desktop in wsl. Maybe that helps:
#!/bin/bash
windowsUserFolder=$(wslpath "$(wslvar USERPROFILE)")
aerokubeFolder=$windowsUserFolder/.aerokube
mkdir -p $aerokubeFolder || true
mkdir -p $aerokubeFolder/selenoid || true
mkdir -p $aerokubeFolder/selenoid/config || true
mkdir -p $aerokubeFolder/selenoid/video || true
mkdir -p $aerokubeFolder/selenoid/logs || true
mkdir -p $aerokubeFolder/selenoid-ui || true
docker rm -f selenoid || true
docker rm -f selenoid-ui || true
find $aerokubeFolder/selenoid/video -mindepth 1 -maxdepth 1 -mmin +120 -name '*.mp4' | xargs rm -rf || true
find $aerokubeFolder/selenoid/logs -mindepth 1 -maxdepth 1 -mmin +120 -name '*.log' | xargs rm -rf || true
cd /home/$USER
cd /home/$USER/selenium-grid-ggr-dockerselenoid
rm $aerokubeFolder/selenoid/config/browsers.json || true
cp /YOUR_PATH_TO_BROWSERS_JSON/browsers.json $aerokubeFolder/selenoid/config/browsers.json
cat $aerokubeFolder/selenoid/config/browsers.json | /home/$USER/jq 'map(.versions)|.[]|map(.image)|.[]' | xargs -L1 docker pull
docker pull selenoid/video-recorder:latest-release
cd /home/$USER
docker run -d --name selenoid --restart=always -p 4444:4444 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $aerokubeFolder/selenoid/config/:/etc/selenoid/:ro \
-v $aerokubeFolder/selenoid/video/:/opt/selenoid/video/ \
-v $aerokubeFolder/selenoid/logs/:/opt/selenoid/logs/ \
-e OVERRIDE_VIDEO_OUTPUT_DIR=$aerokubeFolder/selenoid/video/ \
aerokube/selenoid:1.11.0 \
-limit 2 -cpu 1.0 -mem 1g -retry-count 10 -capture-driver-logs -timeout 300s -service-startup-timeout 300s -session-attempt-timeout 300s -session-delete-timeout 300s -conf /etc/selenoid/browsers.json -video-output-dir /opt/selenoid/video/ -video-recorder-image selenoid/video-recorder:latest-release -log-output-dir /opt/selenoid/logs/
DOCKER_GATEWAY_ADDR=`docker inspect selenoid -f {{.NetworkSettings.Gateway}}`
docker run -d --name selenoid-ui --restart=always -p 8086:8080 aerokube/selenoid-ui:1.10.10 --selenoid-uri http://${DOCKER_GATEWAY_ADDR}:4444
You should only need to replace YOUR_PATH_TO_BROWSERS_JSON.
Precondition
Steps to reproduce
Expected result
Actual result
Workaround