The Splunk Connect for Syslog (SC4S) container may fail to start due to an SSL certificate validation error.
This error typically occurs when the system time is either ahead of or behind the certificate's validity period, leading to the certificate being flagged as expired or invalid.
Consequently, the SC4S service enters a failed state, preventing the container from pulling the required image.
1. Check SC4S Service Status:
Run the following command to verify the SC4S service status:
systemctl status sc4s -l
Example output:
sc4s.service - SC4S Container
Loaded: loaded (/usr/lib/systemd/system/sc4s.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2014-12-25 18:05:19 IST; 9 years 11 months ago
Main PID: 12189 (code=exited, status=0/SUCCESS) Dec 25 18:05:19 so1 systemd[1]: Starting SC4S Container...
Dec 25 18:05:19 so1 podman[8552]: Get https://ghcr.io/v2/: x509: certificate has expired or is not yet valid
Dec 25 18:05:19 so1 systemd[1]: Failed to start SC4S Container.
2. Test DNS Connectivity:
Verify DNS resolution by pinging the image repository:
ping -c 4 ghcr.io
3. Check Certificate Details:
To inspect the SSL certificate details of the repository, run the following command:
echo | openssl s_client -connect ghcr.io:443 -servername ghcr.io 2>/dev/null | openssl x509 -noout -dates
An error like "Verify return code: 9 (certificate is not yet valid)" suggests that the local system time is incorrect.
The error "x509: certificate has expired or is not yet valid" indicates a time synchronization issue.
Follow these steps to resolve it:
1. Verify System Time and Time Zone:
timedatectl status
2. Synchronize System Time:
- If using NTP:
sudo systemctl enable ntpd
sudo systemctl start ntpd
- If using Chrony:
sudo systemctl enable chronyd
sudo systemctl start chronyd
3. Manually set the time zone (if NTP is unavailable):
List available time zones:
timedatectl list-timezones
Set the appropriate time zone:
sudo timedatectl set-timezone <YourTimeZone>
4. Manually set the date and time (if necessary):
date -s 'YYYY-MM-DD HH:MM:SS'
Replace "YYYY-MM-DD HH:MM:SS" with the correct date and time.
5. Restart the SC4S Service:
sudo systemctl restart sc4s
6. Verify Time Synchronization:
Confirm the time settings with:
timedatectl status
By ensuring accurate system time and synchronizing it properly, the SC4S container should successfully start without SSL certificate validation errors.
GitHub Issue: Here
How to Set time and Timezone: Here and Here
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |