Skip to content

Retry feed list load instead of idling forever - #47

Open
nickstouras wants to merge 1 commit into
emoncms:masterfrom
nickstouras:retry-feed-list-load
Open

nickstouras wants to merge 1 commit into
emoncms:masterfrom
nickstouras:retry-feed-list-load

Conversation

@nickstouras

@nickstouras nickstouras commented Oct 13, 2026 •

Copy link
Copy Markdown

sync_upload.php loads the local and remote feed list once at startup. If the remote server cannot be reached at that moment, e.g. when the service starts at boot before the network is up, the script continues with an empty feed list and logs "Nothing to upload" indefinitely. Since it never exits, systemd's Restart=always does not help, and syncing silently stops until the user presses sync in the UI.

Exit when the initial load fails so that the service manager restarts the script. When a reload fails, keep the previous feed list and the reload flag so that the reload is retried, instead of replacing the feed list with the error response.

closes #48

sync_upload.php loads the local and remote feed list once at startup.
If the remote server cannot be reached at that moment, e.g. when the
service starts at boot before the network is up, the script continues
with an empty feed list and logs "Nothing to upload" indefinitely.
Since it never exits, systemd's Restart=always does not help, and
syncing silently stops until the user presses sync in the UI.

Exit when the initial load fails so that the service manager restarts
the script. When a reload fails, keep the previous feed list and the
reload flag so that the reload is retried, instead of replacing the
feed list with the error response.

Signed-off-by: Nikos Stouras <nickstouras@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feed list won't sync and will idle indefinitely if network is not ready.

1 participant