MariaDB Can't init tc logMariadb alongside MySQL Can't start the MariaDBInnoDB file per...

Is layered encryption more secure than long passwords?

How can changes in personality/values of a person who turned into a vampire be explained?

What does @ mean in a hostname in DNS configuration?

Does the Holy Ark weight 4 tons?

How bad is a Computer Science course that doesn't teach Design Patterns?

Was the Soviet N1 really capable of sending 9.6 GB/s of telemetry?

Arizona laws regarding ownership of ground glassware for chemistry usage

Why is the meaning of kanji 閑 "leisure"?

Why Third 'Reich'? Why is 'reich' not translated when 'third' is? What is the English synonym of reich?

How can I use a Module anonymously as the function for /@?

Is it possible to detect 100% of SQLi with a simple regex?

What is formjacking?

Translation for threshold (figuratively)

Coworker asking me to not bring cakes due to self control issue. What should I do?

TikZtree with asymmetric siblings

The Longest Chess Game

What does an unprocessed RAW file look like?

Have any astronauts or cosmonauts died in space?

Why write a book when there's a movie in my head?

Have the UK Conservatives lost the working majority and if so, what does this mean?

Taking an academic pseudonym?

How should I ship cards?

What did Putin say about a US deep state in his state-of-the-nation speech; what has he said in the past?

Why didn't Lorentz conclude that no object can go faster than light?



MariaDB Can't init tc log


Mariadb alongside MySQL Can't start the MariaDBInnoDB file per tablespaceMariadb/docker error : Can't init tc logMariaDB service won't start (mysqld.sock not found)mariaDB tables create_options clearDetermine cause of failed MariaDB start on CentOS 7Thousands of MySQL connections with no visitorsMariaDB can't find tables mysql.user and mysql.serversInnoDB ibdata1 corrupted, innodb_force_recover not workingCan't create/write to file '/var/log/mariadb/mariadb.log'













13















I've tried every solution on the Internet but my MariaDb server continue to fail, continue to betray me, continue to destroy my tiny DevOps world. My attempts to smooth the situation included all sorts of satisfaction: changing permissions, configs, removing log files, upgrading / reinstalling, moving her internal files up and around, removing other DBMS, removing everything except her but.... she has never been resisting so much for so long. My last and only hope for you guys to light the way through such critical moment in our relationships.



I'm using vagrant and the problem is in datadir option - when I use default path everything is ok but when I change it to vagrant shared folder Maria does not even start. I have copied all the /var/lib/mysql files to new folder.



I have Windows host, Centos guest and my configurations are:



MariaDb version:



mysql  Ver 15.1 Distrib 10.1.17-MariaDB, for Linux (x86_64) using readline 5.1


Vagrantfile:



# -*- mode: ruby; -*-

ENV['VAGRANT_DEFAULT_PROVIDER'] = 'virtualbox'

Vagrant.configure("2") do |config|
config.vm.box_url = "https://github.com/tommy-muehle/puppet-vagrant-boxes/releases/download/1.1.0/centos-7.0-x86_64.box"
config.vm.box = "centos7"

config.vm.network "private_network", ip: "10.0.1.10"

config.vm.synced_folder "mysql", "/vagrant/mysql", owner: "mysql", group: "mysql"

config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "4096"]
vb.customize ["modifyvm", :id, "--cpus", "4"]
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--audio", "none"]
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
vb.customize ["modifyvm", :id, "--nictype2", "virtio"]
end
end


/etc/my.cnf.d/server.cnf:



[mysqld]
user=mysql
datadir=/vagrant/mysql
socket=/var/lib/mysql/mysql.sock
symbolic-links=0
default-storage-engine=innodb

tmpdir = /tmp

character-set-server = utf8
init-connect="SET NAMES utf8"

expire_logs_days=2
skip-external-locking

key_buffer_size = 32M
max_allowed_packet = 32M
table_open_cache = 8192
table_definition_cache = 8192
sort_buffer_size = 16M
net_buffer_length = 16K
read_buffer_size = 8M
read_rnd_buffer_size = 8M
thread_cache_size = 128
thread_concurrency = 16

query_cache_size = 1024M
query_cache_limit = 2M
join_buffer_size = 32M

max_connections = 1024
max_connect_errors = 1024

connect_timeout=5

innodb_file_per_table
innodb_buffer_pool_size=2048M
innodb_read_io_threads=8
innodb_write_io_threads=8
innodb_lock_wait_timeout=5
innodb_flush_log_at_trx_commit=2
innodb_flush_method=O_DSYNC
innodb_log_file_size=64M
innodb_log_buffer_size=32M
innodb_log_files_in_group=2
innodb_thread_concurrency=16
innodb_open_files = 1000
innodb_sync_spin_loops=100

skip-name-resolve

log-error=/var/log/mariadb/mysqld.log


MariaDb error log:



2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: The InnoDB memory heap is disabled
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Compressed tables use zlib 1.2.7
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Using Linux native AIO
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Using SSE crc32 instructions
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Initializing buffer pool, size = 2.0G
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Completed initialization of buffer pool
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Highest supported file format is Barracuda.
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: 128 rollback segment(s) are active.
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Waiting for purge to start
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.31-77.0 started; log sequence number 1600799
2016-09-30 22:32:46 139754263774976 [Note] InnoDB: Dumping buffer pool(s) not yet started
2016-09-30 22:32:46 139758293125248 [Note] Plugin 'FEEDBACK' is disabled.
2016-09-30 22:32:46 139758293125248 [ERROR] Can't init tc log
2016-09-30 22:32:46 139758293125248 [ERROR] Aborting









share|improve this question




















  • 1





    Do you have enough space on partition with the log? Can you delete log file and restart?

    – Stoleg
    Oct 4 '16 at 16:30











  • @Stoleg Hi Stoleg, thank you for reply. There's a lot of free space on partition. I tried deleting the file, restarting and MariaDb creates it and does not start

    – Sam Ivichuk
    Oct 6 '16 at 17:07











  • Does account used by Maria, has READ permissions to destination folder? There may be a chance that it can create file with Write, but have no Read permission. Try doing same operations as Maria would do under its account. May be it cannot keep file open and locked?

    – Stoleg
    Oct 10 '16 at 15:48
















13















I've tried every solution on the Internet but my MariaDb server continue to fail, continue to betray me, continue to destroy my tiny DevOps world. My attempts to smooth the situation included all sorts of satisfaction: changing permissions, configs, removing log files, upgrading / reinstalling, moving her internal files up and around, removing other DBMS, removing everything except her but.... she has never been resisting so much for so long. My last and only hope for you guys to light the way through such critical moment in our relationships.



I'm using vagrant and the problem is in datadir option - when I use default path everything is ok but when I change it to vagrant shared folder Maria does not even start. I have copied all the /var/lib/mysql files to new folder.



I have Windows host, Centos guest and my configurations are:



MariaDb version:



mysql  Ver 15.1 Distrib 10.1.17-MariaDB, for Linux (x86_64) using readline 5.1


Vagrantfile:



# -*- mode: ruby; -*-

ENV['VAGRANT_DEFAULT_PROVIDER'] = 'virtualbox'

Vagrant.configure("2") do |config|
config.vm.box_url = "https://github.com/tommy-muehle/puppet-vagrant-boxes/releases/download/1.1.0/centos-7.0-x86_64.box"
config.vm.box = "centos7"

config.vm.network "private_network", ip: "10.0.1.10"

config.vm.synced_folder "mysql", "/vagrant/mysql", owner: "mysql", group: "mysql"

config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "4096"]
vb.customize ["modifyvm", :id, "--cpus", "4"]
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--audio", "none"]
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
vb.customize ["modifyvm", :id, "--nictype2", "virtio"]
end
end


/etc/my.cnf.d/server.cnf:



[mysqld]
user=mysql
datadir=/vagrant/mysql
socket=/var/lib/mysql/mysql.sock
symbolic-links=0
default-storage-engine=innodb

tmpdir = /tmp

character-set-server = utf8
init-connect="SET NAMES utf8"

expire_logs_days=2
skip-external-locking

key_buffer_size = 32M
max_allowed_packet = 32M
table_open_cache = 8192
table_definition_cache = 8192
sort_buffer_size = 16M
net_buffer_length = 16K
read_buffer_size = 8M
read_rnd_buffer_size = 8M
thread_cache_size = 128
thread_concurrency = 16

query_cache_size = 1024M
query_cache_limit = 2M
join_buffer_size = 32M

max_connections = 1024
max_connect_errors = 1024

connect_timeout=5

innodb_file_per_table
innodb_buffer_pool_size=2048M
innodb_read_io_threads=8
innodb_write_io_threads=8
innodb_lock_wait_timeout=5
innodb_flush_log_at_trx_commit=2
innodb_flush_method=O_DSYNC
innodb_log_file_size=64M
innodb_log_buffer_size=32M
innodb_log_files_in_group=2
innodb_thread_concurrency=16
innodb_open_files = 1000
innodb_sync_spin_loops=100

skip-name-resolve

log-error=/var/log/mariadb/mysqld.log


MariaDb error log:



2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: The InnoDB memory heap is disabled
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Compressed tables use zlib 1.2.7
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Using Linux native AIO
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Using SSE crc32 instructions
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Initializing buffer pool, size = 2.0G
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Completed initialization of buffer pool
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Highest supported file format is Barracuda.
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: 128 rollback segment(s) are active.
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Waiting for purge to start
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.31-77.0 started; log sequence number 1600799
2016-09-30 22:32:46 139754263774976 [Note] InnoDB: Dumping buffer pool(s) not yet started
2016-09-30 22:32:46 139758293125248 [Note] Plugin 'FEEDBACK' is disabled.
2016-09-30 22:32:46 139758293125248 [ERROR] Can't init tc log
2016-09-30 22:32:46 139758293125248 [ERROR] Aborting









share|improve this question




















  • 1





    Do you have enough space on partition with the log? Can you delete log file and restart?

    – Stoleg
    Oct 4 '16 at 16:30











  • @Stoleg Hi Stoleg, thank you for reply. There's a lot of free space on partition. I tried deleting the file, restarting and MariaDb creates it and does not start

    – Sam Ivichuk
    Oct 6 '16 at 17:07











  • Does account used by Maria, has READ permissions to destination folder? There may be a chance that it can create file with Write, but have no Read permission. Try doing same operations as Maria would do under its account. May be it cannot keep file open and locked?

    – Stoleg
    Oct 10 '16 at 15:48














13












13








13


2






I've tried every solution on the Internet but my MariaDb server continue to fail, continue to betray me, continue to destroy my tiny DevOps world. My attempts to smooth the situation included all sorts of satisfaction: changing permissions, configs, removing log files, upgrading / reinstalling, moving her internal files up and around, removing other DBMS, removing everything except her but.... she has never been resisting so much for so long. My last and only hope for you guys to light the way through such critical moment in our relationships.



I'm using vagrant and the problem is in datadir option - when I use default path everything is ok but when I change it to vagrant shared folder Maria does not even start. I have copied all the /var/lib/mysql files to new folder.



I have Windows host, Centos guest and my configurations are:



MariaDb version:



mysql  Ver 15.1 Distrib 10.1.17-MariaDB, for Linux (x86_64) using readline 5.1


Vagrantfile:



# -*- mode: ruby; -*-

ENV['VAGRANT_DEFAULT_PROVIDER'] = 'virtualbox'

Vagrant.configure("2") do |config|
config.vm.box_url = "https://github.com/tommy-muehle/puppet-vagrant-boxes/releases/download/1.1.0/centos-7.0-x86_64.box"
config.vm.box = "centos7"

config.vm.network "private_network", ip: "10.0.1.10"

config.vm.synced_folder "mysql", "/vagrant/mysql", owner: "mysql", group: "mysql"

config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "4096"]
vb.customize ["modifyvm", :id, "--cpus", "4"]
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--audio", "none"]
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
vb.customize ["modifyvm", :id, "--nictype2", "virtio"]
end
end


/etc/my.cnf.d/server.cnf:



[mysqld]
user=mysql
datadir=/vagrant/mysql
socket=/var/lib/mysql/mysql.sock
symbolic-links=0
default-storage-engine=innodb

tmpdir = /tmp

character-set-server = utf8
init-connect="SET NAMES utf8"

expire_logs_days=2
skip-external-locking

key_buffer_size = 32M
max_allowed_packet = 32M
table_open_cache = 8192
table_definition_cache = 8192
sort_buffer_size = 16M
net_buffer_length = 16K
read_buffer_size = 8M
read_rnd_buffer_size = 8M
thread_cache_size = 128
thread_concurrency = 16

query_cache_size = 1024M
query_cache_limit = 2M
join_buffer_size = 32M

max_connections = 1024
max_connect_errors = 1024

connect_timeout=5

innodb_file_per_table
innodb_buffer_pool_size=2048M
innodb_read_io_threads=8
innodb_write_io_threads=8
innodb_lock_wait_timeout=5
innodb_flush_log_at_trx_commit=2
innodb_flush_method=O_DSYNC
innodb_log_file_size=64M
innodb_log_buffer_size=32M
innodb_log_files_in_group=2
innodb_thread_concurrency=16
innodb_open_files = 1000
innodb_sync_spin_loops=100

skip-name-resolve

log-error=/var/log/mariadb/mysqld.log


MariaDb error log:



2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: The InnoDB memory heap is disabled
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Compressed tables use zlib 1.2.7
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Using Linux native AIO
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Using SSE crc32 instructions
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Initializing buffer pool, size = 2.0G
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Completed initialization of buffer pool
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Highest supported file format is Barracuda.
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: 128 rollback segment(s) are active.
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Waiting for purge to start
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.31-77.0 started; log sequence number 1600799
2016-09-30 22:32:46 139754263774976 [Note] InnoDB: Dumping buffer pool(s) not yet started
2016-09-30 22:32:46 139758293125248 [Note] Plugin 'FEEDBACK' is disabled.
2016-09-30 22:32:46 139758293125248 [ERROR] Can't init tc log
2016-09-30 22:32:46 139758293125248 [ERROR] Aborting









share|improve this question
















I've tried every solution on the Internet but my MariaDb server continue to fail, continue to betray me, continue to destroy my tiny DevOps world. My attempts to smooth the situation included all sorts of satisfaction: changing permissions, configs, removing log files, upgrading / reinstalling, moving her internal files up and around, removing other DBMS, removing everything except her but.... she has never been resisting so much for so long. My last and only hope for you guys to light the way through such critical moment in our relationships.



I'm using vagrant and the problem is in datadir option - when I use default path everything is ok but when I change it to vagrant shared folder Maria does not even start. I have copied all the /var/lib/mysql files to new folder.



I have Windows host, Centos guest and my configurations are:



MariaDb version:



mysql  Ver 15.1 Distrib 10.1.17-MariaDB, for Linux (x86_64) using readline 5.1


Vagrantfile:



# -*- mode: ruby; -*-

ENV['VAGRANT_DEFAULT_PROVIDER'] = 'virtualbox'

Vagrant.configure("2") do |config|
config.vm.box_url = "https://github.com/tommy-muehle/puppet-vagrant-boxes/releases/download/1.1.0/centos-7.0-x86_64.box"
config.vm.box = "centos7"

config.vm.network "private_network", ip: "10.0.1.10"

config.vm.synced_folder "mysql", "/vagrant/mysql", owner: "mysql", group: "mysql"

config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "4096"]
vb.customize ["modifyvm", :id, "--cpus", "4"]
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
vb.customize ["modifyvm", :id, "--audio", "none"]
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
vb.customize ["modifyvm", :id, "--nictype2", "virtio"]
end
end


/etc/my.cnf.d/server.cnf:



[mysqld]
user=mysql
datadir=/vagrant/mysql
socket=/var/lib/mysql/mysql.sock
symbolic-links=0
default-storage-engine=innodb

tmpdir = /tmp

character-set-server = utf8
init-connect="SET NAMES utf8"

expire_logs_days=2
skip-external-locking

key_buffer_size = 32M
max_allowed_packet = 32M
table_open_cache = 8192
table_definition_cache = 8192
sort_buffer_size = 16M
net_buffer_length = 16K
read_buffer_size = 8M
read_rnd_buffer_size = 8M
thread_cache_size = 128
thread_concurrency = 16

query_cache_size = 1024M
query_cache_limit = 2M
join_buffer_size = 32M

max_connections = 1024
max_connect_errors = 1024

connect_timeout=5

innodb_file_per_table
innodb_buffer_pool_size=2048M
innodb_read_io_threads=8
innodb_write_io_threads=8
innodb_lock_wait_timeout=5
innodb_flush_log_at_trx_commit=2
innodb_flush_method=O_DSYNC
innodb_log_file_size=64M
innodb_log_buffer_size=32M
innodb_log_files_in_group=2
innodb_thread_concurrency=16
innodb_open_files = 1000
innodb_sync_spin_loops=100

skip-name-resolve

log-error=/var/log/mariadb/mysqld.log


MariaDb error log:



2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: The InnoDB memory heap is disabled
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Compressed tables use zlib 1.2.7
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Using Linux native AIO
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Using SSE crc32 instructions
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Initializing buffer pool, size = 2.0G
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Completed initialization of buffer pool
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Highest supported file format is Barracuda.
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: 128 rollback segment(s) are active.
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Waiting for purge to start
2016-09-30 22:32:46 139758293125248 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.31-77.0 started; log sequence number 1600799
2016-09-30 22:32:46 139754263774976 [Note] InnoDB: Dumping buffer pool(s) not yet started
2016-09-30 22:32:46 139758293125248 [Note] Plugin 'FEEDBACK' is disabled.
2016-09-30 22:32:46 139758293125248 [ERROR] Can't init tc log
2016-09-30 22:32:46 139758293125248 [ERROR] Aborting






mariadb centos






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 4 '16 at 3:51







Sam Ivichuk

















asked Sep 30 '16 at 20:44









Sam IvichukSam Ivichuk

125117




125117








  • 1





    Do you have enough space on partition with the log? Can you delete log file and restart?

    – Stoleg
    Oct 4 '16 at 16:30











  • @Stoleg Hi Stoleg, thank you for reply. There's a lot of free space on partition. I tried deleting the file, restarting and MariaDb creates it and does not start

    – Sam Ivichuk
    Oct 6 '16 at 17:07











  • Does account used by Maria, has READ permissions to destination folder? There may be a chance that it can create file with Write, but have no Read permission. Try doing same operations as Maria would do under its account. May be it cannot keep file open and locked?

    – Stoleg
    Oct 10 '16 at 15:48














  • 1





    Do you have enough space on partition with the log? Can you delete log file and restart?

    – Stoleg
    Oct 4 '16 at 16:30











  • @Stoleg Hi Stoleg, thank you for reply. There's a lot of free space on partition. I tried deleting the file, restarting and MariaDb creates it and does not start

    – Sam Ivichuk
    Oct 6 '16 at 17:07











  • Does account used by Maria, has READ permissions to destination folder? There may be a chance that it can create file with Write, but have no Read permission. Try doing same operations as Maria would do under its account. May be it cannot keep file open and locked?

    – Stoleg
    Oct 10 '16 at 15:48








1




1





Do you have enough space on partition with the log? Can you delete log file and restart?

– Stoleg
Oct 4 '16 at 16:30





Do you have enough space on partition with the log? Can you delete log file and restart?

– Stoleg
Oct 4 '16 at 16:30













@Stoleg Hi Stoleg, thank you for reply. There's a lot of free space on partition. I tried deleting the file, restarting and MariaDb creates it and does not start

– Sam Ivichuk
Oct 6 '16 at 17:07





@Stoleg Hi Stoleg, thank you for reply. There's a lot of free space on partition. I tried deleting the file, restarting and MariaDb creates it and does not start

– Sam Ivichuk
Oct 6 '16 at 17:07













Does account used by Maria, has READ permissions to destination folder? There may be a chance that it can create file with Write, but have no Read permission. Try doing same operations as Maria would do under its account. May be it cannot keep file open and locked?

– Stoleg
Oct 10 '16 at 15:48





Does account used by Maria, has READ permissions to destination folder? There may be a chance that it can create file with Write, but have no Read permission. Try doing same operations as Maria would do under its account. May be it cannot keep file open and locked?

– Stoleg
Oct 10 '16 at 15:48










6 Answers
6






active

oldest

votes


















13














Woohoo, I found it! For now, at least. Digging through the source suggests that this might have something to do with mmap() calls, and lo and behold - VirtualBox has a bug in that area. Fortunately that same source hints at a workaround - the log_bin option. Enable this (either from the command line as --log_bin or from the config file as log_bin=ON) and things start to work again!






share|improve this answer
























  • Thank-you so much! This fixed my tc.log error using Virtualbox on a windows 10 host.

    – Ricky Boyce
    Apr 1 '18 at 23:51













  • This seems to have been a significant bit of progress for me also, Windows 10 Home, Docker Toolbox 18.03.

    – rfay
    Apr 16 '18 at 21:17



















11














I ended up deleting the tc.log file in /var/lib/mysql. When I started mysql again, it created a new tc.log and started up.



sudo rm -f /var/lib/mysql/tc.log





share|improve this answer
























  • while this feels somewhat unsafe it worked in my case!

    – Peter
    Oct 2 '18 at 17:32











  • It worked, but it's safer to use: sudo mv /var/lib/mysql/tc.log /var/lib/mysql/tc_bkp.log

    – Pedro Lobito
    Feb 9 at 22:07



















8














You can remove the tc.log in the data directory and remove old entries from mysql-bin.index (it is a text file, along with a list of binary logs). If this is a development box, you can remove the index file (mysql-bin.index) to force its recreation.



Also it could be related to the user ids between mysql user and the shared folder id owner, here is a snippet to do so.






share|improve this answer
























  • Curious about the cause of this issue though, how can I avoid? Thanks

    – 3zzy
    Sep 2 '17 at 5:06











  • @3zzy - Read my answer.

    – Vilx-
    Sep 4 '17 at 8:06











  • @3zzy I didn't reproduce the bug yet.

    – 3manuek
    Sep 4 '17 at 13:15











  • This is a strange issue to encounter indeed. What exactly is stored in this file? I was in such haste to fix the problem I forgot to look at the one that was there. I may be able to provide more detail.

    – Arcabard
    May 4 '18 at 14:53











  • I suspect that an "out of disk space" error corrupted my tc.log today.

    – jchook
    Aug 2 '18 at 1:01



















1














If you just want to get mysql/mariadb running again and don't mind losing your data (in a dev environment), this is what I did



Delete:
ib_logfile1
ib_logfile0
aria_log_control
aria_log.00000001
tc.log
ib_data1



start the server



