Current time: 04-20-2024, 04:41 PM Hello There, Guest! (LoginRegister)


Post Reply 
[Solucionado]Problema Backups(htdocs)
Author Message
Piradoxlanieve Offline
Junior Member
*

Posts: 246
Joined: Jul 2009
Reputation: 0
Post: #11
RE: Problema Backups(htdocs)
Nadie me puede explicar el log??? le sucede a alguien mas???? Gracias.
02-05-2010 09:24 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #12
RE: Problema Backups(htdocs)
Quote:ERROR: Missing Input Data! Please provide appropriate command line parameter(s)!

Es decir, cuanto te dije que ejecutaras ese script no te dije que necessitaba ningún parametro porque la verdad es que no lo sabía. Para saber de qué parámetros faltan, simplemente abrimos el fichero con cualquier editor y buscamos el texto del error, con lo cual aparece lo siguiente:
Code:
my $proceed = $ARGV[0];
if (!defined($proceed) || $proceed eq '') {
        push_el(\@main::el, 'main()', "ERROR: Missing Input Data! Please provide appropriate command line parameter(s)!");
        err_exit();
}

if ($proceed ne 'yes') {
        push_el(\@main::el, 'main()', "NOTE: If you want full backup of your domain data, please run this script with 'yes' command line parameter!");
        err_exit();
}

No hace falta ser un lumbreras en programación para ver que el script lleva una "protección" (no me preguntes por qué) para evitar que lo ejecutes accidentalmente. Para que realmente funcione debes ejecutar:
Code:
/var/www/ispcp/engine/backup/ispcp-backup-all yes
(This post was last modified: 02-05-2010 09:32 PM by kilburn.)
02-05-2010 09:31 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Piradoxlanieve Offline
Junior Member
*

Posts: 246
Joined: Jul 2009
Reputation: 0
Post: #13
RE: Problema Backups(htdocs)
root@ks306578:/home/miguelito# /var/www/ispcp/engine/backup/ispcp-backup-all yes
DEBUG: push_el() sub_name: backup_all_start_up(), msg: Starting...
DEBUG: push_el() sub_name: lock_backup_all_system(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/usr/bin/touch /tmp/ispcp-backup-all.lock'), msg: Ending...
DEBUG: push_el() sub_name: lock_backup_all_system(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Ending...
DEBUG: push_el() sub_name: backup_all_start_up(), msg: Ending...
DEBUG: push_el() sub_name: backup_all_engine(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: get_human_date(), msg: Starting...
DEBUG: push_el() sub_name: get_human_date(), msg: Ending...
DEBUG: push_el() sub_name: backup_sql(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/usr/bin/mysqldump --add-drop-table --allow-keywords --quote-names -h'localhost' -u'root' -p'********' 'cantabriatorrent' >'/var/www/virtual/cantabriatorrent.es/backups/cantabriatorrent.sql''), msg: Ending...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/bin/bzip2 --force '/var/www/virtual/cantabriatorrent.es/backups/cantabriatorrent.sql''), msg: Ending...
DEBUG: push_el() sub_name: backup_sql(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
-------------------------------------------------------------------------------------------
DEBUG: push_el() sub_name: sys_command(), msg: ERROR: External command '/bin/tar --create --directory=/var/www/virtual/cantabriatorrent.es --bzip2 --file=/var/www/virtual/cantabriatorrent.es/cantabriatorrent.es-backup-2010.02.05-182658.tar.bz2 --exclude=logs --exclude=phptmp --exclude=backups --exclude=cantabriatorrent.es-backup-2010.02.05-182658.tar.bz2 --exclude=cantabriatorrent.es-backup-2010.02.05-182658.tar.bz2.log . 2> /var/www/virtual/cantabriatorrent.es/cantabriatorrent.es-backup-2010.02.05-182658.tar.bz2.log' returned '1' status !
DEBUG: push_el() sub_name: backup_all_engine(), msg: Domain cantabriatorrent.es: ERROR: tar returned exit status -1, have a look in /var/www/virtual/cantabriatorrent.es/cantabriatorrent.es-backup-2010.02.05-182658.tar.bz2.log
--------------------------------------------------------------
Yo solo entiendo donde dice que mire el log..

e parado el apache y nada nose que narices estara leyendo, pero me pasa con 2 servidores diferentes los cuales usan 1.0.3-1.


Gracias kilburn, por tu apoyo.
(This post was last modified: 02-06-2010 03:43 AM by Piradoxlanieve.)
02-06-2010 03:43 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #14
RE: Problema Backups(htdocs)
Ok, se trata de un problema tonto que no es culpa tuya. El tema es que el archivo de log se crea dentro de la carpeta del dominio, con lo cual es el mismo proceso de backup quien modifica el contenido de los ficheros que tar está copiando.

Está arreglado en trunk, así que puedes probar bajandote el fichero ispcp-backup-all de trunk, ejecutando "/var/www/ispcp/engine/setup/set-engine-permissions.sh" y luego otra vez el proceso de los backups a ver si todo es correcto...

Salud
02-06-2010 11:57 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Piradoxlanieve Offline
Junior Member
*

Posts: 246
Joined: Jul 2009
Reputation: 0
Post: #15
RE: Problema Backups(htdocs)
Como Siempre , amigo mio, "Diana":P Muchas Gracias, por hacer la vida mas facil a los torpes jejeTongue Graciasss Gracias
Ya una ultima cosa.
El Debug, ¿pasa algo por estar en 1? ,
¿o es mejor ponerlo a 0??Tongue
(This post was last modified: 02-06-2010 08:35 PM by Piradoxlanieve.)
02-06-2010 08:29 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #16
RE: [Solucionado]Problema Backups(htdocs)
Lo único que pasa si dejas el debug en "1" es que los scripts de ispcp sacan mucha más información, con lo que los logs seran mayores y la carga al ejecutarse también mayor (le meterán más caña al disco). En condiciones normales no pasa nada, pero no está de más quitarlo y si nunca tienes algún problema pues lo vuelves a activar que es la mar de sencillo Wink
02-07-2010 04:16 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: 1 Guest(s)