Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated entries in the systemd service journal #101

Open
bdaase opened this issue Feb 3, 2021 · 0 comments · Fixed by baodrate/snap-sync-forked#2 · May be fixed by #103
Open

Duplicated entries in the systemd service journal #101

bdaase opened this issue Feb 3, 2021 · 0 comments · Fixed by baodrate/snap-sync-forked#2 · May be fixed by #103
Labels
Milestone

Comments

@bdaase
Copy link

bdaase commented Feb 3, 2021

Using the mentioned snap-sync systemd service from the man page seems to produce duplicated entries in the journal.
journalctl -u snap-sync.service -b 0 normally looks as follows for me then:

Feb 03 00:00:22 xps-9370 systemd[1]: Started Run snap-sync backup.
Feb 03 00:00:22 xps-9370 snap-sync[261393]: snap-sync version 0.7, Copyright (C) 2016-2021 Wes Barnett
Feb 03 00:00:22 xps-9370 snap-sync[261393]: snap-sync comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the license for more information.
Feb 03 00:00:22 xps-9370 sudo[261412]:     root : PWD=/ ; USER=bjoern ; COMMAND=/usr/bin/id -u
Feb 03 00:00:22 xps-9370 sudo[261421]:     root : PWD=/ ; USER=bjoern ; ENV=DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus ; COMMAND=/usr/bin/notify-send -a snap-sync Backup started Starting backups to 62af43f8-f34d-4856-b94a-942fdded4ef4 subvolid=5... --icon=dialog-information
Feb 03 00:00:22 xps-9370 snap-sync[261462]: You selected the disk with uuid=62af43f8-f34d-4856-b94a-942fdded4ef4, subvolid=5.
Feb 03 00:00:22 xps-9370 snap-sync[261401]: You selected the disk with uuid=62af43f8-f34d-4856-b94a-942fdded4ef4, subvolid=5.
Feb 03 00:00:22 xps-9370 snap-sync[261464]: The disk is mounted at '/run/media/bjoern/intenso_external_usb3.0'.
Feb 03 00:00:22 xps-9370 snap-sync[261401]: The disk is mounted at '/run/media/bjoern/intenso_external_usb3.0'.
Feb 03 00:00:22 xps-9370 snap-sync[261393]: Interactively cycling through all snapper configurations...
Feb 03 00:00:22 xps-9370 snap-sync[261489]: Creating new local snapshot for 'home' configuration...
Feb 03 00:00:22 xps-9370 snap-sync[261401]: Creating new local snapshot for 'home' configuration...
Feb 03 00:00:23 xps-9370 snap-sync[261501]: Will backup /home/.snapshots/371/snapshot to /run/media/bjoern/intenso_external_usb3.0/@home/home/371//snapshot
Feb 03 00:00:23 xps-9370 snap-sync[261401]: Will backup /home/.snapshots/371/snapshot to /run/media/bjoern/intenso_external_usb3.0/@home/home/371//snapshot
Feb 03 00:00:23 xps-9370 snap-sync[261522]: Creating new local snapshot for 'root' configuration...
Feb 03 00:00:23 xps-9370 snap-sync[261401]: Creating new local snapshot for 'root' configuration...
Feb 03 00:00:23 xps-9370 snap-sync[261530]: Will backup //.snapshots/517/snapshot to /run/media/bjoern/intenso_external_usb3.0/@/root/517//snapshot
Feb 03 00:00:23 xps-9370 snap-sync[261401]: Will backup //.snapshots/517/snapshot to /run/media/bjoern/intenso_external_usb3.0/@/root/517//snapshot
Feb 03 00:00:23 xps-9370 snap-sync[261533]: Performing backups...
Feb 03 00:00:23 xps-9370 snap-sync[261401]: Performing backups...
Feb 03 00:00:23 xps-9370 sudo[261539]:     root : PWD=/ ; USER=bjoern ; COMMAND=/usr/bin/id -u
Feb 03 00:00:23 xps-9370 sudo[261544]:     root : PWD=/ ; USER=bjoern ; ENV=DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus ; COMMAND=/usr/bin/notify-send -a snap-sync Backup in progress Backing up home configuration. --icon=dialog-information
Feb 03 00:00:23 xps-9370 snap-sync[261562]: Sending incremental snapshot for 'home' configuration...
Feb 03 00:00:23 xps-9370 snap-sync[261401]: Sending incremental snapshot for 'home' configuration...
Feb 03 00:00:23 xps-9370 snap-sync[261564]: At subvol /home/.snapshots/371/snapshot
Feb 03 00:00:52 xps-9370 snap-sync[261566]: At snapshot snapshot
Feb 03 00:00:52 xps-9370 snap-sync[261597]: Deleting old snapshot for home...
Feb 03 00:00:52 xps-9370 snap-sync[261401]: Deleting old snapshot for home...
Feb 03 00:00:52 xps-9370 snap-sync[261602]: Tagging local snapshot as latest backup for 'home' configuration...
Feb 03 00:00:52 xps-9370 snap-sync[261401]: Tagging local snapshot as latest backup for 'home' configuration...
Feb 03 00:00:52 xps-9370 snap-sync[261401]: Backup complete for 'home' configuration.
Feb 03 00:00:52 xps-9370 sudo[261610]:     root : PWD=/ ; USER=bjoern ; COMMAND=/usr/bin/id -u
Feb 03 00:00:52 xps-9370 sudo[261615]:     root : PWD=/ ; USER=bjoern ; ENV=DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus ; COMMAND=/usr/bin/notify-send -a snap-sync Backup in progress Backing up root configuration. --icon=dialog-information
Feb 03 00:00:53 xps-9370 snap-sync[261636]: Sending incremental snapshot for 'root' configuration...
Feb 03 00:00:53 xps-9370 snap-sync[261401]: Sending incremental snapshot for 'root' configuration...
Feb 03 00:00:53 xps-9370 snap-sync[261637]: At subvol //.snapshots/517/snapshot
Feb 03 00:02:14 xps-9370 snap-sync[261639]: At snapshot snapshot
Feb 03 00:02:14 xps-9370 snap-sync[261723]: Deleting old snapshot for root...
Feb 03 00:02:14 xps-9370 snap-sync[261401]: Deleting old snapshot for root...
Feb 03 00:02:14 xps-9370 snap-sync[261729]: Tagging local snapshot as latest backup for 'root' configuration...
Feb 03 00:02:14 xps-9370 snap-sync[261401]: Tagging local snapshot as latest backup for 'root' configuration...
Feb 03 00:02:14 xps-9370 snap-sync[261401]: Backup complete for 'root' configuration.
Feb 03 00:02:14 xps-9370 snap-sync[261733]: Done!
Feb 03 00:02:14 xps-9370 snap-sync[261401]: Done!
Feb 03 00:02:14 xps-9370 sudo[261739]:     root : PWD=/ ; USER=bjoern ; COMMAND=/usr/bin/id -u
Feb 03 00:02:14 xps-9370 sudo[261743]:     root : PWD=/ ; USER=bjoern ; ENV=DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus ; COMMAND=/usr/bin/notify-send -a snap-sync Finished Backups to 62af43f8-f34d-4856-b94a-942fdded4ef4 complete! --icon=dialog-information
Feb 03 00:02:14 xps-9370 systemd[1]: snap-sync.service: Succeeded.
Feb 03 00:02:14 xps-9370 systemd[1]: snap-sync.service: Consumed 28.590s CPU time.
@wesbarnett wesbarnett self-assigned this Feb 7, 2021
@wesbarnett wesbarnett added the bug label Feb 7, 2021
@wesbarnett wesbarnett modified the milestones: 0.7.1, 0.8 Feb 7, 2021
wesbarnett added a commit that referenced this issue Feb 7, 2021
Remove duplication of logs.

Fixes #101.
@wesbarnett wesbarnett linked a pull request Feb 7, 2021 that will close this issue
@wesbarnett wesbarnett removed their assignment Jul 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants