Current time: 11-27-2024, 05:36 PM Hello There, Guest! (LoginRegister)


Post Reply 
[Resuelto] URGENTE : fallo de disco duro solo puedo acceder modo rescue
Author Message
sfera Offline
Junior Member
*

Posts: 129
Joined: Oct 2008
Reputation: 0
Post: #41
RE: URGENTE : fallo de disco duro solo puedo acceder modo rescue
Creoq ue para tener las web funcionando asi cmo el panel de control solo me hace falta ver los permisos (usuario y grupo) de /var/lib/mysql

Alguien me lo puede decir?
07-10-2010 02:19 AM
Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #42
RE: URGENTE : fallo de disco duro solo puedo acceder modo rescue
http://isp-control.net/forum/thread-1114...l#pid84323
07-10-2010 02:23 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sfera Offline
Junior Member
*

Posts: 129
Joined: Oct 2008
Reputation: 0
Post: #43
RE: URGENTE : fallo de disco duro solo puedo acceder modo rescue
ahora no me quiere arrancar mysql y no encuentro el fallo ya que no me sale el log de /var/log/mysql.err
07-10-2010 02:30 AM
Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #44
RE: URGENTE : fallo de disco duro solo puedo acceder modo rescue
La carpeta var/lib/mysql tiene que tener permisos 755 drwxr-xr-x
Reinicia mysql y pon esto
grep mysql /var/log/syslog

A ver que te dice
07-10-2010 02:40 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sfera Offline
Junior Member
*

Posts: 129
Joined: Oct 2008
Reputation: 0
Post: #45
RE: URGENTE : fallo de disco duro solo puedo acceder modo rescue
Code:
Jul  8 10:56:35 ks202641 mysqld_safe[2829]: ended
Jul  8 10:56:49 ks202641 /etc/init.d/mysql[2964]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Jul  8 10:56:49 ks202641 /etc/init.d/mysql[2964]: ^G/usr/bin/mysqladmin: connect to server at 'localhost' failed
Jul  8 10:56:49 ks202641 /etc/init.d/mysql[2964]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Jul  8 10:56:49 ks202641 /etc/init.d/mysql[2964]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Jul  8 10:56:49 ks202641 /etc/init.d/mysql[2964]:
ServerWeb:/var/lib# date
vie jul  9 18:44:20 CEST 2010

Eso es lo que sale y si te fijas en la hora (he hecho un date) no son de ahora

Un saludo
07-10-2010 02:45 AM
Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #46
RE: URGENTE : fallo de disco duro solo puedo acceder modo rescue
Ejecuta eso

/etc/init.d/mysql stop

ps -fe | grep mysql

Salen todos los procesos, con kill num. proceso matalos si hay alguno vivo

Arranca mysql /etc/init.d/mysql start

Y pega la salida actual del comando de abajo
grep mysql /var/log/syslog
07-10-2010 02:55 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sfera Offline
Junior Member
*

Posts: 129
Joined: Oct 2008
Reputation: 0
Post: #47
RE: URGENTE : fallo de disco duro solo puedo acceder modo rescue
lo mismo...

