The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

Could not connect to address=(host=127.0.0.1)(port=3306)(type=master) : Socket fail to connect to host:127.0.0.1, port:3306. Connection refused

Katarzyna | Last updated: Oct 25, 2023 07:57AM UTC

I'm using Burp Enterprise installed with Helm with the following setup: burp-storage.yaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: local-storage provisioner: kubernetes.io/no-provisioner volumeBindingMode: WaitForFirstConsumer reclaimPolicy: Retain burp-pv.yaml apiVersion: v1 kind: PersistentVolume metadata: name: bsee-pv namespace: default labels: app.kubernetes.io/name: bsee-pv app.kubernetes.io/component: persistence spec: capacity: storage: 5Gi volumeMode: Filesystem accessModes: - ReadWriteMany persistentVolumeReclaimPolicy: Retain storageClassName: local-storage hostPath: path: /tmp burp-pvc.yaml: apiVersion: v1 kind: PersistentVolumeClaim metadata: name: bsee-pvc namespace: default spec: storageClassName: local-storage accessModes: - ReadWriteMany volumeMode: Filesystem resources: requests: storage: 5Gi Everything seems to be working, however, when I take a look at enterprise server logs, it seems it has problems connecting to database. kubectl logs burp-deployment-enterprise-server-55b7b9d7d8-8xgb9 Defaulted container "enterprise-server" out of: enterprise-server, init-burp-download (init), init-enterprise-server-keystore (init) 2023-10-25 07:50:37 INFO b.common.config.CommandLineOptions - Selected default file 'enterprise-server.config' [main] 2023-10-25 07:50:37 INFO bsee.common.BuildConstants - Product version: 2023.9.1-14530 [main] 2023-10-25 07:50:37 INFO bsee.server.StartEnterpriseServer - Enterprise Server version 2023.9.1-14530 [main] 2023-10-25 07:50:37 INFO bsee.server.StartEnterpriseServer - Using Java version 17.0.8 [main] 2023-10-25 07:50:37 INFO b.common.config.SystemEnvironment - Installation environment: KUBERNETES [main] 2023-10-25 07:50:37 INFO b.common.config.SystemEnvironment - Burp download path: /home/burpsuite/burp [main] 2023-10-25 07:50:37 INFO b.common.config.SystemEnvironment - Linux preference store path: /home/burpsuite/prefs [main] 2023-10-25 07:50:37 INFO b.common.config.SystemEnvironment - Database idle timeout: 60000 [main] 2023-10-25 07:50:37 INFO b.common.config.SystemEnvironment - Database lifetime timeout: 120000 [main] 2023-10-25 07:50:37 INFO b.common.config.SystemEnvironment - Enterprise Server HTTPS port: 8072 [main] 2023-10-25 07:50:37 INFO b.common.config.SystemEnvironment - Enterprise Server HTTPS keystore location: /home/burpsuite/keystores/es.keystore [main] 2023-10-25 07:50:37 INFO b.common.config.SystemEnvironment - Enterprise Server HTTPS keystore password: ****** [main] 2023-10-25 07:50:37 INFO b.common.config.SystemEnvironment - Admin repository URL: jdbc:mysql://127.0.0.1:3306/burp_enterprise [main] 2023-10-25 07:50:37 INFO b.common.config.SystemEnvironment - Admin repository username: burp_enterprise [main] 2023-10-25 07:50:37 INFO b.common.config.SystemEnvironment - Admin repository password: ****** [main] 2023-10-25 07:50:37 INFO b.common.config.SystemEnvironment - Agent repository URL: jdbc:mysql://127.0.0.1:3306/burp_enterprise [main] 2023-10-25 07:50:37 INFO b.common.config.SystemEnvironment - Agent repository username: burp_agent [main] 2023-10-25 07:50:37 INFO b.common.config.SystemEnvironment - Agent repository password: ****** [main] 2023-10-25 07:50:38 INFO b.common.config.SystemEnvironment - Installation environment: KUBERNETES [main] 2023-10-25 07:50:38 INFO b.common.repository.DatabaseModule - Creating data source for URL: jdbc:mysql://127.0.0.1:3306/burp_enterprise, username: burp_enterprise [main] 2023-10-25 07:50:38 INFO b.common.repository.DatabaseModule - DB timeouts: idle=60000, max life=120000 [main] 2023-10-25 07:50:38 INFO b.s.b.BootstrapEnterpriseServer - Starting bootstrap action: Database migrations [main] Exception in thread "main" java.lang.RuntimeException: java.sql.SQLTransientConnectionException: bewspool - Connection is not available, request timed out after 10001ms. at net.portswigger.enterprise.Q.Q.Z.e(Unknown Source) at net.portswigger.enterprise.server.A.B.f(Unknown Source) at net.portswigger.enterprise.server.A.U.I(Unknown Source) at net.portswigger.enterprise.server.j.n.P(Unknown Source) at net.portswigger.enterprise.server.j.s.V(Unknown Source) at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) at java.base/java.util.ArrayList$ArrayListSpliterator.tryAdvance(Unknown Source) at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(Unknown Source) at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(Unknown Source) at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) at java.base/java.util.stream.FindOps$FindOp.evaluateSequential(Unknown Source) at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source) at java.base/java.util.stream.ReferencePipeline.findFirst(Unknown Source) at net.portswigger.enterprise.server.j.s.N(Unknown Source) at net.portswigger.enterprise.server.StartEnterpriseServer.r(Unknown Source) at net.portswigger.enterprise.server.StartEnterpriseServer.R(Unknown Source) at net.portswigger.enterprise.server.StartEnterpriseServer.main(Unknown Source) Caused by: java.sql.SQLTransientConnectionException: bewspool - Connection is not available, request timed out after 10001ms. at com.zaxxer.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:696) at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:181) at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:146) at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:100) at net.portswigger.enterprise.Q.Q.Z.F(Unknown Source) at net.portswigger.enterprise.Q.Q.Z.L(Unknown Source) at net.portswigger.enterprise.Q.Q.Z.e(Unknown Source) ... 17 more Caused by: java.sql.SQLNonTransientConnectionException: Could not connect to address=(host=127.0.0.1)(port=3306)(type=master) : Socket fail to connect to host:127.0.0.1, port:3306. Connection refused at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.createException(ExceptionFactory.java:73) at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.create(ExceptionFactory.java:197) at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:1394) at org.mariadb.jdbc.internal.util.Utils.retrieveProxy(Utils.java:635) at org.mariadb.jdbc.MariaDbConnection.newConnection(MariaDbConnection.java:150) at org.mariadb.jdbc.Driver.connect(Driver.java:89) at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:359) at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:201) at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:470) at com.zaxxer.hikari.pool.HikariPool$PoolEntryCreator.call(HikariPool.java:733) at com.zaxxer.hikari.pool.HikariPool$PoolEntryCreator.call(HikariPool.java:712) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Caused by: java.sql.SQLNonTransientConnectionException: Socket fail to connect to host:127.0.0.1, port:3306. Connection refused at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.createException(ExceptionFactory.java:73) at org.mariadb.jdbc.internal.util.exceptions.ExceptionFactory.create(ExceptionFactory.java:188) at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.createSocket(AbstractConnectProtocol.java:257) at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.createConnection(AbstractConnectProtocol.java:524) at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:1389) ... 13 more Caused by: java.net.ConnectException: Connection refused at java.base/sun.nio.ch.Net.pollConnect(Native Method) at java.base/sun.nio.ch.Net.pollConnectNow(Unknown Source) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(Unknown Source) at java.base/sun.nio.ch.NioSocketImpl.connect(Unknown Source) at java.base/java.net.SocksSocketImpl.connect(Unknown Source) at java.base/java.net.Socket.connect(Unknown Source) at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.createSocket(AbstractConnectProtocol.java:252) ... 15 more How to handle this?

Katarzyna | Last updated: Oct 25, 2023 07:58AM UTC

All the pods are on the same machine, database is installed locally on the same physical machine, not using Helm.

Maia, PortSwigger Agent | Last updated: Oct 25, 2023 12:44PM UTC

Thank you for your message. We have received your email with additional details. Thank you for letting us know that the issue is now resolved.

Katarzyna | Last updated: Oct 26, 2023 06:50AM UTC

Unfortunately, THIS issue is NOT RESOLVED. My previous issue (with back-off message from pods) is resolved, now I have problem as above. I think this might be related to the fact that my pods are in a cluster and a database is on a local filesystem (all on the same physical machine). How to solve it?

Maia, PortSwigger Agent | Last updated: Oct 26, 2023 10:18AM UTC