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
[POTENTIAL BUG] sed errors in logs after ctrl+c and then up with docker-compose #2241
Comments
This is not the same as |
I don't want a new container though. Is that a requirement? |
I am wondering about these errors. Are you sure, you are testing with the latest master branch? This has been fixed with: #2233 |
No, just best practice. There are probably some more issues when restarting the container, that should be addressed. |
Regarding your initial sed errors. They can be ignored. They are just telling you, the files got already altered on "first" container start. |
I find sed: can't read /etc/cron.daily/spamassassin: No such file or directory
[ TASKLOG ] Post-configuration checks
rm: cannot remove '/etc/logrotate.d/clamav-*': No such file or directory
rm: cannot remove '/etc/cron.d/clamav-freshclam': No such file or directory
[ ERROR ] Failed to remove ClamAV configuration
rm: cannot remove '/etc/cron.daily/spamassassin': No such file or directory
[ ERROR ] Failed to remove SpamAssassin configuration especially troubling as we already saw this in a previous issue... Why are these files removed, and where? |
Regarding the forms @NorseGaud, they're still in beta and sometimes not rendered correctly. If you visit https://github.com/docker-mailserver/docker-mailserver/blob/master/.github/ISSUE_TEMPLATE/bug_report.yml you can see that actually as is well with out forms - when GitHub parses them, sometimes the Markdown is malformed. |
This seems like a problem if I'm scanning the logs for failures in my monitoring tools (which looks for "error" and other keywords typical to failures). You're right though, the sed error doesn't seem, thus far, to have broken anything. Just seems like doing a check before executing the sed to see if it even needs to run would be better for log monitoring and cleanliness. |
I'm curious, where do these |
These all are no new errors. They have been there for ages. Due to the use of sedfile, now this errors are just made visible 😉
docker-mailserver/target/scripts/startup/setup-stack.sh Lines 812 to 818 in cd7677b
NOT
@NorseGaud I am curious, why do you prefer to keep the used container, instead of creating a new one? |
Miscellaneous first checks
Affected Component(s)
Unsure
What happened and when does this occur?
Using master branch (pending 10.2.0) #2217
On the first run of the DMS, logs look fine. I run with
docker-compose up --build
and become attached to the logs which I then watch for problems as I test the basic sending and receiving.Things are fine.
Then, I ctrl+c to stop the server so I can start it again detatched:
But, watching the logs, I see sed errors:
How do we replicate the issue?
DMS version
master branch (10.2.0)
How much RAM is available to DMS explicitly?
less than 4GB
How many CPU cores are available?
less than 4 Cores
Is DMS running in a virtualized environment?
... a virtual private server (VPS) (with virtual CPU cores)
What operating system is DMS running on?
Linux
What instruction set architecture is DMS running on?
x86_64 / AMD64
I/O - Persistent memory
Docker volume using EFS mount
What container orchestration tool are you using?
Docker Compose
Docker version
N/A
Docker Compose version
No response
The output of
uname -a
Linux ip-172-31-3-247.us-west-2.compute.internal 4.14.232-176.381.amzn2.x86_64 #1 SMP Wed May 19 00:31:54 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Important environment variables
Relevant log output
No response
Other relevant information
No response
What level of experience do you have with Docker and mail servers?
No response
Code of conduct
Improvements to this form?
No response
The text was updated successfully, but these errors were encountered: