Bug 1808989 - proftpd duplicate records in logs when service runing via systemd
Summary: proftpd duplicate records in logs when service runing via systemd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: proftpd
Version: epel8
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Paul Howarth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-02 08:24 UTC by pa
Modified: 2020-05-29 02:56 UTC (History)
4 users (show)

Fixed In Version: proftpd-1.3.6c-3.el8
Clone Of:
Environment:
Last Closed: 2020-05-29 02:56:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github proftpd proftpd issues 1002 0 None closed systemd and logging 2020-05-28 11:53:54 UTC
Github proftpd proftpd pull 1009 0 None closed Bug #4185: Create directive for tuning the presence/absence of fields… 2020-05-28 11:53:54 UTC

Description pa 2020-03-02 08:24:07 UTC
there is some weird duplicity in logs when you run proftpd as systemd service, date, time, hostname, service[pid], date is in different format


Name         : proftpd
Version      : 1.3.6b
Release      : 3.el8
Architecture : x86_64


systemctl start proftpd.service
journalctl -u proftpd.service -l


Actual results:
Mar 02 08:55:28 hostname proftpd[2839]: 2020-03-02 08:55:28,055 hostname proftpd[2839]: processing configuration directory '/etc/proftpd/conf.d'
Mar 02 08:55:28 hostname proftpd[2839]: 2020-03-02 08:55:28,064 hostname proftpd[2839] 93.185.100.237: ProFTPD 1.3.6b (maint) (built Tue Feb 4 2020 20:24:04 UTC) standalone mode STARTUP

Expected results:
Mar 02 08:55:28 hostname proftpd[2839]: processing configuration directory '/etc/proftpd/conf.d'
Mar 02 08:55:28 hostname proftpd[2839]: 93.185.100.237: ProFTPD 1.3.6b (maint) (built Tue Feb 4 2020 20:24:04 UTC) standalone mode STARTUP

Additional info:
even SystemLog doesn't work, you are not able to redirect output to files, when you run proftpd from command line it's all working

Comment 1 Paul Howarth 2020-04-28 19:50:39 UTC
I have raised this upstream:
https://github.com/proftpd/proftpd/issues/1002

Comment 2 Paul Howarth 2020-05-04 13:36:04 UTC
Upstream is working this here if you would like to offer your opinion:
https://github.com/proftpd/proftpd/pull/1009

There are currently options to drop the duplicate hostname and timestamp from the logs, but the pid that proftpd logs is that of the sub-process serving a particular client, whilst systemd logs the pid of the master process, which is not the same. So the logging would look like this:

Mar 02 08:55:28 hostname proftpd[2839]: proftpd[2839]: processing configuration directory '/etc/proftpd/conf.d'
Mar 02 08:55:28 hostname proftpd[2839]: proftpd[2839]: 93.185.100.237: ProFTPD 1.3.6b (maint) (built Tue Feb 4 2020 20:24:04 UTC) standalone mode STARTUP
May 04 14:05:17 hostname proftpd[2839]: proftpd[9999] 93.185.100.237 (client.example.com): FTP session opened.
May 04 14:05:24 hostname proftpd[2839]: proftpd[9999] 93.185.100.237 (client.example.com): USER anybody: Login successful.
May 04 14:05:28 hostname proftpd[2839]: proftpd[9999] 93.185.100.237 (client.example.com): FTP session closed.

Comment 3 Fedora Update System 2020-05-11 07:46:22 UTC
FEDORA-EPEL-2020-2b2407abce has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-2b2407abce

Comment 4 Fedora Update System 2020-05-12 07:55:49 UTC
FEDORA-EPEL-2020-2b2407abce has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-2b2407abce

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Paul Howarth 2020-05-18 11:08:04 UTC
Please note: I will not be pushing this update to stable unless I get some feedback on it.

Comment 6 pa 2020-05-28 12:46:00 UTC
Hello, sorry for my late reponse, already gave up ... ;-)

this patch works, fail2ban default filter proftpd.conf works with it perfectly

thanks for your help

--
Pavel

Comment 7 Fedora Update System 2020-05-29 02:56:14 UTC
FEDORA-EPEL-2020-2b2407abce has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.