I check redis logs that it has an error message as below, master/save unable to sync data. Can anyone please help me with this?

Server A Status

[root@test01 ~]# tail -f /var/log/redis-server-6379.log
1246:S 17 Jul 2024 22:21:29.216 * Non blocking connect for SYNC fired the event.
1246:S 17 Jul 2024 22:21:29.216 * Master replied to PING, replication can continue...
1246:S 17 Jul 2024 22:21:29.217 * Trying a partial resynchronization (request 089d1c0fb80f4787a8f540ad0fde82aa9a49c8c4:477990897).
1246:S 17 Jul 2024 22:21:29.218 * Master is currently unable to PSYNC but should be in the future: -NOMASTERLINK Can't SYNC while not connected with my master
1246:S 17 Jul 2024 22:21:30.217 * Connecting to MASTER xxx.xxx.xxx.xxx:6379
1246:S 17 Jul 2024 22:21:30.218 * MASTER <-> REPLICA sync started
1246:S 17 Jul 2024 22:21:30.218 * Non blocking connect for SYNC fired the event.
1246:S 17 Jul 2024 22:21:30.219 * Master replied to PING, replication can continue...
1246:S 17 Jul 2024 22:21:30.219 * Trying a partial resynchronization (request 089d1c0fb80f4787a8f540ad0fde82aa9a49c8c4:477990897).
1246:S 17 Jul 2024 22:21:30.220 * Master is currently unable to PSYNC but should be in the future: -NOMASTERLINK Can't SYNC while not connected with my master
1246:S 17 Jul 2024 22:21:31.219 * Connecting to MASTER xxx.xxx.xxx.xxx:6379
[root@test01 ~]# systemctl status redis-server-6379.service 
● redis-server-6379.service - SYSV: Starts and stops the Redis Server
   Loaded: loaded (/etc/rc.d/init.d/redis-server-6379; generated)
   Active: active (running) since Wed 2024-07-17 22:12:53 EDT; 25min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1126 ExecStart=/etc/rc.d/init.d/redis-server-6379 start (code=exited, status=0/SUCCESS)
    Tasks: 4 (limit: 48900)
   Memory: 5.2M
   CGroup: /system.slice/redis-server-6379.service
           └─1246 /usr/local/bin/redis-server xxx.xxx.xxx.xxx:6379

Jul 17 22:12:53 test01 systemd[1]: Starting SYSV: Starts and stops the Redis Server...
Jul 17 22:12:53 test01 redis-server-6379[1126]: Starting Redis server...
Jul 17 22:12:53 test01 systemd[1]: Started SYSV: Starts and stops the Redis Server.
[root@test01 ~]# 
[root@test01 ~]# systemctl status redis-sentinel-26379.service 
● redis-sentinel-26379.service - SYSV: redis-sentinel
   Loaded: loaded (/etc/rc.d/init.d/redis-sentinel-26379; generated)
   Active: active (running) since Wed 2024-07-17 22:12:53 EDT; 25min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1141 ExecStart=/etc/rc.d/init.d/redis-sentinel-26379 start (code=exited, status=0/SUCCESS)
    Tasks: 4 (limit: 48900)
   Memory: 3.7M
   CGroup: /system.slice/redis-sentinel-26379.service
           └─1241 /usr/local/bin/redis-sentinel xxx.xxx.xxx.xxx:26379 [sentinel]

Jul 17 22:12:53 test01 systemd[1]: Starting SYSV: redis-sentinel...
Jul 17 22:12:53 test01 redis-sentinel-26379[1141]: Starting Redis Sentinel ...
Jul 17 22:12:53 test01 redis-sentinel-26379[1158]: touch: cannot touch '/var/run/redis-sentinel/redis-sentinel-26379.pid': No such file or directory
Jul 17 22:12:53 test01 systemd[1]: Started SYSV: redis-sentinel.
[root@test01 ~]# 

Server B Status

[root@test02 ~]# systemctl status redis-server-6379.service 
● redis-server-6379.service - SYSV: Starts and stops the Redis Server
   Loaded: loaded (/etc/rc.d/init.d/redis-server-6379; generated)
   Active: active (running) since Thu 2024-07-18 10:13:00 HKT; 22min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1148 ExecStart=/etc/rc.d/init.d/redis-server-6379 start (code=exited, status=0/SUCCESS)
    Tasks: 4 (limit: 48900)
   Memory: 4.6M
   CGroup: /system.slice/redis-server-6379.service
           └─1234 /usr/local/bin/redis-server xxx.xxx.xxx.xxx:6379

Jul 18 10:13:00 test02 systemd[1]: Starting SYSV: Starts and stops the Redis Server...
Jul 18 10:13:00 test02 redis-server-6379[1148]: Starting Redis server...
Jul 18 10:13:00 test02 systemd[1]: Started SYSV: Starts and stops the Redis Server.
[root@test02 ~]# 
[root@test02 ~]# systemctl status redis-sentinel-26379.service 
● redis-sentinel-26379.service - SYSV: redis-sentinel
   Loaded: loaded (/etc/rc.d/init.d/redis-sentinel-26379; generated)
   Active: active (running) since Thu 2024-07-18 10:13:00 HKT; 22min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1122 ExecStart=/etc/rc.d/init.d/redis-sentinel-26379 start (code=exited, status=0/SUCCESS)
    Tasks: 4 (limit: 48900)
   Memory: 4.2M
   CGroup: /system.slice/redis-sentinel-26379.service
           └─1233 /usr/local/bin/redis-sentinel xxx.xxx.xxx.xxx:26379 [sentinel]

Jul 18 10:13:00 test02 systemd[1]: Starting SYSV: redis-sentinel...
Jul 18 10:13:00 test02 redis-sentinel-26379[1122]: Starting Redis Sentinel ...
Jul 18 10:13:00 test02 redis-sentinel-26379[1147]: touch: cannot touch '/var/run/redis-sentinel/redis-sentinel-26379.pid': No such file or directory
Jul 18 10:13:00 test02 systemd[1]: Started SYSV: redis-sentinel.

Comment From: sundb

@lizongzai can you provide the logs from master?