This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-16. For the latest, interactive version please visit https://mariadb.com/kb/.

mariabackup failed running as root.

hello, I'm running the mariabackup as root user and it seems like it failed? the logs show that the files were copied but it seems like something failed at the end. Has anyone run into this issue? any help would be appreciated.

[00] 2022-02-08 16:00:12 Backup created in directory '/mariadb_backups/' [00] 2022-02-08 16:00:12 Writing backup-my.cnf [00] 2022-02-08 16:00:12 ...done [00] 2022-02-08 16:00:12 Writing xtrabackup_info [00] 2022-02-08 16:00:12 ...done [00] 2022-02-08 16:00:12 Redo log (from LSN 580573306 to 580573318) was copied. [00] 2022-02-08 16:00:12 completed OK! pure virtual method called terminate called without an active exception 220208 16:00:12 [ERROR] mysqld got signal 6 ; This could be because you hit a bug. It is also possible that this binary or one of the libraries it was linked against is corrupt, improperly built, or misconfigured. This error can also be caused by malfunctioning hardware.

To report this bug, see https://mariadb.com/kb/en/reporting-bugs

We will try our best to scrape up some info that will hopefully help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail.

Server version: 10.6.5-MariaDB-1:10.6.5+mariabionic key_buffer_size=0 read_buffer_size=131072 max_used_connections=0 max_threads=1 thread_count=0 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 6133 K bytes of memory Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... stack_bottom = 0x0 thread_stack 0x49000 addr2line: 'mariabackup': No such file Printing to addr2line failed mariabackup(my_print_stacktrace+0x2e)[0x55b0b1348e9e] mariabackup(handle_fatal_signal+0x545)[0x55b0b0e06cb5] ??:0(restore_rt)[0x7fa84e1e3980] ??:0(gsignal)[0x7fa84d4f3fb7] ??:0(abort)[0x7fa84d4f5921] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8c957)[0x7fa84dcd0957] ??:0(std::rethrow_exception(std::exception_ptr::exception_ptr))[0x7fa84dcd6ae6] ??:0(std::terminate())[0x7fa84dcd6b21] ??:0(cxa_pure_virtual)[0x7fa84dcd78ff] ??:0(Aws::Http::CurlHandleContainer::CurlHandleContainer())[0x7fa847cc4c5c] ??:0(Aws::Http::CurlHttpClient::CurlHttpClient())[0x7fa847cc4792] ??:0(void gnu_cxx::new_allocator<Aws::Http::CurlHttpClient>::destroy<Aws::Http::CurlHttpClient>(Aws::Http::CurlHttpClient*))[0x7fa847cb8e27] ??:0(void std::allocator_traits<std::allocator<Aws::Http::CurlHttpClient> >::destroy<Aws::Http::CurlHttpClient>(std::allocator<Aws::Http::CurlHttpClient>&, Aws::Http::CurlHttpClient*))[0x7fa847cb8d8b] ??:0(std::_Sp_counted_ptr_inplace<Aws::Http::CurlHttpClient, std::allocator<Aws::Http::CurlHttpClient>, (gnu_cxx::_Lock_policy)2>::_M_dispose())[0x7fa847cb8bf5] ??:0(std::_Sp_counted_base<(gnu_cxx::_Lock_policy)2>::_M_release())[0x7fa847b2a210] ??:0(std::shared_count<(gnu_cxx::_Lock_policy)2>::__shared_count())[0x7fa847b2876b] ??:0(std::shared_ptr<Aws::Http::HttpClient, (gnu_cxx::_Lock_policy)2>::__shared_ptr())[0x7fa847bd2668] ??:0(std::shared_ptr<Aws::Http::HttpClient>::shared_ptr())[0x7fa847bd2684] ??:0(Aws::Internal::AWSHttpResourceClient::AWSHttpResourceClient())[0x7fa847c3397c] ??:0(Aws::Internal::EC2MetadataClient::EC2MetadataClient())[0x7fa847c348d0] ??:0(void gnu_cxx::new_allocator<Aws::Internal::EC2MetadataClient>::destroy<Aws::Internal::EC2MetadataClient>(Aws::Internal::EC2MetadataClient*))[0x7fa847c919bf] ??:0(void std::allocator_traits<std::allocator<Aws::Internal::EC2MetadataClient> >::destroy<Aws::Internal::EC2MetadataClient>(std::allocator<Aws::Internal::EC2MetadataClient>&, Aws::Internal::EC2MetadataClient*))[0x7fa847c91333] ??:0(std::_Sp_counted_ptr_inplace<Aws::Internal::EC2MetadataClient, std::allocator<Aws::Internal::EC2MetadataClient>, (gnu_cxx::_Lock_policy)2>::_M_dispose())[0x7fa847c8f543] ??:0(std::_Sp_counted_base<(gnu_cxx::_Lock_policy)2>::_M_release())[0x7fa847b2a210] ??:0(std::shared_count<(gnu_cxx::_Lock_policy)2>::__shared_count())[0x7fa847b2876b] ??:0(std::shared_ptr<Aws::Internal::EC2MetadataClient, (gnu_cxx::_Lock_policy)2>::__shared_ptr())[0x7fa847c5383c] ??:0(std::shared_ptr<Aws::Internal::EC2MetadataClient>::shared_ptr())[0x7fa847c53858] ??:0(libc_secure_getenv)[0x7fa84d4f8161] ??:0(exit)[0x7fa84d4f825a] ??:0(libc_start_main)[0x7fa84d4d6bfe] addr2line: 'mariabackup': No such file mariabackup(_start+0x2a)[0x55b0b0a78a6a] The manual page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mysqld/ contains information that should help you find out what is causing the crash. Writing a core file... Working directory at /var/lib/mysql Resource Limits: Limit Soft Limit Hard Limit Units Max cpu time unlimited unlimited seconds Max file size unlimited unlimited bytes Max data size unlimited unlimited bytes Max stack size 8388608 unlimited bytes Max core file size 0 unlimited bytes Max resident set unlimited unlimited bytes Max processes 31398 31398 processes Max open files 1024 1048576 files Max locked memory 67108864 67108864 bytes Max address space unlimited unlimited bytes Max file locks unlimited unlimited locks Max pending signals 31398 31398 signals Max msgqueue size 819200 819200 bytes Max nice priority 0 0 Max realtime priority 0 0 Max realtime timeout unlimited unlimited us Core pattern: |/usr/share/apport/apport %p %s %c %d %P %E

Aborted (core dumped)

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.