Asrestore - core dumped


#1

Hi,

I am trying to use asrestore in a dev environment and always return core dumped.

What am i doing wrong?

$ asrestore -v -n stopbadbots -d /opt/data/jpeso/asbackup -t 1
restoring: host 127.0.0.1 port 3000 bin_list (null) from directory /opt/data/jpeso/asbackup
2015-10-17 06:56:45 INFO Add node BB95B77E31E2754 127.0.0.1:3000
Oct 17 2015 04:56:45 GMT: starting restore: filename: /opt/data/jpeso/asbackup/BB95B77E31E2754_00010.asb FILE 0x7f67f80008c0
Oct 17 2015 04:56:46 GMT: expired 0 : skipped 0 : attempted 8706 : [updated 8706 not-updated (existed 0 gen-old 0)]
Oct 17 2015 04:56:47 GMT: expired 0 : skipped 0 : attempted 17214 : [updated 17214 not-updated (existed 0 gen-old 0)]
Oct 17 2015 04:56:48 GMT: expired 0 : skipped 0 : attempted 25542 : [updated 25542 not-updated (existed 0 gen-old 0)]
[1]    14783 segmentation fault (core dumped)  asrestore -v -n stopbadbots -d /opt/data/jpeso/asbackup -t 1

SETS after restore

aql> show sets
+-----------+----------------+----------------------+---------------+--------------+------------+---------------------+
| n_objects | set-enable-xdr | set-stop-write-count | ns_name       | set_name     | set-delete | set-evict-hwm-count |
+-----------+----------------+----------------------+---------------+--------------+------------+---------------------+
| 31380     | "use-default"  | 0                    | "stopbadbots" | "example"    | "false"    | 0                   |
| 41        | "use-default"  | 0                    | "stopbadbots" | "prediction" | "false"    | 0                   |
| 1         | "use-default"  | 0                    | "stopbadbots" | "feature"    | "false"    | 0                   |
+-----------+----------------+----------------------+---------------+--------------+------------+---------------------+
3 rows in set (0.001 secs)
OK

asinfo

$ asinfo
1 :  node
     BB95B77E31E2754
2 :  statistics
     cluster_size=1;cluster_key=C2F5F86CC3BF85FE;cluster_integrity=true;objects=31422;sub-records=0;total-bytes-disk=8589934592;used-bytes-disk=40189440;free-pct-disk=99;total-bytes-memory=2147483648;used-bytes-memory=5416402;data-used-bytes-memory=0;index-used-bytes-memory=2011008;sindex-used-bytes-memory=3405394;free-pct-memory=99;stat_read_reqs=0;stat_read_reqs_xdr=0;stat_read_success=0;stat_read_errs_notfound=0;stat_read_errs_other=0;stat_write_reqs=31422;stat_write_reqs_xdr=0;stat_write_success=31422;stat_write_errs=0;stat_xdr_pipe_writes=0;stat_xdr_pipe_miss=0;stat_delete_success=0;stat_rw_timeout=0;udf_read_reqs=0;udf_read_success=0;udf_read_errs_other=0;udf_write_reqs=0;udf_write_success=0;udf_write_err_others=0;udf_delete_reqs=0;udf_delete_success=0;udf_delete_err_others=0;udf_lua_errs=0;udf_scan_rec_reqs=0;udf_query_rec_reqs=0;udf_replica_writes=0;stat_proxy_reqs=0;stat_proxy_reqs_xdr=0;stat_proxy_success=0;stat_proxy_errs=0;stat_ldt_proxy=0;stat_cluster_key_trans_to_proxy_retry=0;stat_cluster_key_transaction_reenqueue=0;stat_slow_trans_queue_push=0;stat_slow_trans_queue_pop=0;stat_slow_trans_queue_batch_pop=0;stat_cluster_key_regular_processed=0;stat_cluster_key_prole_retry=0;stat_cluster_key_err_ack_dup_trans_reenqueue=0;stat_cluster_key_partition_transaction_queue_count=0;stat_cluster_key_err_ack_rw_trans_reenqueue=0;stat_expired_objects=0;stat_evicted_objects=0;stat_deleted_set_objects=0;stat_evicted_set_objects=0;stat_evicted_objects_time=0;stat_zero_bin_records=0;stat_nsup_deletes_not_shipped=0;err_tsvc_requests=0;err_tsvc_requests_timeout=0;err_out_of_space=0;err_duplicate_proxy_request=0;err_rw_request_not_found=0;err_rw_pending_limit=0;err_rw_cant_put_unique=0;fabric_msgs_sent=0;fabric_msgs_rcvd=0;paxos_principal=BB95B77E31E2754;migrate_msgs_sent=0;migrate_msgs_recv=0;migrate_progress_send=0;migrate_progress_recv=0;migrate_num_incoming_accepted=0;migrate_num_incoming_refused=0;queue=0;transactions=31631;reaped_fds=0;scans_active=0;basic_scans_succeeded=0;basic_scans_failed=0;aggr_scans_succeeded=0;aggr_scans_failed=0;udf_bg_scans_succeeded=0;udf_bg_scans_failed=0;batch_index_initiate=0;batch_index_queue=0:0,0:0,0:0,0:0;batch_index_complete=0;batch_index_timeout=0;batch_index_errors=0;batch_index_unused_buffers=0;batch_initiate=0;batch_queue=0;batch_tree_count=0;batch_timeout=0;batch_errors=0;info_queue=0;delete_queue=0;proxy_in_progress=0;proxy_initiate=0;proxy_action=0;proxy_retry=0;proxy_retry_q_full=0;proxy_unproxy=0;proxy_retry_same_dest=0;proxy_retry_new_dest=0;write_master=31422;write_prole=0;read_dup_prole=0;rw_err_dup_internal=0;rw_err_dup_cluster_key=0;rw_err_dup_send=0;rw_err_write_internal=0;rw_err_write_cluster_key=0;rw_err_write_send=0;rw_err_ack_internal=0;rw_err_ack_nomatch=0;rw_err_ack_badnode=0;client_connections=2;waiting_transactions=0;tree_count=0;record_refs=31422;record_locks=0;migrate_tx_objs=0;migrate_rx_objs=0;ongoing_write_reqs=0;err_storage_queue_full=0;partition_actual=4096;partition_replica=0;partition_desync=0;partition_absent=0;partition_object_count=31422;partition_ref_count=4096;system_free_mem_pct=77;sindex_ucgarbage_found=0;sindex_gc_locktimedout=0;sindex_gc_inactivity_dur=191892;sindex_gc_activity_dur=108;sindex_gc_list_creation_time=107;sindex_gc_list_deletion_time=0;sindex_gc_objects_validated=62760;sindex_gc_garbage_found=0;sindex_gc_garbage_cleaned=0;system_swapping=false;err_replica_null_node=0;err_replica_non_null_node=0;err_sync_copy_null_master=0;storage_defrag_corrupt_record=0;err_write_fail_prole_unknown=0;err_write_fail_prole_generation=0;err_write_fail_unknown=0;err_write_fail_key_exists=0;err_write_fail_generation=0;err_write_fail_generation_xdr=0;err_write_fail_bin_exists=0;err_write_fail_parameter=0;err_write_fail_incompatible_type=0;err_write_fail_noxdr=0;err_write_fail_prole_delete=0;err_write_fail_not_found=0;err_write_fail_key_mismatch=0;err_write_fail_record_too_big=0;err_write_fail_bin_name=0;err_write_fail_bin_not_found=0;err_write_fail_forbidden=0;stat_duplicate_operation=0;uptime=201;stat_write_errs_notfound=0;stat_write_errs_other=0;heartbeat_received_self=1331;heartbeat_received_foreign=0;query_reqs=0;query_success=0;query_fail=0;query_abort=0;query_avg_rec_count=0;query_short_running=0;query_long_running=0;query_short_queue_full=0;query_long_queue_full=0;query_short_reqs=0;query_long_reqs=0;query_agg=0;query_agg_success=0;query_agg_err=0;query_agg_abort=0;query_agg_avg_rec_count=0;query_lookups=0;query_lookup_success=0;query_lookup_err=0;query_lookup_abort=0;query_lookup_avg_rec_count=0
3 :  features
     float;batch-index;replicas-all;replicas-master;replicas-prole;udf
4 :  cluster-generation
     0
5 :  partition-generation
     1
6 :  edition
     Aerospike Community Edition
7 :  version
     Aerospike Community Edition build 3.6.0
8 :  build
     3.6.0
9 :  services
     
10 :  services-alumni

host and aerospike version

$ dpkg -l | grep aerospike
ii  aerospike-server-community                            3.6.0-1                                                amd64        The Aerospike distributed datastore allows fully scalable and reliable data storage with elastic server properties.
ii  aerospike-tools                                       3.6.0                                                  amd64        Aerospike server tools.
$ uname -a
Linux lemmy 3.13.0-34-generic #60-Ubuntu SMP Wed Aug 13 15:45:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Thanks


#2

Hi, Please use tools version 3.6.1(aerospike-tools-3.6.1).

Do you have non-printable characters in your data? If yes then your backup file itself get corrupted because of non-printable characters. Use above version of asbackup to take backup again.