Kopano4s 0.8.8

Status
Für weitere Antworten geschlossen.

Dani Düsentrieb

Benutzer
Mitglied seit
03. Jan 2008
Beiträge
216
Punkte für Reaktionen
3
Punkte
18
Hallo Zusammen,

ich habe schon seit einiger Zeit Kopano4s im Einsatz und das lief bisher immer Problem los. Seit jetzt nun mehr 3 Tagen bekomme ich immer in den Benachrichtigungen angezeigt: Systemereignis: Docker-Container: kopano4s wurde unerwartet gestoppt. Im Container Protokoll ist dann folgendes zu finden:

Code:
	Starting Kopano core ...
	Starting server: kopano-server.
	Starting spooler: kopano-spooler.
	Starting LMTP dagent: kopano-dagent.
	Starting search: kopano-search failed!
	Starting enhanced syslogd: rsyslogd.
	Starting Kopano mail ...
	Starting Postfix Mail Transport Agent: postfix.
	LibClamAV Warning: **************************************************
	LibClamAV Warning: ***  The virus database is older than 7 days!  ***
	LibClamAV Warning: ***   Please update it as soon as possible.    ***
	LibClamAV Warning: **************************************************
	Starting ClamAV daemon: clamd .
	Starting amavisd: amavisd-new.
	Removing stale PID file /var/run/fetchmail/fetchmail.pid. ... (warning).
	Starting mail retriever agent: fetchmail.
	Starting Kopano web ...
	Starting nginx: nginx.
	staying alive while kopano service is running..
	exiting as server stopped; if non-grace shutdown see last entry from /var/log/kopano4h/server.log and consider kopano-init container or re-install
	Sun Nov 25 07:03:59 2018: [=======] Starting kopano-server version 8.6.81 (pid 31 uid 0)
	Sun Nov 25 11:13:38 2018: [error  ] Error while connecting to search on "file:///var/run/kopano/search.sock"
	Sun Nov 25 11:56:05 2018: [error  ] Previous message logged 5 times
	Sun Nov 25 11:56:07 2018: [warning] Replacing notification request for ID 1496947911822227224

Im Kopano Server Log findet sich noch folgendes:

Code:
	Sun Nov 25 07:03:59 2018: [=======] Starting kopano-server version 8.6.81 (pid 31 uid 0)
	Sun Nov 25 11:13:38 2018: [error  ] Error while connecting to search on "file:///var/run/kopano/search.sock"
	Sun Nov 25 11:56:05 2018: [error  ] Previous message logged 5 times
	Sun Nov 25 11:56:07 2018: [warning] Replacing notification request for ID 1496947911822227224

Danach muss ich Docker neustarten und dann kopano4s übers Packetzentrum neustarten und alles läuft wieder bis irgendwann das wieder Auftritt. Ansonsten habe ich keine Probleme mit kopano4s.

Was muss ich beachten wenn ich kopano-init container ausführe?

Gruß Daniel
 

Andy+

Benutzer
Sehr erfahren
Mitglied seit
25. Jan 2016
Beiträge
5.043
Punkte für Reaktionen
328
Punkte
189
Du hast mehrere Möglichkeiten. Du kannst ein Startscript hinterlegen, was das Kopanopaket in einem zeitlichen Abstand immer wieder startet. Oder Du updatest auf v0.9.0 oder auf die BETA v0.9.1 und bist damit zudem aktuell, ob das allerdings den Fehler behebt, weiss ich nicht. Du kannst aber auch versuchen, das Image zu stoppen, den Container zu löschen und das Image wieder zu starten, welches den Container wieder neu baut. Das könnte auch abhelfen.

Was Du nicht tun solltest, ist ein Reset, da dann Container und Image gelöscht werden und das Image sollte dann wieder geladen werden. Das ist allerdings nicht mehr da, da die vorhandenen Images für die neuere Version ist. Andernfalls geht die Routine in den Selbstbaumodus, aber das hat bislang bei mir nicht funktioniert.
 

Dani Düsentrieb

Benutzer
Mitglied seit
03. Jan 2008
Beiträge
216
Punkte für Reaktionen
3
Punkte
18
Hi Andy+

