시작 요청이 너무 빨리 반복됨

시작 요청이 너무 빨리 반복됨

OnCalendar=daily내 보관용 계정에 정기적으로 백업( )을 만들려고 합니다 rclone. 랩톱에서 실행 중이므로 Persistent=true랩톱을 깨우면 네트워크가 다시 시작되는 데 몇 초가 걸립니다. 따라서 각성 후 첫 번째 시도는 실패할 것으로 예상된다. 그러나 왜 Start request repeated too quickly error.

systemctl cat --user rclone-copy-dropbox.timer

[Install]
WantedBy=timers.target

[Timer]
OnCalendar=daily
Persistent=true
RandomizedDelaySec=10m

[Unit]
Description=rclone copy to dropbox

systemctl cat --user rclone-copy-dropbox.service

[Service]
ExecStart=rclone copy dropbox: /home/me/dropbox --bwlimit 10M:20M --config=/home/me/rclone.conf
Restart=on-failure
RestartSec=10m
Type=oneshot

[Unit]
After=graphical-session-pre.target
Description=rclone copy dropbox
OnFailure=notify-email@%n.service
StartLimitBurst=5
StartLimitIntervalSec=12h
Wants=graphical-session.target
X-RestartIfChanged=false

Journalctl --user -u rclone-copy-dropbox.service

Jan 08 11:52:14 yoga systemd[8306]: Starting rclone copy dropbox...
Jan 08 11:52:16 yoga systemd[8306]: Finished rclone copy dropbox.
Jan 09 07:15:44 yoga systemd[8306]: Starting rclone copy dropbox...
Jan 09 07:15:44 yoga rclone[2215956]: ERROR : Dropbox root '': error reading source root directory: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 09 07:15:44 yoga rclone[2215956]: ERROR : Attempt 1/3 failed with 1 errors and: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 09 07:15:44 yoga rclone[2215956]: ERROR : Dropbox root '': error reading source root directory: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 09 07:15:44 yoga rclone[2215956]: ERROR : Attempt 2/3 failed with 1 errors and: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 09 07:15:44 yoga rclone[2215956]: ERROR : Dropbox root '': error reading source root directory: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 09 07:15:44 yoga rclone[2215956]: ERROR : Attempt 3/3 failed with 1 errors and: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 09 07:15:44 yoga rclone[2215956]: Failed to copy: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 09 07:15:44 yoga systemd[8306]: rclone-copy-dropbox.service: Main process exited, code=exited, status=1/FAILURE
Jan 09 07:15:44 yoga systemd[8306]: rclone-copy-dropbox.service: Failed with result 'exit-code'.
Jan 09 07:15:44 yoga systemd[8306]: Failed to start rclone copy dropbox.
Jan 09 07:25:44 yoga systemd[8306]: rclone-copy-dropbox.service: Scheduled restart job, restart counter is at 1.
Jan 09 07:25:44 yoga systemd[8306]: Stopped rclone copy dropbox.
Jan 09 07:25:44 yoga systemd[8306]: rclone-copy-dropbox.service: Start request repeated too quickly.
Jan 09 07:25:44 yoga systemd[8306]: rclone-copy-dropbox.service: Failed with result 'exit-code'.
Jan 09 07:25:44 yoga systemd[8306]: Failed to start rclone copy dropbox.
Jan 09 07:25:44 yoga systemd[8306]: rclone-copy-dropbox.service: Triggering OnFailure= dependencies.
lines 1853-1892/1892 (END)

구성에 따라 오류가 발생하기 전 12시간 이내에 최대 5번의 시도가 이루어져야 합니다. 내 추론에 문제가 있습니까?

편집: 버전은 252(252.1)입니다.

서비스를 직접 실행하면 예상대로 작동합니다.

systemctl 재설정 실패 --user rclone-copy-dropbox.service
systemctl start --user rclone-copy-dropbox.service

