-
-
Notifications
You must be signed in to change notification settings - Fork 2k
bug fix: remove exit 0 from update-check.sh
#3659
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
Conversation
since release 13.0.0 commit I'am food by update mail. I think when swript is exit supervisord launch it again
|
Hmmm.. Looking at the Supervisor configuration docker-mailserver/target/supervisor/conf.d/supervisor-app.conf Lines 153 to 159 in 68e5c34
I do not think the check will run again.. The documentation for Supervisor says the default is @vincentDcmps could you please elaborate a bit on the behavior that you are seeing exactly?:) |
exit 0 from update-check.sh
|
Something else is odd though: @casperklein @polarathene please have a look: https://github.com/docker-mailserver/docker-mailserver/pkgs/container/docker-mailserver Why was |
|
edge is not update because cron is executed only on fifth day of week .github/workflows/scheduled_builds.yml name: 'Deploy :edge on Schedule'
on:
workflow_dispatch:
schedule:
- cron: 0 0 * * 5
I'am agree with you if I read supervisord docs my issue doesn't have to happen |
|
I think the actual issue is here: docker-mailserver/.github/workflows/generic_publish.yml Lines 24 to 35 in 2c60229
My suggestions: - type=edge,branch=master
+ type=edgeI guess the issue is that in the past, I have immediately merged other PRs that were queued via But to me, the question remains: why didn't the default push (by merging the PR) trigger the action to build UPDATE: Ah, now I get it: docker-mailserver/.github/workflows/default_on_push.yml Lines 3 to 13 in 2c60229
The push on |
|
Superseeded by #3662 @vincentDcmps Thank you for making us aware of this:) I have manually started a run on |
|
Below is for reference, no need to read and respond 👍
Shouldn't matter, they would always differ in digest if this is respected: Line 299 in 68a43eb
Line 330 in 68a43eb
But we've been bundling the docker-mailserver/.github/workflows/generic_publish.yml Lines 69 to 80 in 68a43eb
They only differ after your recent change to trigger builds for Regarding
For reference, no that would be bad. The logic here is that either the workflow was triggered by:
Your suggestion would publish
Multiple semver tags are useful for services like
To be fair, it's not a change relevant to
|
|
Below is probably not important to you anymore, but if you're interested in better identifying / understanding the actual cause of the problem, give it a read.
May be something related to your configuration, you've not provided much context. They all just check their internal copy of docker-mailserver/target/scripts/update-check.sh Lines 40 to 45 in b663e10
For example I had a very simple container running, and it received the following log when the update was checked: $ docker run --rm -it --hostname mail.example.test --name dms mailserver/docker-mailserver
# Update check log:
$ docker exec dms cat /var/log/supervisor/update-check.log
[ INF ] 2023-11-25 04:51:31 No update available
[ INF ] 2023-11-26 13:51:04 Update available [ 12.1.0 --> 13.0.0 ]
# Default internal alias for local user accounts that belong to DMS hostname (`@mail.example.test`)
# Mail sent to root locally will be redirected to `[email protected]`
$ docker exec dms cat /etc/aliases
root: [email protected]Full log for update-check script at 1.51PM Nov 26th``` Nov 26 13:51:04 mail postfix/pickup[123308]: F16DF483E: uid=0 from= Nov 26 13:51:04 mail postfix/cleanup[130419]: F16DF483E: message-id=<[email protected]> Nov 26 13:51:04 mail opendkim[439]: F16DF483E: localhost [127.0.0.1] not internal Nov 26 13:51:04 mail opendkim[439]: F16DF483E: not authenticated Nov 26 13:51:04 mail opendkim[439]: F16DF483E: no signature data Nov 26 13:51:04 mail postfix/qmgr[570]: F16DF483E: from=, size=731, nrcpt=1 (queue active) Nov 26 13:51:05 mail dovecot: master: Warning: Time moved forwards by 843.682211 seconds - adjusting timeouts. Nov 26 13:51:05 mail dovecot: lmtp(130422): Connect from local Nov 26 13:51:05 mail dovecot: auth: passwd-file([email protected]): unknown user Nov 26 13:51:05 mail postfix/lmtp[130421]: F16DF483E: to=, relay=mail.example.test[/var/run/dovecot/lmtp], delay=0.06, delays=0.02/0.01/0.02/0.01, dsn=5.1.1, status=bounced (host mail.example.test[/var/run/dovecot/lmtp] said: 550 5.1.1 User doesn't exist: [email protected] (in reply to RCPT TO command)) Nov 26 13:51:05 mail dovecot: lmtp(130422): Disconnect from local: Logged out (state=READY) Nov 26 13:51:05 mail postfix/cleanup[130419]: 0B214484C: message-id=<[email protected]> Nov 26 13:51:05 mail postfix/bounce[130424]: F16DF483E: sender non-delivery notification: 0B214484C Nov 26 13:51:05 mail postfix/qmgr[570]: 0B214484C: from=<>, size=2864, nrcpt=1 (queue active) Nov 26 13:51:05 mail postfix/qmgr[570]: F16DF483E: removed Nov 26 13:51:05 mail postfix/cleanup[130419]: 0C62B483E: message-id=<[email protected]> Nov 26 13:51:05 mail postfix/local[130425]: 0B214484C: to=, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (forwarded as 0C62B483E) Nov 26 13:51:05 mail postfix/qmgr[570]: 0C62B483E: from=<>, size=2998, nrcpt=1 (queue active) Nov 26 13:51:05 mail postfix/qmgr[570]: 0B214484C: removed Nov 26 13:51:05 mail dovecot: lmtp(130422): Connect from local Nov 26 13:51:05 mail dovecot: auth: passwd-file([email protected]): unknown user Nov 26 13:51:05 mail postfix/lmtp[130421]: 0C62B483E: to=, orig_to=, relay=mail.example.test[/var/run/dovecot/lmtp], delay=0, delays=0/0/0/0, dsn=5.1.1, status=bounced (host mail.example.test[/var/run/dovecot/lmtp] said: 550 5.1.1 User doesn't exist: [email protected] (in reply to RCPT TO command)) Nov 26 13:51:05 mail dovecot: lmtp(130422): Disconnect from local: Logged out (state=READY) Nov 26 13:51:05 mail postfix/qmgr[570]: 0C62B483E: removed ```In the above logs, the notification mail (ID However that is not a valid user to deliver mail to in this case so it bounces. In this case, the bounce is sent back to the sender ( If your It might just be that the update notification was sent to TL;DR
|
|
The first update check is done on container start and then repeated infinite with the configured interval. If an update is found, the update-check exits (and won't be started by supervisor again). Your PR would effectively introduce notification on each interval when an update is found. |
Description
since release 13.0.0 commit my mailbox is flood by update mail. I think when script is exit supervisord launch it again
Type of change
Checklist:
docs/)CHANGELOG.md