-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
dietpi-ddns/update.sh does not log message #5954
Comments
Thanks for reporting. I was confused now as well, but it actually makes sense as it is: I didn't want to spam the system log with some cryptic or redundant successful HTTP response, but only when the request failed, implying error HTTP responses thanks to And since Cron cannot handle outputs, as long as no MTA is configured, I do not want anything on STDOUT or STDERR, which is the reason why stuff is send to system logger in the first place. As since this is also done when you manually call the script, having error messages duplicated to STDERR aren't such a significant benefit, is it? The problem with adding the domain is, aside of that it again is the syslog spam I want to avoid (its trivial to check back in |
I prefer to know when such updates have run. The per 30 minute rate wasn't too much IMO. But it's up to you. This Issue could be closed as "WillNotFix" if you prefer. |
You see the executions by cron already: journalctl -u cron |
Best to view everything DietPi-DDNS related: journalctl --grep dietpi-ddns Would it be sufficient to have this documented properly? I agree that it's important to have ways to see not only errors, but that it executed at all, as well. I just want to avoid redundancy to not spam the system log too much. |
Perhaps a user hint describing that command
Would a checkbox option for verbose logging be worthwhile? i.e. another line-item in Seeing that the tagged cron messages regarding dietpi-ddns are logged, this bug is low priority or WontFix. |
- DietPi-DDNS | The "IPv6or4" option to update IPv6 only, if supported by server, network and provider, has been replaced with "IPv4and6". A server being reachable via IPv6 only is rarely wanted, as many networks do not support it. Instead, usually one will want to have it reachable via both, IPv4 as well as IPv6, which is now possible when using DietPi-DDNS, and the new default. If, e.g. for security reason, IPv6 only is wanted, this option of course remains available, like before. Many thanks to @LOGIN-TB for doing this suggestion: #7278 - DietPi-DDNS | The cron job does now log server response messages and connection errors separately with respective severities. Some DDNS providers do not return an HTTP error code, but an error text embedded into a regular HTTP 200 response. This, as well as success responses can now be seen via "journalctl -t dietpi-ddns". Many thanks to @jtmoon79 for doing this suggestion: #5954
I implemented it just now: #7309 |
Creating a bug report/issue
Required Information
bullseye
Additional Information (if applicable)
dietpi-ddns
Steps to reproduce
dietpi-ddns
/var/lib/dietpi/dietpi-ddns/update.sh
journalctl -xf
/var/lib/dietpi/dietpi-ddns/update.sh
Expected behaviour
Should see logger message.
Actual behaviour
There is no logger message.
Extra details
In generated script
/var/lib/dietpi/dietpi-ddns/update.sh
, remove redirect to/dev/null/
Feature Creep
While you're at it, I recommend changing the script
/var/lib/dietpi/dietpi-ddns/update.sh
logger
message about which domain will be updatedlogger
the CLI option-s
(print stderr), so manual calls to the script will print somethingThe text was updated successfully, but these errors were encountered: