root@ubuntu:~# service mysql start
Job for mariadb.service failed because a timeout was exceeded. See "systemctl status mariadb.service" and "journalctl -xe" for details.
gen 31 10:33:36 ubuntu mysqld[18699]: 2017-01-31 10:33:36 139695862314752 [Note] WSREP: (54cd2ab9, 'tcp://0.0.0.0:4567') turning message relay requesting offgen 31 10:35:02 ubuntu systemd[1]: mariadb.service: Start operation timed out. Terminating.gen 31 10:36:32 ubuntu systemd[1]: mariadb.service: State 'stop-final-sigterm' timed out. Skipping SIGKILL. Entering failed mode.gen 31 10:36:32 ubuntu systemd[1]: Failed to start MariaDB database server.gen 31 10:36:32 ubuntu systemd[1]: mariadb.service: Unit entered failed state.gen 31 10:36:32 ubuntu systemd[1]: mariadb.service: Failed with result 'timeout'.gen 31 10:37:53 ubuntu rsyncd[18757]: sent 300 bytes received 79722094 bytes total size 79702016gen 31 10:37:53 ubuntu rsyncd[19787]: connect from blablabla (blablabla)gen 31 10:37:53 ubuntu rsyncd[19787]: rsync to rsync_sst-log_dir/ from blablabla (blablabla)gen 31 10:37:53 ubuntu rsyncd[19787]: receiving file listroot@ubuntu:~# ps aux | grep mysqlmysql 18699 0.1 6.3 375592 64516 ? Ssl 10:33 0:00 /usr/sbin/mysqld --wsrep_start_position=70dfa51e-e3e2-11e6-b0b2-6beb9eac4f0e:2093mysql 18709 0.0 0.0 4508 696 ? S 10:33 0:00 sh -c wsrep_sst_rsync --role 'joiner' --address 'blablabla' --datadir '/var/lib/mysq /' --parent '18699' --binlog '/var/log/mysql/mariadb-bin'mysql 18710 0.3 0.3 12708 3152 ? S 10:33 0:01 /bin/bash -ue /usr//bin/wsrep_sst_rsync --role joiner --address blablabla --datadir /var/lib/mysql/ --parent 18699 --binlog /var/log/mysql/mariadb-binmysql 18742 0.0 0.1 14060 1052 ? S 10:33 0:00 rsync --daemon --no-detach --port 4444 --config /var/lib/mysql//rsync_sst.confmysql 19787 0.0 0.2 27412 2884 ? S 10:37 0:00 rsync --daemon --no-detach --port 4444 --config /var/lib/mysql//rsync_sst.confmysql 19788 1.0 0.1 27672 1264 ? S 10:37 0:01 rsync --daemon --no-detach --port 4444 --config /var/lib/mysql//rsync_sst.confmysql 20531 0.0 0.0 7300 652 ? S 10:40 0:00 sleep 1root 20533 0.0 0.0 14252 1016 pts/1 S+ 10:40 0:00 grep --color=auto mysqlroot@ubuntu:~# cat /etc/mysql/my.cnf# MariaDB database server configuration file.## You can copy this file to one of:# - "/etc/mysql/my.cnf" to set global options,# - "~/.my.cnf" to set user-specific options.## One can use all long options that the program supports.# Run program with --help to get a list of available options and with# --print-defaults to see which it would actually understand and use.## For explanations see
# This will be passed to all mysql clients# It has been reported that passwords should be enclosed with ticks/quotes# escpecially if they contain "#" chars...# Remember to edit /etc/mysql/debian.cnf when changing the socket location.[client]port = 3306socket = /var/run/mysqld/mysqld.sock
# Here is entries for some specific programs# The following values assume you have at least 32M ram
# This was formally known as [safe_mysqld]. Both versions are currently parsed.[mysqld_safe]socket = /var/run/mysqld/mysqld.socknice = 0
[mysqld]## * Basic Settings#user = mysqlpid-file = /var/run/mysqld/mysqld.pidsocket = /var/run/mysqld/mysqld.sockport = 3306basedir = /usrdatadir = /var/lib/mysqltmpdir = /tmplc_messages_dir = /usr/share/mysqllc_messages = en_USskip-external-locking## Instead of skip-networking the default is now to listen only on# localhost which is more compatible and is not less secure.bind-address = ::## * Fine Tuning#max_connections = 100connect_timeout = 5wait_timeout = 600max_allowed_packet = 16Mthread_cache_size = 128sort_buffer_size = 4Mbulk_insert_buffer_size = 16Mtmp_table_size = 32Mmax_heap_table_size = 32M## * MyISAM## This replaces the startup script and checks MyISAM tables if needed# the first time they are touched. On error, make copy and try a repair.myisam_recover_options = BACKUPkey_buffer_size = 128M#open-files-limit = 2000table_open_cache = 400myisam_sort_buffer_size = 512Mconcurrent_insert = 2read_buffer_size = 2Mread_rnd_buffer_size = 1M## * Query Cache Configuration## Cache only tiny result sets, so we can fit more in the query cache.query_cache_limit = 128Kquery_cache_size = 64M# for more write intensive setups, set to DEMAND or OFF#query_cache_type = DEMAND## * Logging and Replication## Both location gets rotated by the cronjob.# Be aware that this log type is a performance killer.# As of 5.1 you can enable the log at runtime!#general_log_file = /var/log/mysql/mysql.log#general_log = 1## Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf.## we do want to know about network errors and suchlog_warnings = 2## Enable the slow query log to see queries with especially long duration#slow_query_log[={0|1}]slow_query_log_file = /var/log/mysql/mariadb-slow.loglong_query_time = 10#log_slow_rate_limit = 1000log_slow_verbosity = query_plan
#log-queries-not-using-indexes#log_slow_admin_statements## The following can be used as easy to replay backup logs or for replication.# note: if you are setting up a replication slave, see README.Debian about# other settings you may need to change.#server-id = 1#report_host = master1#auto_increment_increment = 2#auto_increment_offset = 1log_bin = /var/log/mysql/mariadb-binlog_bin_index = /var/log/mysql/mariadb-bin.index# not fab for performance, but safer#sync_binlog = 1expire_logs_days = 10max_binlog_size = 100M# slaves#relay_log = /var/log/mysql/relay-bin#relay_log_index = /var/log/mysql/relay-bin.index#relay_log_info_file = /var/log/mysql/relay-bin.info#log_slave_updates#read_only## If applications support it, this stricter sql_mode prevents some# mistakes like inserting invalid dates etc.#sql_mode = NO_ENGINE_SUBSTITUTION,TRADITIONAL## * InnoDB## InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.# Read the manual for more InnoDB related options. There are many!default_storage_engine = InnoDB# you can't just change log file size, requires special procedure#innodb_log_file_size = 50Minnodb_buffer_pool_size = 256Minnodb_log_buffer_size = 8Minnodb_file_per_table = 1innodb_open_files = 400innodb_io_capacity = 400innodb_flush_method = O_DIRECT## * Security Features## Read the manual, too, if you want chroot!# chroot = /var/lib/mysql/## For generating SSL certificates I recommend the OpenSSL GUI "tinyca".## ssl-ca=/etc/mysql/cacert.pem# ssl-cert=/etc/mysql/server-cert.pem# ssl-key=/etc/mysql/server-key.pem
## * Galera-related settings#[galera]# Mandatory settings#wsrep_on=ON#wsrep_provider=#wsrep_cluster_address=#binlog_format=row#default_storage_engine=InnoDB#innodb_autoinc_lock_mode=2## Allow server to accept connections on all interfaces.##bind-address=0.0.0.0## Optional setting#wsrep_slave_threads=1#innodb_flush_log_at_trx_commit=0
binlog_format=ROWinnodb_autoinc_lock_mode=2default_storage_engine=InnoDBbind-address=::
wsrep_on=ONwsrep_provider=/usr/lib/galera/libgalera_smm.so
wsrep_cluster_name="stage_cluster"wsrep_cluster_address="gcomm://server1,server2"
wsrep_sst_method=rsync#wsrep_sst_method=xtrabackup#wsrep_sst_auth=ws-stage-admin:48ePwdh9km2NFABt#datadir=/var/lib/mysql/
wsrep_node_address="server1"wsrep_node_name="stage_server_local"
[mysqldump]quickquote-namesmax_allowed_packet = 16M
[mysql]#no-auto-rehash # faster start of mysql but no tab completion
[isamchk]key_buffer = 16M
## * IMPORTANT: Additional settings that can override those from this file!# The files must end with '.cnf', otherwise they'll be ignored.#!includedir /etc/mysql/conf.d/root@ubuntu:~# iptables -LChain INPUT (policy ACCEPT)target prot opt source destination
Chain FORWARD (policy ACCEPT)target prot opt source destination
Chain OUTPUT (policy ACCEPT)target prot opt source destination
root@stage:~# iptables -LChain INPUT (policy ACCEPT)target prot opt source destinationACCEPT all -- anywhere anywhere state RELATED,ESTABLISHEDACCEPT all -- anywhere anywhereACCEPT tcp -- anywhere anywhere tcp dpt:webminACCEPT tcp -- anywhere anywhere tcp dpt:sshACCEPT tcp -- anywhere anywhere tcp dpt:httpACCEPT tcp -- anywhere anywhere tcp dpt:mysqlACCEPT udp -- anywhere anywhere udp dpt:mysqlACCEPT tcp -- anywhere anywhere tcp dpt:domainACCEPT tcp -- anywhere anywhere tcp dpt:4567ACCEPT udp -- anywhere anywhere udp dpt:4567ACCEPT tcp -- anywhere anywhere tcp dpt:4568ACCEPT udp -- anywhere anywhere udp dpt:4568ACCEPT tcp -- anywhere anywhere tcp dpt:4444ACCEPT udp -- anywhere anywhere udp dpt:4444ACCEPT icmp -- anywhere anywhereACCEPT udp -- anywhere anywhere udp dpts:bootps:bootpcLOG all -- anywhere anywhere limit: avg 5/min burst 5 LOG level debug prefix "iptables denied: "DROP all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)target prot opt source destination
Chain OUTPUT (policy ACCEPT)target prot opt source destination
root@stage:~# systemctl status mariadb.service
● mariadb.service - MariaDB database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─migrated-from-my.cnf-settings.conf
Active: failed (Result: timeout) since gio 2017-02-09 09:35:01 CET; 29s ago
Process: 11502 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 11499 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)
Process: 7877 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ] && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=ex
Process: 7872 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 7866 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
Main PID: 8124
Tasks: 14
Memory: 61.6M
CPU: 4.107s
CGroup: /system.slice/mariadb.service
├─8124 /usr/sbin/mysqld --wsrep_start_position=0e58ea31-e798-11e6-a5e1-9ab12df4b919:0
├─8133 sh -c wsrep_sst_rsync --role 'joiner' --address '89.31.78.211' --datadir '/var/lib/mysql/' --parent '8124' --binlog '/var/log/mysql/mariadb-bin'
├─8134 /bin/bash -ue /usr//bin/wsrep_sst_rsync --role joiner --address 89.31.78.211 --datadir /var/lib/mysql/ --parent 8124 --binlog /var/log/mysql/mariadb-bin
├─8166 rsync --daemon --no-detach --port 4444 --config /var/lib/mysql//rsync_sst.conf
├─8185 rsync --daemon --no-detach --port 4444 --config /var/lib/mysql//rsync_sst.conf
├─8186 rsync --daemon --no-detach --port 4444 --config /var/lib/mysql//rsync_sst.conf
└─9139 sleep 1
feb 09 09:32:01 stage mysqld[8124]: 2017-02-09 9:32:01 140636448504064 [Note] /usr/sbin/mysqld (mysqld 10.1.21-MariaDB-1~xenial) starting as process 8124 ...
feb 09 09:32:02 stage rsyncd[8166]: rsyncd version 3.1.1 starting, listening on port 4444
feb 09 09:32:03 stage rsyncd[8185]: connect from 2-229-49-82.ip195.fastwebnet.it (2.229.49.82)
feb 09 09:32:03 stage rsyncd[8185]: rsync to rsync_sst/ from 2-229-49-82.ip195.fastwebnet.it (2.229.49.82)
feb 09 09:32:04 stage rsyncd[8185]: receiving file list
feb 09 09:33:31 stage systemd[1]: mariadb.service: Start operation timed out. Terminating.
feb 09 09:35:01 stage systemd[1]: mariadb.service: State 'stop-final-sigterm' timed out. Skipping SIGKILL. Entering failed mode.
feb 09 09:35:01 stage systemd[1]: Failed to start MariaDB database server.
feb 09 09:35:01 stage systemd[1]: mariadb.service: Unit entered failed state.
feb 09 09:35:01 stage systemd[1]: mariadb.service: Failed with result 'timeout'.root@stage:~# journalctl -xe
feb 09 09:33:31 stage systemd[1]: mariadb.service: Start operation timed out. Terminating.feb 09 09:35:01 stage systemd[1]: mariadb.service: State 'stop-final-sigterm' timed out. Skipping SIGKILL. Entering failed mode.feb 09 09:35:01 stage systemd[1]: Failed to start MariaDB database server.-- Subject: L'unità mariadb.service è fallita-- Defined-By: systemd---- L'unità mariadb.service è fallita.---- Il risultato è failed.feb 09 09:35:01 stage systemd[1]: mariadb.service: Unit entered failed state.feb 09 09:35:01 stage systemd[1]: mariadb.service: Failed with result 'timeout'. watch "ps aux|grep mysql"mysql 8124 0.0 1.8 400176 76824 ? Ssl 09:32 0:00 /usr/sbin/mysqld --wsrep_start_position=0e58ea31-e798-11e6-a5e1-9ab12df4b919:0mysql 8133 0.0 0.0 4508 748 ? S 09:32 0:00 sh -c wsrep_sst_rsync --role 'joiner' --address 'blablabla' --datadir '/var/lib/mysql/' --parent '8124' --binlog '/var/log/mysql/mariadb-bmysql 8134 0.0 0.0 12732 3112 ? S 09:32 0:00 /bin/bash -ue /usr//bin/wsrep_sst_rsync --role joiner --address blablabla --datadir /var/lib/mysql/ --parent 8124 --binlog /var/log/mysql/mamysql 8166 0.0 0.0 14060 1056 ? S 09:32 0:00 rsync --daemon --no-detach --port 4444 --config /var/lib/mysql//rsync_sst.confmysql 8185 0.0 0.0 27412 2852 ? S 09:32 0:00 rsync --daemon --no-detach --port 4444 --config /var/lib/mysql//rsync_sst.confmysql 8186 0.1 0.0 27672 1240 ? S 09:32 0:01 rsync --daemon --no-detach --port 4444 --config /var/lib/mysql//rsync_sst.conf
To unsubscribe from this group and stop receiving emails from it, send an email to codership-team+unsubscribe@googlegroups.com.
Matteo Lazzarin
FULLSTAK WEB DEVELOPER
![]() |
WebSolution S.n.c. |
You received this message because you are subscribed to a topic in the Google Groups "codership" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codership-team/dLDXE1U6llg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codership-tea...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to codership-team+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to codership-tea...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to codership-team+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Matteo Lazzarin
FULLSTAK WEB DEVELOPER
![]() |
WebSolution S.n.c. |
To unsubscribe from this group and all its topics, send an email to codership-tea...@googlegroups.com.
Matteo Lazzarin
FULLSTAK WEB DEVELOPER
![]() |
WebSolution S.n.c. |
...
[Message clipped]
root@ubuntu:~# systemctl show mysql.service -p TimeoutSec
root@ubuntu:~# systemctl show mysql.service -p TimeoutStartSec
root@ubuntu:~# systemctl show mysql.service -p TimeoutStopSec
root@ubuntu:~# systemctl show mysql.service -p TimeoutUSec
root@ubuntu:~# systemctl show mysql.service -p TimeoutStartUSec
TimeoutStartUSec=1min 30s
root@ubuntu:~# systemctl show mysql.service -p TimeoutStopUSec
TimeoutStopUSec=1min 30secho $'[Service]\nTimeoutStartUSec=2h\nTimeoutStopUSec=2h' | sudo tee /etc/systemd/system/mariadb.service.d/timeouts.conf
systemctl daemon-reload
root@ubuntu:~# systemctl show mysql.service -p TimeoutStartUSec
TimeoutStartUSec=1min 30s
root@ubuntu:~# systemctl show mysql.service -p TimeoutStopUSec
TimeoutStopUSec=1min 30sYou received this message because you are subscribed to a topic in the Google Groups "codership" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codership-team/dLDXE1U6llg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codership-tea...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "codership" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codership-team/dLDXE1U6llg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codership-tea...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to codership-team+unsubscribe@googlegroups.com.