graysky2 / anything-sync-daemon

Symlinks and syncs user specified dirs to RAM thus reducing HDD/SDD calls and speeding-up the system.
https://wiki.archlinux.org/index.php/Anything-sync-daemon
MIT License
345 stars 45 forks source link

asd-resync service failing #84

Open brauliobo opened 1 year ago

brauliobo commented 1 year ago

First of all, thanks for the great work in asd, it is a very nice replacement for profile-sync-daemon.

Below the is error log. It might be the error file has vanished: "/tmp/asd-braulio/home/braulio/.cache/thorium/Profile 6/Cache/Cache_Data/7082fdad76859f2e_0" causing the failed status

✗  sudo systemctl list-units --failed
  UNIT               LOAD   ACTIVE SUB    DESCRIPTION 
● asd-resync.service loaded failed failed Timed resync

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
1 loaded units listed.

✗  sudo systemctl status asd-resync      
× asd-resync.service - Timed resync
     Loaded: loaded (/usr/lib/systemd/system/asd-resync.service; disabled; preset: disabled)
     Active: failed (Result: exit-code) since Wed 2023-08-30 10:01:24 -03; 9min ago
   Duration: 6.864s
TriggeredBy: ● asd-resync.timer
       Docs: man:asd(1)
             man:anything-sync-daemon(1)
             https://wiki.archlinux.org/index.php/Anything-sync-daemon
    Process: 154726 ExecStart=/usr/bin/anything-sync-daemon resync (code=exited, status=24)
   Main PID: 154726 (code=exited, status=24)
        CPU: 4.907s

ago 30 10:01:22 bhavapower anything-sync-daemon[154740]: [47.9K blob data]
ago 30 10:01:22 bhavapower anything-sync-daemon[154740]: [48.0K blob data]
ago 30 10:01:22 bhavapower anything-sync-daemon[154740]: [29.6K blob data]
ago 30 10:01:22 bhavapower anything-sync-daemon[154740]: file has vanished: "/tmp/asd-braulio/home/braulio/.cache/thorium/Profile 6/Cache/Cache_Data/7082fdad76859f2e_0"
ago 30 10:01:24 bhavapower anything-sync-daemon[154740]: [12.5K blob data]
ago 30 10:01:24 bhavapower anything-sync-daemon[154726]: flock: obtenção da trava levou 0.000002 segundos
ago 30 10:01:24 bhavapower anything-sync-daemon[154726]: flock: executando /usr/bin/anything-sync-daemon
ago 30 10:01:24 bhavapower systemd[1]: asd-resync.service: Main process exited, code=exited, status=24/n/a
ago 30 10:01:24 bhavapower systemd[1]: asd-resync.service: Failed with result 'exit-code'.
ago 30 10:01:24 bhavapower systemd[1]: asd-resync.service: Consumed 4.907s CPU time.
manorit2001 commented 11 months ago

I am not sure about it as this does seem to be an rsync issue that the files vanishes, this could be an edge case that you encountered but am not sure how we can handle that. although as per this it does seem like the message should've been harmless and rsync will copy files normally, am not sure why the failure though.