MySQL - Connection Error  [SOLVED]

For topics beyond KeyHelp. / Für Themen jenseits von KeyHelp.
User avatar
technotravel
KeyHelp Translator
Posts: 266
Joined: Mon 19. Oct 2020, 11:11

MySQL - Connection Error

Post by technotravel »

Hallo zusammen,

mein Server funktioniert nicht mehr - komme nicht mehr auf die Panel-Seite. Reboot funktionierte auch nicht mehr, ich konnte ihn dann aber über das Panel des Anbieters neustarten.

Bei Aufruf der KH-Toolbox erhalte ich nun Folgendes:

Code: Select all

keyhelp-toolbox

Warning: MySQL - Connection Error: No such file or directory in /home/keyhelp/www/keyhelp/core/pending/DBConnection.php on line 338

Fatal error: Uncaught Error: Call to a member function query() on null in /home/keyhelp/www/keyhelp/core/pending/DBConnection.php:114
Stack trace:
#0 /home/keyhelp/www/keyhelp/core/pending/DBConnection.php(65): DBConnection->connect()
#1 /home/keyhelp/www/keyhelp/core/pending/DBConnection.php(374): DBConnection->__construct()
#2 /home/keyhelp/www/keyhelp/bin/toolbox.php(32): DBConnection::getConnection()
#3 /home/keyhelp/www/keyhelp/bin/toolbox.php(32): unknown()
#4 {main}
  thrown in /home/keyhelp/www/keyhelp/core/pending/DBConnection.php on line 114
Infos zum Server:
Server-Betriebssystem + Version
Debian 12.4
Eingesetzte Server-Virtualisierung-Technologie
KVM
KeyHelp-Version + Build-Nummer
24.0 (Build 3218)

Wie kann ich dieses Problem beheben?
Chers francophones, je traduis KeyHelp en français. S'il y a des erreurs ou des propositions d'amélioration, n'hésitez pas à me contacter !
(Ich übersetze KeyHelp ins Französische)
User avatar
Jolinar
Community Moderator
Posts: 3612
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: MySQL - Connection Error

Post by Jolinar »

Läuft der DB Server?
Was sagt:

Code: Select all

systemctl status mariadb

Was steht im /var/log/mysql/error.log und im syslog?
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
User avatar
technotravel
KeyHelp Translator
Posts: 266
Joined: Mon 19. Oct 2020, 11:11

Re: MySQL - Connection Error

Post by technotravel »

Code: Select all

Feb 17 12:50:24 v220230530976229324.powersrv.de systemd[1]: Starting mariadb.service - MariaDB 10.11.6 database server...
░░ Subject: A start job for unit mariadb.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit mariadb.service has begun execution.
░░ 
░░ The job identifier is 657.
Feb 17 12:50:24 v220230530976229324.powersrv.de mariadbd[2818]: 2024-02-17 12:50:24 0 [Warning] Could not increase number of max_open_files to more than 32768 (request: 131313)
Feb 17 12:50:24 v220230530976229324.powersrv.de mariadbd[2818]: 2024-02-17 12:50:24 0 [Note] Starting MariaDB 10.11.6-MariaDB-0+deb12u1 source revision  as process 2818
Feb 17 12:50:24 v220230530976229324.powersrv.de mariadbd[2818]: 2024-02-17 12:50:24 0 [ERROR] mariadbd: Error writing file './ddl_recovery.log' (Errcode: 28 "No space left on device")
Feb 17 12:50:24 v220230530976229324.powersrv.de mariadbd[2818]: 2024-02-17 12:50:24 0 [ERROR] Aborting
Feb 17 12:50:24 v220230530976229324.powersrv.de mariadbd[2818]: 2024-02-17 12:50:24 0 [ERROR] mariadbd: Error on close of '(null)' (Errcode: 9 "Bad file descriptor")
Feb 17 12:50:24 v220230530976229324.powersrv.de systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ An ExecStart= process belonging to unit mariadb.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
Feb 17 12:50:24 v220230530976229324.powersrv.de systemd[1]: mariadb.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ The unit mariadb.service has entered the 'failed' state with result 'exit-code'.
Beunruhigend ...

Es ist noch viel Platz auf der Platte, insofern verwundert mich "No space left on device"
Chers francophones, je traduis KeyHelp en français. S'il y a des erreurs ou des propositions d'amélioration, n'hésitez pas à me contacter !
(Ich übersetze KeyHelp ins Französische)
User avatar
24unix
Posts: 1646
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: MySQL - Connection Error

Post by 24unix »

Was sagen

Code: Select all

mount
und

Code: Select all

df -h
?
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
User avatar
technotravel
KeyHelp Translator
Posts: 266
Joined: Mon 19. Oct 2020, 11:11

Re: MySQL - Connection Error

Post by technotravel »

Code: Select all

mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=9188280k,nr_inodes=2297070,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1841492k,mode=755,inode64)
/dev/vda3 on / type ext4 (rw,relatime,quota,usrquota,grpquota,errors=remount-ro)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=20747)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
ramfs on /run/credentials/systemd-sysctl.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
ramfs on /run/credentials/systemd-sysusers.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
ramfs on /run/credentials/systemd-tmpfiles-setup-dev.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
/dev/vda2 on /boot type ext4 (rw,relatime)
ramfs on /run/credentials/systemd-tmpfiles-setup.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
https://u289757.your-storagebox.de/clacha on /mnt/clacha type fuse (rw,nosuid,nodev,relatime,user_id=5008,group_id=5008,allow_other,max_read=16384,uid=5008,gid=5008,_netdev,helper=davfs)
https://u289757.your-storagebox.de/chris on /mnt/chris type fuse (rw,nosuid,nodev,relatime,user_id=5001,group_id=5001,allow_other,max_read=16384,uid=5001,gid=5001,_netdev,helper=davfs)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=1841488k,nr_inodes=460372,mode=700,inode64)

Code: Select all

df -h
Dateisystem                               Größe Benutzt Verf. Verw% Eingehängt auf
udev                                       8,8G       0  8,8G    0% /dev
tmpfs                                      1,8G    660K  1,8G    1% /run
/dev/vda3                                  629G    627G     0  100% /
tmpfs                                      8,8G    1,2M  8,8G    1% /dev/shm
tmpfs                                      5,0M       0  5,0M    0% /run/lock
/dev/vda2                                  974M     87M  820M   10% /boot
https://u289757.your-storagebox.de/clacha  1,3T    763G  509G   61% /mnt/clacha
https://u289757.your-storagebox.de/chris   1,3T    763G  509G   61% /mnt/chris
tmpfs                                      1,8G       0  1,8G    0% /run/user/0
Chers francophones, je traduis KeyHelp en français. S'il y a des erreurs ou des propositions d'amélioration, n'hésitez pas à me contacter !
(Ich übersetze KeyHelp ins Französische)
User avatar
technotravel
KeyHelp Translator
Posts: 266
Joined: Mon 19. Oct 2020, 11:11

Re: MySQL - Connection Error

Post by technotravel »

Verdammt - erst jetzt wo ich es poste sehe ich: die Platte ist ja voll! :shock:

Investigating ...
Chers francophones, je traduis KeyHelp en français. S'il y a des erreurs ou des propositions d'amélioration, n'hésitez pas à me contacter !
(Ich übersetze KeyHelp ins Französische)
User avatar
24unix
Posts: 1646
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: MySQL - Connection Error

Post by 24unix »

technotravel wrote: Sat 17. Feb 2024, 13:02 /dev/vda3 629G 627G 0 100% /
Wie kommst Du zu der Annahme, "Es ist noch viel Platz auf der Platte"?

Die ist voll.
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
User avatar
Jolinar
Community Moderator
Posts: 3612
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: MySQL - Connection Error

Post by Jolinar »

Code: Select all

/dev/vda3                                  629G    627G     0  100% /
Dann geh mal auf Suche nach Speicherfressern...

Edit:
Fang in /var/log an ;)
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
User avatar
technotravel
KeyHelp Translator
Posts: 266
Joined: Mon 19. Oct 2020, 11:11

Re: MySQL - Connection Error

Post by technotravel »

Jolinar wrote: Sat 17. Feb 2024, 13:07

Code: Select all

/dev/vda3                                  629G    627G     0  100% /
Dann geh mal auf Suche nach Speicherfressern...

Edit:
Fang in /var/log an ;)
Haste ne heissen Tip, außer log? Journal ist zwar auf 2,5 GB, beunruhigend, aber das macht den Kohl auch nicht fett ..
Chers francophones, je traduis KeyHelp en français. S'il y a des erreurs ou des propositions d'amélioration, n'hésitez pas à me contacter !
(Ich übersetze KeyHelp ins Französische)
User avatar
24unix
Posts: 1646
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: MySQL - Connection Error

Post by 24unix »

Wenn Du auf die Schnelle nichts findest:

Code: Select all

 du -x|sort -n
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
User avatar
Jolinar
Community Moderator
Posts: 3612
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: MySQL - Connection Error

Post by Jolinar »

24unix wrote: Sat 17. Feb 2024, 13:12 Wenn Du auf die Schnelle nichts findest:

Code: Select all

 du -x|sort -n
Besser so:

Code: Select all

du -x / | sort -n
:geek:
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
User avatar
Ralph
Posts: 846
Joined: Mon 30. Mar 2020, 16:14

Re: MySQL - Connection Error

Post by Ralph »

Jolinar wrote: Sat 17. Feb 2024, 13:07

Code: Select all

/dev/vda3                                  629G    627G     0  100% /
Dann geh mal auf Suche nach Speicherfressern...

Edit:
Fang in /var/log an ;)
genau wäre ein guter Anfang und die /tmp User Folder eventl. auch mal überprüfen ...
aber vor dem löschen der logs, schau vorher mal rein (tail -n 1000 ...) damit die Ursache auch behoben werden kann!
User avatar
24unix
Posts: 1646
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: MySQL - Connection Error

Post by 24unix »

Jolinar wrote: Sat 17. Feb 2024, 13:15Besser so:
Äh, ja :-)
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
User avatar
technotravel
KeyHelp Translator
Posts: 266
Joined: Mon 19. Oct 2020, 11:11

Re: MySQL - Connection Error  [SOLVED]

Post by technotravel »

Hab's gefunden - blöder Fehler: beim (vermeintlichen) Kopieren auf ein Remote schrieb mir rsync direkt auf die Platte ....

Werd das mit dem Mounten wohl nie kapieren :(

Danke euch allen für die rasche Hilfe ... und schönes Wochenende!
Chris

Achja - damit haben sich auch alle Fehler verabschiedet :D Letztlich kein Wunder, wenn die Platte schon überläuft :o
Chers francophones, je traduis KeyHelp en français. S'il y a des erreurs ou des propositions d'amélioration, n'hésitez pas à me contacter !
(Ich übersetze KeyHelp ins Französische)
User avatar
Ralph
Posts: 846
Joined: Mon 30. Mar 2020, 16:14

Re: MySQL - Connection Error

Post by Ralph »

technotravel wrote: Sat 17. Feb 2024, 13:28 Hab's gefunden - blöder Fehler: beim (vermeintlichen) Kopieren auf ein Remote schrieb mir rsync direkt auf die Platte ....
vorher den connect status prüfen z.b.

Code: Select all

if [ -n "$(ssh -p 22 -i /root/.ssh/xxx-key "root@xxx.xxx.xxx.xxx" [ -d "/mybackupfolder" ] && echo 1; exit)" ]; then
rsync -avze  ....
rsync -avze  ....
...
echo "Rsync Backup 1" | mail -s "Rsync Backup 1" email@xxx.tld
else
echo "Rsync Backup 1 - Connect Error" | mail -s "Rsync Backup 1 - Connect Error" email@xxx.tld
fi
Post Reply