Seite 1 von 1

inadyn - Probleme mit Update/Speicherverbrauch

Verfasst: Di 21. Jun 2016, 20:20
von zzzZZ
Seit dem vorletzten Image habe ich Memory-Issues.
Nach vier bis fünf Tagen wird aufgrund Speichermangel neutrino gekillt:

Code: Alles auswählen

[399164.202353] Out of memory: Kill process 1305 (neutrino) score 930 or sacrifice child
[399164.202385] Killed process 1305 (neutrino) total-vm:623400kB, anon-rss:19456kB, file-rss:216824kB
ich habe inadyn in Verdacht denn nach einem killall inadyn ist wieder ordentlich Speicher vorhanden.
vorher (neutrino wurde schon beendet):

Code: Alles auswählen

[tank] /tmp $ cat /proc/meminfo
MemTotal:         247212 kB
MemFree:           32340 kB
Buffers:             276 kB
Cached:             9872 kB
SwapCached:            0 kB
Active:           120284 kB
Inactive:           8128 kB
Active(anon):     119012 kB
Inactive(anon):      900 kB
Active(file):       1272 kB
Inactive(file):     7228 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:        118272 kB
Mapped:           197120 kB
Shmem:              1648 kB
Slab:              10740 kB
SReclaimable:       3248 kB
SUnreclaim:         7492 kB
KernelStack:         936 kB
PageTables:         1240 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      123604 kB
Committed_AS:     198976 kB
VmallocTotal:    1548288 kB
VmallocUsed:      420584 kB
VmallocChunk:    1037756 kB
nach dem kill:

Code: Alles auswählen

[tank] /tmp $ killall inadyn
[tank] /tmp $ cat /proc/meminfo
MemTotal:         247212 kB
MemFree:          174556 kB
Buffers:             276 kB
Cached:            10272 kB
SwapCached:            0 kB
Active:            16292 kB
Inactive:           8472 kB
Active(anon):      14964 kB
Inactive(anon):      896 kB
Active(file):       1328 kB
Inactive(file):     7576 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:         14224 kB
Mapped:           196588 kB
Shmem:              1644 kB
Slab:               8644 kB
SReclaimable:       2776 kB
SUnreclaim:         5868 kB
KernelStack:         936 kB
PageTables:          924 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      123604 kB
Committed_AS:      46772 kB
VmallocTotal:    1548288 kB
VmallocUsed:      420584 kB
VmallocChunk:    1037756 kB
Außerdem wirft inadyn Zertifikatfehler, die ich zuvor noch nie gesehen habe:

Code: Alles auswählen

Jun 21 17:58:30 NI-FLASH-556D29-Tank user.notice syslog[1138]: Update forced for alias xyz.dd-dns.de, new IP# 4711
Jun 21 15:58:30 NI-FLASH-556D29-Tank user.err syslog[1138]: Certificate verification error:num=19:self signed certificate in certificate chain:depth=2:/C=BE/O=GlobalSign nv-sa/OU=Root CA/CN=GlobalSign Root CA
Ich werde inadyn mal gegen eine ältere Version tauschen.

Re: NI-Image 3.1 Betatest (Apollo)

Verfasst: Do 23. Jun 2016, 20:25
von gandharva
@zzzZZ

Check mal mit den aktuellen Images. Darin ist jetzt inadyn 2.0rc1. Hoffe damit ist es nun OK. Ansonsten müssen wir ggf. auf eine ältere Version zurück wenn das Ding leakt...

Re: NI-Image 3.1 Betatest (Apollo)

Verfasst: Do 23. Jun 2016, 22:07
von zzzZZ
Image ist drauf, inadyn läuft.
ich bekomme nach wie vor diese Meldung, welche es früher nicht gab:

Code: Alles auswählen

Jun 23 22:04:41 NI-FLASH-556D29-Tank user.err syslog[2308]: Certificate verification error:num=19:self signed certificate in certificate chain:depth=2:/C=BE/O=GlobalSign nv-sa/OU=Root CA/CN=GlobalSign Root CA
Memory werde ich beobachten.
Danke.

Edit: und alle zwei Minuten soll ein Update durchgeführt werden, obwohl sich die IP nicht geändert hat:

Code: Alles auswählen

Jun 23 22:08:43 NI-FLASH-556D29-Tank user.notice syslog[2308]: Update forced for alias xyz.dd-dns.de, new IP# 1234

Re: NI-Image 3.1 Betatest (Apollo)

Verfasst: Do 30. Jun 2016, 22:49
von palace
zzzZZ hat geschrieben:Edit: und alle zwei Minuten soll ein Update durchgeführt werden, obwohl sich die IP nicht geändert hat:

Code: Alles auswählen

Jun 23 22:08:43 NI-FLASH-556D29-Tank user.notice syslog[2308]: Update forced for alias xyz.dd-dns.de, new IP# 1234
Hey, hat sich was geändert? Ich hab bis jetzt das Update wegen "inadyn" bisher ausgelassen...

Re: NI-Image 3.1 Betatest (Apollo)

Verfasst: Fr 1. Jul 2016, 09:12
von annie
letztes Image meckert bei inadyn alte config an und ja ich habe die Neue aus var_init eingespielt !

Code: Alles auswählen

1 key: 0160 value 1, translate: 0160 -ok-
CVFD::ShowText: [Inadyn ein]
[ni_menu.cpp] executing service inadyn start
Jul  1 08:57:08 NI-FLASH-6B572D user.info service[6868]: running /etc/init.d/inadyn start
starte inadyn...
Jul  1 08:57:08 NI-FLASH-6B572D user.notice syslog[6873]: In-a-dyn version 2.0-rc1 -- Dynamic DNS update client.
Jul  1 08:57:08 NI-FLASH-6B572D user.err syslog[6873]: /etc/inadyn.conf:13: found deprecated option 'alias', please update configuration
CVFD::ShowText: [Inadyn ein]
Jul  1 08:57:08 NI-FLASH-6B572D user.err syslog[6873]: /etc/inadyn.conf:13: converting 'alias' to 'hostname'.
Jul  1 08:57:08 NI-FLASH-6B572D user.err syslog[6873]: /etc/inadyn.conf:21: found deprecated option 'alias', please update configuration
Jul  1 08:57:08 NI-FLASH-6B572D user.err syslog[6873]: /etc/inadyn.conf:30: found deprecated option 'alias', please update configuration
Jul  1 08:57:08 NI-FLASH-6B572D user.err syslog[6873]: /etc/inadyn.conf:38: found deprecated option 'alias', please update configuration
Jul  1 08:57:08 NI-FLASH-6B572D user.err syslog[6873]: /etc/inadyn.conf:45: found deprecated option 'alias', please update configuration
Jul  1 08:57:08 NI-FLASH-6B572D user.err syslog[6873]: /etc/inadyn.conf:52: found deprecated option 'alias', please update configuration
Jul  1 08:57:08 NI-FLASH-6B572D user.err syslog[6873]: /etc/inadyn.conf:59: found deprecated option 'alias', please update configuration
Jul  1 08:57:08 NI-FLASH-6B572D user.err syslog[6873]: /etc/inadyn.conf:71: found deprecated option 'alias', please update configuration
Jul  1 08:57:08 NI-FLASH-6B572D user.err syslog[6873]: /etc/inadyn.conf:71: converting 'alias' to 'hostname'.
Jul  1 08:57:08 NI-FLASH-6B572D user.err syslog[6873]: /etc/inadyn.conf:81: found deprecated option 'alias', please update configuration
Jul  1 08:57:08 NI-FLASH-6B572D user.err syslog[6873]: Cannot find an DDNS plugin for provider 'default@dynv6.org'
Jul  1 08:57:08 NI-FLASH-6B572D user.err syslog[6873]: Cannot find an DDNS plugin for provider 'default@ipv4.dynv6.org'
0 key: 0160 value 0, translate: 0160 -ok-

hab dann nur noch no-ip.com und dyndns.org drin gelassen, alias zu hostname geändert, dann wird upgedatet:

Code: Alles auswählen

starte inadyn...
Jul  1 09:03:07 NI-FLASH-6B572D user.notice syslog[8244]: In-a-dyn version 2.0-rc1 -- Dynamic DNS update client.
CVFD::ShowText: [Inadyn ein]
0 key: 0160 value 0, translate: 0160 -ok-
Jul  1 09:03:07 NI-FLASH-6B572D user.warn syslog[8244]: Failed resolving hostname my.example.com: Name or service not known
Jul  1 09:03:08 NI-FLASH-6B572D user.warn syslog[8244]: Failed resolving hostname other.example.org: Name or service not known
09:03:13.805    eitThread cache 50 complete: 263
09:03:13.811 eitThread: skipping to next filter 1 from 4 (timeouts -2)
09:03:16.046 eitThread: skipping to next filter 2 from 4 (timeouts 20)
Jul  1 09:03:16 NI-FLASH-6B572D user.notice syslog[8244]: Update forced for alias halleluja.serveftp.com, new IP# 137.201.141.231
Jul  1 09:03:16 NI-FLASH-6B572D user.notice syslog[8244]: Update forced for alias my.example.com, new IP# 137.201.141.231
Jul  1 09:03:16 NI-FLASH-6B572D user.notice syslog[8244]: Update forced for alias other.example.org, new IP# 137.201.141.231
Jul  1 09:03:17 NI-FLASH-6B572D user.notice syslog[8244]: Updating cache for halleluja.serveftp.com

nach 300 Sekunden wird wieder upgedatet, obwohl sich die IP nicht geändert hat !

Code: Alles auswählen

Jul  1 09:08:21 NI-FLASH-6B572D user.notice syslog[8244]: Update forced for alias halleluja.serveftp.com, new IP# 137.201.141.231
Jul  1 09:08:21 NI-FLASH-6B572D user.notice syslog[8244]: Update forced for alias my.example.com, new IP# 137.201.141.231
Jul  1 09:08:21 NI-FLASH-6B572D user.notice syslog[8244]: Update forced for alias other.example.org, new IP# 137.201.141.231
Jul  1 09:08:21 NI-FLASH-6B572D user.notice syslog[8244]: Updating cache for halleluja.serveftp.com

NI-Image 3.1 Betatest (Apollo)

Verfasst: Fr 1. Jul 2016, 10:25
von südschwede
Was habt ihr denn bei forced_update_period eingetragen (300) , dann wird nach 300 Sekunden die IP-Adresse aktualisiert, auch wenn diese sich nicht geändert hat, eventuell zum Testen den Wert einfach mal hochsetzen.
http://wiki.euserv.de/index.php/Manual_ ... ion_INADYN

Re: NI-Image 3.1 Betatest (Apollo)

Verfasst: Fr 1. Jul 2016, 10:46
von annie
Fazit zu inadyn:
die inadyn.conf muß aktualisiert werden: alias -> hostname
bei no-ip.com sollte man einen Eintrag für checkip hinzufügen,
ohne wird ständig updatet.

so sieht meine inadyn.config aus für Anbieter no-ip.com:

Code: Alles auswählen

# Basic configuration file for inadyn
#
# /var/etc/inadyn.conf
period         = 300
cache-dir      = /tmp/inadyn
secure-ssl     = false

# Secondary account, on another DDNS provider
# also updated on IP change
provider default@no-ip.com {
    ssl            = false
    checkip-server = checkip.dyndns.org
    username       = account
    password       = secret
    hostname       = example.no-ip.com
}
checkip.dyndns.org ist vom Anbieter dyndns.org, geht damit,
no-ip.com hat wohl keine Adresse zum Checken der IP ?

Re: NI-Image 3.1 Betatest (Apollo)

Verfasst: Fr 1. Jul 2016, 11:20
von gandharva
Dieser Eintrag (secure-ssl) reicht:

Code: Alles auswählen

# /var/etc/inadyn.conf
period         = 300
cache-dir      = /tmp/inadyn
secure-ssl     = false
Der inadyn Dev hat vor kurzem " strict HTTPS validation" force enabled. Dadurch kommt es bei vielen Anbietern zu einem Abbruch des Updateversuchs mit anschliessender Endlosschleife.
https://github.com/troglobit/inadyn/com ... 1585b431d0
Achtung, der Eintrag "secure-ssl = false" unterdrückt nicht die Zertifikatswarnungen im Log. Das Update wird damit nun aber ausgeführt!

Weiters kann man "alias" durch "hostname" ersetzen, da der Eintrag "alias" deprecated ist. Hier erfolgt allerdings nur eine Warnung. An der Funktionalität ändert sich nichts.

Im nächsten Image befindet sich eine aktualisierte inadyn.conf mit neuen Beispielconfigs und "secure-ssl = false" als Defaulteintrag. Prüft deshalb bitte eure inadyn Configs, ob ggf. Änderungen nötig sind.