backup script error

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

backup script error

Postby striker » Wed Feb 16, 2011 8:56 am

hi

VERSION: 2.4-285 BUILD: 101022-1427 | vicibox_redux 3.0.6|digium card


whenever i run the backup script i got this error
/usr/share/astguiclient/ADMIN_backup.pl --db-only --debug

----- DEBUG -----


----- Backup Database Only -----

mysqldump: Got error: 1227: Access denied; you need the RELOAD privilege for this operation when doing refresh
/bin/tar: Removing leading `/' from member names


&
/usr/share/astguiclient/ADMIN_backup.pl --debug

----- DEBUG -----

mysqldump: Got error: 1227: Access denied; you need the RELOAD privilege for this operation when doing refresh
/bin/tar: Removing leading `/' from member names
/bin/tar: /etc/zaptel.conf: Cannot stat: No such file or directory
/bin/tar: Exiting with failure status due to previous errors
/bin/tar: Removing leading `/' from member names
/bin/tar: Removing leading `/' from member names
/bin/tar: Removing leading `/' from member names
/bin/tar: Removing leading `/' from member names
/bin/tar: Removing leading `/' from member names
/bin/tar: Removing leading `/' from member names
You have new mail in /var/mail/root
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Postby williamconley » Wed Feb 16, 2011 10:12 am

from linux command line:

Code: Select all
mysql mysql --execute="UPDATE user SET Reload_priv = 'Y' WHERE user = 'cron'"
mysql mysql --execute="FLUSH PRIVILEGES;"


if you HAVE a mysql root password:

Code: Select all
mysql mysql --execute="UPDATE user SET Reload_priv = 'Y' WHERE user = 'cron'" -p
mysql mysql --execute="FLUSH PRIVILEGES;" -p
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

what does it do

Postby striker » Wed Feb 16, 2011 10:14 am

hi william

what was the problem , and wat does the command u posted here
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Re: backup script error

Postby williamconley » Wed Feb 16, 2011 10:31 am

striker wrote:mysqldump: Got error: 1227: Access denied; you need the RELOAD privilege for this operation when doing refresh
I'm thinkin' ... the problem was the you NEED reload, the code i posted GIVES reload.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

its working now

Postby striker » Wed Feb 16, 2011 10:46 am

its working now

thanks
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Postby ruben23 » Tue Mar 29, 2011 6:33 am

hi guys how about this log error on my admin-backup script

i got 1 asterisk/vicidial and 1 database server
scratch install/ 2.4 SVN

i run the script on teh asterisk/vicidial server adn i get this debug error:

Code: Select all
   1.
      root@dialer4:/usr/share/astguiclient# /usr/share/astguiclient/ADMIN_backup.pl --db-only --debugX
   2.
       
   3.
      ----- DEBUG -----
   4.
       
   5.
       
   6.
      ----- SUPER DEBUG -----
   7.
       
   8.
       
   9.
      ----- Backup Database Only -----
  10.
       
  11.
      /usr/bin/mysqldump --user=cron --password=1234 --lock-tables --flush-logs asterisk | /bin/gzip > /var/log/astguiclient/archive/temp/172.16.0.35asterisk2.gz
  12.
      mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
  13.
      /bin/tar cf /var/log/astguiclient/archive/172.16.0.35_ALL_2.tar /var/log/astguiclient/archive/temp
  14.
      /bin/tar: Removing leading `/' from member names
  15.
      rm -f /var/log/astguiclient/archive/172.16.0.35_ALL_2.tar.gz
  16.
      /bin/gzip -9 /var/log/astguiclient/archive/172.16.0.35_ALL_2.tar
  17.
      rm -fR /var/log/astguiclient/archive/temp
  18.
      DONE, Exiting...


any idea guys what went wrong
SkypeID: rlacumba
IBM x3200 Dual Core 2.4 Ghz.
4GB Ram
VERSION: 2.4-311a
BUILD: 110514-1351
© 2011 ViciDial Group
Asterisk 1.4.27-vici
Another VICI_day, same trunK, same Channel-->Transcode...
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Postby williamconley » Tue Mar 29, 2011 11:44 am

you really should have started a new thread for this.

is mysql running?

try running the command that failed manually (as root of course) and see if it works.

PS I'm gonna move this to "support" 8)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby ruben23 » Sun May 29, 2011 11:22 am

hi what should be the case when i got separate Databased with asterisk/vicidial;

How should i do teh backup withy databsd and where should we run the backup script, any idea guys..?

one for databsed and one for asterisk/vici..? or

should we run it all on asterisk/vicidial

:?:
SkypeID: rlacumba
IBM x3200 Dual Core 2.4 Ghz.
4GB Ram
VERSION: 2.4-311a
BUILD: 110514-1351
© 2011 ViciDial Group
Asterisk 1.4.27-vici
Another VICI_day, same trunK, same Channel-->Transcode...
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Postby williamconley » Thu Jun 02, 2011 12:12 am

Sorry, I have no idea what you just asked.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 97 guests