Danke für die Informationen, ich werde ein Update auf die 090 machen und mal schauen was passiert. Gibt es bei Update noch do's und dont's die ich beachten sollte. Bei zarafa4h war es ja immer ne Deinstallation und ne Installation mit der neuen Version.

Gruß Daniel
 

Dani Düsentrieb

Benutzer
Mitglied seit
03. Jan 2008
Beiträge
216
Punkte für Reaktionen
3
Punkte
18
Hallo Zusammen,

also nach dem Update verhält sich Kopano genau so wie vor dem Update. Ich habe mir jetzt nochmal die Logs angeschaut. Der Docker Container wird jeden Tag immer zur gleichen Zeit um 22:30 Uhr unerwartet gestoppt. Kann das evtl. etwas mit dem Backup zu tun haben? Das startet um 22:00 Uhr und läuft so um die 20 min. und endet immer mit folgender Meldung:

Code:
2018.11.28-15.03.32 starting mysql-dump of kopano to /volume1/kopano/backup...
/var/packages/MariaDB10/target/usr/local/mariadb10/bin/mysql Ver 15.1 Distrib 10.0.34-MariaDB, for Linux () using readline 5.1 Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Usage: /var/packages/MariaDB10/target/usr/local/mariadb10/bin/mysql [OPTIONS] [database] Default options are read from the following files in the given order: /usr/local/mariadb10/etc/mysql/my.cnf ~/.my.cnf The following groups are read: mysql client client-server client-mariadb The following options may be given as the first argument: --print-defaults Print the program argument list and exit. --no-defaults Don't read default options from any option file. --defaults-file=# Only read default options from the given file #. --defaults-extra-file=# Read this file after the global files are read. -?, --help Display this help and exit. -I, --help Synonym for -? --abort-source-on-error Abort 'source filename' operations in case of errors --auto-rehash Enable automatic rehashing. One doesn't need to use 'rehash' to get table and field completion, but startup and reconnecting may take a longer time. Disable with --disable-auto-rehash. (Defaults to on; use --skip-auto-rehash to disable.) -A, --no-auto-rehash No automatic rehashing. One has to use 'rehash' to get table and field completion. This gives a quicker start of mysql and disables rehashing on reconnect. --auto-vertical-output Automatically switch to vertical output mode if the result is wider than the terminal width. -B, --batch Don't use history file. Disable interactive behavior. (Enables --silent.) -b, --binary-as-hex Print binary data as hex --character-sets-dir=name Directory for character set files. --column-type-info Display column type information. -c, --comments Preserve comments. Send comments to the server. The default is --skip-comments (discard comments), enable with --comments. -C, --compress Use compression in server/client protocol. -#, --debug[=#] This is a non-debug version. Catch this and exit. --debug-check Check memory and open file usage at exit. -T, --debug-info Print some debug info at exit. -D, --database=name Database to use. --default-character-set=name Set the default character set. --delimiter=name Delimiter to be used. -e, --execute=name Execute command and quit. (Disables --force and history file.) -E, --vertical Print the output of a query (rows) vertically. -f, --force Continue even if we get an SQL error. Sets abort-source-on-error to 0 -G, --named-commands Enable named commands. Named commands mean this program's internal commands; see mysql> help . When enabled, the named commands can be used from any line of the query, otherwise only from the first line, before an enter. Disable with --disable-named-commands. This option is disabled by default. -i, --ignore-spaces Ignore space after function names. --init-command=name SQL Command to execute when connecting to MySQL server. Will automatically be re-executed when reconnecting. --local-infile Enable/disable LOAD DATA LOCAL INFILE. -b, --no-beep Turn off beep on error. -h, --host=name Connect to host. -H, --html Produce HTML output. -X, --xml Produce XML output. --line-numbers Write line numbers for errors. (Defaults to on; use --skip-line-numbers to disable.) -L, --skip-line-numbers Don't write line number for errors. -n, --unbuffered Flush buffer after each query. --column-names Write column names in results. (Defaults to on; use --skip-column-names to disable.) -N, --skip-column-names Don't write column names in results. --sigint-ignore Ignore SIGINT (CTRL-C). -o, --one-database Ignore statements except those that occur while the default database is the one named at the command line. --pager[=name] Pager to use to display results. If you don't supply an option, the default pager is taken from your ENV variable PAGER. Valid pagers are less, more, cat [> filename], etc. See interactive help (\h) also. This option does not work in batch mode. Disable with --disable-pager. This option is disabled by default. -p, --password[=name] Password to use when connecting to server. If password is not given it's asked from the tty. -P, --port=# Port number to use for connection or 0 for default to, in order of preference, my.cnf, $MYSQL_TCP_PORT, /etc/services, built-in default (3306). --progress-reports Get progress reports for long running commands (like ALTER TABLE) (Defaults to on; use --skip-progress-reports to disable.) --prompt=name Set the mysql prompt to this value. --protocol=name The protocol to use for connection (tcp, socket, pipe, memory). -q, --quick Don't cache result, print it row by row. This may slow down the server if the output is suspended. Doesn't use history file. -r, --raw Write fields without conversion. Used with --batch. --reconnect Reconnect if the connection is lost. Disable with --disable-reconnect. This option is enabled by default. (Defaults to on; use --skip-reconnect to disable.) -s, --silent Be more silent. Print results with a tab as separator, each row on new line. -S, --socket=name The socket file to use for connection. --ssl Enable SSL for connection (automatically enabled with other flags). --ssl-ca=name CA file in PEM format (check OpenSSL docs, implies --ssl). --ssl-capath=name CA directory (check OpenSSL docs, implies --ssl). --ssl-cert=name X509 cert in PEM format (implies --ssl). --ssl-cipher=name SSL cipher to use (implies --ssl). --ssl-key=name X509 key in PEM format (implies --ssl). --ssl-crl=name Certificate revocation list (implies --ssl). --ssl-crlpath=name Certificate revocation list path (implies --ssl). --ssl-verify-server-cert Verify server's "Common Name" in its cert against hostname used when connecting. This option is disabled by default. -t, --table Output in table format. --tee=name Append everything into outfile. See interactive help (\h) also. Does not work in batch mode. Disable with --disable-tee. This option is disabled by default. -u, --user=name User for login if not current user. -U, --safe-updates Only allow UPDATE and DELETE that uses keys. -U, --i-am-a-dummy Synonym for option --safe-updates, -U. -v, --verbose Write more. (-v -v -v gives the table output format). -V, --version Output version information and exit. -w, --wait Wait and retry if connection is down. --connect-timeout=# Number of seconds before connection timeout. --max-allowed-packet=# The maximum packet length to send to or receive from server. --net-buffer-length=# The buffer size for TCP/IP and socket communication. --select-limit=# Automatic limit for SELECT when using --safe-updates. --max-join-size=# Automatic limit for rows in a join when using --safe-updates. --secure-auth Refuse client connecting to server if it uses old (pre-4.1.1) protocol. --server-arg=name Send embedded server this as a parameter. --show-warnings Show warnings after every statement. --plugin-dir=name Directory for client-side plugins. --default-auth=name Default authentication client-side plugin to use. --binary-mode By default, ASCII ' ' is disallowed and '
' is translated to '
'. This switch turns off both features, and also turns off parsing of all clientcommands except \C and DELIMITER, in non-interactive mode (for input piped to mysql or loaded using the 'source' command). This is necessary when processing output from mysqlbinlog that may contain blobs. Variables (--variable-name=value) and boolean options {FALSE|TRUE} Value (after reading options) --------------------------------- ---------------------------------------- abort-source-on-error FALSE auto-rehash FALSE auto-vertical-output FALSE binary-as-hex FALSE character-sets-dir (No default value) column-type-info FALSE comments FALSE compress FALSE debug-check FALSE debug-info FALSE database (No default value) default-character-set auto delimiter ; vertical FALSE force FALSE named-commands FALSE ignore-spaces FALSE init-command (No default value) local-infile FALSE no-beep FALSE host (No default value) html FALSE xml FALSE line-numbers TRUE unbuffered FALSE column-names TRUE sigint-ignore FALSE port 3307 progress-reports FALSE prompt \N [\d]> quick FALSE raw FALSE reconnect FALSE socket /run/mysqld/mysqld10.sock ssl FALSE ssl-ca (No default value) ssl-capath (No default value) ssl-cert (No default value) ssl-cipher (No default value) ssl-key (No default value) ssl-crl (No default value) ssl-crlpath (No default value) ssl-verify-server-cert FALSE table FALSE user kopano safe-updates FALSE i-am-a-dummy FALSE connect-timeout 0 max-allowed-packet 16777216 net-buffer-length 16384 select-limit 1000 max-join-size 1000000 secure-auth FALSE show-warnings FALSE plugin-dir (No default value) default-auth (No default value) binary-mode FALSE
2018.11.28-15.24.55 dump for kopano completed in 21 : 23 min:sec.