Delete the schema (if it contains files, cd into the schema's folder, delete everything)



I then reimported the database from an old dump I had.



I then started mariadb, and it comes up fine. The deleted files got recreated.
** Again this is for dev only. You could probably install your db**






share|improve this answer































    0














    I faced this issue when I tried to copy the database data folder.
    So I changed to the data folder and executed following command to delete all log files:



    rm -rf *log*


    Then I rebuilded the docker and issue was sorted.






    share|improve this answer

































      0














      I also solved this error by removing the tc.log. With XAMPP the tc.log file is in the XAMPP/xamppfiles/var/mysql folder - on my mac its located at:
      /Applications/XAMPP/xamppfiles/var/mysql/tc.log





      share








      New contributor




      John Tyner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "182"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: false,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: null,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f151183%2fmariadb-cant-init-tc-log%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        6 Answers
        6






        active

        oldest

        votes








        6 Answers
        6






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        13














        Woohoo, I found it! For now, at least. Digging through the source suggests that this might have something to do with mmap() calls, and lo and behold - VirtualBox has a bug in that area. Fortunately that same source hints at a workaround - the log_bin option. Enable this (either from the command line as --log_bin or from the config file as log_bin=ON) and things start to work again!






        share|improve this answer
























        • Thank-you so much! This fixed my tc.log error using Virtualbox on a windows 10 host.

          – Ricky Boyce
          Apr 1 '18 at 23:51













        • This seems to have been a significant bit of progress for me also, Windows 10 Home, Docker Toolbox 18.03.

          – rfay
          Apr 16 '18 at 21:17
















        13














        Woohoo, I found it! For now, at least. Digging through the source suggests that this might have something to do with mmap() calls, and lo and behold - VirtualBox has a bug in that area. Fortunately that same source hints at a workaround - the log_bin option. Enable this (either from the command line as --log_bin or from the config file as log_bin=ON) and things start to work again!






        share|improve this answer
























        • Thank-you so much! This fixed my tc.log error using Virtualbox on a windows 10 host.

          – Ricky Boyce
          Apr 1 '18 at 23:51













        • This seems to have been a significant bit of progress for me also, Windows 10 Home, Docker Toolbox 18.03.

          – rfay
          Apr 16 '18 at 21:17














        13












        13








        13







        Woohoo, I found it! For now, at least. Digging through the source suggests that this might have something to do with mmap() calls, and lo and behold - VirtualBox has a bug in that area. Fortunately that same source hints at a workaround - the log_bin option. Enable this (either from the command line as --log_bin or from the config file as log_bin=ON) and things start to work again!






        share|improve this answer













        Woohoo, I found it! For now, at least. Digging through the source suggests that this might have something to do with mmap() calls, and lo and behold - VirtualBox has a bug in that area. Fortunately that same source hints at a workaround - the log_bin option. Enable this (either from the command line as --log_bin or from the config file as log_bin=ON) and things start to work again!







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Sep 4 '17 at 8:06









        Vilx-Vilx-

        378139




        378139













        • Thank-you so much! This fixed my tc.log error using Virtualbox on a windows 10 host.

          – Ricky Boyce
          Apr 1 '18 at 23:51













        • This seems to have been a significant bit of progress for me also, Windows 10 Home, Docker Toolbox 18.03.

          – rfay
          Apr 16 '18 at 21:17



















        • Thank-you so much! This fixed my tc.log error using Virtualbox on a windows 10 host.

          – Ricky Boyce
          Apr 1 '18 at 23:51













        • This seems to have been a significant bit of progress for me also, Windows 10 Home, Docker Toolbox 18.03.

          – rfay
          Apr 16 '18 at 21:17

















        Thank-you so much! This fixed my tc.log error using Virtualbox on a windows 10 host.

        – Ricky Boyce
        Apr 1 '18 at 23:51







        Thank-you so much! This fixed my tc.log error using Virtualbox on a windows 10 host.

        – Ricky Boyce
        Apr 1 '18 at 23:51















        This seems to have been a significant bit of progress for me also, Windows 10 Home, Docker Toolbox 18.03.

        – rfay
        Apr 16 '18 at 21:17





        This seems to have been a significant bit of progress for me also, Windows 10 Home, Docker Toolbox 18.03.

        – rfay
        Apr 16 '18 at 21:17













        11














        I ended up deleting the tc.log file in /var/lib/mysql. When I started mysql again, it created a new tc.log and started up.



        sudo rm -f /var/lib/mysql/tc.log





        share|improve this answer
























        • while this feels somewhat unsafe it worked in my case!

          – Peter
          Oct 2 '18 at 17:32











        • It worked, but it's safer to use: sudo mv /var/lib/mysql/tc.log /var/lib/mysql/tc_bkp.log

          – Pedro Lobito
          Feb 9 at 22:07
















        11














        I ended up deleting the tc.log file in /var/lib/mysql. When I started mysql again, it created a new tc.log and started up.



        sudo rm -f /var/lib/mysql/tc.log





        share|improve this answer
























        • while this feels somewhat unsafe it worked in my case!

          – Peter
          Oct 2 '18 at 17:32











        • It worked, but it's safer to use: sudo mv /var/lib/mysql/tc.log /var/lib/mysql/tc_bkp.log

          – Pedro Lobito
          Feb 9 at 22:07














        11












        11








        11







        I ended up deleting the tc.log file in /var/lib/mysql. When I started mysql again, it created a new tc.log and started up.



        sudo rm -f /var/lib/mysql/tc.log





        share|improve this answer













        I ended up deleting the tc.log file in /var/lib/mysql. When I started mysql again, it created a new tc.log and started up.



        sudo rm -f /var/lib/mysql/tc.log






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 31 '17 at 12:19









        Flavio TroiaFlavio Troia

        21123




        21123













        • while this feels somewhat unsafe it worked in my case!

          – Peter
          Oct 2 '18 at 17:32











        • It worked, but it's safer to use: sudo mv /var/lib/mysql/tc.log /var/lib/mysql/tc_bkp.log

          – Pedro Lobito
          Feb 9 at 22:07



















        • while this feels somewhat unsafe it worked in my case!

          – Peter
          Oct 2 '18 at 17:32











        • It worked, but it's safer to use: sudo mv /var/lib/mysql/tc.log /var/lib/mysql/tc_bkp.log

          – Pedro Lobito
          Feb 9 at 22:07

















        while this feels somewhat unsafe it worked in my case!

        – Peter
        Oct 2 '18 at 17:32





        while this feels somewhat unsafe it worked in my case!

        – Peter
        Oct 2 '18 at 17:32













        It worked, but it's safer to use: sudo mv /var/lib/mysql/tc.log /var/lib/mysql/tc_bkp.log

        – Pedro Lobito
        Feb 9 at 22:07





        It worked, but it's safer to use: sudo mv /var/lib/mysql/tc.log /var/lib/mysql/tc_bkp.log

        – Pedro Lobito
        Feb 9 at 22:07











        8














        You can remove the tc.log in the data directory and remove old entries from mysql-bin.index (it is a text file, along with a list of binary logs). If this is a development box, you can remove the index file (mysql-bin.index) to force its recreation.



        Also it could be related to the user ids between mysql user and the shared folder id owner, here is a snippet to do so.






        share|improve this answer
























        • Curious about the cause of this issue though, how can I avoid? Thanks

          – 3zzy
          Sep 2 '17 at 5:06











        • @3zzy - Read my answer.

          – Vilx-
          Sep 4 '17 at 8:06











        • @3zzy I didn't reproduce the bug yet.

          – 3manuek
          Sep 4 '17 at 13:15











        • This is a strange issue to encounter indeed. What exactly is stored in this file? I was in such haste to fix the problem I forgot to look at the one that was there. I may be able to provide more detail.

          – Arcabard
          May 4 '18 at 14:53











        • I suspect that an "out of disk space" error corrupted my tc.log today.

          – jchook
          Aug 2 '18 at 1:01
















        8














        You can remove the tc.log in the data directory and remove old entries from mysql-bin.index (it is a text file, along with a list of binary logs). If this is a development box, you can remove the index file (mysql-bin.index) to force its recreation.



        Also it could be related to the user ids between mysql user and the shared folder id owner, here is a snippet to do so.






        share|improve this answer
























        • Curious about the cause of this issue though, how can I avoid? Thanks

          – 3zzy
          Sep 2 '17 at 5:06











        • @3zzy - Read my answer.

          – Vilx-
          Sep 4 '17 at 8:06











        • @3zzy I didn't reproduce the bug yet.

          – 3manuek
          Sep 4 '17 at 13:15











        • This is a strange issue to encounter indeed. What exactly is stored in this file? I was in such haste to fix the problem I forgot to look at the one that was there. I may be able to provide more detail.

          – Arcabard
          May 4 '18 at 14:53











        • I suspect that an "out of disk space" error corrupted my tc.log today.

          – jchook
          Aug 2 '18 at 1:01














        8












        8








        8







        You can remove the tc.log in the data directory and remove old entries from mysql-bin.index (it is a text file, along with a list of binary logs). If this is a development box, you can remove the index file (mysql-bin.index) to force its recreation.



        Also it could be related to the user ids between mysql user and the shared folder id owner, here is a snippet to do so.






        share|improve this answer













        You can remove the tc.log in the data directory and remove old entries from mysql-bin.index (it is a text file, along with a list of binary logs). If this is a development box, you can remove the index file (mysql-bin.index) to force its recreation.



        Also it could be related to the user ids between mysql user and the shared folder id owner, here is a snippet to do so.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 9 '16 at 23:30









        3manuek3manuek

        1,233411




        1,233411













        • Curious about the cause of this issue though, how can I avoid? Thanks

          – 3zzy
          Sep 2 '17 at 5:06











        • @3zzy - Read my answer.

          – Vilx-
          Sep 4 '17 at 8:06











        • @3zzy I didn't reproduce the bug yet.

          – 3manuek
          Sep 4 '17 at 13:15











        • This is a strange issue to encounter indeed. What exactly is stored in this file? I was in such haste to fix the problem I forgot to look at the one that was there. I may be able to provide more detail.

          – Arcabard
          May 4 '18 at 14:53











        • I suspect that an "out of disk space" error corrupted my tc.log today.

          – jchook
          Aug 2 '18 at 1:01



















        • Curious about the cause of this issue though, how can I avoid? Thanks

          – 3zzy
          Sep 2 '17 at 5:06











        • @3zzy - Read my answer.

          – Vilx-
          Sep 4 '17 at 8:06











        • @3zzy I didn't reproduce the bug yet.

          – 3manuek
          Sep 4 '17 at 13:15











        • This is a strange issue to encounter indeed. What exactly is stored in this file? I was in such haste to fix the problem I forgot to look at the one that was there. I may be able to provide more detail.

          – Arcabard
          May 4 '18 at 14:53











        • I suspect that an "out of disk space" error corrupted my tc.log today.

          – jchook
          Aug 2 '18 at 1:01

















        Curious about the cause of this issue though, how can I avoid? Thanks

        – 3zzy
        Sep 2 '17 at 5:06





        Curious about the cause of this issue though, how can I avoid? Thanks

        – 3zzy
        Sep 2 '17 at 5:06













        @3zzy - Read my answer.

        – Vilx-
        Sep 4 '17 at 8:06





        @3zzy - Read my answer.

        – Vilx-
        Sep 4 '17 at 8:06













        @3zzy I didn't reproduce the bug yet.

        – 3manuek
        Sep 4 '17 at 13:15





        @3zzy I didn't reproduce the bug yet.

        – 3manuek
        Sep 4 '17 at 13:15













        This is a strange issue to encounter indeed. What exactly is stored in this file? I was in such haste to fix the problem I forgot to look at the one that was there. I may be able to provide more detail.

        – Arcabard
        May 4 '18 at 14:53





        This is a strange issue to encounter indeed. What exactly is stored in this file? I was in such haste to fix the problem I forgot to look at the one that was there. I may be able to provide more detail.

        – Arcabard
        May 4 '18 at 14:53













        I suspect that an "out of disk space" error corrupted my tc.log today.

        – jchook
        Aug 2 '18 at 1:01





        I suspect that an "out of disk space" error corrupted my tc.log today.

        – jchook
        Aug 2 '18 at 1:01











        1














        If you just want to get mysql/mariadb running again and don't mind losing your data (in a dev environment), this is what I did



        Delete:
        ib_logfile1
        ib_logfile0
        aria_log_control
        aria_log.00000001
        tc.log
        ib_data1



        start the server



        Delete the schema (if it contains files, cd into the schema's folder, delete everything)



        I then reimported the database from an old dump I had.



        I then started mariadb, and it comes up fine. The deleted files got recreated.
        ** Again this is for dev only. You could probably install your db**






        share|improve this answer




























          1














          If you just want to get mysql/mariadb running again and don't mind losing your data (in a dev environment), this is what I did



          Delete:
          ib_logfile1
          ib_logfile0
          aria_log_control
          aria_log.00000001
          tc.log
          ib_data1



          start the server



          Delete the schema (if it contains files, cd into the schema's folder, delete everything)



          I then reimported the database from an old dump I had.



          I then started mariadb, and it comes up fine. The deleted files got recreated.
          ** Again this is for dev only. You could probably install your db**






          share|improve this answer


























            1












            1








            1







            If you just want to get mysql/mariadb running again and don't mind losing your data (in a dev environment), this is what I did



            Delete:
            ib_logfile1
            ib_logfile0
            aria_log_control
            aria_log.00000001
            tc.log
            ib_data1



            start the server



            Delete the schema (if it contains files, cd into the schema's folder, delete everything)



            I then reimported the database from an old dump I had.



            I then started mariadb, and it comes up fine. The deleted files got recreated.
            ** Again this is for dev only. You could probably install your db**






            share|improve this answer













            If you just want to get mysql/mariadb running again and don't mind losing your data (in a dev environment), this is what I did



            Delete:
            ib_logfile1
            ib_logfile0
            aria_log_control
            aria_log.00000001
            tc.log
            ib_data1



            start the server



            Delete the schema (if it contains files, cd into the schema's folder, delete everything)



            I then reimported the database from an old dump I had.



            I then started mariadb, and it comes up fine. The deleted files got recreated.
            ** Again this is for dev only. You could probably install your db**







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 9 '16 at 15:53









            KirenKiren

            111




            111























                0














                I faced this issue when I tried to copy the database data folder.
                So I changed to the data folder and executed following command to delete all log files:



                rm -rf *log*


                Then I rebuilded the docker and issue was sorted.






                share|improve this answer






























                  0














                  I faced this issue when I tried to copy the database data folder.
                  So I changed to the data folder and executed following command to delete all log files:



                  rm -rf *log*


                  Then I rebuilded the docker and issue was sorted.






                  share|improve this answer




























                    0












                    0








                    0







                    I faced this issue when I tried to copy the database data folder.
                    So I changed to the data folder and executed following command to delete all log files:



                    rm -rf *log*


                    Then I rebuilded the docker and issue was sorted.






                    share|improve this answer















                    I faced this issue when I tried to copy the database data folder.
                    So I changed to the data folder and executed following command to delete all log files:



                    rm -rf *log*


                    Then I rebuilded the docker and issue was sorted.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited May 28 '18 at 9:57









                    Marco

                    3,73231624




                    3,73231624










                    answered May 28 '18 at 9:27









                    tharanga rajapakshatharanga rajapaksha

                    1




                    1























                        0














                        I also solved this error by removing the tc.log. With XAMPP the tc.log file is in the XAMPP/xamppfiles/var/mysql folder - on my mac its located at:
                        /Applications/XAMPP/xamppfiles/var/mysql/tc.log





                        share








                        New contributor




                        John Tyner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.

























                          0














                          I also solved this error by removing the tc.log. With XAMPP the tc.log file is in the XAMPP/xamppfiles/var/mysql folder - on my mac its located at:
                          /Applications/XAMPP/xamppfiles/var/mysql/tc.log





                          share








                          New contributor




                          John Tyner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.























                            0












                            0








                            0







                            I also solved this error by removing the tc.log. With XAMPP the tc.log file is in the XAMPP/xamppfiles/var/mysql folder - on my mac its located at:
                            /Applications/XAMPP/xamppfiles/var/mysql/tc.log





                            share








                            New contributor




                            John Tyner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.










                            I also solved this error by removing the tc.log. With XAMPP the tc.log file is in the XAMPP/xamppfiles/var/mysql folder - on my mac its located at:
                            /Applications/XAMPP/xamppfiles/var/mysql/tc.log






                            share








                            New contributor




                            John Tyner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.








                            share


                            share






                            New contributor




                            John Tyner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.









                            answered 5 mins ago









                            John TynerJohn Tyner

                            1




                            1




                            New contributor




                            John Tyner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.





                            New contributor





                            John Tyner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.






                            John Tyner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Database Administrators Stack Exchange!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f151183%2fmariadb-cant-init-tc-log%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Szabolcs (Ungheria) Altri progetti | Menu di navigazione48°10′14.56″N 21°29′33.14″E /...

                                Discografia di Klaus Schulze Indice Album in studio | Album dal vivo | Singoli | Antologie | Colonne...

                                How to make inet_server_addr() return localhost in spite of ::1/128RETURN NEXT in Postgres FunctionConnect to...