Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- On 5/16/19 5:56 PM, Barry Martin wrote:
- >
- > ???As?I?mentioned?from?some?Google-wandering?found?where?appears?to?be
- > ???configured?to?localhost?127.0.0.1?and?I?m?guessing?it?should?be
- > ???looking?at?Backend-3?192.168.0.3
- Ignore where MariaDB is listening *for now*. As Stephen already mentioned,
- localhost will work just fine.
- You may notice that systemctl output is truncated to the width of the
- current screen.
- Try this (and copy/paste the output in a pastebin please.) The last one didn't
- have any log lines, just an email from this thread.
- systemctl show mariadb.service -p ExecStart -p ExecStartPre -p ExecStartPost|cat
- --
- Bill
- Results of the command line and some 'extra credit' attached.
- ...Not seeing the attachment so just appending until I figure out:
- barry@Backend-3:~$ systemctl show mariadb.service -p ExecStart -p ExecStartPre -p ExecStartPost|cat
- ExecStartPre={ path=/usr/bin/install ; argv[]=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld ; ignore_errors=no ; start_time=[Fri 2019-05-17 07:55:02 CDT] ; stop_time=[Fri 2019-05-17 07:55:02 CDT] ; pid=909 ; code=exited ; status=0 }
- ExecStartPre={ path=/bin/sh ; argv[]=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION ; ignore_errors=no ; start_time=[Fri 2019-05-17 07:55:02 CDT] ; stop_time=[Fri 2019-05-17 07:55:02 CDT] ; pid=919 ; code=exited ; status=0 }
- ExecStartPre={ path=/bin/sh ; argv[]=/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 ; ignore_errors=no ; start_time=[Fri 2019-05-17 07:55:02 CDT] ; stop_time=[Fri 2019-05-17 07:55:02 CDT] ; pid=929 ; code=exited ; status=0 }
- ExecStart={ path=/usr/sbin/mysqld ; argv[]=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION ; ignore_errors=no ; start_time=[Fri 2019-05-17 07:55:02 CDT] ; stop_time=[Fri 2019-05-17 07:56:35 CDT] ; pid=1024 ; code=exited ; status=0 }
- ExecStartPost={ path=/etc/mysql/debian-start ; argv[]=/etc/mysql/debian-start ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }
- ExecStartPost={ path=/bin/sh ; argv[]=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }
- barry@Backend-3:~$
- And for an 'extra credit' attempt:
- barry@Backend-3:~$
- barry@Backend-3:~$ sudo cat /var/log/mysql/error.log
- [sudo] password for barry:
- barry@Backend-3:~$
- barry@Backend-3:~$
- barry@Backend-3:~$ ls /var/log/mysql/error.log
- /var/log/mysql/error.log
- barry@Backend-3:~$ nano /var/log/mysql/error.log ==> is empty
- barry@Backend-3:~$
- barry@Backend-3:~$
- barry@Backend-3:~$
- barry@Backend-3:~$ sudo systemctl start mariadb
- Job for mariadb.service failed because a timeout was exceeded.
- See "systemctl status mariadb.service" and "journalctl -xe" for details.
- barry@Backend-3:~$
- barry@Backend-3:~$ sudo cat /var/log/mysql/error.log
- 2019-05-17 8:02:09 140319656078464 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
- 2019-05-17 8:02:09 140319656078464 [Note] InnoDB: Using mutexes to ref count buffer pool pages
- 2019-05-17 8:02:09 140319656078464 [Note] InnoDB: The InnoDB memory heap is disabled
- 2019-05-17 8:02:09 140319656078464 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
- 2019-05-17 8:02:09 140319656078464 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
- 2019-05-17 8:02:09 140319656078464 [Note] InnoDB: Compressed tables use zlib 1.2.11
- 2019-05-17 8:02:09 140319656078464 [Note] InnoDB: Using Linux native AIO
- 2019-05-17 8:02:09 140319656078464 [Note] InnoDB: Using SSE crc32 instructions
- 2019-05-17 8:02:09 140319656078464 [Note] InnoDB: Initializing buffer pool, size = 128.0M
- 2019-05-17 8:02:09 140319656078464 [Note] InnoDB: Completed initialization of buffer pool
- 2019-05-17 8:02:09 140319656078464 [Note] InnoDB: Highest supported file format is Barracuda.
- 2019-05-17 8:02:09 140319656078464 [Note] InnoDB: 128 rollback segment(s) are active.
- 2019-05-17 8:02:09 140319656078464 [Note] InnoDB: Waiting for purge to start
- 2019-05-17 8:02:09 140319656078464 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.42-84.2 started; log sequence number 1616837
- 2019-05-17 8:02:09 140318993282816 [Note] InnoDB: Dumping buffer pool(s) not yet started
- 2019-05-17 8:02:09 140319656078464 [Note] Plugin 'FEEDBACK' is disabled.
- 2019-05-17 8:02:09 140319656078464 [Note] Server socket created on IP: '127.0.0.1'.
- 2019-05-17 8:02:09 140319656078464 [Note] /usr/sbin/mysqld: ready for connections.
- Version: '10.1.38-MariaDB-0ubuntu0.18.04.2' socket: '/var/run/mysqld/mysqld.sock' port: 3306 Ubuntu 18.04
- 2019-05-17 8:03:38 140319655278336 [Note] /usr/sbin/mysqld: Normal shutdown
- 2019-05-17 8:03:38 140319655278336 [Note] Event Scheduler: Purging the queue. 0 events
- 2019-05-17 8:03:38 140319051978496 [Note] InnoDB: FTS optimize thread exiting.
- 2019-05-17 8:03:38 140319655278336 [Note] InnoDB: Starting shutdown...
- 2019-05-17 8:03:39 140319655278336 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
- 2019-05-17 8:03:41 140319655278336 [Note] InnoDB: Shutdown completed; log sequence number 1616847
- 2019-05-17 8:03:41 140319655278336 [Note] /usr/sbin/mysqld: Shutdown complete
- barry@Backend-3:~$
- barry@Backend-3:~$ systemctl status mariadb.service
- ● mariadb.service - MariaDB 10.1.38 database server
- Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
- Active: failed (Result: timeout) since Fri 2019-05-17 08:03:41 CDT; 4min 41s ago
- Docs: man:mysqld(8)
- https://mariadb.com/kb/en/library/systemd/
- Process: 2194 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=0/SUCCESS)
- Process: 2116 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 (cod
- (Ah! Truncating!)
- e=exited, status=0/SUCCESS)
- Process: 2113 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
- Process: 2112 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
- Main PID: 2194 (code=exited, status=0/SUCCESS)
- May 17 08:02:08 Backend-3 systemd[1]: Starting MariaDB 10.1.38 database server...
- May 17 08:02:09 Backend-3 mysqld[2194]: 2019-05-17 8:02:09 140319656078464 [Note] /usr/sbin/mysqld (mysqld 10.1.38-MariaDB-0ubuntu0.18.04.2) starting as process 2194 ...
- May 17 08:03:38 Backend-3 systemd[1]: mariadb.service: Start operation timed out. Terminating.
- May 17 08:03:41 Backend-3 systemd[1]: mariadb.service: Failed with result 'timeout'.
- May 17 08:03:41 Backend-3 systemd[1]: Failed to start MariaDB 10.1.38 database server.
- lines 1-16/16 (END)
- Preface: I have the Ethenet cable unplugged to avoid screwing up the working Backend (BE-2) like I managed to before with BE-1.
- barry@Backend-3:~$ journalctl -xe
- -- Subject: Unit systemd-tmpfiles-clean.service has begun start-up
- -- Defined-By: systemd
- -- Support: http://www.ubuntu.com/support
- --
- -- Unit systemd-tmpfiles-clean.service has begun starting up.
- May 17 08:09:45 Backend-3 systemd[1]: Started Cleanup of Temporary Directories.
- -- Subject: Unit systemd-tmpfiles-clean.service has finished start-up
- -- Defined-By: systemd
- -- Support: http://www.ubuntu.com/support
- --
- -- Unit systemd-tmpfiles-clean.service has finished starting up.
- --
- -- The start-up result is RESULT.
- May 17 08:10:16 Backend-3 ntpd[945]: error resolving pool 2.ubuntu.pool.ntp.org:
- May 17 08:10:16 Backend-3 ntpd[945]: error resolving pool 1.ubuntu.pool.ntp.org:
- May 17 08:10:23 Backend-3 ntpd[945]: error resolving pool 0.ubuntu.pool.ntp.org:
- May 17 08:10:26 Backend-3 ntpd[945]: error resolving pool ntp.ubuntu.com: Name o
- May 17 08:10:29 Backend-3 ntpd[945]: error resolving pool 3.ubuntu.pool.ntp.org:
- May 17 08:11:22 Backend-3 ntpd[945]: error resolving pool 2.ubuntu.pool.ntp.org:
- May 17 08:11:22 Backend-3 ntpd[945]: error resolving pool 1.ubuntu.pool.ntp.org:
- May 17 08:11:28 Backend-3 ntpd[945]: error resolving pool 0.ubuntu.pool.ntp.org:
- May 17 08:11:30 Backend-3 ntpd[945]: error resolving pool ntp.ubuntu.com: Name o
- May 17 08:11:35 Backend-3 ntpd[945]: error resolving pool 3.ubuntu.pool.ntp.org:
- lines 1627-1649/1649 (END)
- -- Subject: Unit systemd-tmpfiles-clean.service has begun start-up
- -- Defined-By: systemd
- -- Support: http://www.ubuntu.com/support
- --
- -- Unit systemd-tmpfiles-clean.service has begun starting up.
- May 17 08:09:45 Backend-3 systemd[1]: Started Cleanup of Temporary Directories.
- -- Subject: Unit systemd-tmpfiles-clean.service has finished start-up
- -- Defined-By: systemd
- -- Support: http://www.ubuntu.com/support
- --
- -- Unit systemd-tmpfiles-clean.service has finished starting up.
- --
- -- The start-up result is RESULT.
- May 17 08:10:16 Backend-3 ntpd[945]: error resolving pool 2.ubuntu.pool.ntp.org: Name or service not known (-2)
- May 17 08:10:16 Backend-3 ntpd[945]: error resolving pool 1.ubuntu.pool.ntp.org: Name or service not known (-2)
- May 17 08:10:23 Backend-3 ntpd[945]: error resolving pool 0.ubuntu.pool.ntp.org: Name or service not known (-2)
- May 17 08:10:26 Backend-3 ntpd[945]: error resolving pool ntp.ubuntu.com: Name or service not known (-2)
- May 17 08:10:29 Backend-3 ntpd[945]: error resolving pool 3.ubuntu.pool.ntp.org: Name or service not known (-2)
- May 17 08:11:22 Backend-3 ntpd[945]: error resolving pool 2.ubuntu.pool.ntp.org: Name or service not known (-2)
- May 17 08:11:22 Backend-3 ntpd[945]: error resolving pool 1.ubuntu.pool.ntp.org: Name or service not known (-2)
- May 17 08:11:28 Backend-3 ntpd[945]: error resolving pool 0.ubuntu.pool.ntp.org: Name or service not known (-2)
- May 17 08:11:30 Backend-3 ntpd[945]: error resolving pool ntp.ubuntu.com: Name or service not known (-2)
- May 17 08:11:35 Backend-3 ntpd[945]: error resolving pool 3.ubuntu.pool.ntp.org: Name or service not known (-2)
- ~
- ~
- ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement