Evidlo / remarkable_news

Daily news/comics on your reMarkable's suspend screen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid hit cooldown limit after suspend

hashworks opened this issue · comments

When the remarkable wakes from suspend several hours after the last download I hit a cooldown limit of 1h. I expect it to download the configured target directly after it wakes from suspend.

Dec 18 15:42:29 reMarkable renews[201]: [Beginning download]
Dec 18 15:42:29 reMarkable renews[201]: [Got -xpath-title. Trying to extract title from provided url]
Dec 18 15:42:30 reMarkable renews[201]: [Got -xpath-subtitle. Trying to extract subtitle from provided url]
Dec 18 15:42:30 reMarkable renews[201]: [Got -xpath. Trying to extract img url from provided url]
Dec 18 15:42:30 reMarkable renews[201]: [Image url https://imgs.xkcd.com/comics/label_the_states.png]
Dec 18 15:42:30 reMarkable renews[201]: [Adjusting image]
Dec 18 15:42:30 reMarkable renews[201]: [Adding label Label the States]
Dec 18 15:42:30 reMarkable renews[201]: [Adding label Even with a blank map, a lot of people can only name 45-50 of the 64 states.]
Dec 18 15:42:32 reMarkable renews[201]: [Image saved to  /usr/share/remarkable/suspended.png]
Dec 18 15:42:32 reMarkable renews[201]: [Network online]
Dec 18 15:42:37 reMarkable renews[201]: [Hit cooldown limit]
Dec 18 15:59:43 reMarkable renews[201]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"off" OperationalState:"off"] []]]
Dec 18 15:59:43 reMarkable renews[201]: [dbus message: [org.freedesktop.network1.Link map[IPv6AddressState:"degraded"] []]]
Dec 18 15:59:43 reMarkable renews[201]: [dbus message: [org.freedesktop.network1.Link map[IPv6AddressState:"off"] []]]
Dec 18 15:59:43 reMarkable renews[201]: [dbus message: [org.freedesktop.network1.Link map[AddressState:"off" IPv4AddressState:"off"] []]]
Dec 18 15:59:43 reMarkable renews[201]: [dbus message: [org.freedesktop.network1.Link map[AdministrativeState:"linger"] []]]
Dec 19 11:55:30 reMarkable renews[201]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"off" OperationalState:"off"] []]]
Dec 19 11:55:30 reMarkable renews[201]: [dbus message: [org.freedesktop.network1.Link map[AdministrativeState:"initialized"] []]]
Dec 19 11:55:30 reMarkable renews[201]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"no-carrier" OperationalState:"no-carrier"] []]]
Dec 19 11:55:30 reMarkable renews[201]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"dormant" OperationalState:"dormant"] []]]
Dec 19 11:55:30 reMarkable renews[201]: [dbus message: [org.freedesktop.network1.Link map[AdministrativeState:"unmanaged"] []]]
Dec 19 11:55:30 reMarkable renews[201]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"no-carrier" OperationalState:"no-carrier"] []]]
Dec 19 11:55:36 reMarkable renews[201]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"dormant" OperationalState:"dormant"] []]]
Dec 19 11:55:36 reMarkable renews[201]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"carrier" OperationalState:"carrier"] []]]
Dec 19 11:55:37 reMarkable renews[201]: [dbus message: [org.freedesktop.network1.Link map[AddressState:"degraded" IPv6AddressState:"degraded" OperationalState:"degraded"] []]]
Dec 19 11:55:40 reMarkable renews[201]: [dbus message: [org.freedesktop.network1.Link map[AddressState:"routable" IPv4AddressState:"routable" OperationalState:"routable"] []]]
Dec 19 11:55:40 reMarkable renews[201]: [Network online]
Dec 19 11:55:45 reMarkable renews[201]: [Hit cooldown limit]
Dec 19 11:58:24 reMarkable renews[201]: [dbus message: [org.freedesktop.network1.Link map[IPv6AddressState:"routable"] []]]
Dec 19 11:58:24 reMarkable renews[201]: [Network online]
Dec 19 11:58:29 reMarkable renews[201]: [Hit cooldown limit]

systemd unit:

[Unit]
Description=XKCD

[Service]
ExecStart=/home/root/bin/renews \
    -output /usr/share/remarkable/suspended.png \
    -verbose \
    -cooldown 3600 \
    -url https://xkcd.com \
    -xpath '//div[@id="comic"]/img/@src' \
    -xpath-title '//div[@id="comic"]/img/@alt' \
    -xpath-subtitle '//div[@id="comic"]/img/@title' \
    -mode center \
    -scale 1.75
Restart=always

[Install]
WantedBy=multi-user.target

This time it worked. I've added more debug logs in case the issue reappears.

Same with more logs:

