[PR #31] [MERGED] Kill badly terminated old vnc session before vnc starts and fix gtk initialization failed #679

Closed
opened 2025-12-29 01:24:35 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sickcodes/Docker-OSX/pull/31
Author: @matusnovak
Created: 6/10/2020
Status: Merged
Merged: 6/10/2020
Merged by: @sickcodes

Base: masterHead: master


📝 Commits (1)

  • 2c19db3 Kill badly terminated old vnc session before vnc starts

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 vnc-version/Dockerfile (+2 -1)

📄 Description

When you run the VNC version blob/master/vnc-version/Dockerfile and you stop/restart the container as:

docker stop <container ID>
docker start <container ID>

Then it fails with:

gtk initialization failed

This happens when when qemu tries to start. The problem is that the vncserver command in OpenCore-Boot_custom.sh fails with (but does not terminate the bash script) with the following error:

Warning: f21471f8a08f:99 is taken because of /tmp/.X99-lock
Remove this file if there is no X server f21471f8a08f:99
A VNC server is already running as :99

Adding vncserver -kill :99 || true before vncserver fixes the issue.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/sickcodes/Docker-OSX/pull/31 **Author:** [@matusnovak](https://github.com/matusnovak) **Created:** 6/10/2020 **Status:** ✅ Merged **Merged:** 6/10/2020 **Merged by:** [@sickcodes](https://github.com/sickcodes) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`2c19db3`](https://github.com/sickcodes/Docker-OSX/commit/2c19db36f9b00a3782044ef9ea3c2d0e1023d6a7) Kill badly terminated old vnc session before vnc starts ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `vnc-version/Dockerfile` (+2 -1) </details> ### 📄 Description When you run the VNC version [blob/master/vnc-version/Dockerfile](https://github.com/sickcodes/Docker-OSX/blob/master/vnc-version/Dockerfile) and you stop/restart the container as: ``` docker stop <container ID> docker start <container ID> ``` Then it fails with: ``` gtk initialization failed ``` This happens when when qemu tries to start. The problem is that the `vncserver` command in `OpenCore-Boot_custom.sh` fails with (but does not terminate the bash script) with the following error: ``` Warning: f21471f8a08f:99 is taken because of /tmp/.X99-lock Remove this file if there is no X server f21471f8a08f:99 A VNC server is already running as :99 ``` Adding `vncserver -kill :99 || true` before `vncserver` fixes the issue. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 01:24:35 +01:00
adam closed this issue 2025-12-29 01:24:35 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#679