Backup_Scripts_Errors
Posted: Sun Apr 01, 2012 9:32 am
Multi_server(1DB/web_Server and 1 Asterisk/vici
VERSION: 2.4-361a
BUILD: 120221-1647
© 2012 ViciDial Group
Asterisk 1.4
Dhadi_current
Scratch_Install
Hi guys i have issue on backing up database using the ADMIN_backup.pl, which i have 1 Database/Web Server and 1 Asterisk server.
I run the script on teh Asterisk server nad getting this error log
But im a bit confuse coz i can already access teh Database server from my asterisk using remote mysql client from user cron and root:
mysql -h (Dblocalipaddress) -u cron -p (successfull login to mysql_server) ----> I run this on Asterisk/vici accessing teh Separate Databased Server
Any idea guys..? Thanks
VERSION: 2.4-361a
BUILD: 120221-1647
© 2012 ViciDial Group
Asterisk 1.4
Dhadi_current
Scratch_Install
Hi guys i have issue on backing up database using the ADMIN_backup.pl, which i have 1 Database/Web Server and 1 Asterisk server.
I run the script on teh Asterisk server nad getting this error log
- Code: Select all
/usr/share/astguiclient# /usr/share/astguiclient/ADMIN_backup.pl --db-without-logs --debugX
----- DEBUG -----
----- SUPER DEBUG -----
----- Backup Database Without Logs -----
/usr/bin/mysqldump --user=cron --password=1234 --lock-tables --flush-logs asterisk callcard_accounts callcard_accounts_details conferences groups_alias inbound_numbers live_channels live_inbound live_sip_channels menu parked_channels phone_favorites phones phones_alias server_updater servers system_settings vicidial_agent_sph vicidial_auto_calls vicidial_call_menu vicidial_call_menu_options vicidial_call_notes vicidial_call_notes_archive vicidial_call_times vicidial_callbacks vicidial_campaign_agents vicidial_campaign_dnc vicidial_campaign_hotkeys vicidial_campaign_server_stats vicidial_campaign_stats vicidial_campaign_statuses vicidial_campaigns vicidial_campaigns_list_mix vicidial_conf_templates vicidial_conferences vicidial_custom_cid vicidial_dnc vicidial_drop_rate_groups vicidial_extension_groups vicidial_filter_phone_groups vicidial_filter_phone_numbers vicidial_inbound_dids vicidial_inbound_group_agents vicidial_inbound_groups vicidial_lead_filters vicidial_lead_recycle vicidial_list vicidial_list_alt_phones vicidial_list_pins vicidial_lists vicidial_lists_fields vicidial_live_agents vicidial_live_inbound_agents vicidial_manual_dial_queue vicidial_music_on_hold vicidial_music_on_hold_files vicidial_nanpa_prefix_codes vicidial_override_ids vicidial_pause_codes vicidial_phone_codes vicidial_postal_codes vicidial_process_triggers vicidial_qc_codes vicidial_remote_agents vicidial_scripts vicidial_server_carriers vicidial_server_trunks vicidial_shifts vicidial_state_call_times vicidial_stations vicidial_status_categories vicidial_statuses vicidial_territories vicidial_timeclock_status vicidial_tts_prompts vicidial_user_groups vicidial_user_territories vicidial_users vicidial_voicemail vicidial_xfer_presets vicidial_xfer_stats vtiger_rank_data vtiger_rank_parameters vtiger_vicidial_roles | /bin/gzip > /var/log/astguiclient/archive/temp/172.16.0.17asterisk0.gz
/usr/bin/mysqldump --user=cron --password=1234 --lock-tables --flush-logs --no-data --no-create-db asterisk call_log call_log_archive callcard_log live_inbound_log park_log recording_log server_performance twoday_call_log twoday_recording_log twoday_vicidial_agent_log twoday_vicidial_closer_log twoday_vicidial_log twoday_vicidial_xfer_log user_call_log vicidial_admin_log vicidial_agent_log vicidial_agent_log_archive vicidial_api_log vicidial_carrier_log vicidial_carrier_log_archive vicidial_closer_log vicidial_cpd_log vicidial_did_log vicidial_grab_call_log vicidial_hopper vicidial_ivr vicidial_lead_search_log vicidial_lead_search_log_archive vicidial_list_update_log vicidial_log vicidial_log_archive vicidial_log_extended vicidial_manager vicidial_process_trigger_log vicidial_remote_agent_log vicidial_timeclock_audit_log vicidial_timeclock_log vicidial_user_closer_log vicidial_user_log vicidial_user_territory_log vicidial_xfer_log web_client_sessions | /bin/gzip > /var/log/astguiclient/archive/temp/LOGS_172.16.0.17asterisk0.gzmysqldump: Got error: 1045: Access denied for user 'cron'@'localhost' (using password: YES) when trying to connect
mysqldump: Got error: 1045: Access denied for user 'cron'@'localhost' (using password: YES) when trying to connect
/bin/tar cf /var/log/astguiclient/archive/temp/172.16.0.17_CONF_0.tar /etc/astguiclient.conf /etc/dahdi /etc/asterisk
/bin/tar: Removing leading `/' from member names
/bin/tar cf /var/log/astguiclient/archive/temp/172.16.0.17_LINUX_0.tar /etc/crontab_snapshot /etc/hosts /etc/resolv.conf
/bin/tar: Removing leading `/' from member names
/bin/tar cf /var/log/astguiclient/archive/temp/172.16.0.17_WEB_0.tar /var/www
/bin/tar: Removing leading `/' from member names
/bin/tar cf /var/log/astguiclient/archive/temp/172.16.0.17_BIN_0.tar /var/lib/asterisk/agi-bin /usr/share/astguiclient
/bin/tar: Removing leading `/' from member names
/bin/tar cf /var/log/astguiclient/archive/temp/172.16.0.17_SOUNDS_0.tar /var/lib/asterisk/sounds
/bin/tar: Removing leading `/' from member names
/bin/tar cf /var/log/astguiclient/archive/temp/172.16.0.17_VOICEMAIL_0.tar /var/spool/asterisk/voicemail
/bin/tar: Removing leading `/' from member names
/bin/tar cf /var/log/astguiclient/archive/172.16.0.17_ALL_0.tar /var/log/astguiclient/archive/temp
/bin/tar: Removing leading `/' from member names
rm -f /var/log/astguiclient/archive/172.16.0.17_ALL_0.tar.gz
/bin/gzip -9 /var/log/astguiclient/archive/172.16.0.17_ALL_0.tar
rm -fR /var/log/astguiclient/archive/temp
DONE, Exiting...
But im a bit confuse coz i can already access teh Database server from my asterisk using remote mysql client from user cron and root:
mysql -h (Dblocalipaddress) -u cron -p (successfull login to mysql_server) ----> I run this on Asterisk/vici accessing teh Separate Databased Server
Any idea guys..? Thanks