Jump to content

Hello! šŸ‘‹

These forums are now archived (read only).

Join us on Discord.

Synergy2-Beta5 prevents X from starting...


Recommended Posts

... when networking is not working or unavailable.

I recently started using systemd-resolved for my DNS, but something weird with systemd is overwriting my resolv.conf. So when the system boots, networking is unavailable. If synergy-service is enabled, the system will stop booting at "switch root" and X will not start. I can get to a console to fix things and sometimes startx will then work. However, as long as networking is not functioning and synergy-service is enabled, X will not start.

Link to post
Share on other sites
  • Synergy Team
Nick Bolton

Do you suppose that synergy-service freezes (when there's no networking), which causes X startup to fail?

Link to post
Share on other sites

I don't think so as the logs seem to indicate the process is shutting down. Relevant sections from /var/log/messages:Ā  (local machine is 192.168.101.21)

NovĀ  1 07:30:19 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:30:19] debug: tcp client resolve error: Host not found (authoritative)
NovĀ  1 07:30:19 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:30:19] debug: websocket connect failed
NovĀ  1 07:30:19 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:30:19] debug: retrying websocket connection in 10s
NovĀ  1 07:30:19 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:30:19] debug: router log path: /var/log/synergy/synergy-router.log
NovĀ  1 07:30:19 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:30:19] debug: ID = 2, Name = ''
NovĀ  1 07:30:19 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:30:19] debug: setting core uid from config: 1000
NovĀ  1 07:30:19 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:30:19] debug: creating rpc endpoints
NovĀ  1 07:30:19 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:30:19] debug: rpc endpoints created
NovĀ  1 07:30:29 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:30:29] debug: retrying websocket connection now
NovĀ  1 07:30:29 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:30:29] debug: connecting websocket
NovĀ  1 07:30:49 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:30:49] debug: tcp client resolve error: Host not found (authoritative)
NovĀ  1 07:30:49 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:30:49] debug: websocket connect failed
NovĀ  1 07:30:49 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:30:49] error: websocket connection error
NovĀ  1 07:30:49 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:30:49] debug: retrying websocket connection in 10s
NovĀ  1 07:30:59 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:30:59] debug: retrying websocket connection now
NovĀ  1 07:30:59 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:30:59] debug: connecting websocket
NovĀ  1 07:31:19 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:19] debug: tcp client resolve error: Host not found (authoritative)
NovĀ  1 07:31:19 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:19] debug: websocket connect failed
NovĀ  1 07:31:19 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:19] error: websocket connection error
NovĀ  1 07:31:19 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:19] debug: retrying websocket connection in 2s
NovĀ  1 07:31:21 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:21] debug: retrying websocket connection now
NovĀ  1 07:31:21 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:21] debug: connecting websocket
NovĀ  1 07:31:41 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:41] debug: tcp client resolve error: Host not found (authoritative)
NovĀ  1 07:31:41 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:41] debug: websocket connect failed
NovĀ  1 07:31:41 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:41] error: websocket connection error
NovĀ  1 07:31:41 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:41] debug: retrying websocket connection in 5s
NovĀ  1 07:31:46 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:46] debug: retrying websocket connection now
NovĀ  1 07:31:46 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:46] debug: connecting websocket
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: cloud client connected
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: websocket connected
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: comparing profiles, id=-1 this=v-1 other=v1
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: profile id changed, -1->2155
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: profile name changed, ->default
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: profile server changed, -1->4405
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: profile screen set changed, added=1 removed=0
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: profile changed, storing local copy
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: handling local profile server changed, mode=unknown thisId=4405 serverId=4405 lastServerId=-1
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: starting core server process
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: starting core process with command: /usr/bin/synergy-core --server -f --run-as-uid 1000 --debug DEBUG --name fedora1 --enable-drag-drop --profile-dir /var/lib/synergy --log /var/log/synergy/synergy-core.log -c /var/lib/synergy/synergy.conf --address :24800
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: core process started, id=2821
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: handling local profile screen set changed, mode=server
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: starting core server process
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: core process already running, attempting to stop
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: stopping core process
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Adding 10.42.0.2:24802
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Connecting to 10.42.0.2:24802 (attempt 1/10)
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Adding 192.168.101.21:24802
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Connecting to 192.168.101.21:24802 (attempt 1/10)
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Connection 1 created
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Accepted connection from router 192.168.101.21:47356
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Connection 2 created
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Successfully connected to 192.168.101.21:24802
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Successfully connected to 192.168.101.21:24802
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Received route advertisement from router 4405
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug:Ā  Received own route advertisement. This indicates a loop. Ignoring
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Received route advertisement from router 4405
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug:Ā  Received own route advertisement. This indicates a loop. Ignoring
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: core process exited: code=87 expected=true
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: core process shutdown complete
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: starting core process with command: /usr/bin/synergy-core --server -f --run-as-uid 1000 --debug DEBUG --name fedora1 --enable-drag-drop --profile-dir /var/lib/synergy --log /var/log/synergy/synergy-core.log -c /var/lib/synergy/synergy.conf --address :24800
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:31:47] debug: core process started, id=2822
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ CoreĀ Ā Ā  ] [2017-11-01T07:31:47] debug: [2017-11-01T07:31:47] INFO: ignoring --enable-drag-drop, not supported on linux.
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ CoreĀ Ā Ā  ] [2017-11-01T07:31:47] debug: [2017-11-01T07:31:47] DEBUG: opening configuration "/var/lib/synergy/synergy.conf"
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ CoreĀ Ā Ā  ] [2017-11-01T07:31:47] debug: [2017-11-01T07:31:47] DEBUG: configuration read successfully
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ CoreĀ Ā Ā  ] [2017-11-01T07:31:47] debug: [2017-11-01T07:31:47] DEBUG: XOpenDisplay(":0.0")
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Received own hello message. Closing connection 1
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug:Ā  Disabling connection 1
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Removing 0 route(s) broken by removal of connection 1
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Route table is empty
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Connection 1 is not enabled
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Connection 1 terminated receive loop
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Received own hello message. Closing connection 2
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug:Ā  Disabling connection 2
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Removing 0 route(s) broken by removal of connection 2
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Route table is empty
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Connection 2 is not enabled
NovĀ  1 07:31:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:47] debug: Connection 2 terminated receive loop
NovĀ  1 07:31:48 fedora1 synergy-service[1427]: [ CoreĀ Ā Ā  ] [2017-11-01T07:31:48] debug: [2017-11-01T07:31:48] WARNING: primary screen unavailable: unable to open screen
NovĀ  1 07:31:48 fedora1 synergy-service[1427]: [ CoreĀ Ā Ā  ] [2017-11-01T07:31:48] debug: [2017-11-01T07:31:48] DEBUG: retry in 60 seconds
NovĀ  1 07:31:48 fedora1 synergy-service[1427]: [ CoreĀ Ā Ā  ] [2017-11-01T07:31:48] debug: [2017-11-01T07:31:48] DEBUG: event queue is ready
NovĀ  1 07:31:49 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:49] debug: Connection 2 destroyed
NovĀ  1 07:31:49 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:49] debug: Connection 1 destroyed
NovĀ  1 07:31:52 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:52] debug: Connection to 10.42.0.2:24802 timed out
NovĀ  1 07:31:53 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:53] debug: Connecting to 10.42.0.2:24802 (attempt 2/10)
NovĀ  1 07:31:58 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:58] debug: Connection to 10.42.0.2:24802 timed out
NovĀ  1 07:31:59 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:31:59] debug: Connecting to 10.42.0.2:24802 (attempt 3/10)
NovĀ  1 07:32:04 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:32:04] debug: Connection to 10.42.0.2:24802 timed out
NovĀ  1 07:32:05 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:32:05] debug: Connecting to 10.42.0.2:24802 (attempt 4/10)
NovĀ  1 07:32:10 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:32:10] debug: Connection to 10.42.0.2:24802 timed out
NovĀ  1 07:32:11 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:32:11] debug: Connecting to 10.42.0.2:24802 (attempt 5/10)
NovĀ  1 07:32:16 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:32:16] debug: Connection to 10.42.0.2:24802 timed out
NovĀ  1 07:32:17 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:32:17] debug: Connecting to 10.42.0.2:24802 (attempt 6/10)
NovĀ  1 07:32:22 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:32:22] debug: Connection to 10.42.0.2:24802 timed out
NovĀ  1 07:32:23 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:32:23] debug: Connecting to 10.42.0.2:24802 (attempt 7/10)
NovĀ  1 07:32:28 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:32:28] debug: Connection to 10.42.0.2:24802 timed out
NovĀ  1 07:32:29 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:32:29] debug: Connecting to 10.42.0.2:24802 (attempt 8/10)
NovĀ  1 07:32:34 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:32:34] debug: Connection to 10.42.0.2:24802 timed out
NovĀ  1 07:32:35 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:32:35] debug: Connecting to 10.42.0.2:24802 (attempt 9/10)
NovĀ  1 07:32:40 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:32:40] debug: Connection to 10.42.0.2:24802 timed out
NovĀ  1 07:32:41 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:32:41] debug: Connecting to 10.42.0.2:24802 (attempt 10/10)
NovĀ  1 07:32:46 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:32:46] debug: Connection to 10.42.0.2:24802 timed out
NovĀ  1 07:32:47 fedora1 synergy-service[1427]: [ RouterĀ  ] [2017-11-01T07:32:47] debug: Gave up trying to connect to 10.42.0.2:24802
NovĀ  1 07:32:48 fedora1 synergy-service[1427]: [ CoreĀ Ā Ā  ] [2017-11-01T07:32:48] debug: [2017-11-01T07:32:48] DEBUG: XOpenDisplay(":0.0")
NovĀ  1 07:32:48 fedora1 synergy-service[1427]: [ CoreĀ Ā Ā  ] [2017-11-01T07:32:48] debug: [2017-11-01T07:32:48] WARNING: primary screen unavailable: unable to open screen
NovĀ  1 07:32:48 fedora1 synergy-service[1427]: [ CoreĀ Ā Ā  ] [2017-11-01T07:32:48] debug: [2017-11-01T07:32:48] DEBUG: retry in 60 seconds
NovĀ  1 07:33:48 fedora1 synergy-service[1427]: [ CoreĀ Ā Ā  ] [2017-11-01T07:33:48] debug: [2017-11-01T07:33:48] DEBUG: XOpenDisplay(":0.0")
NovĀ  1 07:33:48 fedora1 synergy-service[1427]: [ CoreĀ Ā Ā  ] [2017-11-01T07:33:48] debug: [2017-11-01T07:33:48] WARNING: primary screen unavailable: unable to open screen
NovĀ  1 07:33:48 fedora1 synergy-service[1427]: [ CoreĀ Ā Ā  ] [2017-11-01T07:33:48] debug: [2017-11-01T07:33:48] DEBUG: retry in 60 seconds
NovĀ  1 07:33:56 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:33:56] debug: stopping core process
NovĀ  1 07:33:56 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:33:56] debug: core process exited: code=95 expected=true
NovĀ  1 07:33:56 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:33:56] debug: core process shutdown complete
NovĀ  1 07:33:56 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:33:56] debug: core process is not running, ignoring shutdown
NovĀ  1 07:33:56 fedora1 synergy-service[1427]: [ Service ] [2017-11-01T07:33:56] debug: closing existing websocket connection