Das Backup läuft durch und die Datenbank kann auch als Backup verwendet werden.

Gruß Daniel
 

Andy+

Benutzer
Sehr erfahren
Mitglied seit
25. Jan 2016
Beiträge
5.043
Punkte für Reaktionen
328
Punkte
189
Wenn Backups gemacht werden, stoppt DSM zumindest teils die Dienste. Da z.B. bei Backups die Datenbanken Maria 5 und 10 gestoppt werden, ist in dieser Zeit kein Arbeiten mit datenbankbasierenden APP´s möglich. Daher ist K4S ist in dieser Zeit auch nicht lauffähig. Ob allerdings währenddessen der Container gestoppt, habe ich so noch nicht geprüft, ich meine aber, dass die mit Datenbanken zusammenhängenden APP´s dann auch gestoppt werden. Spätestens jedoch, wenn die APP ansich gesichert wird, wird diese auch gestoppt. Allerdings sollte nach dem Backup alles wieder normal laufen.
 

Dani Düsentrieb

Benutzer
Mitglied seit
03. Jan 2008
Beiträge
216
Punkte für Reaktionen
3
Punkte
18
Hi Andy,

mit Backup meinen ich eigentlich nur, kopano4s-backup welches über den Aufgabenplaner um 22 Uhr gestartet wird. Von einer Sicherung der Datenbank mittels Hyperbackup wurde ja schon zu Zeiten zarafa4h abgeraten. Die anderen Datenbanken sichere ich mit einem Shellscript.