Dec 21 18:46:42 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[IPv4AddressState:"routable"] []]]
Dec 21 18:46:44 reMarkable renews[7927]: [Hit cooldown limit, last success was at 2023-12-21 18:08:59 , 2211.41 seconds to go]
Dec 21 18:46:44 reMarkable renews[7927]: [Network online]
Dec 21 18:46:49 reMarkable renews[7927]: [Hit cooldown limit, last success was at 2023-12-21 18:08:59 , 2206.41 seconds to go]
Dec 21 19:10:19 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"off" OperationalState:"off"] []]]
Dec 21 19:10:19 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[IPv6AddressState:"degraded"] []]]
Dec 21 19:10:19 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[IPv6AddressState:"off"] []]]
Dec 21 19:10:19 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[AddressState:"off" IPv4AddressState:"off"] []]]
Dec 21 19:10:21 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[AdministrativeState:"linger"] []]]
Dec 22 20:55:19 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"off" OperationalState:"off"] []]]
Dec 22 20:55:19 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[AdministrativeState:"initialized"] []]]
Dec 22 20:55:19 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"no-carrier" OperationalState:"no-carrier"] []]]
Dec 22 20:55:19 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[AdministrativeState:"unmanaged"] []]]
Dec 22 20:55:19 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"dormant" OperationalState:"dormant"] []]]
Dec 22 20:55:19 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"no-carrier" OperationalState:"no-carrier"] []]]
Dec 22 20:55:25 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"dormant" OperationalState:"dormant"] []]]
Dec 22 20:55:26 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"carrier" OperationalState:"carrier"] []]]
Dec 22 20:55:27 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[AddressState:"degraded" IPv6AddressState:"degraded" OperationalState:"degraded"] []]]
Dec 22 20:55:28 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[AddressState:"routable" IPv6AddressState:"routable" OperationalState:"routable"] []]]
Dec 22 20:55:28 reMarkable renews[7927]: [Network online]
Dec 22 20:55:32 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[IPv4AddressState:"routable"] []]]
Dec 22 20:55:33 reMarkable renews[7927]: [Hit cooldown limit, last success was at 2023-12-21 18:08:59 , 749.09 seconds to go]
Dec 22 20:55:33 reMarkable renews[7927]: [Network online]
Dec 22 20:55:38 reMarkable renews[7927]: [Hit cooldown limit, last success was at 2023-12-21 18:08:59 , 744.08 seconds to go]
Dec 22 20:57:31 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"off" OperationalState:"off"] []]]
Dec 22 20:57:31 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[IPv6AddressState:"degraded"] []]]
Dec 22 20:57:31 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[IPv6AddressState:"off"] []]]
Dec 22 20:57:31 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[AddressState:"off" IPv4AddressState:"off"] []]]
Dec 22 20:57:31 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[AdministrativeState:"linger"] []]]
Dec 22 20:58:44 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"off" OperationalState:"off"] []]]
Dec 22 20:58:44 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[AdministrativeState:"initialized"] []]]
Dec 22 20:58:44 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"no-carrier" OperationalState:"no-carrier"] []]]
Dec 22 20:58:44 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[AdministrativeState:"unmanaged"] []]]
Dec 22 20:58:44 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"dormant" OperationalState:"dormant"] []]]
Dec 22 20:58:44 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"no-carrier" OperationalState:"no-carrier"] []]]
Dec 22 20:58:49 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"dormant" OperationalState:"dormant"] []]]
Dec 22 20:58:49 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[CarrierState:"carrier" OperationalState:"carrier"] []]]
Dec 22 20:58:51 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[AddressState:"degraded" IPv6AddressState:"degraded" OperationalState:"degraded"] []]]
Dec 22 20:58:52 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[AddressState:"routable" IPv6AddressState:"routable" OperationalState:"routable"] []]]
Dec 22 20:58:52 reMarkable renews[7927]: [Network online]
Dec 22 20:58:55 reMarkable renews[7927]: [dbus message: [org.freedesktop.network1.Link map[IPv4AddressState:"routable"] []]]
Dec 22 20:58:57 reMarkable renews[7927]: [Hit cooldown limit, last success was at 2023-12-21 18:08:59 , 615.49 seconds to go]
Dec 22 20:58:57 reMarkable renews[7927]: [Network online]
Dec 22 20:59:02 reMarkable renews[7927]: [Hit cooldown limit, last success was at 2023-12-21 18:08:59 , 610.48 seconds to go]

Dec 22 20:58:57 [Hit cooldown limit, last success was at 2023-12-21 18:08:59 , 615.49 seconds to go]

Hmm, I'm not sure why this would happen, as time.Now() should give the system time. System time should continue progressing even while the device is asleep.

Reopen if this is still an issue.