domainaware / parsedmarc

A Python package and CLI for parsing aggregate and forensic DMARC reports
https://domainaware.github.io/parsedmarc/
Apache License 2.0
981 stars 212 forks source link

[Errno 16] Device or resource busy #378

Open LukaszSellmann opened 1 year ago

LukaszSellmann commented 1 year ago

System fresh installation of Ubuntu 20.04 LTS parsedmarc Version: 8.3.2 Python 3.8.10

What could cause this error ? ERROR:cli.py:121:Syslog Error: [Errno 16] Device or resource busy

This error occurs after couple of hours after service parsedmarc.service has been started. After restarting service it keeps working for another couple hours :)

Here are the service systemctl file:

[Unit]
Description=parsedmarc mailbox watcher
Documentation=https://domainaware.github.io/parsedmarc/
Wants=network-online.target
After=network.target network-online.target elasticsearch.service

[Service]
ExecStart=/usr/local/bin/parsedmarc -c /etc/parsedmarc.ini 
User=parsedmarc
Group=parsedmarc
Restart=always
RestartSec=5m

[Install]
WantedBy=multi-user.target

and the parsedmarc.ini file:

[general]
# Save aggregate and forensic reports to Elasticsearch
save_aggregate = True
save_forensic = True

[imap]
# Log into the DMARC report email address and download data.
host = some.host.com
port = 993
ssl = True
user = someuser
password = somepassword

[mailbox]
watch = True
delete = false

[elasticsearch]
# Send data to Elastichsearch, which listens on port 9200.
hosts = 127.0.0.1:9200
ssl = False

While error starts occurring every email with dmarc raport is moved to Archive/Invalid mailbox

Any help to investigate this would be appreciated .

AnaelMobilia commented 1 year ago

Hello,

When reading the code, it looks like you have a syslog configuration on your config file ?

Bests regards