Gruß Daniel
 

Dani Düsentrieb

Benutzer
Mitglied seit
03. Jan 2008
Beiträge
216
Punkte für Reaktionen
3
Punkte
18
Hallo Zusammen,

jetzt hab ich mir die Logs nochmal angeschaut. Die Meldung kommt wenn ich meine Station um 23:30 Uhr neu starten lasse. Aus Gründen immer wird das im Docker Container auf 22:30 Uhr geloggt. Das Protokoll schein dort 1 Stunden nachzugehen. Muss ich beim Neustart oder Herunterfahren noch etwas beachten? So wie es scheint wird der Datenbankdienst eher beendet wie der Docker Container und dadurch kommt die Meldung zustande.

Gruß Daniel
 

Tosoboso

Benutzer
Mitglied seit
27. Aug 2012
Beiträge
1.256
Punkte für Reaktionen
52
Punkte
74
Hallo zusammen,

Zwei Dinge: 1) Fehlermeldungen und Einfluss Search auf Container. 2) Backup incl. Fehlermeldungen.
1) Search ist bekannt für hohe I/O Last (siehe andren Thread), die Fehler und Einfluss auf den Container zum Stoppen sind mir neu.
Da Search hilfreich, aber nicht zwingend ist, werde ich es als optional zu-ab-schaltbar vorsehen (via kopano4s-optionals, nächstes Release).
Warum Search Probleme macht kann unterschiedlich sein, z.B. ist Search beim Initialisieren also Ersten Lauf gegen grosse migrierte Datenmengen lange 'unterwegs' und wird in der Zeit als nicht laufend angezeigt; erst wenn der Index erstellt ist, meldet sich der Service auf dem Port. Solange meckert Kopano Server natürlich. Man kann in der etc/kopano/default und server.cfg auch die Verbindung zu Search 'kappen', aber das mach ich dann besser integriert im neuen Release.
2) Backup respektive kopano4s-backup: die Datenbank wird während dem Backup nicht gestoppt, einzige Ausnahme: bei einem Restore.
Die Fehlermeldungen / Warnungen im backup.log haben mit der neuen Version von MariaDB zu tun, da ist ein Parameter MariaDB 5 zu 10 anders. Das sind Warnhinweise, der Backup läuft jedoch durch. Das zu Beheben mit Parameter und Warnungen ist auf meiner ToDo-Liste.
-TosoBoso
 
Status
Für weitere Antworten geschlossen.
 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat