[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: LXC, logrotate & systemd



On 10/31/2018 08:32 AM, Marco Bertorello wrote:

Il giorno mar 30 ott 2018, 12:45 Marco Bertorello <marco.bertorello@gmail.com <mailto:marco.bertorello@gmail.com>> ha scritto:

    Buongiorno a tutta la lista,

    ho un problema su una installazione di debian sotto forma di container
    (l'host è proxmox ve).

    Tutti i giorni, puntuale alle 7 e 04, ricevo una mail da Cron che
    lamenta:

    /etc/cron.daily/logrotate:
    Failed to kill unit rsyslog.service: Input/output error
    error: error running non-shared postrotate script for /var/log/syslog
    of '/var/log/syslog
    '
    run-parts: /etc/cron.daily/logrotate exited with return code 1

    Cercando in rete non ho trovato granchè di specifico, avete idee su
    come indagare?


Aggiungo: stessa cosa mi succede su un altro lxc, questa volta Ubuntu, sullo stesso cluster ma diverso nodo.

Inoltre se faccio girare lo script a mano, non da errori.

Credo sia relativo a questo:

https://github.com/rsyslog/rsyslog-pkg-ubuntu/issues/74

(La cosa strana è che nel bug report la cosa succede per Ubuntu ma Debian ha lo script corretto, quindi forse il tuo problema è solo simile...)

Ci incolli qui /etc/init.d/rsyslog e la unit di systemd?

federico

--
Federico Di Gregorio                         federico.digregorio@dndg.it
DNDG srl                                                  http://dndg.it
 To prepare such test data, I get into the meaniest, nastiest frame of
  mind that I can manage, and I write the cruelest code I can think of;
  then I turn around and I embed that in even nastier constructions
  that are almost obscene.                                  -- D.E.Knuth


Reply to: