~Frank

Synergy2-Beta5 prevents X from starting...

8 posts in this topic

... 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.

Share this post


Link to post
Share on other sites

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

Share this post


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

 

Share this post


Link to post
Share on other sites

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?

Share this post


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.

Share this post


Link to post
Share on other sites
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.

Share this post


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.

Share this post


Link to post
Share on other sites

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

Share this post


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