Wie geht's mit dem Zarafa Package weiter?

Status
Für weitere Antworten geschlossen.

NoFear-MK

Benutzer
Mitglied seit
20. Apr 2016
Beiträge
44
Punkte für Reaktionen
0
Punkte
12
Moin Kopano Gemeinde,

hat jemand schon Erfahrungen mit dem Script "kopano-backup" gesammelt.
Ich lasse das Script per Aufgabenplaner (wie bei Zarafa4H) laufen und erhalte folgende Fehlermeldung:


Aufgabenplaner hat eine geplante Aufgabe abgeschlossen.

Aufgabe: Kopano Backup
Startzeit: Fri, 22 Jun 2018 03:00:02 GMT
Stoppzeit: Fri, 22 Jun 2018 03:00:03 GMT
Aktueller Status: 1 (Unterbrochen)
Standardausgabe/Fehler:
Traceback (most recent call last):
File "/usr/sbin/kopano-backup", line 3, in <module>
import kopano_backup
File "/usr/lib/python2.7/dist-packages/kopano_backup/__init__.py", line 26, in <module>
from MAPI import (
ImportError: No module named MAPI

Gibt's Ansätze hierzu ?

@Andy+: Ich glaube Du hattest schon bei Zarafa anders gesichert ... oder ?


Gruss,
Max
 

Tosoboso

Benutzer
Mitglied seit
27. Aug 2012
Beiträge
1.256
Punkte für Reaktionen
52
Punkte
74
Hi, zu kopano-backup: das ist das integrierte backup via phyton im Container als Teil der Kopano Distribution. Mit dem kann man user based und brick level Backups machen (siehe help). Die Fehlermeldung oben kommt von einer fehlerhaften Community Paketierung. Bitte versuche die neuste k4s 0.8.4. da sollte es gehen (bei der Supported Version mit SNR ging es schon immer). Ansonsten ist das altbekannte zarafa-backup auf Synology Ebene als Full MySQL Backup nun kopano4s-backup; man beachte den Unterschied. Grundsätzlich kann man beide Backup Skripts verwenden.
Wenn man z.B. von Attachments in der Datenbank auf im Filesystem migrieren will bietet sich kopano-backup an, weil man das dann in eine leere Datenbank wieder einspielen kann, ohne dass man Attachments rausmiegriert und löscht (siehe altes Verfahren https://www.synology-forum.de/showt...peicherung-von-Anhängen-von-DB-auf-Dateibasis). Bei einem einfachen Full|-Backup per Scheduler finde ich kopano4s-backup besser,
-TosoBoso
 

Lohma

Benutzer
Mitglied seit
08. Jun 2017
Beiträge
6
Punkte für Reaktionen
0
Punkte
1
Hallo Zusammen,
das Paket Debian Chroot ist ja scheinbar nicht mehr in der Synocommunity verfügbar. Kennt evtl. jemand eine alternative Quelle? :)
Vielen Dank und Grüße,
Lohma

Update:
ich hab jetzt gefunden, dass man die Pakete hier herunterladen kann: https://synocommunity.com/package/debian-chroot
Kann mir jemand helfen, was für eines ich auf meiner DS214play mit DSM 6.2 brauche?
Info: Hatte Zarafa4h mit Debian Chroot bei mir bereits am laufen. Wollte Zarafa4h updaten und hat dann leider nicht mehr funktioniert. Jetzt wollte ich Debian Chroot und Zarafa4h nochmal komplett neu aufsetzen und hab die Anwendungen auf meiner DS gelöscht (ob das sinnvoll war/ist oder nicht, sei mal dahin gestellt, ist aber nun so :))
Danke!!!
 
Zuletzt bearbeitet:

Andy+

Benutzer
Sehr erfahren
Mitglied seit
25. Jan 2016
Beiträge
5.042
Punkte für Reaktionen
328
Punkte
189

mc_syn

Benutzer
Mitglied seit
16. Dez 2012
Beiträge
12
Punkte für Reaktionen
0
Punkte
1
Ich habe Probleme mit dem kopano4s-backup

Folgende u. aufgeführte Fehlermeldung wird angezeigt
und anschließlich finde ich auch keine backupdatei wie früher "dump-zarafa-201808210400.sql.gz" im ordner /volume1/kopano/backup?

Ich habe von zarafa4h auf kopano 8.8 gewechselt, dabei zarafa4h komplett deinstalliert, dann kopano installiert und mit der "dump-zarafa-201808210400.sql.gz" in kopano4s die Daten wiederhergestellt.
Damit läuft kopano perfekt mit allen meinen usern, allen alten Daten. - nur das backup gelingt mir nicht - kann mir hier jemand helfen?

Vielen Dank an alle Cracks in diesem Forum!

----------------Fehlermeldung ------------------------

ash-4.3# kopano4s-backup
starting mysql-dump of kopano to /volume1/kopano/backup... use help for details e.g. on restore
/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, Or acle, 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 clie nt-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 de fault options from any option file. --defaults-file=# Only read default options from the given file #. --defaults-extra-file=# Read this file after the glo bal 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 ha s to use 'rehash' to get table and field completion. This gives a quicker start of mysql and disables rehashing on reconnect. --auto-vertical-output Automa tically switch to vertical output mode if the result is wider than the terminal width. -B, --batch Don't use history file. Disable interactive behavior. (E nables --silent.) -b, --binary-as-hex Print binary data as hex --character-sets-dir=name Directory for character set files. --column-type-info Display colu mn type information. -c, --comments Preserve comments. Send comments to the server. The default is.......... --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-nam e=value) and boolean options {FALSE|TRUE} Value (after reading options) --------------------------------- ---------------------------------------- abort-so urce-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-numb ers TRUE unbuffered FALSE column-names TRUE sigint-ignore FALSE port 3307 progress-reports FALSE prompt \N [\d]> quick FALSE raw FALSE reconnect FALSE sock et /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) ss l-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-war nings FALSE plugin-dir (No default value) default-auth (No default value) binary-mode FALSE
dump for kopano completed in 14 : 56 min:sec.
 

Dani Düsentrieb

Benutzer
Mitglied seit
03. Jan 2008
Beiträge
216
Punkte für Reaktionen
3
Punkte
18
Hallo Zusammen, bei mir kommt auch so ne Meldung aber das Backup funktioniert, daher hat mich die Meldung nicht weiter gestört.
Gruß Daniel
 

mc_syn

Benutzer
Mitglied seit
16. Dez 2012
Beiträge
12
Punkte für Reaktionen
0
Punkte
1
Ok, wenn das Backup trotzdem funktioniert, wo muss ich dann nach der fertigen Backup Datei suchen? Und hast du die schonmal versucht zurück zu sichern?
Ich hätte in /volume1/Kopanp/Backup gesucht ?

Vielen Dank
 

Tosoboso

Benutzer
Mitglied seit
27. Aug 2012
Beiträge
1.256
Punkte für Reaktionen
52
Punkte
74
Hallo Zusammen, bei mir kommt auch so ne Meldung aber das Backup funktioniert, daher hat mich die Meldung nicht weiter gestört.
Gruß Daniel
Hi, ich werde mir das ansehen, es sieht danach aus, dass mysql binary andere parameter will und das so meldet.
Synology rollt regelmässig Updates raus und wenn sich Parameter bei den Utils ändern, muss ich nachziehen. Das Backup an sich wird mit MySqlDu,p gemacht und Möglich, dass dies noch funktioniert. Welche MariaDB10 habt ihr ausgerollt? Ich hatte solche Fehler bei diverseb Backup Migration Tests vor ca. 2 Wochen nicht..
-TosoBoso
 

mc_syn

Benutzer
Mitglied seit
16. Dez 2012
Beiträge
12
Punkte für Reaktionen
0
Punkte
1
Bezüglich der Fehlermeldung bei kopano4s-backup läuft bei mir folgende Konfig:

DS 916+
DSM 6.2-23739 Update 2
Maria DB 10 10.0.34-0013
Docker 17.05.0-0379
Kopano 0.8.8

Ich habe aber gestern auch trotz der Fehlermeldung die fertige dump-kopano-201808250225.sql.gz in volume1/kopano/backup gefunden und sie auch mal wiederhergestellt.
Es funktioniert tatsächlich alles Bestens!

Webapp, Anbindung iphones, Outlook 2013 über zarafaclient-7.2.4-52167, und senden und empfangen über mehrere smarthosts inkl. sendas Fkt - alles läuft perfekt mit wenig Aufwand!

Vielen Dank nochmal an Euch Profis für die viele Arbeit und Geduld mit uns Laien!
 

Dani Düsentrieb

Benutzer
Mitglied seit
03. Jan 2008
Beiträge
216
Punkte für Reaktionen
3
Punkte
18
Also die Backups werden bei mir normal im Verzeichnis /volume1/Kopano/Backup gespeichert. Rücksicherung muss ich mal testen. Zumindest ist die Datei etliche GB groß.
 

Dani Düsentrieb

Benutzer
Mitglied seit
03. Jan 2008
Beiträge
216
Punkte für Reaktionen
3
Punkte
18
Ich habe gerade das Backup ausgetestet. Hatte ich meinem Testsystem ein kopano4s 0.8.4 installiert und habe ein Backup von meinem Livesystem mit der Version 0.8.8 genommen. Mit kopano4s-backup restore Timecode habe ich das Backup wieder zurückgespielt und dabei kommt auch die gleiche Fehlermeldung wie beim Backup:

Code:
restore for kopano completed in 44 : 43 min:sec.
/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

Nach der Rücksicherung, die bei mir, wie oben zu sehen, 44 min. gedauert hat startete kopano nicht, weil die Datenbankversion ein falsche ist. Das Update, was ich über das Paketzentrum machen wollte, hat zwar etwas gemacht, allerdings kein Update, denn es war danach immer noch die Version 0.8.4 installiert. Erst die Deinstallation und erneute Installation über das Paketzentrum ohne entfernen der Datenbank, brachte erfolg und ich kann bestätigen das dass Backup erfolgreich eingespielt wurde.

Gruß Daniel
 

491810

Benutzer
Mitglied seit
20. Jul 2013
Beiträge
549
Punkte für Reaktionen
3
Punkte
44
Frage eines langen Abstinenzlers (bin nach Problemen unter Z4H auf DSM5 mit dem alten Zarafa geblieben): Kann ich direkt vom alten Zarafa unter DSM5 auf K4S unter DSM6 wechseln??? Oder muss ich vorher alle Emails sichern? Oder gibt es da ein Migrationsweg?
 

otti-o

Benutzer
Mitglied seit
22. Feb 2016
Beiträge
10
Punkte für Reaktionen
0
Punkte
0
Hallo 491810,
wenn ich den Thread richtig im Kopf habe dann ist das Einfachste, wenn du den Umstieg von DSM5 auf DSM6 nutzt um auch auf eine neue NAS umzusatteln. Dann kannst du auf der neuen NAS K4S installieren und dann die Daten über Port 236 migrieren. Bei dieser Version ist es auch unerheblich, ob die Anhänge vorher in der Datenbank oder im Dateisystem gespeichert waren. Wenn es die gleiche NAS sein soll gibt es einen Trick, z4H auf einen anderen Port zu legen.
Schönes Wochenende, Hermann
 

Andy+

Benutzer
Sehr erfahren
Mitglied seit
25. Jan 2016
Beiträge
5.042
Punkte für Reaktionen
328
Punkte
189
Um auf Kopano zu wechseln ist es unerheblich, ob die vorherige Zarafa-Version noch Zarafa-JD oder Zarafa-4H heisst, da die Datenbankstruktur die gleiche ist. Für beide Versionen ist eine Migration erforderlich, welche im WIKI beschrieben ist. Der Link dazu ist in meiner Signatur.
 

chats

Benutzer
Mitglied seit
29. Sep 2012
Beiträge
452
Punkte für Reaktionen
1
Punkte
18
Hallo zusammen,
ich habe das Problem das ich bei Zarafa eine andere Uhrzeit habe als die lokale Uhrzeit. Das führt leider dazu das Termine intern falsch dargestellt werden.
Vor der Zeitumstellung waren es exakt zwei Stunden. Nach der Zeitumstellung eine Stunde.
Setze ich die Synology-Sytemzeit eine Stunde vor stimmt auch die Zarafa - Uhrzeit exakt.
Ich möchte natürlich das beide Uhrzeiten korrekt eingestellt sind.

Kann mir jemand sagen wo ich die Zarafa Uhrzeit bzw. Zeitzone ändern kann?

Ich dachte über zarafa-cmdline und dann den Befehl date -s allerdings wird das mit "Operation not permitted" quittiert.
 

Andy+

Benutzer
Sehr erfahren
Mitglied seit
25. Jan 2016
Beiträge
5.042
Punkte für Reaktionen
328
Punkte
189
Ich denke, das geht nur in einer der cfg-Dateien im System, da in den Einstellungen der WebAPP nichts dazu zu finden ist.
 

chats

Benutzer
Mitglied seit
29. Sep 2012
Beiträge
452
Punkte für Reaktionen
1
Punkte
18
Ich habe die verdächtigen cfg Dateien durchsucht. Leider nix gefunden.
Ich denke es muss eine eigene Zarafa Zeitzone geben die sich an der lokale Synology-Systemzeit orientiert.

Wieso kann ich denn mit date -s die Uhrzeit nicht einstellen obwohl ich root bin?
 

Matis

Benutzer
Mitglied seit
28. Mai 2015
Beiträge
735
Punkte für Reaktionen
9
Punkte
44
... ich habe ein sehr komisches Phänomen: bei weiterleitern einer Email mit einem pdf Anhang hängt Kopano nochmals ein file mit an mir dem Namen: secondary_html_body.html
das diesen Inhalt hat:

<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body dir="auto"><blockquote type="cite"><div dir="ltr"></div></blockquote></body></html>

Versteht das jemand? Wie verhindere ich diesen zusätlichen Anhang, den Kopano da generiert?
 

Andy+

Benutzer
Sehr erfahren
Mitglied seit
25. Jan 2016
Beiträge
5.042
Punkte für Reaktionen
328
Punkte
189
Hast Du eine Software oder einen Virenschutz dazwischen?

Übrigens haben wir für K4s einen anderen Thread, hier haben wir Z4h.
 
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