Voy a reiniciarlo a ver si gano algo
Reiniciando el servidor ya me escribe en los logs. Esto me sale ...
Code:
Jul  9 19:08:49 ServerWeb /etc/init.d/mysql[3433]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Jul  9 19:08:49 ServerWeb /etc/init.d/mysql[3433]: #007/usr/bin/mysqladmin: connect to server at 'localhost' failed
Jul  9 19:08:49 ServerWeb /etc/init.d/mysql[3433]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Jul  9 19:08:49 ServerWeb /etc/init.d/mysql[3433]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Jul  9 19:08:49 ServerWeb /etc/init.d/mysql[3433]:
Jul  9 19:09:49 ServerWeb mysqld_safe[3784]: started
Jul  9 19:09:49 ServerWeb mysqld[3787]: 100709 19:09:49  InnoDB: Started; log sequence number 0 100662799
Jul  9 19:09:49 ServerWeb mysqld[3787]: 100709 19:09:49 [ERROR] Can't start server : Bind on unix socket: Permission denied
Jul  9 19:09:49 ServerWeb mysqld[3787]: 100709 19:09:49 [ERROR] Do you already have another mysqld server running on socket: /var/run/mysqld/mysqld.sock ?
Jul  9 19:09:49 ServerWeb mysqld[3787]: 100709 19:09:49 [ERROR] Aborting
Jul  9 19:09:49 ServerWeb mysqld[3787]:
Jul  9 19:09:49 ServerWeb mysqld[3787]: 100709 19:09:49  InnoDB: Starting shutdown...
Jul  9 19:09:51 ServerWeb mysqld[3787]: 100709 19:09:51  InnoDB: Shutdown completed; log sequence number 0 100662799
Jul  9 19:09:51 ServerWeb mysqld[3787]: 100709 19:09:51 [Note] /usr/sbin/mysqld: Shutdown complete
Jul  9 19:09:51 ServerWeb mysqld[3787]:
Jul  9 19:09:51 ServerWeb mysqld_safe[3815]: ended
Jul  9 19:10:03 ServerWeb /etc/init.d/mysql[3938]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Jul  9 19:10:03 ServerWeb /etc/init.d/mysql[3938]: #007/usr/bin/mysqladmin: connect to server at 'localhost' failed
Jul  9 19:10:03 ServerWeb /etc/init.d/mysql[3938]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Jul  9 19:10:03 ServerWeb /etc/init.d/mysql[3938]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Jul  9 19:10:03 ServerWeb /etc/init.d/mysql[3938]:

He mirado el fichero del que habla y no existe
Code:
ServerWeb:~# ls /var/run/mysqld/mysqld.sock
ls: no se puede acceder a /var/run/mysqld/mysqld.sock: No existe el fichero o el directorio

Un saludo
(This post was last modified: 07-10-2010 03:14 AM by sfera.)
07-10-2010 03:07 AM
Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #48
RE: URGENTE : fallo de disco duro solo puedo acceder modo rescue
A ver yo creo que el problema lo tienes en el archivo debian.cnf metele la key manualmente a mysql con esto

Edtia el archivo /etc/mysql/debian.cnf

# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host = localhost
user = debian-sys-maint
password = 51RsCKiYduWP835x
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
user = debian-sys-maint
password = 51RsCKiYduWP835x
socket = /var/run/mysqld/mysqld.sock
basedir = /usr


Copia el password

Arranca mysql con la consola

mysql> use mysql

Database changed
mysql> GRANT ALL PRIVILEGES ON * . * TO 'debian-sys-maint'@'localhost'
-> IDENTIFIED BY '51RsCKiYduWP835x' (// Password copiado de debian.conf)
-> WITH GRANT OPTION
-> MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR
-> 0 MAX_USER_CONNECTIONS 0 ;
Query OK, 0 rows affected (0.01 sec)

mysql> quit

Y reinicia el servicio
(This post was last modified: 07-10-2010 03:30 AM by kurgans.)
07-10-2010 03:30 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sfera Offline
Junior Member
*

Posts: 129
Joined: Oct 2008
Reputation: 0
Post: #49
RE: URGENTE : fallo de disco duro solo puedo acceder modo rescue
eso ya lo hice antes, buscando el fallo en el foro encontre esa soluccion y la aplique. Voy a ver que pasa si lo vuelvo a hacer.

edito...

Al no estar arrancado el mysql no me permite "use mysql"
(This post was last modified: 07-10-2010 03:37 AM by sfera.)
07-10-2010 03:36 AM
Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #50
RE: URGENTE : fallo de disco duro solo puedo acceder modo rescue
Tambien puedes hacer una copia de mysql eliminarlo del sistema y volver a intalar el servidor mysql y ver si inicia el servicio, que lo hace pues restauras encima,

Supongo que antes de hacer el volcado del backup el panel estaba funcionando y todos los servicios

Es que el fallo localhost me suena a que no puede conectarse a la misma maquina, no se ya es por pensar algo, tienes 127.0.0.1 en /etc/hosts definido como localhost, mira los permisos donde se crea el sock, o cambialo de carpeta, es que en los logs que me pones no dice nada de un usuario concreto, es como si no llegara
(This post was last modified: 07-10-2010 03:54 AM by kurgans.)
07-10-2010 03:42 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)