Synergy-core: Can't connect to background service on Mac

Created on 6 Nov 2017  路  23Comments  路  Source: symless/synergy-core

Operating Systems

Server: Mac OS X 10.11.6
Client: Windows 10

Synergy Version

Synergy 2 RC1

Steps to reproduce bug

  1. Open Synergy 2 dmg
  2. double click Synergy.app
  3. program shows error "There was a problem connecting to the background service"

Other info

This showed up in beta 5, where it asked me to open from the dmg instead of dragging to my applications folder.

screen shot 2017-11-06 at 9 00 01 am

bug

Most helpful comment

@XinyuHou can you reopen this issue? This still seems to be a problem.

Where the older computer is the one having issues:

  • MacOSX 10.11.6 <=> MacOSX 10.13.2
  • Synergy 2.0.4-stable

Workaround:

  • Restarting synergy does not work
  • Killing Synergy does not work
  • synergy-config was not a process that was running

I noticed that the older computer would not start synergy-core or synergy-service by simply opening the Synergy app. Once I manually started the service over terminal (sudo open /Applications/Synergy.app/Contents/MacOS/synergy-service), it started to work. However, I must leave terminal open for this to work, and the uptime is short-lived.

It seems like upstart/launchd is having trouble starting the background service properly. I can do this manually, but the problem with starting the service remains an issue in this instance.

Possibly related, there seems to be an IP address that is not on my network. Is this saved in config somewhere? How is it detected?

 Router  ] [2018-01-27T05:05:27] error: Connection to 192.168.2.1:24802 failed: Operation canceled (code 89)
[ Router  ] [2018-01-27T05:05:28] debug: Gave up trying to connect to 192.168.2.1:24802

Once I do have Synergy up and running via command line, eventually it dies if focus is lost by pressing a key on the keyboard of the client machine:

[ Service ] [2018-01-27T05:16:00] debug: core process started, id=38804
[ Router  ] [2018-01-27T05:16:00] debug: Error reading from core client: End of file
[ Router  ] [2018-01-27T05:16:00] debug: Terminating core client read loop
[ Core    ] [2018-01-27T05:16:01] INFO: drag and drop enabled
[ Core    ] [2018-01-27T05:16:01] DEBUG: opening configuration "/Users/user/Library/Synergy/synergy.conf"
[ Core    ] [2018-01-27T05:16:01] DEBUG: configuration read successfully
[ Core    ] [2018-01-27T05:16:01] DEBUG: screen shape: center=0,0 size=1280x800 on 1 display
[ Core    ] [2018-01-27T05:16:01] FATAL: An error occurred: assistive devices does not trust this process, allow it in system settings.

The above set of output repeats itself every few seconds until that focus returns, and then it looks like the app is not trusted even when Synergy is allowed in Preferences > Security > Privacy > Accessibility.

Looks like for stability I/we need to revert to 1x branch for now unless there's any movement. This is not ideal since the app must be installed to parity on all machines.

All 23 comments

This issue is not completed solved in the latest stable version. The issue above still occurs to me once every two times when I start Synergy.

this still appears to be an issue in version 2.0.0

This also happens for me in the latest version for windows (64) I just downloaded.

The workaround is open activity monitor and kill Synergy config, which is the UI.

Please use our forum for further v2 problems.
https://symless.com/forums/?_fromLogin=1

Thank you

does someone have fixed this promblem? I have the same error and I don't know how to fix it.

I do have the same problem

Killing Synergy config doesn't work, problem persists with OSX 10.13.1 and Synergy 2.02 stable

Still an issue in stable 2.0.2

I'm killing synergy-service and it does fix the problem, but it's annoying !

facing the same issue with osx 10.12.6

I do have the same problem, Killing Synergy config doesn't work

Not working for me either

I installed the it today and it still is a issue. Any work around or ETA on a fix?

Same issue. Just bought and couldn't get it to work until I kept re-trying to share from my desktop and re-starting the processes several times.

@XinyuHou can you reopen this issue? This still seems to be a problem.

Where the older computer is the one having issues:

  • MacOSX 10.11.6 <=> MacOSX 10.13.2
  • Synergy 2.0.4-stable

Workaround:

  • Restarting synergy does not work
  • Killing Synergy does not work
  • synergy-config was not a process that was running

I noticed that the older computer would not start synergy-core or synergy-service by simply opening the Synergy app. Once I manually started the service over terminal (sudo open /Applications/Synergy.app/Contents/MacOS/synergy-service), it started to work. However, I must leave terminal open for this to work, and the uptime is short-lived.

It seems like upstart/launchd is having trouble starting the background service properly. I can do this manually, but the problem with starting the service remains an issue in this instance.

Possibly related, there seems to be an IP address that is not on my network. Is this saved in config somewhere? How is it detected?

 Router  ] [2018-01-27T05:05:27] error: Connection to 192.168.2.1:24802 failed: Operation canceled (code 89)
[ Router  ] [2018-01-27T05:05:28] debug: Gave up trying to connect to 192.168.2.1:24802

Once I do have Synergy up and running via command line, eventually it dies if focus is lost by pressing a key on the keyboard of the client machine:

[ Service ] [2018-01-27T05:16:00] debug: core process started, id=38804
[ Router  ] [2018-01-27T05:16:00] debug: Error reading from core client: End of file
[ Router  ] [2018-01-27T05:16:00] debug: Terminating core client read loop
[ Core    ] [2018-01-27T05:16:01] INFO: drag and drop enabled
[ Core    ] [2018-01-27T05:16:01] DEBUG: opening configuration "/Users/user/Library/Synergy/synergy.conf"
[ Core    ] [2018-01-27T05:16:01] DEBUG: configuration read successfully
[ Core    ] [2018-01-27T05:16:01] DEBUG: screen shape: center=0,0 size=1280x800 on 1 display
[ Core    ] [2018-01-27T05:16:01] FATAL: An error occurred: assistive devices does not trust this process, allow it in system settings.

The above set of output repeats itself every few seconds until that focus returns, and then it looks like the app is not trusted even when Synergy is allowed in Preferences > Security > Privacy > Accessibility.

Looks like for stability I/we need to revert to 1x branch for now unless there's any movement. This is not ideal since the app must be installed to parity on all machines.

@wturnerharris I've reopened this issue. Sorry that Xinyu didn't get back to you. Is it still happening for you?

I've just managed to get synergy-core v2.0.0-stable successfully working between macOS 10.13.5 and Fedora 28 - both each as client and server in turn. The macOS build was done through the command line whereas the one in Fedora is from the Fedora System repository. I pinched the ~/synergy.conf from Fedora acting as a server to apply to the Mac with no modification apart from a rename to ~/.synergy.conf on Mac.

I hope my experience here can be of use:

FATAL: An error occurred: assistive devices does not trust this process, allow it in system settings. - this message I received when trying to run sudo ./synergy-core --server -c ~/.synergy.conf -f on the Mac was a clue so I searched and found this helpful pointer from Jesus as to which "assistive" system setting needed tweaking:

https://sysadministration.wordpress.com/2013/10/23/synergy-fatal-error-in-mac-osx-mavericks/

Open up System Preferences > Security & Privacy > Privacy (upper right tab) > Accessibility (not to be confused with Accessibility under Settings) and add the terminal program you launch synergy-core --server from (e.g., iTerm2 or Terminal). Amethyst and Dropbox users will notice entries here already, so click the + button to add a terminal. This will allow synergy-core (server) to accept connections from clients.

While everything is still running, re-enable the macOS Firewall and it should then pop up a notice which should let you allow synergy-core to accept connections. If it helps, start with the other OS as a server first to check that all parts are working (with firewall temporarily disabled of course) as it might be more lenient - once that is working, reverse the process and you should be able to get closer to a result.

Remember with macOS, you have to deal with both the Firewall and "Allow the apps below to control your computer" setting.

@nbolton still happens for me and not able to get it up and running.

@wturnerharris I know your setup is different to mine but when you said:

and then it looks like the app is not trusted even when Synergy is allowed in Preferences > Security > Privacy > Accessibility.

As far as the command line troubleshooting goes, did you also try allowing Terminal or iTerm2 in that same dialog?

@rwuwon That made it work! Before, I had only made sure to have Synergy allowed. This issue was solved for me by going to Preferences > Security & Privacy > Privacy (upper right tab) > Accessibility, and adding Terminal from the list of applications. (My setup is Mac OS 10.13 as a server for Ubuntu 16.04.)

I am experiencing this issue right now on both of my machines. Synergy was working assymetrically (e.g. would only let my laptop's mouse move to my desktop but not the other way around as would be actually convenient) so I killed everything on both Windows machines from the task manager. Starting Synergy back up and both windows have a yellow error bar across the top stating "There was a problem connecting to the background service." with a Retry link and a Help link. The Retry link does nothing, and the Help link goes to https://symless.com/synergy/help/connection/background-service?source=s2-app&version=2.0.12-beta which states "The page you have visited is temporarily unavailable"

Really regretting buying this app back in Feb. It's been a headache almost every day since.

I reran all executables from the installation directory with no change. Went into my Services and saw that the Synergy service had been Stopped, and manually restarted it. Now I'm back to where I was before (my laptop cursor can move onto my desktop monitors if active, but my desktop cursor will not move to my laptop when shared).

Why aren't the executables starting their own dependent service...?

The workaround is open activity monitor and kill Synergy config, which is the UI.

Please use our forum for further v2 problems.
https://symless.com/forums/?_fromLogin=1

Thank you

This worked for me. I'm running Synergy 2 as Server from Mac OSX Catalina. Running Synergy 2 from Windows 10 box as client. Only the Mac version said it could not connect to service. Killed Synergy config in Mac's Activity monitor and it just started working. Only issue is the Mac Synergy screen shows only the Mac listed but not the windows synergy. However, Windows synergy does show both Mac and windows communicating with each other. I'm just happy it works now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xmstspider picture xmstspider  路  4Comments

jenelcohen picture jenelcohen  路  3Comments

johnny-mac picture johnny-mac  路  4Comments

LeTink picture LeTink  路  4Comments

laur89 picture laur89  路  5Comments