Ā 

Link to post
Share on other sites
  • Synergy Team
Nick Bolton

Oh, this may be it:

NovĀ  1 07:31:48 fedora1 synergy-service[1427]: [ CoreĀ Ā Ā  ] [2017-11-01T07:31:48] debug: [2017-11-01T07:31:48] WARNING: primary screen unavailable: unable to open screen

That's quite strange. Could you tell what user synergy-core is running as?

Link to post
Share on other sites

I don't know who the user is - it is however the service is setup by default. This of course looks like a chicken and egg problem - synergy won't start without a display, but the display won't start until synergy is started.

Link to post
Share on other sites
  • Synergy Team
Nick Bolton
1 hour ago, ~Frank said:

but the display won't start until synergy is started.

Hmm, not sure about that. I'm wondering if maybe the service is crashing/freezing which is delaying the start of X. We're working on the service crash bug, and should have something for you tomorrow.

Link to post
Share on other sites

I've waited over 10 minutes, and X never started. I also went to a console, logged in and tried to "startx" manually. On one system, it never worked. On another system, it worked twice out of the 5 times I tried (with reboots in between). However, if I stopped the synergy service, startx always worked. If I disable the synergy service, X always starts on boot.

Link to post
Share on other sites
  • Synergy Team
Nick Bolton

I guess the service is freezing while it tries to launch the core. This is fixed in the next version, due tomorrow.

Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...