Pagina 1 di 2
cartella /var/log in continua crescita
Inviato: giovedì 26 luglio 2018, 21:42
da pippo_79
Salve,
dopo che ho installato ubuntu 18.04 (stampante e software) mi esce un messaggio del sistema che non ho + spazio.
HD 50 GB
Swat: 4Gb kern
mi ritrovo con HD: 0.00 GB
Dentro la cartella /va/log ci sono dei file di log che crescono sempre (syslog e kern.log).
Ho visto che anche altri hanno avuto questo problema ma non sono riuscito a risolvere.
Risposta al comando: [dmesg]
[ 1163.545259] ACPI Error: Method parse/execution failed \_GPE._L6F, AE_NOT_FOUND (20170831/psparse-550)
[ 1163.545265] ACPI Exception: AE_NOT_FOUND, while evaluating GPE method [_L6F] (20170831/evgpe-646)
[ 1163.547161] ACPI Error: [PGRT] Namespace lookup failure, AE_NOT_FOUND (20170831/psargs-364)
[ 1163.547169] No Local Variables are initialized for Method [_L6F]
[ 1163.547170] No Arguments are initialized for method [_L6F]
[ 1163.547172] ACPI Error: Method parse/execution failed \_GPE._L6F, AE_NOT_FOUND (20170831/psparse-550)
[ 1163.547177] ACPI Exception: AE_NOT_FOUND, while evaluating GPE method [_L6F] (20170831/evgpe-646)
[ 1163.548879] ACPI Error: [PGRT] Namespace lookup failure, AE_NOT_FOUND (20170831/psargs-364)
[ 1163.548887] No Local Variables are initialized for Method [_L6F]
[ 1163.548889] No Arguments are initialized for method [_L6F]
... si ripete sempre
che posso fare x non far crescere + il file e per risolvere il problema ..?
grazie
Re: cartella /var/log in continua crescita
Inviato: giovedì 26 luglio 2018, 22:06
da UbuNuovo
Re: cartella /var/log in continua crescita
Inviato: giovedì 26 luglio 2018, 22:39
da pippo_79
Grazie,
con un comando penso di aver risolto ... controllo domani se non crescono più...
Ho pulito la: dmesg --clear
E adesso eseguento: dmesg mi da tutto vuoto ...
Grazie siete grandi e io alle prime armi con linux ...

Re: cartella /var/log in continua crescita
Inviato: giovedì 26 luglio 2018, 22:48
da DoctorStrange
Già che ci sei oulisci anche syslog e kern
e poi l9 interrompi dopo qualche momento con ctrl+c.
Stessa cosa con kern.log
Re: cartella /var/log in continua crescita
Inviato: giovedì 26 luglio 2018, 22:56
da pippo_79
Fatto, lavora sempre ... dopo un 10 secondi li ho interrotti ... tanto per sapere a che è servito ?
Re: cartella /var/log in continua crescita
Inviato: giovedì 26 luglio 2018, 23:05
da DoctorStrange
Ha azzerato il syslog. Te lo avevo detto che lo dovevi interrompere manualmente.
Fai lo stesso con kern.log .
Re: cartella /var/log in continua crescita
Inviato: giovedì 26 luglio 2018, 23:20
da pippo_79
fatto
grazie mille
Re: [Risolto] cartella /var/log in continua crescita
Inviato: venerdì 27 luglio 2018, 6:10
da pippo_79
Ho ricontrollato oggi, ma i 2 file continuano a crescere ... aiuto ...
Re: [Risolto] cartella /var/log in continua crescita
Inviato: venerdì 27 luglio 2018, 11:21
da Stealth
Hai infilato, nella stessa discussione, due problemi che non sono (se non capisco male io) neanche lontani parenti: ACPI e logrotate. Direi che, per risolvere, devi riparare il secondo. Fai qualche ricerca, è un tema piuttosto trattato
ciao
ps: e per il momento togli il [Risolto] dal primo titolo
Re: cartella /var/log in continua crescita
Inviato: venerdì 27 luglio 2018, 20:15
da pippo_79
Allora ho eseguito:
Codice: Seleziona tutto
[sudo su]
[echo "disable" > /sys/firmware/acpi/interrupts/gpe6F]
blocca il crescere dei file syslog e kern.log poi ho eseguito:
Codice: Seleziona tutto
[sudo su
cd /var/log
echo | tee messages.1 kern.log messages syslog syslog.1 user.log user.log.1]
e mi riporta i 2 file (di parecchi GB se passa molto tempo) a pochi kb.
Eseguendo [dmesg --clear] e poi [dmesg] esce:
Codice: Seleziona tutto
[ 1768.125517] [UFW BLOCK] IN=enp0s31f6 OUT= MAC=70:85:c2:04:27:72:e0:b9:e5:b2:6b:8e:08:00 SRC=54.202.224.159 DST=192.168.1.6 LEN=63 TOS=0x00 PREC=0x00 TTL=100 ID=7267 PROTO=UDP SPT=4633 DPT=4665 LEN=43
[ 1774.546086] [UFW BLOCK] IN=enp0s31f6 OUT= MAC=70:85:c2:04:27:72:e0:b9:e5:b2:6b:8e:08:00 SRC=77.191.221.155 DST=192.168.1.6 LEN=79 TOS=0x00 PREC=0x00 TTL=112 ID=36901 PROTO=UDP SPT=3021 DPT=4665 LEN=59
[ 1799.975579] [UFW BLOCK] IN=enp0s31f6 OUT= MAC=70:85:c2:04:27:72:e0:b9:e5:b2:6b:8e:08:00 SRC=166.48.48.72 DST=192.168.1.6 LEN=63 TOS=0x08 PREC=0x00 TTL=47 ID=56517 DF PROTO=UDP SPT=64280 DPT=4665 LEN=43
Ma dopo che riavvio Linux ricominciano a crescere e devo rifare ogni volta la stessa procedura....

