Solus Automatic Time Fix

Linux

With Solus you can not set Automatic Date & Time, once you close the settings window it reverts back to off.

Checking the NTP status as below it failed to load:

systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/usr/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2020-06-05 21:30:23 EDT; 3s ago
Docs: man:systemd-timesyncd.service(8)
Process: 3450 ExecStart=/usr/lib/systemd/systemd-timesyncd (code=exited, status=238/STATE_DIRECTORY)
Main PID: 3450 (code=exited, status=238/STATE_DIRECTORY)
Jun 05 21:30:23 predator systemd[1]: systemd-timesyncd.service: Scheduled restart job, restart counter is at 5.
Jun 05 21:30:23 predator systemd[1]: Stopped Network Time Synchronization.
Jun 05 21:30:23 predator systemd[1]: systemd-timesyncd.service: Start request repeated too quickly.
Jun 05 21:30:23 predator systemd[1]: systemd-timesyncd.service: Failed with result 'exit-code'.
Jun 05 21:30:23 predator systemd[1]: Failed to start Network Time Synchronization.


This is a known issue with a simple fix from JoshStrobl on the Solus Forum.

First set the correct time zone:

sudo timedatectl set-timezone America/New_York

Then set the NTP time servers to use:

sudo nano /etc/systemd/timesyncd.conf

I used the Google time servers, it should look like this:

[Time]
NTP=time1.google.com time2.google.com time3.google.com time4.google.com
FallbackNTP=0.solus.pool.ntp.org 1.solus.pool.ntp.org 2.solus.pool.ntp.org 3.solus.pool.ntp.org

Now to get Automatic Date & Time to load with the commands below:

sudo rm /var/lib/systemd/timesync
sudo systemctl restart systemd-timesyncd.service

Now when you check the NTP time it should look like below:

systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/usr/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2020-06-05 21:35:52 EDT; 4h 0min ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 3936 (systemd-timesyn)
Status: "Initial synchronization to time server [2001:4860:4806::]:123 (time1.google.com)."
Tasks: 2 (limit: 18981)
Memory: 1.5M
CGroup: /system.slice/systemd-timesyncd.service
└─3936 /usr/lib/systemd/systemd-timesyncd