[GH-ISSUE #1096] Server starts fine (Windows), Client never fully starts and tries to connect to itself (macOS) #876

Open
opened 2026-05-05 07:14:20 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @bigbeau on GitHub (Mar 10, 2021).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1096

Describe the bug
I have barrier set to launch at login in client mode (with auto config enabled) on my macOS 10.13.6 computer with automatic login so I don't have to have a keyboard plugged in to use it. My Windows 10 machine next to it also has barrier run at startup, but in server mode, so I can easily switch between them from boot. The Windows machine boots up, and barrier comes up and starts the server with no issue. On the mac, however, it will occasionally open barrier and get stuck on "barrier is starting...". Investigating the log shows that it tries to connect to it's own ip address.

To Reproduce

Steps to reproduce the behavior:

  1. Have barrier autostart on macOS
  2. Let it try to start, and if it stays on "barrier is starting..." for a few minutes, check the log to make sure it's not trying to connect to itself

Expected behavior
Barrier should start up with no issues and not try to connect to the mac's own IP address.

Desktop Environments

  • OS: macOS 10.13.6 (client), Windows 10 (server)
  • Barrier version 2.3.3 for both, configured to load at login

Log

[2021-03-10T14:19:54] INFO: config file: /private/var/folders/kg/wsm0qk1538b0zk1vxqympsfr0000gn/T/Barrier.ppxtCH
[2021-03-10T14:19:54] INFO: log level: INFO
[2021-03-10T14:19:54] INFO: log file: /var/log/barrier.log
[2021-03-10T14:19:54] INFO: drag and drop enabled
[2021-03-10T14:19:54] NOTE: started client
[2021-03-10T14:19:54] NOTE: connecting to '10.0.0.81': 10.0.0.81:24800
[2021-03-10T14:19:54] INFO: OpenSSL 1.1.1g  21 Apr 2020
2021-03-10 14:19:54.367 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
[2021-03-10T14:19:54] WARNING: failed to connect to server: Connection refused
2021-03-10 14:19:54.402 barrierc[598:17119] starting cocoa loop
[2021-03-10T14:19:55] NOTE: connecting to '10.0.0.81': 10.0.0.81:24800
[2021-03-10T14:19:55] INFO: OpenSSL 1.1.1g  21 Apr 2020
[2021-03-10T14:19:55] WARNING: failed to connect to server: Connection refused
[2021-03-10T14:19:56] NOTE: connecting to '10.0.0.81': 10.0.0.81:24800
[2021-03-10T14:19:56] INFO: OpenSSL 1.1.1g  21 Apr 2020
[2021-03-10T14:19:56] WARNING: failed to connect to server: Connection refused
[2021-03-10T14:19:57] NOTE: connecting to '10.0.0.81': 10.0.0.81:24800
[2021-03-10T14:19:57] INFO: OpenSSL 1.1.1g  21 Apr 2020
[2021-03-10T14:19:57] WARNING: failed to connect to server: Connection refused
[2021-03-10T14:19:58] NOTE: connecting to '10.0.0.81': 10.0.0.81:24800
[2021-03-10T14:19:58] INFO: OpenSSL 1.1.1g  21 Apr 2020
[2021-03-10T14:19:58] WARNING: failed to connect to server: Connection refused
[2021-03-10T14:19:59] INFO: stopping barrier desktop process
[2021-03-10T14:19:59] NOTE: connecting to '10.0.0.81': 10.0.0.81:24800
[2021-03-10T14:19:59] INFO: OpenSSL 1.1.1g  21 Apr 2020
[2021-03-10T14:19:59] ERROR: process exited with error code: 11```
Originally created by @bigbeau on GitHub (Mar 10, 2021). Original GitHub issue: https://github.com/debauchee/barrier/issues/1096 **Describe the bug** I have barrier set to launch at login in client mode (with auto config enabled) on my macOS 10.13.6 computer with automatic login so I don't have to have a keyboard plugged in to use it. My Windows 10 machine next to it also has barrier run at startup, but in server mode, so I can easily switch between them from boot. The Windows machine boots up, and barrier comes up and starts the server with no issue. On the mac, however, it will occasionally open barrier and get stuck on "barrier is starting...". Investigating the log shows that it tries to connect to it's own ip address. **To Reproduce** Steps to reproduce the behavior: 1. Have barrier autostart on macOS 2. Let it try to start, and if it stays on "barrier is starting..." for a few minutes, check the log to make sure it's not trying to connect to itself **Expected behavior** Barrier should start up with no issues and not try to connect to the mac's own IP address. **Desktop Environments** - OS: macOS 10.13.6 (client), Windows 10 (server) - Barrier version 2.3.3 for both, configured to load at login **Log** ```[2021-03-10T14:19:54] INFO: starting client [2021-03-10T14:19:54] INFO: config file: /private/var/folders/kg/wsm0qk1538b0zk1vxqympsfr0000gn/T/Barrier.ppxtCH [2021-03-10T14:19:54] INFO: log level: INFO [2021-03-10T14:19:54] INFO: log file: /var/log/barrier.log [2021-03-10T14:19:54] INFO: drag and drop enabled [2021-03-10T14:19:54] NOTE: started client [2021-03-10T14:19:54] NOTE: connecting to '10.0.0.81': 10.0.0.81:24800 [2021-03-10T14:19:54] INFO: OpenSSL 1.1.1g 21 Apr 2020 2021-03-10 14:19:54.367 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! 2021-03-10 14:19:54.383 barrierc[598:17144] pid(598)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!! [2021-03-10T14:19:54] WARNING: failed to connect to server: Connection refused 2021-03-10 14:19:54.402 barrierc[598:17119] starting cocoa loop [2021-03-10T14:19:55] NOTE: connecting to '10.0.0.81': 10.0.0.81:24800 [2021-03-10T14:19:55] INFO: OpenSSL 1.1.1g 21 Apr 2020 [2021-03-10T14:19:55] WARNING: failed to connect to server: Connection refused [2021-03-10T14:19:56] NOTE: connecting to '10.0.0.81': 10.0.0.81:24800 [2021-03-10T14:19:56] INFO: OpenSSL 1.1.1g 21 Apr 2020 [2021-03-10T14:19:56] WARNING: failed to connect to server: Connection refused [2021-03-10T14:19:57] NOTE: connecting to '10.0.0.81': 10.0.0.81:24800 [2021-03-10T14:19:57] INFO: OpenSSL 1.1.1g 21 Apr 2020 [2021-03-10T14:19:57] WARNING: failed to connect to server: Connection refused [2021-03-10T14:19:58] NOTE: connecting to '10.0.0.81': 10.0.0.81:24800 [2021-03-10T14:19:58] INFO: OpenSSL 1.1.1g 21 Apr 2020 [2021-03-10T14:19:58] WARNING: failed to connect to server: Connection refused [2021-03-10T14:19:59] INFO: stopping barrier desktop process [2021-03-10T14:19:59] NOTE: connecting to '10.0.0.81': 10.0.0.81:24800 [2021-03-10T14:19:59] INFO: OpenSSL 1.1.1g 21 Apr 2020 [2021-03-10T14:19:59] ERROR: process exited with error code: 11```
Author
Owner

@mgrant0 commented on GitHub (Jun 7, 2021):

I have this exact same issue. What I have to do every time my mac starts is get into the mac via VNC (or plug in a mouse/keyboard) and then manually configure Barrier. I have to uncheck 'Auto config' and manually enter the ip address of my windows desktop. Every single time!

I have never been successful at making 'Auto config' mode work with my Windows desktop as a server.

https://github.com/debauchee/barrier/issues/44 talks about adding serverhostname = <A.B.C.D> to barrier.sgc but I don't know where this file is located on the Mac. I have searched for it but not been able to find it.

I'd love to be able to turn on the Mac and glide the mouse over to that screen but I have never gotten this to work without manual intervention to get it running and configured which never seems to save. Perhaps I'm doing something stupid wrong?

<!-- gh-comment-id:855772509 --> @mgrant0 commented on GitHub (Jun 7, 2021): I have this exact same issue. What I have to do every time my mac starts is get into the mac via VNC (or plug in a mouse/keyboard) and then manually configure Barrier. I have to uncheck 'Auto config' and manually enter the ip address of my windows desktop. Every single time! I have never been successful at making 'Auto config' mode work with my Windows desktop as a server. https://github.com/debauchee/barrier/issues/44 talks about adding `serverhostname = <A.B.C.D>` to `barrier.sgc` but I don't know where this file is located on the Mac. I have searched for it but not been able to find it. I'd love to be able to turn on the Mac and glide the mouse over to that screen but I have never gotten this to work without manual intervention to get it running and configured which never seems to save. Perhaps I'm doing something stupid wrong?
Author
Owner

@bigbeau commented on GitHub (Jun 7, 2021):

I have this exact same issue. What I have to do every time my mac starts is get into the mac via VNC (or plug in a mouse/keyboard) and then manually configure Barrier. I have to uncheck 'Auto config' and manually enter the ip address of my windows desktop. Every single time!

I have never been successful at making 'Auto config' mode work with my Windows desktop as a server.

#44 talks about adding serverhostname = <A.B.C.D> to barrier.sgc but I don't know where this file is located on the Mac. I have searched for it but not been able to find it.

I'd love to be able to turn on the Mac and glide the mouse over to that screen but I have never gotten this to work without manual intervention to get it running and configured which never seems to save. Perhaps I'm doing something stupid wrong?

According to someone in that thread, it's in the Mac's home directory.

As far as I know this issue still occurs, which is really unfortunate because it's an amazing program otherwise.

<!-- gh-comment-id:856303894 --> @bigbeau commented on GitHub (Jun 7, 2021): > I have this exact same issue. What I have to do every time my mac starts is get into the mac via VNC (or plug in a mouse/keyboard) and then manually configure Barrier. I have to uncheck 'Auto config' and manually enter the ip address of my windows desktop. Every single time! > > I have never been successful at making 'Auto config' mode work with my Windows desktop as a server. > > #44 talks about adding `serverhostname = <A.B.C.D>` to `barrier.sgc` but I don't know where this file is located on the Mac. I have searched for it but not been able to find it. > > I'd love to be able to turn on the Mac and glide the mouse over to that screen but I have never gotten this to work without manual intervention to get it running and configured which never seems to save. Perhaps I'm doing something stupid wrong? According to someone in that thread, it's in the Mac's home directory. As far as I know this issue still occurs, which is really unfortunate because it's an amazing program otherwise.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#876
No description provided.