Jan 16 14:26:53 yoga systemd[7257]: Starting rclone copy dropbox...
Jan 16 14:26:54 yoga rclone[1412126]: ERROR : Dropbox root '': error reading source root directory: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:26:54 yoga rclone[1412126]: ERROR : Attempt 1/3 failed with 1 errors and: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:26:54 yoga rclone[1412126]: ERROR : Dropbox root '': error reading source root directory: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:26:54 yoga rclone[1412126]: ERROR : Attempt 2/3 failed with 1 errors and: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:26:54 yoga rclone[1412126]: ERROR : Dropbox root '': error reading source root directory: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:26:54 yoga rclone[1412126]: ERROR : Attempt 3/3 failed with 1 errors and: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:26:54 yoga rclone[1412126]: Failed to copy: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:26:54 yoga systemd[7257]: rclone-copy-dropbox.service: Main process exited, code=exited, status=1/FAILURE
Jan 16 14:26:54 yoga systemd[7257]: rclone-copy-dropbox.service: Failed with result 'exit-code'.
Jan 16 14:26:54 yoga systemd[7257]: Failed to start rclone copy dropbox.
Jan 16 14:36:54 yoga systemd[7257]: rclone-copy-dropbox.service: Scheduled restart job, restart counter is at 1.
Jan 16 14:36:54 yoga systemd[7257]: Stopped rclone copy dropbox.
Jan 16 14:36:54 yoga systemd[7257]: Starting rclone copy dropbox...
Jan 16 14:36:54 yoga rclone[1420729]: ERROR : Dropbox root '': error reading source root directory: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:36:54 yoga rclone[1420729]: ERROR : Attempt 1/3 failed with 1 errors and: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:36:54 yoga rclone[1420729]: ERROR : Dropbox root '': error reading source root directory: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:36:54 yoga rclone[1420729]: ERROR : Attempt 2/3 failed with 1 errors and: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:36:54 yoga rclone[1420729]: ERROR : Dropbox root '': error reading source root directory: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:36:54 yoga rclone[1420729]: ERROR : Attempt 3/3 failed with 1 errors and: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:36:54 yoga rclone[1420729]: Failed to copy: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:36:54 yoga systemd[7257]: rclone-copy-dropbox.service: Main process exited, code=exited, status=1/FAILURE
Jan 16 14:36:54 yoga systemd[7257]: rclone-copy-dropbox.service: Failed with result 'exit-code'.
Jan 16 14:36:54 yoga systemd[7257]: Failed to start rclone copy dropbox.
Jan 16 14:46:54 yoga systemd[7257]: rclone-copy-dropbox.service: Scheduled restart job, restart counter is at 2.
Jan 16 14:46:54 yoga systemd[7257]: Stopped rclone copy dropbox.
Jan 16 14:46:54 yoga systemd[7257]: Starting rclone copy dropbox...
Jan 16 14:46:54 yoga rclone[1427795]: ERROR : Dropbox root '': error reading source root directory: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:46:54 yoga rclone[1427795]: ERROR : Attempt 1/3 failed with 1 errors and: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:46:54 yoga rclone[1427795]: ERROR : Dropbox root '': error reading source root directory: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:46:54 yoga rclone[1427795]: ERROR : Attempt 2/3 failed with 1 errors and: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:46:54 yoga rclone[1427795]: ERROR : Dropbox root '': error reading source root directory: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:46:54 yoga rclone[1427795]: ERROR : Attempt 3/3 failed with 1 errors and: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:46:54 yoga rclone[1427795]: Failed to copy: Post "https://api.dropboxapi.com/2/files/list_folder": dial tcp: lookup api.dropboxapi.com: no such host
Jan 16 14:46:54 yoga systemd[7257]: rclone-copy-dropbox.service: Main process exited, code=exited, status=1/FAILURE
Jan 16 14:46:54 yoga systemd[7257]: rclone-copy-dropbox.service: Failed with result 'exit-code'.
Jan 16 14:46:54 yoga systemd[7257]: Failed to start rclone copy dropbox.
...

답변1

네트워크가 가동되고 온라인 상태가 된 후에만 서비스를 실행하면 어떨까요?

After=network-online.target
Wants=network-online.target

그런 다음 노트북이 깨어나고 네트워크가 연결되면 서비스가 실행됩니다.

관련 정보