504 Gateway Timeout error after configuring RDS Database
Asked by Joe Bennett:

Confluence version 6.15.4

RDS Database: Postgres 9.5.2

After configuring AWS Cluster information I am directed to the Databaase page. I input the correct information and press \`Test Connection\` button and I get a green check. However I get a 504 Gateway Timeout error and the following in the atlassian-confluence.log file:

2019-05-30 13:48:12,738 INFO \[http-nio-8090-exec-18\] \[cluster.hazelcast.monitoring.HazelcastMembershipListener\] init init: cluster ClusterService{address=\[10  
.151.10.203\]:5801}  
2019-05-30 13:48:12,740 INFO \[http-nio-8090-exec-18\] \[cluster.hazelcast.monitoring.HazelcastMembershipListener\] init init: cluster contains Member \[10.151.10.203\]:5801 - 70ea4033-86b4-4ed9-bf41-ff44be728c1b this  
2019-05-30 13:48:21,670 INFO \[http-nio-8090-exec-18\] \[springframework.web.context.ContextLoader\] initWebApplicationContext Root WebApplicationContext: initialization completed in 27267 ms  
2019-05-30 13:48:21,712 INFO \[http-nio-8090-exec-18\] \[atlassian.plugin.manager.DefaultPluginManager\] shutdown Preparing to shut down the plugin system  
2019-05-30 13:48:21,714 INFO \[http-nio-8090-exec-18\] \[atlassian.plugin.manager.DefaultPluginManager\] shutdown Shutting down the plugin system  
2019-05-30 13:48:21,852 INFO \[http-nio-8090-exec-18\] \[atlassian.plugin.manager.DefaultPluginManager\] earlyStartup Plugin system earlyStartup begun  
2019-05-30 13:48:22,867 WARN \[http-nio-8090-exec-18\] \[org.twdata.pkgscanner.ExportPackageListBuilder\] logDuplicateWarning Package Scanner found duplicates for package 'javax.annotation' with different versions. Files: javax.annotation-api-1.3.2.jar and jsr305-3.0.1.jar  
'/opt/atlassian/confluence/confluence/WEB-INF/lib/javax.annotation-api-1.3.2.jar'  
'/opt/atlassian/confluence/confluence/WEB-INF/lib/jsr305-3.0.1.jar'  
-- referer: <https://confluence.awstst.lazard.com/setup/setupdbtype.action> \| url: /setup/setupdbtype.action \| traceId: 001c2c51634d1291 \| userName: anonymous \| action: setupdbtype  
2019-05-30 13:48:24,166 WARN \[FelixStartLevel\] \[extender.internal.support.ExtenderConfiguration\] addDefaultDependencyFactories Gemini Blueprint extensions bundle not present, annotation processing disabled.  
-- referer: <https://confluence.awstst.lazard.com/setup/setupdbtype.action> \| url: /setup/setupdbtype.action \| traceId: 001c2c51634d1291 \| userName: anonymous \| action: setupdbtype  
2019-05-30 13:48:28,591 ERROR \[http-nio-8090-exec-10\] \[atlassian.confluence.util.AbstractBootstrapHotSwappingFilter\] doFilter Could not get swap target filter  
-- url: /status \| traceId: 008399f6545612e5  
2019-05-30 13:48:32,045 ERROR \[http-nio-8090-exec-15\] \[atlassian.confluence.util.AbstractBootstrapHotSwappingFilter\] doFilter Could not get swap target filter  
-- url: /status \| traceId: 00f4e7d256bc5518  
2019-05-30 13:48:32,062 ERROR \[http-nio-8090-exec-21\] \[atlassian.confluence.util.AbstractBootstrapHotSwappingFilter\] doFilter Could not get swap target filter  
-- url: /status \| traceId: 00bc33a4161c4675  
2019-05-30 13:48:54,274 WARN \[ThreadPoolAsyncTaskExecutor::Thread 13\] \[spring.scanner.util.ProductFilterUtil\] detectProduct Couldn't detect product, will use ProductFilter.ALL  
-- referer: <https://confluence.awstst.lazard.com/setup/setupdbtype.action> \| url: /setup/setupdbtype.action \| traceId: 001c2c51634d1291 \| userName: anonymous \| action: setupdbtype  
2019-05-30 13:48:58,620 ERROR \[http-nio-8090-exec-35\] \[atlassian.confluence.util.AbstractBootstrapHotSwappingFilter\] doFilter Could not get swap target filter  
-- url: /status \| traceId: 0086f26a859628ae  
2019-05-30 13:49:02,050 ERROR \[http-nio-8090-exec-44\] \[atlassian.confluence.util.AbstractBootstrapHotSwappingFilter\] doFilter Could not get swap target filter  
-- url: /status \| traceId: 0044466b42c0de8c


Answers:
author: Joe Bennett
body: The suggestion on the right side gave me my solution: increasing the nginx timeout.

<https://community.atlassian.com/t5/Confluence-questions/504-Timeout-On-Database-Install/qaq-p/1071643>


Tags: confluence-server

server