Fail2ban not run

77 views
Skip to first unread message

Bruno

unread,
Jun 22, 2020, 10:14:02 PM6/22/20
to ASTPP
systemctl start fail2ban.service

Job for fail2ban.service failed because the control process exited with error code.
See "systemctl status fail2ban.service" and "journalctl -xe" for details.







systemctl status fail2ban.service


● fail2ban.service - Fail2Ban Service
   Loaded: loaded (/lib/systemd/system/fail2ban.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2020-06-22 10:27:14 -03; 25s ago
     Docs: man:fail2ban(1)
  Process: 3646 ExecStart=/usr/bin/fail2ban-client -x start (code=exited, status=255)

jun 22 10:27:14 panel2 systemd[1]: fail2ban.service: Unit entered failed state.
jun 22 10:27:14 panel2 systemd[1]: fail2ban.service: Failed with result 'exit-code'.
jun 22 10:27:14 panel2 systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
jun 22 10:27:14 panel2 systemd[1]: Stopped Fail2Ban Service.
jun 22 10:27:14 panel2 systemd[1]: fail2ban.service: Start request repeated too quickly.
jun 22 10:27:14 panel2 systemd[1]: Failed to start Fail2Ban Service.
jun 22 10:27:14 panel2 systemd[1]: fail2ban.service: Unit entered failed state.
jun 22 10:27:14 panel2 systemd[1]: fail2ban.service: Failed with result 'exit-code'.




journalctl -xe

jun 22 10:28:01 panel2 systemd[1]: fail2ban.service: Unit entered failed state.
jun 22 10:28:01 panel2 systemd[1]: fail2ban.service: Failed with result 'exit-code'.
jun 22 10:28:01 panel2 CRON[3669]: pam_unix(cron:session): session opened for user root by (uid=0)
jun 22 10:28:01 panel2 CRON[3670]: (root) CMD (cd /opt/ASTPP/web_interface/astpp/cron/ && php cron.php crons)
jun 22 10:28:01 panel2 systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
jun 22 10:28:01 panel2 systemd[1]: Stopped Fail2Ban Service.
-- Subject: A unidade fail2ban.service concluiu o desligamento
-- Defined-By: systemd
--
-- A unidade fail2ban.service concluiu o desligamento.
jun 22 10:28:01 panel2 systemd[1]: fail2ban.service: Start request repeated too quickly.
jun 22 10:28:01 panel2 systemd[1]: Failed to start Fail2Ban Service.
-- Subject: A unidade fail2ban.service falhou
-- Defined-By: systemd
--
-- A unidade fail2ban.service falhou.
--
-- O resultado é failed.
jun 22 10:28:01 panel2 systemd[1]: fail2ban.service: Unit entered failed state.
jun 22 10:28:01 panel2 systemd[1]: fail2ban.service: Failed with result 'exit-code'.
jun 22 10:28:02 panel2 sendmail[3674]: 05MDS1Zd003674: from=root, size=331, class=0, nrcpts=1, msgid=<202006221328.05MDS1Zd003674@pan
jun 22 10:28:02 panel2 sm-mta[3675]: 05MDS24l003675: from=<root@xxxxxxxxxxxxr>, size=619, class=0, nrcpts=1, msgid=<202006221
jun 22 10:28:02 panel2 sendmail[3674]: 05MDS1Zd003674: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pr
jun 22 10:28:02 panel2 CRON[3669]: pam_unix(cron:session): session closed for user root
jun 22 10:28:02 panel2 sm-mta[3676]: 05MDS24l003675: to=xxxxxx, ctladdr=<root@xxxxxxxxxxxxx> (0/0), delay=00:00:00, xdelay=0
lines 2544-2579/2579 (END)

Jacob Alonso Maldonado

unread,
Jun 25, 2020, 8:01:18 AM6/25/20
to as...@googlegroups.com
Well you asking support of fail2ban not astpp.


--
=====================================================================
Documentation: https://docs.astppbilling.org/display/itplmars/ASTPP
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/911f472b-476b-4ade-a803-cc24773631a4o%40googlegroups.com.

Bruno

unread,
Jun 25, 2020, 9:14:59 AM6/25/20
to ASTPP

bug fixed

Em quinta-feira, 25 de junho de 2020 09:01:18 UTC-3, ASTPP escreveu:
Bem, você está pedindo o apoio do fail2ban não do astpp.


On Tue, 23 Jun 2020, 10:14 am Bruno, <bruno.he...@gmail.com> wrote:
systemctl start fail2ban.service

A tarefa do fail2ban.service falhou porque o processo de controle saiu com o código de erro.
Consulte "status do systemctl fail2ban.service" e "journalctl -xe" para obter detalhes.







status do systemctl fail2ban.service


● fail2ban.service - Serviço Fail2Ban
   Carregado: carregado (/ lib / systemd / system / fail2ban. Service; ativado; predefinição de fornecedor: ativado)
   Ativo: falhou (resultado: código de saída) desde segunda-feira, 2020-06-22 10:27:14 -03; 25s atrás
     Documentos: man: fail2ban (1)
  Processo: 3646 ExecStart = / usr / bin / fail2ban- client -x start (código = encerrado, status = 255)

22 de junho 10:27:14 panel2 systemd [1]: fail2ban.service: A unidade entrou no estado de falha.
22 de junho 10:27:14 panel2 systemd [1]: fail2ban.service: falha com o resultado 'código de saída'.
22 de junho 10:27:14 panel2 systemd [1]: fail2ban.service: Tempo de espera do serviço terminado, agendamento da reinicialização.
22 de junho 10:27:14 panel2 systemd [1]: Serviço Fail2Ban parado.
22 de junho 10:27:14 panel2 systemd [1]: fail2ban.service: solicitação iniciada repetida muito rapidamente.
22 de junho 10:27:14 panel2 systemd [1]: falha ao iniciar o serviço Fail2Ban.
22 de junho 10:27:14 panel2 systemd [1]: fail2ban.service: A unidade entrou no estado de falha.
22 de junho 10:27:14 panel2 systemd [1]: fail2ban.service: falha com o resultado 'código de saída'.




journalctl -car

jun 22 10:28:01 panel2 systemd [1]: fail2ban.service: A unidade entrou no estado de falha.
jun 22 10:28:01 panel2 systemd [1]: fail2ban.service: falha com o resultado 'código de saída'.
jun 22 10:28:01 panel2 CRON [3669]: pam_unix (cron: session): sessão aberta para raiz do usuário por (uid = 0)
22 de junho 10:28:01 panel2 CRON [3670]: CMD (raiz) (cd / opt / ASTPP / web_interface / astpp / cron / && php cron.php crons)
jun 22 10:28:01 panel2 systemd [1]: fail2ban.service: Tempo de espera do serviço terminado, agendando a reinicialização.
jun 22 10:28:01 panel2 systemd [1]: Serviço Fail2Ban parado.
-- Subject: A unidade fail2ban.service concluiu o desligamento
- Definido por: systemd
--
-- A unidade fail2ban.service concluiu o desligamento.
jun 22 10:28:01 panel2 systemd [1]: fail2ban.service: Inicia a solicitação repetida muito rapidamente.
jun 22 10:28:01 panel2 systemd [1]: falha ao iniciar o serviço Fail2Ban.
-- Subject: A unidade fail2ban.service falhou
- Definido por: systemd
--
-- A unidade fail2ban.service falhou.
--
-- O resultado é failed.
jun 22 10:28:01 panel2 systemd [1]: fail2ban.service: A unidade entrou no estado de falha.
jun 22 10:28:01 panel2 systemd [1]: fail2ban.service: falha com o resultado 'código de saída'.
22 de junho 10:28:02 panel2 sendmail [3674]: 05MDS1Zd003674: de = raiz, tamanho = 331, classe = 0, nrcpts = 1, msgid = <202006221328. 05MDS1Zd003674 @ pan
jun 22 10:28:02 panel2 sm-mta [3675]: 05MDS24l003675: from = <raiz @ xxxxxxxxxxxxrr>, tamanho = 619, classe = 0, nrcpts = 1, msgid = <202006221
22 de junho 10:28:02 panel2 sendmail [3674]: 05MDS1Zd003674: para = raiz, ctladdr = raiz (0/0), atraso = 00: 00: 01, xdelay = 00: 00: 00, mailer = relay, pr
22 jun 10:28:02 panel2 CRON [3669]: pam_unix (cron: session): sessão fechada para o usuário root
22 de junho 10:28:02 panel2 sm-mta [3676]: 05MDS24l003675: to = xxxxxx, ctladdr = <root @ xxxxxxxxxxxxx> (0/0), atraso = 00: 00: 00, xdelay = 0;
linhas 2544-2579 / 2579 (END)

-
============================== ================== ============ =========
Documentação: https://docs.astppbilling.org/ display / itplmars / ASTPP
Entre em contato em sa ... @ inextrix.com para suporte comercial.
---
Você recebeu esta mensagem porque se inscreveu no grupo "ASTPP" dos Grupos do Google.
Para cancelar a inscrição neste grupo e parar de receber emails dele, envie um email para ... @ googlegroups.com .
Para visualizar esta discussão na web, visite https://groups.google.com/d/ msgid / astpp / 911f472b-476b- 4ade-a803-cc24773631a4o% 40googlegroups.com .

Francisco Lima

unread,
Jun 27, 2020, 5:05:51 PM6/27/20
to ASTPP
This is because in this installation script Fail2Ban comes up with a configuration error.

Remove it and reinstall with the following commands:

apt-get remove 
fail2ban apt-get autoremove 
rm -rf /etc/fail2ban/ 
apt-get install fail2ban  

I had the same problem and fixed it this way, I hope it helps.
Reply all
Reply to author
Forward
0 new messages