Re: cartella /var/log in continua crescita
Inviato: sabato 28 luglio 2018, 8:54
da Stealth
Quelle righe che hai postato sono relative al firewall e dubito che abbiano a che fare col tuo problema. Su cui comunque io non so aiutarti ma, secondo me, l'unico modo che hai mentre combatti (forse inutilmente, è famigerato) con acpi perchè la smetta, è far funzionare logrotate, oppure avviarlo manualmente con cron ogni X minuti/ore per evitare la saturazione.
Il comando dovrebbe essere
dove l'opzione -f forza la rotazione di tutti i files, anche se non raggiungono i criteri. Se cerchi logrotate con google trovi molte risposte, vedi te
ciao
Re: cartella /var/log in continua crescita
Inviato: sabato 28 luglio 2018, 18:34
da pippo_79
Ho provato il comando, ma nulla ... i file crescono sempre, devo dare sempre:
[echo "disable" > /sys/firmware/acpi/interrupts/gpe6F]
per bloccare la crescita ...

Re: cartella /var/log in continua crescita
Inviato: sabato 4 agosto 2018, 18:02
da pippo_79
up ...
Re: cartella /var/log in continua crescita
Inviato: sabato 4 agosto 2018, 18:59
da DoctorStrange
Io personalmente non sono capace di indagare sulle cause del mancato funzionamento di logrotate e, per questo lascio la parola a maggiori intenditori, oppure documentati su internet.
Comunque dalle letture dei tuoi log, sembra che tu abbia qualche anomalia con il firewall, che traccia log atipici.
Prova a postare l'esito del comando:
E vediamo se hai impostata qualche regola strana.
Re: cartella /var/log in continua crescita
Inviato: sabato 4 agosto 2018, 19:07
da Filoteo
@pippo_79 hai aperto delle porte sul router (port forwarding/port mapping/virtual server) per qualche software di peer to peer tipo aMule? Output di questo?
Re: cartella /var/log in continua crescita
Inviato: sabato 4 agosto 2018, 19:13
da DoctorStrange
ufw è solo un interfaccia grafica basata su iptables. l'output verboso di iptables è più dettagliato di ufw.
Re: cartella /var/log in continua crescita
Inviato: sabato 4 agosto 2018, 19:26
da pippo_79
Codice: Seleziona tutto
Chain INPUT (policy DROP 103 packets, 3826 bytes)
pkts bytes target prot opt in out source destination
443K 524M ufw-before-logging-input all -- any any anywhere anywhere
443K 524M ufw-before-input all -- any any anywhere anywhere
254 27551 ufw-after-input all -- any any anywhere anywhere
103 3826 ufw-after-logging-input all -- any any anywhere anywhere
103 3826 ufw-reject-input all -- any any anywhere anywhere
103 3826 ufw-track-input all -- any any anywhere anywhere
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ufw-before-logging-forward all -- any any anywhere anywhere
0 0 ufw-before-forward all -- any any anywhere anywhere
0 0 ufw-after-forward all -- any any anywhere anywhere
0 0 ufw-after-logging-forward all -- any any anywhere anywhere
0 0 ufw-reject-forward all -- any any anywhere anywhere
0 0 ufw-track-forward all -- any any anywhere anywhere
Chain OUTPUT (policy ACCEPT 53 packets, 5556 bytes)
pkts bytes target prot opt in out source destination
209K 26M ufw-before-logging-output all -- any any anywhere anywhere
209K 26M ufw-before-output all -- any any anywhere anywhere
11030 1876K ufw-after-output all -- any any anywhere anywhere
11030 1876K ufw-after-logging-output all -- any any anywhere anywhere
11030 1876K ufw-reject-output all -- any any anywhere anywhere
11030 1876K ufw-track-output all -- any any anywhere anywhere
Chain ufw-after-forward (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-after-input (1 references)
pkts bytes target prot opt in out source destination
84 6984 ufw-skip-to-policy-input udp -- any any anywhere anywhere udp dpt:netbios-ns
57 13352 ufw-skip-to-policy-input udp -- any any anywhere anywhere udp dpt:netbios-dgm
0 0 ufw-skip-to-policy-input tcp -- any any anywhere anywhere tcp dpt:netbios-ssn
0 0 ufw-skip-to-policy-input tcp -- any any anywhere anywhere tcp dpt:microsoft-ds
10 3389 ufw-skip-to-policy-input udp -- any any anywhere anywhere udp dpt:bootps
0 0 ufw-skip-to-policy-input udp -- any any anywhere anywhere udp dpt:bootpc
0 0 ufw-skip-to-policy-input all -- any any anywhere anywhere ADDRTYPE match dst-type BROADCAST
Chain ufw-after-logging-forward (1 references)
pkts bytes target prot opt in out source destination
0 0 LOG all -- any any anywhere anywhere limit: avg 3/min burst 10 LOG level warning prefix "[UFW BLOCK] "
Chain ufw-after-logging-input (1 references)
pkts bytes target prot opt in out source destination
103 3826 LOG all -- any any anywhere anywhere limit: avg 3/min burst 10 LOG level warning prefix "[UFW BLOCK] "
Chain ufw-after-logging-output (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-after-output (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-before-forward (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- any any anywhere anywhere ctstate RELATED,ESTABLISHED
0 0 ACCEPT icmp -- any any anywhere anywhere icmp destination-unreachable
0 0 ACCEPT icmp -- any any anywhere anywhere icmp source-quench
0 0 ACCEPT icmp -- any any anywhere anywhere icmp time-exceeded
0 0 ACCEPT icmp -- any any anywhere anywhere icmp parameter-problem
0 0 ACCEPT icmp -- any any anywhere anywhere icmp echo-request
0 0 ufw-user-forward all -- any any anywhere anywhere
Chain ufw-before-input (1 references)
pkts bytes target prot opt in out source destination
20431 1950K ACCEPT all -- lo any anywhere anywhere
422K 522M ACCEPT all -- any any anywhere anywhere ctstate RELATED,ESTABLISHED
20 800 ufw-logging-deny all -- any any anywhere anywhere ctstate INVALID
20 800 DROP all -- any any anywhere anywhere ctstate INVALID
0 0 ACCEPT icmp -- any any anywhere anywhere icmp destination-unreachable
0 0 ACCEPT icmp -- any any anywhere anywhere icmp source-quench
0 0 ACCEPT icmp -- any any anywhere anywhere icmp time-exceeded
0 0 ACCEPT icmp -- any any anywhere anywhere icmp parameter-problem
0 0 ACCEPT icmp -- any any anywhere anywhere icmp echo-request
0 0 ACCEPT udp -- any any anywhere anywhere udp spt:bootps dpt:bootpc
499 53145 ufw-not-local all -- any any anywhere anywhere
245 25594 ACCEPT udp -- any any anywhere 224.0.0.251 udp dpt:mdns
0 0 ACCEPT udp -- any any anywhere 239.255.255.250 udp dpt:1900
254 27551 ufw-user-input all -- any any anywhere anywhere
Chain ufw-before-logging-forward (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-before-logging-input (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-before-logging-output (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-before-output (1 references)
pkts bytes target prot opt in out source destination
20433 1950K ACCEPT all -- any lo anywhere anywhere
178K 22M ACCEPT all -- any any anywhere anywhere ctstate RELATED,ESTABLISHED
11030 1876K ufw-user-output all -- any any anywhere anywhere
Chain ufw-logging-allow (0 references)
pkts bytes target prot opt in out source destination
0 0 LOG all -- any any anywhere anywhere limit: avg 3/min burst 10 LOG level warning prefix "[UFW ALLOW] "
Chain ufw-logging-deny (2 references)
pkts bytes target prot opt in out source destination
20 800 RETURN all -- any any anywhere anywhere ctstate INVALID limit: avg 3/min burst 10
0 0 LOG all -- any any anywhere anywhere limit: avg 3/min burst 10 LOG level warning prefix "[UFW BLOCK] "
Chain ufw-not-local (1 references)
pkts bytes target prot opt in out source destination
5 298 RETURN all -- any any anywhere anywhere ADDRTYPE match dst-type LOCAL
343 29122 RETURN all -- any any anywhere anywhere ADDRTYPE match dst-type MULTICAST
151 23725 RETURN all -- any any anywhere anywhere ADDRTYPE match dst-type BROADCAST
0 0 ufw-logging-deny all -- any any anywhere anywhere limit: avg 3/min burst 10
0 0 DROP all -- any any anywhere anywhere
Chain ufw-reject-forward (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-reject-input (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-reject-output (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-skip-to-policy-forward (0 references)
pkts bytes target prot opt in out source destination
0 0 DROP all -- any any anywhere anywhere
Chain ufw-skip-to-policy-input (7 references)
pkts bytes target prot opt in out source destination
151 23725 DROP all -- any any anywhere anywhere
Chain ufw-skip-to-policy-output (0 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- any any anywhere anywhere
Chain ufw-track-forward (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-track-input (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-track-output (1 references)
pkts bytes target prot opt in out source destination
5188 311K ACCEPT tcp -- any any anywhere anywhere ctstate NEW
5789 1559K ACCEPT udp -- any any anywhere anywhere ctstate NEW
Chain ufw-user-forward (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-user-input (1 references)
pkts bytes target prot opt in out source destination
Chain ufw-user-limit (0 references)
pkts bytes target prot opt in out source destination
0 0 LOG all -- any any anywhere anywhere limit: avg 3/min burst 5 LOG level warning prefix "[UFW LIMIT BLOCK] "
0 0 REJECT all -- any any anywhere anywhere reject-with icmp-port-unreachable
Chain ufw-user-limit-accept (0 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- any any anywhere anywhere
Chain ufw-user-logging-forward (0 references)
pkts bytes target prot opt in out source destination
Chain ufw-user-logging-input (0 references)
pkts bytes target prot opt in out source destination
Chain ufw-user-logging-output (0 references)
pkts bytes target prot opt in out source destination
Chain ufw-user-output (1 references)
pkts bytes target prot opt in out source destination
Re: cartella /var/log in continua crescita
Inviato: sabato 4 agosto 2018, 19:29
da pippo_79
Codice: Seleziona tutto
Stato: attivo
Registrazione: on (low)
Predefinito: deny (in entrata), allow (in uscita), disabled (instradato)
Nuovi profili: skip
Re: cartella /var/log in continua crescita
Inviato: sabato 4 agosto 2018, 19:46
da DoctorStrange
Tutte le connessioni in entrata vengono ignorate, ma loggate, ecco spiegato il motivo della crescita anomala del file di log. Lo hai modificato tu stesso il firewall? E, se si, perchè?
Re: cartella /var/log in continua crescita
Inviato: sabato 4 agosto 2018, 20:42
da Filoteo
Non hai risposto alla domanda sul port forwarding.