Import ScadaLTS and MySQL on GNS3 - mysql

I have not problem to deploy the project docker components using docker-compose. However, I need to import the whole project on GNS3.
I have no problem deploying the OpenPLC container. However, when I deploy the ScadaTLS docker container and the associated MySQL database container the ScadaLTS login page cannot be displayed to provide the getting started.
ScadaLTS configuration:
ScadaLTS network configuration:
# Static config for eth0
auto eth0
iface eth0 inet static
address 192.168.123.6
netmask 255.255.255.0
gateway 192.168.123.1
up echo nameserver 192.168.123.1 > /etc/resolv.conf
ScadaLTS container logs:
wait-for-it: waiting 30 seconds for 192.168.123.10:3306
wait-for-it: timeout occurred after waiting 30 seconds for 192.168.123.10:3306
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/openjdk-11
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Using CATALINA_OPTS: -Xmx512m -Xms512m
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
15-Jan-2023 11:28:54.148 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/9.0.53
15-Jan-2023 11:28:54.151 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Sep 6 2021 19:09:00 UTC
15-Jan-2023 11:28:54.151 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.53.0
15-Jan-2023 11:28:54.151 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
15-Jan-2023 11:28:54.152 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 5.4.0-136-generic
15-Jan-2023 11:28:54.152 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
15-Jan-2023 11:28:54.152 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/local/openjdk-11
15-Jan-2023 11:28:54.152 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 11.0.12+7
15-Jan-2023 11:28:54.152 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
15-Jan-2023 11:28:54.152 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/local/tomcat
15-Jan-2023 11:28:54.152 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/local/tomcat
15-Jan-2023 11:28:54.165 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
15-Jan-2023 11:28:54.165 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
15-Jan-2023 11:28:54.165 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED
15-Jan-2023 11:28:54.165 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
15-Jan-2023 11:28:54.165 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
15-Jan-2023 11:28:54.165 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
15-Jan-2023 11:28:54.166 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
15-Jan-2023 11:28:54.166 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
15-Jan-2023 11:28:54.166 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
15-Jan-2023 11:28:54.166 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
15-Jan-2023 11:28:54.166 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx512m
15-Jan-2023 11:28:54.166 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms512m
15-Jan-2023 11:28:54.166 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
15-Jan-2023 11:28:54.166 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
15-Jan-2023 11:28:54.166 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
15-Jan-2023 11:28:54.166 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
15-Jan-2023 11:28:54.171 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.31] using APR version [1.7.0].
15-Jan-2023 11:28:54.171 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
15-Jan-2023 11:28:54.171 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
15-Jan-2023 11:28:54.174 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1k 25 Mar 2021]
15-Jan-2023 11:28:54.538 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
15-Jan-2023 11:28:54.567 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [599] milliseconds
15-Jan-2023 11:28:54.623 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
15-Jan-2023 11:28:54.623 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.53]
15-Jan-2023 11:28:54.637 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
15-Jan-2023 11:28:54.647 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [79] milliseconds
15-Jan-2023 11:32:21.831 INFO [Thread-2] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"]
15-Jan-2023 11:32:21.840 INFO [Thread-2] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
15-Jan-2023 11:32:21.845 INFO [Thread-2] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"]
15-Jan-2023 11:32:21.889 INFO [Thread-2] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"]
wait-for-it: waiting 30 seconds for 192.168.123.10:3306
wait-for-it: 192.168.123.10:3306 is available after 2 seconds
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/openjdk-11
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Using CATALINA_OPTS: -Xmx512m -Xms512m
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
15-Jan-2023 11:38:31.211 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/9.0.53
15-Jan-2023 11:38:31.214 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Sep 6 2021 19:09:00 UTC
15-Jan-2023 11:38:31.214 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.53.0
15-Jan-2023 11:38:31.215 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
15-Jan-2023 11:38:31.215 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 5.4.0-136-generic
15-Jan-2023 11:38:31.215 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
15-Jan-2023 11:38:31.215 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/local/openjdk-11
15-Jan-2023 11:38:31.229 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 11.0.12+7
15-Jan-2023 11:38:31.229 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
15-Jan-2023 11:38:31.229 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/local/tomcat
15-Jan-2023 11:38:31.229 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/local/tomcat
15-Jan-2023 11:38:31.252 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
15-Jan-2023 11:38:31.252 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
15-Jan-2023 11:38:31.252 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED
15-Jan-2023 11:38:31.253 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
15-Jan-2023 11:38:31.253 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
15-Jan-2023 11:38:31.253 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
15-Jan-2023 11:38:31.253 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
15-Jan-2023 11:38:31.253 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
15-Jan-2023 11:38:31.254 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
15-Jan-2023 11:38:31.254 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
15-Jan-2023 11:38:31.254 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx512m
15-Jan-2023 11:38:31.254 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms512m
15-Jan-2023 11:38:31.255 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
15-Jan-2023 11:38:31.255 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
15-Jan-2023 11:38:31.255 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
15-Jan-2023 11:38:31.255 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
15-Jan-2023 11:38:31.259 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.31] using APR version [1.7.0].
15-Jan-2023 11:38:31.259 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
15-Jan-2023 11:38:31.260 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
15-Jan-2023 11:38:31.262 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1k 25 Mar 2021]
15-Jan-2023 11:38:31.692 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
15-Jan-2023 11:38:31.722 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [702] milliseconds
15-Jan-2023 11:38:31.785 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
15-Jan-2023 11:38:31.786 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.53]
15-Jan-2023 11:38:31.804 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
15-Jan-2023 11:38:31.828 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [106] milliseconds
MySQL configuration:
MySQL network configuration:
# Static config for eth0
auto eth0
iface eth0 inet static
address 192.168.123.10
netmask 255.255.255.0
gateway 192.168.123.1
up echo nameserver 192.168.123.1 > /etc/resolv.conf
MySQL container log:
[Entrypoint] MySQL Docker Image 5.7.40-1.2.10-server
[Entrypoint] Starting MySQL 5.7.40-1.2.10-server
2023-01-15T11:56:35.833384Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2023-01-15T11:56:35.834418Z 0 [Note] mysqld (mysqld 5.7.40) starting as process 1 ...
2023-01-15T11:56:35.837364Z 0 [Note] InnoDB: PUNCH HOLE support available
2023-01-15T11:56:35.837383Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2023-01-15T11:56:35.837389Z 0 [Note] InnoDB: Uses event mutexes
2023-01-15T11:56:35.837394Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2023-01-15T11:56:35.837408Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.12
2023-01-15T11:56:35.837413Z 0 [Note] InnoDB: Using Linux native AIO
2023-01-15T11:56:35.837630Z 0 [Note] InnoDB: Number of pools: 1
2023-01-15T11:56:35.837739Z 0 [Note] InnoDB: Using CPU crc32 instructions
2023-01-15T11:56:35.839001Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2023-01-15T11:56:35.845313Z 0 [Note] InnoDB: Completed initialization of buffer pool
2023-01-15T11:56:35.846788Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2023-01-15T11:56:35.858342Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2023-01-15T11:56:35.922496Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2023-01-15T11:56:35.922531Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2023-01-15T11:56:35.922601Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2023-01-15T11:56:36.061803Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2023-01-15T11:56:36.063369Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2023-01-15T11:56:36.063390Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2023-01-15T11:56:36.063846Z 0 [Note] InnoDB: Waiting for purge to start
2023-01-15T11:56:36.114026Z 0 [Note] InnoDB: 5.7.40 started; log sequence number 2755871
2023-01-15T11:56:36.114276Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2023-01-15T11:56:36.114491Z 0 [Note] Plugin 'FEDERATED' is disabled.
2023-01-15T11:56:36.116861Z 0 [Note] InnoDB: Buffer pool(s) load completed at 230115 11:56:36
2023-01-15T11:56:36.123639Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2023-01-15T11:56:36.123665Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2023-01-15T11:56:36.123674Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
2023-01-15T11:56:36.123680Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
2023-01-15T11:56:36.124675Z 0 [Warning] CA certificate ca.pem is self signed.
2023-01-15T11:56:36.124741Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2023-01-15T11:56:36.125239Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2023-01-15T11:56:36.125408Z 0 [Note] IPv6 is available.
2023-01-15T11:56:36.125428Z 0 [Note] - '::' resolves to '::';
2023-01-15T11:56:36.125451Z 0 [Note] Server socket created on IP: '::'.
2023-01-15T11:56:36.184900Z 0 [Note] Event Scheduler: Loaded 0 events
2023-01-15T11:56:36.185163Z 0 [Note] mysqld: ready for connections.
Version: '5.7.40' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)
2023-01-15T11:57:04.985825Z 2 [Note] Access denied for user 'healthchecker'#'localhost' (using password: YES)
2023-01-15T11:57:35.393691Z 3 [Note] Access denied for user 'healthchecker'#'localhost' (using password: YES)
Any suggestions?

Related

MariaDB does not start - gtid_slave_pos.ibd & Could not find a valid tablespace file for `mysql`.`gtid_slave_pos``

Our Windows Server for Joget was shut down directly without executing the Joget shutdown program. When I restarted Joget, it could not connect to MariaDB instance.
Folder structure
catalina.2022-03-07:
07-Mar-2022 14:31:45.958 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.23
07-Mar-2022 14:31:45.958 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Sep 28 2017 10:30:11 UTC
07-Mar-2022 14:31:45.958 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.23.0
07-Mar-2022 14:31:45.958 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows NT (unknown)
07-Mar-2022 14:31:45.958 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.0
07-Mar-2022 14:31:45.958 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: x86
07-Mar-2022 14:31:45.958 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\Joget-v6-Enterprise\jre1.8.0_112
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_112-b15
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Joget-v6-Enterprise\apache-tomcat-8.5.23
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\Joget-v6-Enterprise\apache-tomcat-8.5.23
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=.\apache-tomcat-8.5.23\conf\logging.properties
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:MaxHeapSize=2048M
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx1024M
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dwflow.home=./wflow/
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+UseConcMarkSweepGC
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -javaagent:./wflow/aspectjweaver-1.8.5.jar
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=.\apache-tomcat-8.5.23
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=.\apache-tomcat-8.5.23
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=.\apache-tomcat-8.5.23\temp
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Joget-v6-Enterprise\jre1.8.0_112\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files\apache-maven-3.6.0\bin;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;C:\curl\curl-7.80.0-win64-mingw\bin;C:\Users\Administrator.PANGEOCORP\AppData\Local; C:\Program Files\apache-maven-3.6.0\bin;.]
07-Mar-2022 14:31:46.177 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
07-Mar-2022 14:31:46.271 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
07-Mar-2022 14:31:46.286 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-80"]
07-Mar-2022 14:31:46.286 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
07-Mar-2022 14:31:46.286 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["https-jsse-nio-8443"]
07-Mar-2022 14:31:46.536 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
07-Mar-2022 14:31:46.536 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["https-jsse-nio-443"]
07-Mar-2022 14:31:46.552 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
07-Mar-2022 14:31:46.552 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1160 ms
07-Mar-2022 14:31:46.599 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
07-Mar-2022 14:31:46.599 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.23
07-Mar-2022 14:31:46.614 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\jw.war]
07-Mar-2022 14:31:59.521 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
07-Mar-2022 14:32:08.677 SEVERE [localhost-startStop-1] org.apache.tomcat.jdbc.pool.ConnectionPool.init Unable to create initial connections of pool.
java.sql.SQLNonTransientConnectionException: Could not connect to address=(host=localhost)(port=3307)(type=master) : Connection refused: connect
at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.get(ExceptionMapper.java:156)
at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.getException(ExceptionMapper.java:118)
at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.throwException(ExceptionMapper.java:92)
at org.mariadb.jdbc.Driver.connect_aroundBody0(Driver.java:111)
at org.mariadb.jdbc.Driver.connect_aroundBody1$advice(Driver.java:151)
at org.mariadb.jdbc.Driver.connect(Driver.java:1)
at com.mysql.jdbc.Driver.connect_aroundBody0(Driver.java:29)
at com.mysql.jdbc.Driver.connect_aroundBody1$advice(Driver.java:151)
at com.mysql.jdbc.Driver.connect(Driver.java:1)
at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:310)
at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:203)
at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:718)
at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:650)
at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:468)
at org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:143)
at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:118)
at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:107)
at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:131)
at org.joget.commons.util.DynamicDataSource.getConnection_aroundBody0(DynamicDataSource.java:48)
at org.joget.commons.util.DynamicDataSource$AjcClosure1.run(DynamicDataSource.java:1)
at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
at org.joget.commons.util.AnalyzerAspect.analyzeDbcpOpenConnections(AnalyzerAspect.java:166)
at org.joget.commons.util.DynamicDataSource.getConnection(DynamicDataSource.java:20)
at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:139)
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcServicesImpl.java:279)
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:124)
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:111)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:234)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:206)
at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1887)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1845)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1930)
at org.springframework.orm.hibernate4.LocalSessionFactoryBuilder.buildSessionFactory(LocalSessionFactoryBuilder.java:372)
at org.springframework.orm.hibernate4.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:454)
at org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:439)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1689)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1627)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1534)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1281)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1534)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1281)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:713)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:531)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.joget.commons.spring.web.CustomContextLoaderListener.contextInitialized(CustomContextLoaderListener.java:31)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4745)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:988)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1860)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: Could not connect to address=(host=localhost)(port=3307)(type=master) : Connection refused: connect
at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:1027)
at org.mariadb.jdbc.internal.util.Utils.retrieveProxy(Utils.java:483)
at org.mariadb.jdbc.Driver.connect_aroundBody0(Driver.java:106)
... 78 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connect(AbstractConnectProtocol.java:398)
at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:1020)
... 80 more
07-Mar-2022 14:32:09.208 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\jw.war] has finished in [22,594] ms
07-Mar-2022 14:32:09.208 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\jwdesigner.war]
07-Mar-2022 14:32:10.224 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
07-Mar-2022 14:32:10.271 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\jwdesigner.war] has finished in [1,063] ms
07-Mar-2022 14:32:10.271 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\docs]
07-Mar-2022 14:32:10.302 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\docs] has finished in [31] ms
07-Mar-2022 14:32:10.302 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\examples]
07-Mar-2022 14:32:10.521 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\examples] has finished in [219] ms
07-Mar-2022 14:32:10.521 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\host-manager]
07-Mar-2022 14:32:10.536 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\host-manager] has finished in [15] ms
07-Mar-2022 14:32:10.536 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\manager]
07-Mar-2022 14:32:10.552 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\manager] has finished in [16] ms
07-Mar-2022 14:32:10.552 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\ROOT]
07-Mar-2022 14:32:10.583 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\ROOT] has finished in [31] ms
07-Mar-2022 14:32:10.583 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
07-Mar-2022 14:32:10.599 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-80"]
07-Mar-2022 14:32:10.599 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["https-jsse-nio-8443"]
07-Mar-2022 14:32:10.599 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["https-jsse-nio-443"]
07-Mar-2022 14:32:10.615 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 24051 ms
Then I checked the log for MariaDB, there are two errors:
Aras-Server.err
2022-03-07 14:41:01 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-03-07 14:41:01 0 [Note] InnoDB: Uses event mutexes
2022-03-07 14:41:01 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2022-03-07 14:41:01 0 [Note] InnoDB: Number of pools: 1
2022-03-07 14:41:01 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-03-07 14:41:01 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2022-03-07 14:41:01 0 [Note] InnoDB: Completed initialization of buffer pool
2022-03-07 14:41:01 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=5814239621
2022-03-07 14:41:05 0 [ERROR] InnoDB: Refusing to load '.\mysql\gtid_slave_pos.ibd' (id=4, flags=0x21); dictionary contains id=3, flags=0x21
2022-03-07 14:41:05 0 [ERROR] InnoDB: Could not find a valid tablespace file for ``mysql`.`gtid_slave_pos``. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting-datadict.html for how to resolve the issue.
2022-03-07 14:41:05 0 [Warning] InnoDB: Ignoring tablespace for `mysql`.`gtid_slave_pos` because it could not be opened.
2022-03-07 14:41:05 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-03-07 14:41:05 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2022-03-07 14:41:05 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-03-07 14:41:05 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-03-07 14:41:05 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2022-03-07 14:41:05 0 [Note] InnoDB: Waiting for purge to start
2022-03-07 14:41:05 0 [Note] InnoDB: Waiting for purge to start
2022-03-07 14:41:05 0 [Note] InnoDB: 10.3.9 started; log sequence number 5814239630; transaction id 17492792
2022-03-07 14:41:05 0 [Note] InnoDB: Loading buffer pool(s) from C:\Joget-DX7-Enterprise\mariadb-10.3.9-win32\data\ib_buffer_pool
2022-03-07 14:41:05 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-03-07 14:41:05 0 [Note] Server socket created on IP: '::'.
my.ini
[mysqld]
port=3307
character-set-server=utf8
collation-server=utf8_unicode_ci
innodb_strict_mode=0
[client]
port=3307
I tried adding "innodb_force_recovery=1/2/3" inside my.ini, I got:
Aras-Server.err
2022-03-07 16:31:19 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-03-07 16:31:19 0 [Note] InnoDB: Uses event mutexes
2022-03-07 16:31:19 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2022-03-07 16:31:19 0 [Note] InnoDB: Number of pools: 1
2022-03-07 16:31:19 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-03-07 16:31:19 0 [Note] InnoDB: Initializing buffer pool, total size = 512M, instances = 1, chunk size = 128M
2022-03-07 16:31:19 0 [Note] InnoDB: Completed initialization of buffer pool
2022-03-07 16:31:21 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-03-07 16:31:21 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2022-03-07 16:31:21 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-03-07 16:31:21 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-03-07 16:31:21 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2022-03-07 16:31:21 0 [Note] InnoDB: Waiting for purge to start
2022-03-07 16:31:21 0 [Note] InnoDB: 10.3.9 started; log sequence number 5814239648; transaction id 17492792
2022-03-07 16:31:21 0 [Note] InnoDB: !!! innodb_force_recovery is set to 1 !!!
2022-03-07 16:31:21 0 [Note] InnoDB: Loading buffer pool(s) from C:\Joget-DX7-Enterprise\mariadb-10.3.9-win32\data\ib_buffer_pool
2022-03-07 16:31:21 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-03-07 16:31:21 0 [Note] Server socket created on IP: '::'.
When I tried to connect to the database, I got:
C:\Joget-DX7-Enterprise\mariadb-10.3.9-win32\bin>mysql -uroot -p
Enter password:
ERROR 2002 (HY000): Can't connect to MySQL server on 'localhost' (10061)
I want to let this database work again, please help. Thank you.
your databse is running, because the log shows
2022-03-07 16:31:21 0 [Note] Server socket created on IP: '::'.
your server runs on port 3307 accouding to your ini file.
mysql -uroot -p --port=3307
ths port information you must also add to your java connect string

Docker Spring Boot with MySQL database, connection refused

I try to connect from my Spring Boot Container to a MySQL database but the connection breaks
This is my compose file.
version: "3.8"
services:
myapi:
image: myapi:local
container_name: myapi
build:
context: ./../
dockerfile: ./docker/Dockerfile
ports:
- 5000:5000
depends_on:
- mysql
environment:
- SERVER_PORT=5000
- SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/testdb
- SPRING_DATASOURCE_USERNAME=admindev
- SPRING_DATASOURCE_PASSWORD=admindev
- SPRING_DATASOURCE_DRIVER_CLASS_NAME=com.mysql.cj.jdbc.Driver
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
- SPRING_JPA_DATABASE_PLATFORM=org.hibernate.dialect.MySQL5InnoDBDialect
volumes:
- mysql-data:/var/lib/mysql
mysql:
image: mysql:8
container_name: mysql
restart: always
ports:
- 5001:3306
environment:
- MYSQL_ROOT_PASSWORD=1234
- MYSQL_USER=admindev
- MYSQL_PASSWORD=admindev
- MYSQL_DATABASE=testdb
volumes:
mysql-data:
driver: local
The MySQL container starts and it's waiting for connections.
The application also starts, but when it tries to connect to the DB it breaks.
I can't find anything wrong with the docker-compose file. I looked over the documentation and I saw that in the data source URL, I can even omit the port.
UPDATE
mysql container logs:
2021-03-05 13:20:21+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started.
2021-03-05 13:20:21+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2021-03-05 13:20:21+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.23-1debian10 started.
2021-03-05 13:20:21+00:00 [Note] [Entrypoint]: Initializing database files
2021-03-05T13:20:21.662023Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.23) initializing of server in progress as process 42
2021-03-05T13:20:21.675007Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-03-05T13:20:22.643221Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2021-03-05T13:20:24.871463Z 6 [Warning] [MY-010453] [Server] root#localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2021-03-05 13:20:29+00:00 [Note] [Entrypoint]: Database files initialized
2021-03-05 13:20:29+00:00 [Note] [Entrypoint]: Starting temporary server
2021-03-05T13:20:29.854747Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23) starting as process 87
2021-03-05T13:20:29.882866Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-03-05T13:20:30.177247Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2021-03-05T13:20:30.340904Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: /var/run/mysqld/mysqlx.sock
2021-03-05T13:20:30.477364Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2021-03-05T13:20:30.477747Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2021-03-05T13:20:30.482566Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2021-03-05T13:20:30.505587Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.23' socket: '/var/run/mysqld/mysqld.sock' port: 0 MySQL Community Server - GPL.
2021-03-05 13:20:30+00:00 [Note] [Entrypoint]: Temporary server started.
Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.
2021-03-05 13:20:33+00:00 [Note] [Entrypoint]: Creating database thesis
2021-03-05 13:20:33+00:00 [Note] [Entrypoint]: Creating user admindev
2021-03-05 13:20:33+00:00 [Note] [Entrypoint]: Giving user admindev access to schema thesis
2021-03-05 13:20:33+00:00 [Note] [Entrypoint]: Stopping temporary server
2021-03-05T13:20:33.332383Z 13 [System] [MY-013172] [Server] Received SHUTDOWN from user root. Shutting down mysqld (Version: 8.0.23).
2021-03-05T13:20:35.763423Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.23) MySQL Community Server - GPL.
2021-03-05 13:20:36+00:00 [Note] [Entrypoint]: Temporary server stopped
2021-03-05 13:20:36+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.
2021-03-05T13:20:36.568558Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23) starting as process 1
2021-03-05T13:20:36.580255Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-03-05T13:20:36.776157Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2021-03-05T13:20:36.885922Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
2021-03-05T13:20:36.950707Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2021-03-05T13:20:36.950893Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2021-03-05T13:20:36.956239Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2021-03-05T13:20:36.971274Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.23' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
myapi container logs:
2021-03-05 13:23:09.481 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFERRED mode.
2021-03-05 13:23:09.566 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 74ms. Found 1 JPA repository interfaces.
2021-03-05 13:23:10.186 INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler#2eee3069' of type [org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-03-05 13:23:10.194 INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'methodSecurityMetadataSource' of type [org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-03-05 13:23:10.714 INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 5000 (http)
2021-03-05 13:23:10.732 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2021-03-05 13:23:10.732 INFO 1 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.38]
2021-03-05 13:23:10.828 INFO 1 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/api] : Initializing Spring embedded WebApplicationContext
2021-03-05 13:23:10.828 INFO 1 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2738 ms
2021-03-05 13:23:11.152 INFO 1 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2021-03-05 13:23:11.222 INFO 1 --- [ task-1] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2021-03-05 13:23:11.289 WARN 1 --- [ main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2021-03-05 13:23:11.320 INFO 1 --- [ task-1] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.21.Final
2021-03-05 13:23:11.606 INFO 1 --- [ task-1] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
2021-03-05 13:23:11.782 INFO 1 --- [ task-1] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2021-03-05 13:23:12.386 INFO 1 --- [ main] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter#5649ec46, org.springframework.security.web.context.SecurityContextPersistenceFilter#3e598df9, org.springframework.security.web.header.HeaderWriterFilter#7f9e1534, org.springframework.web.filter.CorsFilter#78dc4696, org.springframework.security.web.authentication.logout.LogoutFilter#79b663b3, stefan.buciu.config.filter.AuthenticationFilter#502f8b57, stefan.buciu.config.filter.AuthorizationFilter#5652f555, org.springframework.security.web.savedrequest.RequestCacheAwareFilter#99a65d3, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter#6813a331, org.springframework.security.web.authentication.AnonymousAuthenticationFilter#4fe01805, org.springframework.security.web.session.SessionManagementFilter#81ff872, org.springframework.security.web.access.ExceptionTranslationFilter#5f8890c2]
2021-03-05 13:23:13.038 ERROR 1 --- [ task-1] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Exception during pool initialization.
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174) ~[mysql-connector-java-8.0.21.jar!/:8.0.21]
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64) ~[mysql-connector-java-8.0.21.jar!/:8.0.21]
at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:836) ~[mysql-connector-java-8.0.21.jar!/:8.0.21]
at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:456) ~[mysql-connector-java-8.0.21.jar!/:8.0.21]
at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246) ~[mysql-connector-java-8.0.21.jar!/:8.0.21]
at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:197) ~[mysql-connector-java-8.0.21.jar!/:8.0.21]
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) ~[HikariCP-3.4.5.jar!/:na]
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358) ~[HikariCP-3.4.5.jar!/:na]
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) ~[HikariCP-3.4.5.jar!/:na]
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477) ~[HikariCP-3.4.5.jar!/:na]
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560) ~[HikariCP-3.4.5.jar!/:na]
at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115) ~[HikariCP-3.4.5.jar!/:na]
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) ~[HikariCP-3.4.5.jar!/:na]
at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) ~[hibernate-core-5.4.21.Final.jar!/:5.4.21.Final]
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:180) ~[hibernate-core-5.4.21.Final.jar!/:5.4.21.Final]
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68) ~[hibernate-core-5.4.21.Final.jar!/:5.4.21.Final]
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) ~[hibernate-core-5.4.21.Final.jar!/:5.4.21.Final]
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101) ~[hibernate-core-5.4.21.Final.jar!/:5.4.21.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263) ~[hibernate-core-5.4.21.Final.jar!/:5.4.21.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) ~[hibernate-core-5.4.21.Final.jar!/:5.4.21.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) ~[hibernate-core-5.4.21.Final.jar!/:5.4.21.Final]
at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:152) ~[hibernate-core-5.4.21.Final.jar!/:5.4.21.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286) ~[hibernate-core-5.4.21.Final.jar!/:5.4.21.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243) ~[hibernate-core-5.4.21.Final.jar!/:5.4.21.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) ~[hibernate-core-5.4.21.Final.jar!/:5.4.21.Final]
at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.<init>(InFlightMetadataCollectorImpl.java:176) ~[hibernate-core-5.4.21.Final.jar!/:5.4.21.Final]
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:118) ~[hibernate-core-5.4.21.Final.jar!/:5.4.21.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1224) ~[hibernate-core-5.4.21.Final.jar!/:5.4.21.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1255) ~[hibernate-core-5.4.21.Final.jar!/:5.4.21.Final]
at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) ~[spring-orm-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) ~[spring-orm-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:391) ~[spring-orm-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]
Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure
my application.yml file:
spring:
datasource:
username: admindev
password: admindev
url: jdbc:mysql://localhost:3306/testdb
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
hibernate:
ddl-auto: update
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
server:
port: 5000
servlet:
contextPath: /api
I also thought of attaching the Dockerfile:
FROM openjdk:11-jdk-slim
RUN mkdir -p /home/app
COPY ./target/*.jar /home/app/application.jar
WORKDIR /home/app
CMD ["java", "-jar", "application.jar"]
In the COPY command I used a star because there is only one *.jar produce by maven, and I didn't want to always change my Dockerfile when I change my version. That command works if there is only one file.
The artefacts are built using mvn package and I had no errors there, if I run myself the command: java -jar *.jar in the target dir, the server starts running without any problems.

Percona Xtradb - unable to start nodes after long downtime

We have a Percona Xtradb-v2 cluster set up with 3 nodes.
Everything was working and in synchronisation when we shut down nodes 2 and 3, leaving only node 1. The nodes stayed down for a week, during which time the database grew by 100GB in size.
When we attempted to restart the nodes 2 and 3, the startup failed during the initial SST, after less than a minute. I have tried completely removing the /var/lib/mysql and restarting but it has the same effect.
The error logs appear to show an issue with the initial SST, possibly due to the volume of data required to be transferred for the initial startup. We have sufficient disk space, and file permissions are correct. The xtrabackup package is installed and available (and worked previously anyway).
The logs show a 'no such file or directory'
Joiner Logs show:
Dec 15 01:21:51 xm1adb05 mysqld: #011Group state: 67e7e56d-8e95-11e6-a9d2-ce8abe8f95bb:5766440
Dec 15 01:21:51 xm1adb05 mysqld: #011Local state: 00000000-0000-0000-0000-000000000000:-1
Dec 15 01:21:51 xm1adb05 mysqld: 2016-12-15 01:21:51 13029 [Note] WSREP: New cluster view: global state: 67e7e56d-8e95-11e6-a9d2-ce8abe8f95bb:5766440, view# 54: Primary, number of nodes: 2, my index: 1, protocol version 3
Dec 15 01:21:51 xm1adb05 mysqld: 2016-12-15 01:21:51 13029 [Warning] WSREP: Gap in state sequence. Need state transfer.
Dec 15 01:21:51 xm1adb05 mysqld: 2016-12-15 01:21:51 13029 [Note] WSREP: Running: 'wsrep_sst_xtrabackup-v2 --role 'joiner' --address '10.23.40.115' --datadir '/var/lib/mysql/' --defaults-file '/etc/my.cnf' --defaults-group-suffix '' --parent '13029' '' '
Dec 15 01:21:51 xm1adb05 mysqld: WSREP_SST: [INFO] Logging all stderr of SST/Innobackupex to syslog (20161215 01:21:51.575)
Dec 15 01:21:51 xm1adb05 -wsrep-sst-joiner: Streaming with xbstream
Dec 15 01:21:51 xm1adb05 -wsrep-sst-joiner: Using socat as streamer
...
Dec 15 01:21:51 xm1adb05 mysqld: 2016-12-15 01:21:51 13029 [Warning] WSREP: Failed to prepare for incremental state transfer: Local state UUID (00000000-0000-0000-0000-000000000000) does not match group state UUID (67e7e56d-8e95-11e6-a9d2-ce8abe8f95bb): 1 (Operation not permitted)
Dec 15 01:21:51 xm1adb05 mysqld: #011 at galera/src/replicator_str.cpp:prepare_for_IST():507. IST will be unavailable.
...
Dec 15 01:21:51 xm1adb05 mysqld: 2016-12-15 01:21:51 13029 [Note] WSREP: Member 1.0 (xm1adb05) requested state transfer from '*any*'. Selected 0.0 (xm1adb04)(SYNCED) as donor.
Dec 15 01:21:51 xm1adb05 mysqld: 2016-12-15 01:21:51 13029 [Note] WSREP: Shifting PRIMARY -> JOINER (TO: 5766440)
Dec 15 01:21:51 xm1adb05 mysqld: 2016-12-15 01:21:51 13029 [Note] WSREP: Requesting state transfer: success, donor: 0
Dec 15 01:21:51 xm1adb05 mysql-systemd: State transfer in progress, setting sleep higher
...
Dec 15 01:22:02 xm1adb05 -wsrep-sst-joiner: xtrabackup_checkpoints missing, failed innobackupex/SST on donor
Dec 15 01:22:02 xm1adb05 -wsrep-sst-joiner: Cleanup after exit with status:2
Dec 15 01:22:02 xm1adb05 mysqld: 2016-12-15 01:22:02 13029 [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup-v2 --role 'joiner' --address '10.23.40.115' --datadir '/var/lib/mysql/' --defaults-file '/etc/my.cnf' --defaults-group-suffix '' --parent '13029' '' : 2 (No such file or directory)
Dec 15 01:22:02 xm1adb05 mysqld: 2016-12-15 01:22:02 13029 [ERROR] WSREP: Failed to read uuid:seqno from joiner script.
Dec 15 01:22:02 xm1adb05 mysqld: 2016-12-15 01:22:02 13029 [ERROR] WSREP: SST script aborted with error 2 (No such file or directory)
Dec 15 01:22:02 xm1adb05 mysqld: 2016-12-15 01:22:02 13029 [ERROR] WSREP: SST failed: 2 (No such file or directory)
Dec 15 01:22:02 xm1adb05 mysqld: 2016-12-15 01:22:02 13029 [ERROR] Aborting
Donor logs show:
Dec 15 01:22:02 xm1adb04 mysqld: 2016-12-15 01:22:02 6531 [ERROR] WSREP: Failed to read from: wsrep_sst_xtrabackup-v2 --role 'donor' --address '10.23.40.115:4444/xtrabackup_sst//1' --socket '/var/lib/mysql/mysql.sock' --datadir '/var/lib/mysql/' --defaults-file '/etc/my.cnf' --defaults-group-suffix '' '' --gtid '67e7e56d-8e95-11e6-a9d2-ce8abe8f95bb:5766440'
Dec 15 01:22:02 xm1adb04 mysqld: 2016-12-15 01:22:02 6531 [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup-v2 --role 'donor' --address '10.23.40.115:4444/xtrabackup_sst//1' --socket '/var/lib/mysql/mysql.sock' --datadir '/var/lib/mysql/' --defaults-file '/etc/my.cnf' --defaults-group-suffix '' '' --gtid '67e7e56d-8e95-11e6-a9d2-ce8abe8f95bb:5766440': 22 (Invalid argument)
Dec 15 01:22:03 xm1adb04 mysqld: 2016-12-15 01:22:03 6531 [ERROR] WSREP: Command did not run: wsrep_sst_xtrabackup-v2 --role 'donor' --address '10.23.40.115:4444/xtrabackup_sst//1' --socket '/var/lib/mysql/mysql.sock' --datadir '/var/lib/mysql/' --defaults-file '/etc/my.cnf' --defaults-group-suffix '' '' --gtid '67e7e56d-8e95-11e6-a9d2-ce8abe8f95bb:5766440'
Similar actions successfully started the secondary nodes on another (much smaller) database, so it would seem that the size may be the issue.
Can anyone give some help on how we can initialise and re-start the additional nodes?
Just switch to rsync.
wsrep_sst_method = rsync
Once the node is in sync, stop it, switch to xtrabackup and start again.
XtraBackup failed in your case. You can get lead of XB failure by looking at XB generated log files.
BTW, you should check the XB log on donor node.
As per the short snippet XB reports (Invalid argument)
The solution to restart the nodes was to first restart the one remaining cluster member (1), then completely wipe the /var/lib/mysql on the joiners (2 and 3) before trying to restart and rejoin. This causes an SST and all worked.
The problem seems to be that the nodes 2 and 3 were partitioned on node 1, and so it was not allowing the SST to complete (I think maybe the final IST was denied and so the SST rolled back). Restarting node 1 seems to reset the partitioning and then the SST could complete.
We also had a rather small gcache.size which didn't help as there were a lot of writes going on in the database.
Later events showed that the SST seems to have failed due to issues with xtrabackup on the donor node. The xtrabackup process didn't like the my.cnf settings where we had a line duplicated. Fixing this and restarting the donor (to end the partitioning) has let things work.
Whoever looking for an answer, having similar errors especially at donor, in my case I had to open firewall ports for 4444, 4567 and 4568 across all the nodes.
Please take backup first of advanced Node that is Node 1 and restore on second and third then then try to restart second and third node ,that will solve your problems .
because while starting second node your donor is not receiving last LSN no from joiner because second node datadir is empty there is no data

MySql fails to start

Having trouble diagnosing my issue (mysql fails to start). Any help would be greatly appreciated.
Also, this is on Ubuntu 16.04
Step 1 - service mysql start
Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
Step 2 - systemctl status mysql.service
mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: activating (start-post) (Result: exit-code) since Mon 2016-10-31 22:40:22 UTC; 11s ago
Process: 9780 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
Process: 9777 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
Main PID: 9780 (code=exited, status=1/FAILURE); : 9781 (mysql-systemd-s)
CGroup: /system.slice/mysql.service
└─control
├─9781 /bin/bash /usr/share/mysql/mysql-systemd-start post
└─9806 sleep 1
Step 3 - journalctl -xe
Oct 31 22:42:32 sshd[10033]: Received disconnect from 121.18.238.109 port 34577:11: [preauth]
Oct 31 22:42:32 sshd[10033]: Disconnected from 121.18.238.109 port 34577 [preauth]
Oct 31 22:42:32 sshd[10033]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=121.18.238.109 user=root
Oct 31 22:42:35 sshd[10090]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=116.31.116.23 user=root
Oct 31 22:42:37 sshd[10090]: Failed password for root from 116.31.116.23 port 52791 ssh2
Oct 31 22:42:39 sshd[10090]: Failed password for root from 116.31.116.23 port 52791 ssh2
Oct 31 22:42:41 sshd[10090]: Failed password for root from 116.31.116.23 port 52791 ssh2
Oct 31 22:42:41 sshd[10090]: Received disconnect from 116.31.116.23 port 52791:11: [preauth]
Oct 31 22:42:41 sshd[10090]: Disconnected from 116.31.116.23 port 52791 [preauth]
Oct 31 22:42:41 sshd[10090]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=116.31.116.23 user=root
Oct 31 22:42:43 sshd[10084]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=121.18.238.109 user=root
Oct 31 22:42:45 sshd[10084]: Failed password for root from 121.18.238.109 port 40812 ssh2
Oct 31 22:42:48 sshd[10084]: Failed password for root from 121.18.238.109 port 40812 ssh2
Oct 31 22:42:50 sshd[10084]: Failed password for root from 121.18.238.109 port 40812 ssh2
Oct 31 22:42:50 sshd[10084]: Received disconnect from 121.18.238.109 port 40812:11: [preauth]
Oct 31 22:42:50 sshd[10084]: Disconnected from 121.18.238.109 port 40812 [preauth]
Oct 31 22:42:50 sshd[10084]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=121.18.238.109 user=root
Oct 31 22:42:56 systemd[1]: Failed to start MySQL Community Server.
-- Subject: Unit mysql.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mysql.service has failed.
--
-- The result is failed.
Oct 31 22:42:56 systemd[1]: mysql.service: Unit entered failed state.
Oct 31 22:42:56 systemd[1]: mysql.service: Failed with result 'exit-code'.
Oct 31 22:42:56 systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
Oct 31 22:42:56 systemd[1]: Stopped MySQL Community Server.
-- Subject: Unit mysql.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mysql.service has finished shutting down.
Oct 31 22:42:56 systemd[1]: Starting MySQL Community Server...
-- Subject: Unit mysql.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mysql.service has begun starting up.
Oct 31 22:42:56 systemd[1]: mysql.service: Main process exited, code=exited, status=1/FAILURE
Oct 31 22:43:04 sshd[10141]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=121.18.238.109 user=root
Oct 31 22:43:06 sshd[10141]: Failed password for root from 121.18.238.109 port 56169 ssh2
Oct 31 22:43:11 sshd[10141]: Failed password for root from 121.18.238.109 port 56169 ssh2
Oct 31 22:43:13 sshd[10141]: Failed password for root from 121.18.238.109 port 56169 ssh2
Oct 31 22:43:14 sshd[10178]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=116.31.116.23 user=root
Oct 31 22:43:17 sshd[10178]: Failed password for root from 116.31.116.23 port 60094 ssh2
Oct 31 22:43:18 sshd[10178]: Failed password for root from 116.31.116.23 port 60094 ssh2
Oct 31 22:43:20 sshd[10178]: Failed password for root from 116.31.116.23 port 60094 ssh2
Oct 31 22:43:20 sshd[10178]: Received disconnect from 116.31.116.23 port 60094:11: [preauth]
Oct 31 22:43:20 sshd[10178]: Disconnected from 116.31.116.23 port 60094 [preauth]
Oct 31 22:43:20 sshd[10178]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=116.31.116.23 user=root
Oct 31 22:43:21 sshd[10141]: Received disconnect from 121.18.238.109 port 56169:11: [preauth]
Oct 31 22:43:21 sshd[10141]: Disconnected from 121.18.238.109 port 56169 [preauth]
Oct 31 22:43:21 sshd[10141]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=121.18.238.109 user=root
More info that could help. I tired mysql but received ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Also, here is the Error log
2016-10-31T19:06:58.590888Z 0 [Note] Giving 0 client threads a chance to die gracefully
2016-10-31T19:06:58.591364Z 0 [Note] Shutting down slave threads
2016-10-31T19:06:58.592730Z 0 [Note] Forcefully disconnecting 0 remaining clients
2016-10-31T19:06:58.592792Z 0 [Note] Event Scheduler: Purging the queue. 0 events
2016-10-31T19:06:58.598944Z 0 [Note] Binlog end
2016-10-31T19:06:58.701931Z 0 [Note] Shutting down plugin 'validate_password'
2016-10-31T19:06:58.705709Z 0 [Note] Shutting down plugin 'ngram'
2016-10-31T19:06:58.705751Z 0 [Note] Shutting down plugin 'ARCHIVE'
2016-10-31T19:06:58.705790Z 0 [Note] Shutting down plugin 'partition'
2016-10-31T19:06:58.705812Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2016-10-31T19:06:58.705844Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2016-10-31T19:06:58.706964Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2016-10-31T19:06:58.707001Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2016-10-31T19:06:58.707020Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2016-10-31T19:06:58.707037Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2016-10-31T19:06:58.707054Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2016-10-31T19:06:58.707208Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2016-10-31T19:06:58.707235Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2016-10-31T19:06:58.707255Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2016-10-31T19:06:58.707271Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2016-10-31T19:06:58.707286Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2016-10-31T19:06:58.707306Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2016-10-31T19:06:58.707322Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2016-10-31T19:06:58.707340Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2016-10-31T19:06:58.707358Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2016-10-31T19:06:58.707411Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2016-10-31T19:06:58.707432Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2016-10-31T19:06:58.707449Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2016-10-31T19:06:58.707467Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2016-10-31T19:06:58.707484Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2016-10-31T19:06:58.707499Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2016-10-31T19:06:58.707516Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2016-10-31T19:06:58.707534Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2016-10-31T19:06:58.707566Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2016-10-31T19:06:58.707587Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2016-10-31T19:06:58.707603Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2016-10-31T19:06:58.707619Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2016-10-31T19:06:58.707636Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2016-10-31T19:06:58.707654Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2016-10-31T19:06:58.707672Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2016-10-31T19:06:58.707698Z 0 [Note] Shutting down plugin 'InnoDB'
2016-10-31T19:06:58.711649Z 0 [Note] InnoDB: FTS optimize thread exiting.
2016-10-31T19:06:58.714623Z 0 [Note] InnoDB: Starting shutdown...
2016-10-31T19:06:58.819989Z 0 [ERROR] InnoDB: Operating system error number 13 in a file operation.
2016-10-31T19:06:58.820088Z 0 [ERROR] InnoDB: The error means mysqld does not have the access rights to the directory.
2016-10-31T19:06:58.820228Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2016-10-31T19:06:58.820416Z 0 [ERROR] InnoDB: Cannot open '/var/lib/mysql/ib_buffer_pool.incomplete' for writing: Permission denied
2016-10-31T19:07:00.692529Z 0 [Note] InnoDB: Shutdown completed; log sequence number 1333673446
2016-10-31T19:07:00.693394Z 0 [ERROR] InnoDB: Operating system error number 13 in a file operation.
2016-10-31T19:07:00.693505Z 0 [ERROR] InnoDB: The error means mysqld does not have the access rights to the directory.
2016-10-31T19:07:00.693546Z 0 [Note] Shutting down plugin 'MEMORY'
2016-10-31T19:07:00.693586Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2016-10-31T19:07:00.693933Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2016-10-31T19:07:00.695547Z 0 [Note] Shutting down plugin 'MyISAM'
2016-10-31T19:07:00.696705Z 0 [Note] Shutting down plugin 'CSV'
2016-10-31T19:07:00.696747Z 0 [Note] Shutting down plugin 'sha256_password'
2016-10-31T19:07:00.696758Z 0 [Note] Shutting down plugin 'mysql_native_password'
2016-10-31T19:07:00.696766Z 0 [Note] Shutting down plugin 'keyring_file'
2016-10-31T19:07:00.728590Z 0 [Note] Shutting down plugin 'binlog'
2016-10-31T19:07:00.737815Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
try using sudo service mysql start
to start the mysqld service. the issue seems to be access rights - The error means mysqld does not have the access rights to the directory.
I had a problem with that, in my case the problem was with log file, because this file was deleted. I solved it by recreating this file '/var/log/mysql/error.log', after that my server starting normaly.
Your data directory of mysql is gone for toss in where it holds all the DBs including mysql sys and authentication files.
You need to reinitialize mysql database by making fresh empty mysql base & data directory. You can follow steps from mysqld data directory initialization
You can use following mysqld to reset password easily
$ mysqld --initialize-insecure
to reset password from your Linux Variant root login. Else its little tougher to figure out generated password and that you need to have with init-file for settings I think. Because for me the process doesn't show up any random password.
Both the following option to be used I think. I cannot go over again. But you can try that it is generating and showing random password.
$ mysqld --initialize-insecure --initialize
Article says,
With --initialize-insecure, (either with or without --initialize
because --initialize-insecure implies --initialize), the server does
not generate a password or mark it expired, and writes a warning
message
To reset password,
# mysql -u root --skip-password
....
mysql> ALTER USER 'root'#'localhost' IDENTIFIED BY 'new_password';

XAMPP "MySQL shutdown unexpectedly" Win10

7:23:46 PM [main] Initializing Control Panel
7:23:46 PM [main] Windows Version: Windows 8 64-bit
7:23:46 PM [main] XAMPP Version: 5.6.11
7:23:46 PM [main] Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ]
7:23:46 PM [main] You are not running with administrator rights! This will work for
7:23:46 PM [main] most application stuff but whenever you do something with services
7:23:46 PM [main] there will be a security dialogue or things will break! So think
7:23:46 PM [main] about running this application with administrator rights!
7:23:46 PM [main] XAMPP Installation Directory: "e:\xampp\"
7:23:46 PM [main] Checking for prerequisites
7:23:46 PM [main] All prerequisites found
7:23:46 PM [main] The Apache module is disabled
7:23:46 PM [main] The FileZilla module is disabled
7:23:46 PM [main] The Mercury module is disabled
7:23:46 PM [main] The Tomcat module is disabled
7:23:46 PM [main] Enabling autostart for module "MySQL"
7:23:46 PM [main] Starting Check-Timer
7:23:46 PM [main] Control Panel Ready
7:23:47 PM [mysql] Autostart active: starting...
7:23:47 PM [mysql] Attempting to start MySQL app...
7:23:47 PM [mysql] Status change detected: running
7:23:48 PM [mysql] Status change detected: stopped
7:23:48 PM [mysql] Error: MySQL shutdown unexpectedly.
7:23:48 PM [mysql] This may be due to a blocked port, missing dependencies,
7:23:48 PM [mysql] improper privileges, a crash, or a shutdown by another method.
7:23:48 PM [mysql] Press the Logs button to view error logs and check
7:23:48 PM [mysql] the Windows Event Viewer for more clues
7:23:48 PM [mysql] If you need more help, copy and post this
7:23:48 PM [mysql] entire log window on the forums
I had everything working yesterday, but for some reason I can't get it to work now. I tried deleting and reinstalling the xampp file. It says I'm not running admin rights, but I'm the only user and admin. I've tried a few suggestions already posted on here, but I cannot get it to work. Any ideas?
2015-08-18 21:07:18 4436 [Note] Plugin 'FEDERATED' is disabled.
2015-08-18 21:07:18 2988 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2015-08-18 21:07:18 4436 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-08-18 21:07:18 4436 [Note] InnoDB: The InnoDB memory heap is disabled
2015-08-18 21:07:18 4436 [Note] InnoDB: Mutexes and rw_locks use Windows
interlocked functions
2015-08-18 21:07:18 4436 [Note] InnoDB: Memory barrier is not used
2015-08-18 21:07:18 4436 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-08-18 21:07:18 4436 [Note] InnoDB: Not using CPU crc32 instructions
2015-08-18 21:07:18 4436 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-08-18 21:07:18 4436 [Note] InnoDB: Completed initialization of buffer pool
2015-08-18 21:07:19 4436 [Note] InnoDB: Highest supported file format is
Barracuda.
2015-08-18 21:07:23 4436 [Note] InnoDB: 128 rollback segment(s) are active.
2015-08-18 21:07:23 4436 [Note] InnoDB: Waiting for purge to start
2015-08-18 21:07:23 4436 [Note] InnoDB: 5.6.25 started; log sequence number 1665234
2015-08-18 21:07:23 4436 [Note] Server hostname (bind-address): '*'; port: 3306
2015-08-18 21:07:23 4436 [Note] IPv6 is available.
2015-08-18 21:07:23 4436 [Note] - '::' resolves to '::';
2015-08-18 21:07:23 4436 [Note] Server socket created on IP: '::'.
2015-08-18 21:07:25 4436 [Note] Event Scheduler: Loaded 0 events
2015-08-18 21:07:25 4436 [Note] mysql\bin\mysqld.exe: ready for connections.
Version: '5.6.25' socket: '' port: 3306 MySQL Community Server (GPL)
I restarted my computer and noticed that there was an update available. Once I did the update and restarted, completely deleted xampp and reinstalled, MySQL is functioning correctly again. Perhaps because there was an update available, it wasn't letting it run?
TL;DR: Check for updates, restart computer, reinstall xampp. MySQL should work.