Last active
July 16, 2025 09:34
-
-
Save diyism/42fde1bbb2bd552cdc97c5e7e2da567a to your computer and use it in GitHub Desktop.
run_playwright_python_in_ibm_linuxone(S390 cpu)_or_google_idx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply linuxone trial(60 days) with a github project: https://linuxone.cloud.marist.edu/ | |
activate account from receipt email | |
login and click "Manage instances", create ubuntu 22.04(CPU 2 core, RAM 4GB, disk 50GB), import pub key | |
ssh linux1@<ip addr> | |
sudo apt install docker-ce | |
sudo apt install -y qemu-user-static binfmt-support | |
sudo docker run --platform linux/amd64 --volume /run/dbus:/run/dbus --security-opt apparmor=unconfined --cap-add=SYS_PTRACE -it ubuntu:latest /bin/bash | |
sudo docker attach <container id> | |
apt install python3-pip | |
pip3 install playwright | |
playwright install chromium | |
playwright install-deps | |
wget https://github.com/diyism/big_files_share/releases/download/v1.0.0/tight | |
chmod 777 tight | |
apt install libjpeg62 | |
apt install xfonts-base | |
./tight :10 & | |
export DISPLAY=:10 | |
service dbus start | |
python3 my_playwright.py | |
failed: | |
1.D-Bus Connection Failure: Logs show errors like [145:172:0701/132304.784844:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type, indicating D-Bus configuration issues, possibly due to the container environment not fully supporting system services. | |
2.ptrace Unimplemented: Errors like [0701/132312.401705:ERROR:third_party/crashpad/crashpad/util/linux/scoped_ptrace_attach.cc:27] ptrace: Function not implemented (38) suggest that ptrace, required for Chromium’s crash reporting, is unavailable, likely due to QEMU or kernel restrictions. | |
3.QEMU TCG Assertion Failure: The error ERROR:../../accel/tcg/cpu-exec.c:928:cpu_exec: assertion failed: (cpu == current_cpu) indicates a failure in QEMU’s translation cache generator (TCG), common when emulating x86_64 on ARM64, as seen in the logs with "Bail out!" messages. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment