[GH-ISSUE #432] Freeze every 10 seconds (ssl error occurred) #334

Open
opened 2026-05-05 06:03:13 -06:00 by gitea-mirror · 16 comments
Owner

Originally created by @D-AIRY on GitHub (Sep 7, 2019).
Original GitHub issue: https://github.com/debauchee/barrier/issues/432

Operating Systems

Server: Windows 7 Professional

Client: Ubuntu 16.04

Barrier Version

Server:
2.3.1-snapshot-f1c57075 (Alpha of v2.3.2 release)
Client:
Built from tag v2.3.2-alpha

Steps to reproduce bug

  1. Start server and client.
  2. Move mouse on client, it freeze every 10 seconds.

Other info

  • When did the problem start to occur? When I start using barrier
  • Is there a way to work around it? No
  • Does this bug prevent you from using Barrier entirely? No

Log on server:

[2019-09-07T10:35:23] INFO: OpenSSL 1.0.2l  25 May 2017
[2019-09-07T10:35:24] ERROR: ssl error occurred (system call failure)
[2019-09-07T10:35:24] ERROR: eof violates ssl protocol
[2019-09-07T10:35:24] ERROR: failed to accept secure socket
[2019-09-07T10:35:24] INFO: client connection may not be secure
[2019-09-07T10:35:34] INFO: OpenSSL 1.0.2l  25 May 2017
[2019-09-07T10:35:34] ERROR: ssl error occurred (system call failure)
[2019-09-07T10:35:34] ERROR: eof violates ssl protocol
[2019-09-07T10:35:34] ERROR: failed to accept secure socket
[2019-09-07T10:35:34] INFO: client connection may not be secure
[2019-09-07T10:35:44] INFO: OpenSSL 1.0.2l  25 May 2017
[2019-09-07T10:35:44] ERROR: ssl error occurred (system call failure)
[2019-09-07T10:35:44] ERROR: eof violates ssl protocol
[2019-09-07T10:35:44] ERROR: failed to accept secure socket
[2019-09-07T10:35:44] INFO: client connection may not be secure

It repeats every 10 seconds, mouse freezes in sync.
It happens even if no client running

Originally created by @D-AIRY on GitHub (Sep 7, 2019). Original GitHub issue: https://github.com/debauchee/barrier/issues/432 ### Operating Systems ### Server: Windows 7 Professional Client: Ubuntu 16.04 ### Barrier Version ### Server: 2.3.1-snapshot-f1c57075 (Alpha of v2.3.2 release) Client: Built from tag v2.3.2-alpha ### Steps to reproduce bug ### 1. Start server and client. 2. Move mouse on client, it freeze every 10 seconds. ### Other info ### * When did the problem start to occur? When I start using barrier * Is there a way to work around it? No * Does this bug prevent you from using Barrier entirely? No Log on server: ``` [2019-09-07T10:35:23] INFO: OpenSSL 1.0.2l 25 May 2017 [2019-09-07T10:35:24] ERROR: ssl error occurred (system call failure) [2019-09-07T10:35:24] ERROR: eof violates ssl protocol [2019-09-07T10:35:24] ERROR: failed to accept secure socket [2019-09-07T10:35:24] INFO: client connection may not be secure [2019-09-07T10:35:34] INFO: OpenSSL 1.0.2l 25 May 2017 [2019-09-07T10:35:34] ERROR: ssl error occurred (system call failure) [2019-09-07T10:35:34] ERROR: eof violates ssl protocol [2019-09-07T10:35:34] ERROR: failed to accept secure socket [2019-09-07T10:35:34] INFO: client connection may not be secure [2019-09-07T10:35:44] INFO: OpenSSL 1.0.2l 25 May 2017 [2019-09-07T10:35:44] ERROR: ssl error occurred (system call failure) [2019-09-07T10:35:44] ERROR: eof violates ssl protocol [2019-09-07T10:35:44] ERROR: failed to accept secure socket [2019-09-07T10:35:44] INFO: client connection may not be secure ``` It repeats every 10 seconds, mouse freezes in sync. It happens even if no client running
gitea-mirror added the
windows
linux
labels 2026-05-05 06:03:13 -06:00
Author
Owner

@shymega commented on GitHub (Sep 7, 2019):

Can you run the following command on the client? openssl version, and report back here with the output? Cheers.

Think its a abruptly terminated SSL connection...

<!-- gh-comment-id:529108327 --> @shymega commented on GitHub (Sep 7, 2019): Can you run the following command on the client? `openssl version`, and report back here with the output? Cheers. Think its a abruptly terminated SSL connection...
Author
Owner

@D-AIRY commented on GitHub (Sep 7, 2019):

OpenSSL 1.0.2g 1 Mar 2016

<!-- gh-comment-id:529110256 --> @D-AIRY commented on GitHub (Sep 7, 2019): OpenSSL 1.0.2g 1 Mar 2016
Author
Owner

@shymega commented on GitHub (Sep 7, 2019):

OK. It sounds like Barrier is sending malformed SSL packets. Not sure what's going on there.

Would you be able to test the latest stable release? I can see you're using the snapshot, and if this is a regression, then that's good to know - we can fix it for the final release then. I'm not sure why you're using the snapshot.

Let me know how it goes with the stable release.

Cheers.

<!-- gh-comment-id:529120471 --> @shymega commented on GitHub (Sep 7, 2019): OK. It sounds like Barrier is sending malformed SSL packets. Not sure what's going on there. Would you be able to test the latest _stable_ release? I can see you're using the snapshot, and if this _is_ a regression, then that's good to know - we can fix it for the final release then. I'm not sure why you're using the snapshot. Let me know how it goes with the stable release. Cheers.
Author
Owner

@D-AIRY commented on GitHub (Sep 7, 2019):

The same in v2.3.1
It happens when barrierc client started without -f option, or when running as a service. Starting with GUI works stable

<!-- gh-comment-id:529135994 --> @D-AIRY commented on GitHub (Sep 7, 2019): The same in v2.3.1 It happens when barrierc client started without -f option, or when running as a service. Starting with GUI works stable
Author
Owner

@brunocasado commented on GitHub (Sep 23, 2019):

same in here

OpenSSL 1.1.1 11 Sep 2018

Bug Stable version: Present
2.3.2 Alpha 22 Aug: Present

But i cant see any error on log

Detail: Linux <> Windows

Used on Windows <> Windows without problems

EDIT: Logging level DEBUG 2 make worst the freezing. Mouse starts to jump from point A to point B.

Maybe this problem is related with that?

<!-- gh-comment-id:534078489 --> @brunocasado commented on GitHub (Sep 23, 2019): same in here OpenSSL 1.1.1 11 Sep 2018 Bug Stable version: Present 2.3.2 Alpha 22 Aug: Present But i cant see any error on log Detail: Linux <> Windows Used on Windows <> Windows without problems EDIT: Logging level DEBUG 2 make worst the freezing. Mouse starts to jump from point A to point B. Maybe this problem is related with that?
Author
Owner

@VNRARA commented on GitHub (Sep 25, 2019):

Same issue here. It runs fine using Barrier GUI, but absolutely craps out when I use barrierc.

<!-- gh-comment-id:535179396 --> @VNRARA commented on GitHub (Sep 25, 2019): Same issue here. It runs fine using Barrier GUI, but absolutely craps out when I use barrierc.
Author
Owner

@laseryuan commented on GitHub (Oct 17, 2019):

Same for 2.3.2 stable release
[2019-10-17T13:15:23] DEBUG1: logging to file (/tmp/log) enabled /tmp/barrier-2.3.2/src/lib/barrier/App.cpp,146

<!-- gh-comment-id:543006840 --> @laseryuan commented on GitHub (Oct 17, 2019): Same for 2.3.2 stable release ` [2019-10-17T13:15:23] DEBUG1: logging to file (/tmp/log) enabled /tmp/barrier-2.3.2/src/lib/barrier/App.cpp,146 `
Author
Owner

@nickescobedo commented on GitHub (Nov 5, 2019):

Also having this issue.

<!-- gh-comment-id:549659201 --> @nickescobedo commented on GitHub (Nov 5, 2019): Also having this issue.
Author
Owner

@laseryuan commented on GitHub (Nov 11, 2019):

I get around it just by disabling ssl encryption, though it's not safe for long term usage.

<!-- gh-comment-id:552406875 --> @laseryuan commented on GitHub (Nov 11, 2019): I get around it just by disabling ssl encryption, though it's not safe for long term usage.
Author
Owner

@gth commented on GitHub (Aug 18, 2020):

I found the source of this same sequence (for me, at least), while getting ServerA and ClientB up and running with Barrier 2.3.2 and then 2.3.3 after that. But I'd neglected to remove synergy from ClientC which was still trying to connect to ServerA.

Connection attempts from ClientC seemed to cause the server issues, including the SSL log messages described above, and erratic mouse movement from then on, until the server side was reloaded.

Once synergy was removed from ClientC, the SSL EOF issue described here disappeared, and there was no more erratic mouse movement. I was bit surprised connection attempts caused the server to get so confused, including affecting mouse movements.

<!-- gh-comment-id:675195860 --> @gth commented on GitHub (Aug 18, 2020): I found the source of this same sequence (for me, at least), while getting ServerA and ClientB up and running with Barrier 2.3.2 and then 2.3.3 after that. But I'd neglected to remove synergy from ClientC which was still trying to connect to ServerA. Connection attempts from ClientC seemed to cause the server issues, including the SSL log messages described above, and erratic mouse movement from then on, until the server side was reloaded. Once synergy was removed from ClientC, the SSL EOF issue described here disappeared, and there was no more erratic mouse movement. I was bit surprised connection attempts caused the server to get so confused, including affecting mouse movements.
Author
Owner

@ghost commented on GitHub (Sep 15, 2020):

I, too, am having this problem (debian 10, v2.3.2+dfsg-1+b1 and v2.3.3+dfsg-1 from apt repos. (openssl v1.1.1g-1)

not using barrierrc (yet), just GUI, but definitely jittery mouse until disco, starts after a few moments, between linux-linux and linux-macos

erratic mouse behavior after random amount of time <1m.

downgraded my server to barrier v2.1.2+dfsg-1, to mitigate. had to downgrade clients, too. same problem after downgrading

Interestingly, also doing it with SSL off.

Interestingly, also doing it with Synergy (Pro)

<!-- gh-comment-id:692827655 --> @ghost commented on GitHub (Sep 15, 2020): I, too, am having this problem (debian 10, `v2.3.2+dfsg-1+b1` and `v2.3.3+dfsg-1` from apt repos. (openssl `v1.1.1g-1`) not using barrierrc (yet), just GUI, but definitely jittery mouse until disco, starts after a few moments, between linux-linux and linux-macos erratic mouse behavior after random amount of time <1m. ~~downgraded my server to barrier `v2.1.2+dfsg-1`, to mitigate. had to downgrade clients, too.~~ same problem after downgrading Interestingly, also doing it with SSL off. Interestingly, also doing it with Synergy (Pro)
Author
Owner

@ghost commented on GitHub (Sep 18, 2020):

Actually, it turns out the issue is really with my mouse. there's something funky going on in the sensitivity in my mouse, switching mice, the problem went away.

But if anybody's interested, the (read: my particular) mouse (and its settings) that cause the fault are:

1532:0040 Razer USA, Ltd Naga 2014
Scan frequency: 1000Hz
X/Y Scan resolution 10 (1000 DPI)
<!-- gh-comment-id:694987979 --> @ghost commented on GitHub (Sep 18, 2020): ~Actually, it turns out the issue is really with my mouse. there's something funky going on in the sensitivity in my mouse, switching mice, the problem went away.~ But if anybody's interested, the (read: my particular) mouse (and its settings) that cause the fault are: ``` 1532:0040 Razer USA, Ltd Naga 2014 Scan frequency: 1000Hz X/Y Scan resolution 10 (1000 DPI) ```
Author
Owner

@ghost commented on GitHub (Oct 1, 2020):

It now happens with multiple mice, so there goes my "its my mouse" hypothesis. =(

when it starts to jitter, i toggle the switch on my sensitivity and then it's fine for a few moments, then (if the connection doesn't reset) after a while it starts to jitter again. Sometimes toggling sensitivity (from lo to hi, or back) helps, usually it doesn't.

=(

056e:00fd Elecom Co., Ltd M-XT4DRBK EX-G Wireless Optical TrackBall
<!-- gh-comment-id:702292502 --> @ghost commented on GitHub (Oct 1, 2020): It now happens with multiple mice, so there goes my "its my mouse" hypothesis. =( when it starts to jitter, i toggle the switch on my sensitivity and then it's fine for a few moments, then (if the connection doesn't reset) after a while it starts to jitter again. Sometimes toggling sensitivity (from lo to hi, or back) helps, usually it doesn't. =( ``` 056e:00fd Elecom Co., Ltd M-XT4DRBK EX-G Wireless Optical TrackBall ```
Author
Owner

@wehttvM commented on GitHub (Feb 8, 2021):

This issue is also happening for me. My Fedora Barrier client has a different OpenSSL version than my windows Barrier server.
I tried manually updating the "openssl.exe", "ssleay32.dll", and "libeay32.dll",but this just spit different errors at me.
currently, Fedora is using OpenSSL 1.1.1i, and the windows system is using OpenSSL 1.0.2l. There is nearly a three year difference with these releases.
As explained earlier in the thread, all the symptoms above are still happening with Barrier release 2.3.3.

<!-- gh-comment-id:774853161 --> @wehttvM commented on GitHub (Feb 8, 2021): This issue is also happening for me. My Fedora Barrier client has a different OpenSSL version than my windows Barrier server. I tried manually updating the "openssl.exe", "ssleay32.dll", and "libeay32.dll",but this just spit different errors at me. currently, Fedora is using OpenSSL 1.1.1i, and the windows system is using OpenSSL 1.0.2l. There is nearly a three year difference with these releases. As explained earlier in the thread, all the symptoms above are still happening with Barrier release 2.3.3.
Author
Owner

@jfrfonseca commented on GitHub (Mar 20, 2021):

Same here. Barrier works OK with SSL disabled.

Errors in LOG from my (Windows) client machine when SSL is enabled:
[2021-03-20T14:38:27] INFO: OpenSSL 1.0.2l 25 May 2017
[2021-03-20T14:38:28] ERROR: ssl error occurred (generic failure)
[2021-03-20T14:38:28] ERROR: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
[2021-03-20T14:38:28] ERROR: failed to connect secure socket
[2021-03-20T14:38:42] WARNING: failed to connect to server: Timed out

Errors in LOG from my (Ubuntu) server machine when SSL is enabled:
[2021-03-20T14:38:27] NOTE: accepted client connection
[2021-03-20T14:38:41] NOTE: new client is unresponsive

<!-- gh-comment-id:803432379 --> @jfrfonseca commented on GitHub (Mar 20, 2021): Same here. Barrier works OK with SSL disabled. Errors in LOG from my (Windows) client machine when SSL is enabled: [2021-03-20T14:38:27] INFO: OpenSSL 1.0.2l 25 May 2017 [2021-03-20T14:38:28] ERROR: ssl error occurred (generic failure) [2021-03-20T14:38:28] ERROR: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol [2021-03-20T14:38:28] ERROR: failed to connect secure socket [2021-03-20T14:38:42] WARNING: failed to connect to server: Timed out Errors in LOG from my (Ubuntu) server machine when SSL is enabled: [2021-03-20T14:38:27] NOTE: accepted client connection [2021-03-20T14:38:41] NOTE: new client is unresponsive
Author
Owner

@codecrypt112 commented on GitHub (Oct 11, 2021):

Can anyone please tell me, how to disable SSL??

<!-- gh-comment-id:939764368 --> @codecrypt112 commented on GitHub (Oct 11, 2021): Can anyone please tell me, how to disable SSL??
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#334
No description provided.