Author Topic: Automatisches Backup der Konfig geht nicht mehr  (Read 3445 times)

Dersch

  • Zen Monk
  • **
  • Posts: 87
  • Karma: +1/-0
    • View Profile
Automatisches Backup der Konfig geht nicht mehr
« on: March 01, 2015, 11:12:09 pm »
HI,

ich habe plötzlich das Problem, dass das Konfig Backup in die Cloud nicht mehr auf einer Maschine geht auf einer anderen geht es ohne Probleme.

Ich bekomme diese Fehlermeldung:

Code: [Select]

Some error has happened in Zentyal:

root command mysqldump -uopenchange -pLmA2d26x -h127.0.0.1 openchange > /var/lib/zentyal/tmp/db_superuser.tmp failed. Error output: mysqldump: Got error: 2003: Can't connect to MySQL server on '127.0.0.1' (111) when trying to connect Command output: . Exit value: 2

Der Mysql Server läuft aber soweit ohne Probleme.

Grüße
Dir

pcs

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Automatisches Backup der Konfig geht nicht mehr
« Reply #1 on: May 25, 2015, 07:37:55 pm »
I have just the same problem, suppose is the LOCK TABLES sentence the problem.
maybe reconfiguring to use option --lock-tables=false
but no idea how........

Dersch

  • Zen Monk
  • **
  • Posts: 87
  • Karma: +1/-0
    • View Profile
Re: Automatisches Backup der Konfig geht nicht mehr
« Reply #2 on: October 05, 2015, 03:41:31 pm »
HI,

ich habe plötzlich das Problem, dass das Konfig Backup in die Cloud nicht mehr auf einer Maschine geht auf einer anderen geht es ohne Probleme.

Ich bekomme diese Fehlermeldung:

Code: [Select]

Some error has happened in Zentyal:

root command mysqldump -uopenchange -pLmA2d26x -h127.0.0.1 openchange > /var/lib/zentyal/tmp/db_superuser.tmp failed. Error output: mysqldump: Got error: 2003: Can't connect to MySQL server on '127.0.0.1' (111) when trying to connect Command output: . Exit value: 2

Der Mysql Server läuft aber soweit ohne Probleme.

Grüße
Dirk

Hi, kann mir keiner helfen? Ich habe das Problem auf einer Maschine immer noch. Auf einer anderen läuft es ohne Probleme. Beide mittlerweile 4.1. Ich kann nichtmal ein lokales Backup machen :(

julio

  • Guest
Re: Automatisches Backup der Konfig geht nicht mehr
« Reply #3 on: October 06, 2015, 04:01:24 pm »
HI,

ich habe plötzlich das Problem, dass das Konfig Backup in die Cloud nicht mehr auf einer Maschine geht auf einer anderen geht es ohne Probleme.

Ich bekomme diese Fehlermeldung:

Code: [Select]

Some error has happened in Zentyal:

root command mysqldump -uopenchange -pLmA2d26x -h127.0.0.1 openchange > /var/lib/zentyal/tmp/db_superuser.tmp failed. Error output: mysqldump: Got error: 2003: Can't connect to MySQL server on '127.0.0.1' (111) when trying to connect Command output: . Exit value: 2

Der Mysql Server läuft aber soweit ohne Probleme.

Grüße
Dirk

Hi, kann mir keiner helfen? Ich habe das Problem auf einer Maschine immer noch. Auf einer anderen läuft es ohne Probleme. Beide mittlerweile 4.1. Ich kann nichtmal ein lokales Backup machen :(

Hallo Dirk,

bitte Update durchführen, dann noch einmal ausprobieren.

siehe:
https://github.com/zentyal/zentyal/blob/c179d586e1738d9ed04f0474b2d2bedf013252f2/main/core/ChangeLog#L6

update:
Code: [Select]
sudo apt-get update && sudo apt-get dist-upgrade

Dersch

  • Zen Monk
  • **
  • Posts: 87
  • Karma: +1/-0
    • View Profile
Re: Automatisches Backup der Konfig geht nicht mehr
« Reply #4 on: October 06, 2015, 07:46:23 pm »
Hi Julio,

nein hat leider nichts gebracht. Siehe Screenshot.

Grüße
Dirk

julio

  • Guest
Re: Automatisches Backup der Konfig geht nicht mehr
« Reply #5 on: October 06, 2015, 09:41:48 pm »
bitte folgende kommando ausprobieren:

Code: [Select]
mysqldump -uroot -p$(sudo cat /var/lib/zentyal/conf/zentyal-mysql.passwd) -h127.0.0.1 zentyal > /tmp/db_zentyal.tmp
sudo rm /tmp/db_zentyal.tmp

gleiche oder ohne Fehler?
« Last Edit: October 06, 2015, 09:45:26 pm by julio »

Dersch

  • Zen Monk
  • **
  • Posts: 87
  • Karma: +1/-0
    • View Profile
Re: Automatisches Backup der Konfig geht nicht mehr
« Reply #6 on: October 06, 2015, 09:47:07 pm »
Passwortproblem?

Code: [Select]
dirk@superserver:~$ mysqldump -uroot -p$(sudo cat /var/lib/zentyal/conf/zentyal-mysql.passwd) -h127.0.0.1 zentyal > /tmp/db_zentyal.tmp
[sudo] password for dirk:
mysqldump: Got error: 2003: Can't connect to MySQL server on '127.0.0.1' (111) when trying to connect

Mysql läuft soweit aber Problemlos für andere Dienste.

julio

  • Guest
Re: Automatisches Backup der Konfig geht nicht mehr
« Reply #7 on: October 06, 2015, 09:59:57 pm »
bitte ergebnisse posten:

Code: [Select]
cat /var/log/syslog | grep -E 'zentyal-firewall.*3306'
sudo netstat -tulpen | grep mysqld
« Last Edit: October 06, 2015, 10:20:20 pm by julio »

Dersch

  • Zen Monk
  • **
  • Posts: 87
  • Karma: +1/-0
    • View Profile
Re: Automatisches Backup der Konfig geht nicht mehr
« Reply #8 on: October 06, 2015, 10:23:06 pm »
Ok

Code: [Select]
dirk@superserver:~$ cat /var/log/syslog | grep -E 'zentyal-firewall.*3306'
Oct  6 08:02:30 superserver kernel: [458419.661169] zentyal-firewall drop IN=em2 OUT= MAC= SRC=130.180.51.242 DST=239.255.255.250 LEN=356 TOS=0x00 PREC=0x00 TTL=4 ID=1744 PROTO=UDP SPT=33065 DPT=1900 LEN=336 MARK=0x1
Oct  6 09:51:30 superserver kernel: [464953.286178] zentyal-firewall drop IN=em2 OUT= MAC= SRC=130.180.51.242 DST=239.255.255.250 LEN=420 TOS=0x00 PREC=0x00 TTL=4 ID=18929 PROTO=UDP SPT=33064 DPT=1900 LEN=400 MARK=0x1
Oct  6 10:10:02 superserver kernel: [466063.849330] zentyal-firewall drop IN=em2 OUT= MAC=00:25:90:47:49:83:34:31:c4:60:ed:d2:08:00 SRC=198.20.70.114 DST=130.180.51.242 LEN=44 TOS=0x00 PREC=0x00 TTL=108 ID=43563 PROTO=TCP SPT=40540 DPT=3306 WINDOW=11493 RES=0x00 SYN URGP=0 MARK=0x1
Oct  6 10:56:12 superserver kernel: [468830.970458] zentyal-firewall drop IN=em2 OUT= MAC=00:25:90:47:49:83:34:31:c4:60:ed:d2:08:00 SRC=222.186.42.240 DST=130.180.51.242 LEN=44 TOS=0x00 PREC=0x00 TTL=97 ID=256 PROTO=TCP SPT=6000 DPT=3306 WINDOW=16384 RES=0x00 SYN URGP=0 MARK=0x1
Oct  6 11:39:05 superserver kernel: [471401.802003] zentyal-firewall drop IN=em2 OUT= MAC=00:25:90:47:49:83:34:31:c4:60:ed:d2:08:00 SRC=116.255.211.215 DST=130.180.51.242 LEN=44 TOS=0x00 PREC=0x00 TTL=98 ID=256 PROTO=TCP SPT=6000 DPT=3306 WINDOW=16384 RES=0x00 SYN URGP=0 MARK=0x1
Oct  6 12:27:00 superserver kernel: [474274.190649] zentyal-firewall drop IN=em2 OUT= MAC= SRC=130.180.51.242 DST=239.255.255.250 LEN=422 TOS=0x00 PREC=0x00 TTL=4 ID=55975 PROTO=UDP SPT=33069 DPT=1900 LEN=402 MARK=0x1
Oct  6 12:48:41 superserver kernel: [475573.372697] zentyal-firewall drop IN=em2 OUT= MAC= SRC=130.180.51.242 DST=239.255.255.250 LEN=165 TOS=0x00 PREC=0x00 TTL=1 ID=28162 DF PROTO=UDP SPT=33067 DPT=1900 LEN=145 MARK=0x1
Oct  6 12:48:41 superserver kernel: [475573.372763] zentyal-firewall drop IN=em2 OUT= MAC= SRC=130.180.51.242 DST=239.255.255.250 LEN=165 TOS=0x00 PREC=0x00 TTL=1 ID=28163 DF PROTO=UDP SPT=33067 DPT=1900 LEN=145 MARK=0x1
Oct  6 12:48:41 superserver kernel: [475573.375172] zentyal-firewall drop IN=em2 OUT= MAC=00:25:90:47:49:83:34:31:c4:60:ed:d2:08:00 SRC=130.180.51.241 DST=130.180.51.242 LEN=374 TOS=0x00 PREC=0x00 TTL=64 ID=32336 PROTO=UDP SPT=1900 DPT=33067 LEN=354 MARK=0x1
Oct  6 12:48:41 superserver kernel: [475573.377592] zentyal-firewall drop IN=em2 OUT= MAC=00:25:90:47:49:83:34:31:c4:60:ed:d2:08:00 SRC=130.180.51.241 DST=130.180.51.242 LEN=374 TOS=0x00 PREC=0x00 TTL=64 ID=32337 PROTO=UDP SPT=1900 DPT=33067 LEN=354 MARK=0x1
Oct  6 12:48:41 superserver kernel: [475573.378931] zentyal-firewall drop IN=em2 OUT= MAC=00:25:90:47:49:83:34:31:c4:60:ed:d2:08:00 SRC=130.180.51.241 DST=130.180.51.242 LEN=374 TOS=0x00 PREC=0x00 TTL=64 ID=32338 PROTO=UDP SPT=1900 DPT=33067 LEN=354 MARK=0x1
Oct  6 12:48:41 superserver kernel: [475573.380154] zentyal-firewall drop IN=em2 OUT= MAC=00:25:90:47:49:83:34:31:c4:60:ed:d2:08:00 SRC=130.180.51.241 DST=130.180.51.242 LEN=374 TOS=0x00 PREC=0x00 TTL=64 ID=32339 PROTO=UDP SPT=1900 DPT=33067 LEN=354 MARK=0x1
Oct  6 14:05:34 superserver kernel: [480181.859386] zentyal-firewall drop IN=em2 OUT= MAC=00:25:90:47:49:83:34:31:c4:60:ed:d2:08:00 SRC=130.180.51.241 DST=130.180.51.242 LEN=313 TOS=0x00 PREC=0x00 TTL=64 ID=33060 PROTO=UDP SPT=1900 DPT=60654 LEN=293 MARK=0x1
Oct  6 14:05:34 superserver kernel: [480181.859889] zentyal-firewall drop IN=em2 OUT= MAC=00:25:90:47:49:83:34:31:c4:60:ed:d2:08:00 SRC=130.180.51.241 DST=130.180.51.242 LEN=302 TOS=0x00 PREC=0x00 TTL=64 ID=33061 PROTO=UDP SPT=1900 DPT=60654 LEN=282 MARK=0x1
Oct  6 14:05:39 superserver kernel: [480187.298322] zentyal-firewall drop IN=em2 OUT= MAC=00:25:90:47:49:83:34:31:c4:60:ed:d2:08:00 SRC=130.180.51.241 DST=130.180.51.242 LEN=313 TOS=0x00 PREC=0x00 TTL=64 ID=33066 PROTO=UDP SPT=1900 DPT=60654 LEN=293 MARK=0x1
Oct  6 14:05:39 superserver kernel: [480187.298820] zentyal-firewall drop IN=em2 OUT= MAC=00:25:90:47:49:83:34:31:c4:60:ed:d2:08:00 SRC=130.180.51.241 DST=130.180.51.242 LEN=302 TOS=0x00 PREC=0x00 TTL=64 ID=33067 PROTO=UDP SPT=1900 DPT=60654 LEN=282 MARK=0x1
Oct  6 14:05:39 superserver kernel: [480187.299289] zentyal-firewall drop IN=em2 OUT= MAC=00:25:90:47:49:83:34:31:c4:60:ed:d2:08:00 SRC=130.180.51.241 DST=130.180.51.242 LEN=301 TOS=0x00 PREC=0x00 TTL=64 ID=33068 PROTO=UDP SPT=1900 DPT=60654 LEN=281 MARK=0x1
Oct  6 14:31:11 superserver kernel: [481717.381167] zentyal-firewall drop IN=em2 OUT= MAC=00:25:90:47:49:83:34:31:c4:60:ed:d2:08:00 SRC=130.180.51.241 DST=130.180.51.242 LEN=374 TOS=0x00 PREC=0x00 TTL=64 ID=33306 PROTO=UDP SPT=1900 DPT=38965 LEN=354 MARK=0x1
Oct  6 16:46:30 superserver kernel: [489829.109058] zentyal-firewall drop IN=em2 OUT= MAC= SRC=130.180.51.242 DST=239.255.255.250 LEN=361 TOS=0x00 PREC=0x00 TTL=4 ID=56637 PROTO=UDP SPT=33061 DPT=1900 LEN=341 MARK=0x1
Oct  6 19:25:51 superserver kernel: [499380.224074] zentyal-firewall drop IN=em2 OUT= MAC=00:25:90:47:49:83:34:31:c4:60:ed:d2:08:00 SRC=222.186.56.119 DST=130.180.51.242 LEN=44 TOS=0x00 PREC=0x00 TTL=97 ID=256 PROTO=TCP SPT=6000 DPT=3306 WINDOW=16384 RES=0x00 SYN URGP=0 MARK=0x1
Oct  6 20:17:19 superserver kernel: [502465.807449] zentyal-firewall drop IN=em2 OUT= MAC=00:25:90:47:49:83:34:31:c4:60:ed:d2:08:00 SRC=221.194.44.173 DST=130.180.51.242 LEN=44 TOS=0x00 PREC=0x00 TTL=105 ID=256 PROTO=TCP SPT=54050 DPT=3306 WINDOW=16384 RES=0x00 SYN URGP=0 MARK=0x1
Oct  6 20:49:00 superserver kernel: [504364.938783] zentyal-firewall drop IN=em2 OUT= MAC= SRC=130.180.51.242 DST=239.255.255.250 LEN=436 TOS=0x00 PREC=0x00 TTL=4 ID=20753 PROTO=UDP SPT=33306 DPT=1900 LEN=416 MARK=0x1
Oct  6 20:51:43 superserver kernel: [504527.652413] zentyal-firewall drop IN=em2 OUT= MAC= SRC=130.180.51.242 DST=255.255.255.255 LEN=32 TOS=0x00 PREC=0x00 TTL=64 ID=33306 DF PROTO=UDP SPT=49212 DPT=10001 LEN=12 MARK=0x1
Oct  6 22:14:30 superserver kernel: [509489.936837] zentyal-firewall drop IN=em2 OUT= MAC= SRC=130.180.51.242 DST=239.255.255.250 LEN=361 TOS=0x00 PREC=0x00 TTL=4 ID=39473 PROTO=UDP SPT=53306 DPT=1900 LEN=341 MARK=0x1
dirk@superserver:~$

Code: [Select]
dirk@superserver:~$ sudo netstat -tulpen | grep mysqld
[sudo] password for dirk:
tcp        0      0 192.168.10.1:3306       0.0.0.0:*               LISTEN      103        12640       1761/mysqld


julio

  • Guest
Re: Automatisches Backup der Konfig geht nicht mehr
« Reply #9 on: October 06, 2015, 10:35:05 pm »
meine meinung das Problem liegt bei:
tcp        0      0 192.168.10.1:3306       0.0.0.0:*               LISTEN      103        12640       1761/mysqld

hier 127.0.0.1:3306 müssen stehen.

bitte noch weitere ergebnisse posten:
Code: [Select]
sudo cat /etc/mysql/debian.cnf | grep host
sudo cat /etc/mysql/my.cnf | grep 'bind-address'

Dersch

  • Zen Monk
  • **
  • Posts: 87
  • Karma: +1/-0
    • View Profile
Re: Automatisches Backup der Konfig geht nicht mehr
« Reply #10 on: October 06, 2015, 10:43:51 pm »
Code: [Select]
dirk@superserver:~$ sudo cat /etc/mysql/debian.cnf | grep host
[sudo] password for dirk:
host     = localhost
host     = localhost
dirk@superserver:~$

Code: [Select]
dirk@superserver:~$ sudo cat /etc/mysql/my.cnf | grep 'bind-address'
bind-address            = 192.168.10.1

Da ist wohl das Problem? Wie ich kann mich nicht mehr erinnern warum das evtl. von mir geändert wurde.

julio

  • Guest
Re: Automatisches Backup der Konfig geht nicht mehr
« Reply #11 on: October 06, 2015, 10:50:29 pm »
bitte bei "/etc/mysql/my.cnf" bind-address auf 127.0.0.1 ändern.

dann mysql Dienst neustarten:
Code: [Select]
sudo service mysql restart
bitte Backup noch einmal ausprobieren.

Dersch

  • Zen Monk
  • **
  • Posts: 87
  • Karma: +1/-0
    • View Profile
Re: Automatisches Backup der Konfig geht nicht mehr
« Reply #12 on: October 06, 2015, 10:58:09 pm »
Nein das war es nicht ganz

Code: [Select]
dirk@superserver:~$ sudo cat /etc/mysql/my.cnf | grep 'bind-address'
bind-address            = 127.0.0.1
dirk@superserver:~$

julio

  • Guest
Re: Automatisches Backup der Konfig geht nicht mehr
« Reply #13 on: October 06, 2015, 11:08:49 pm »
versuchen wir das Passwort bei openchange Benutzer zurücksetzen:
Code: [Select]
echo "SET PASSWORD FOR 'openchange'@'localhost' = PASSWORD('LmA2d26x');" | sudo mysql --defaults-file=/etc/mysql/debian.cnf

Dersch

  • Zen Monk
  • **
  • Posts: 87
  • Karma: +1/-0
    • View Profile
Re: Automatisches Backup der Konfig geht nicht mehr
« Reply #14 on: October 06, 2015, 11:12:34 pm »
Nein, gleicher Fehler noch da