社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  docker

使用docker安装bamboo试用版并连接到localhost上的postgres数据库时出现问题

Amin Ba • 4 年前 • 1912 次点击  

我正在尝试使用docker容器运行bamboo服务器,并将其连接到另一个容器上运行的postgres db。首先,我运行postgres数据库,创建一个名为bambon的空数据库,其中包含用户postgres和密码postgres。

这是一个测试,它可以工作,我可以连接到它

enter image description here

我运行这个推荐来运行竹子服务器 https://hub.docker.com/r/atlassian/bamboo

$> docker volume create --name bambooVolume
$> docker run -v bambooVolume:/var/atlassian/application-data/bamboo --name="bamboo" -d -p 8085:8085 -p 54663:54663 atlassian/bamboo

这是docker ps的结果 enter image description here

然后我打开localhost:8085并生成一个许可证,直到现在我看到了这个错误

访问数据库时出错:org。postgresql。util。PSQLException:与本地主机的连接:5432被拒绝。检查主机名和端口是否正确,邮政局长是否接受TCP/IP连接。

enter image description here

有什么问题吗?

这是docker日志

C:\Users\aminb>docker logs 9e31ad6a773c
INFO:root:Generating /opt/atlassian/bamboo/conf/server.xml from template server.xml.j2
INFO:root:Generating /opt/atlassian/bamboo/atlassian-bamboo/WEB-INF/classes/seraph-config.xml from template seraph-config.xml.j2
INFO:root:Generating /opt/atlassian/bamboo/atlassian-bamboo/WEB-INF/classes/bamboo-init.properties from template bamboo-init.properties.j2
INFO:root:/var/atlassian/application-data/bamboo/bamboo.cfg.xml exists; skipping.
INFO:root:User is currently root. Will downgrade run user to bamboo
INFO:root:Running Bamboo with command '/opt/atlassian/bamboo/bin/start-bamboo.sh', arguments ['/opt/atlassian/bamboo/bin/start-bamboo.sh', '-fg']

Server startup logs are located in /opt/atlassian/bamboo/logs/catalina.out

Bamboo Data Center
   Version : 8.2.1


If you encounter issues starting or stopping Bamboo Server, please see the Troubleshooting guide at https://confluence.atlassian.com/display/BAMBOO/Installing+and+upgrading+Bamboo

Using BAMBOO_HOME:       /var/atlassian/application-data/bamboo
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
10-Apr-2022 03:29:59.852 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server} Setting property 'port' to '' did not find a matching property.
10-Apr-2022 03:30:00.078 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'proxyPort' to '' did not find a matching property.
10-Apr-2022 03:30:00.117 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib]
10-Apr-2022 03:30:00.142 INFO [main] org.apache.coyote.http11.AbstractHttp11Protocol.configureUpgradeProtocol The ["http-nio-8085"] connector has been configured to support HTTP upgrade to [h2c]
10-Apr-2022 03:30:00.143 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8085"]
10-Apr-2022 03:30:00.159 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 363 ms
10-Apr-2022 03:30:00.185 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
10-Apr-2022 03:30:00.185 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.75]
10-Apr-2022 03:30:05.846 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.
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
10-Apr-2022 03:30:08.657 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8085"]
10-Apr-2022 03:30:08.663 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
10-Apr-2022 03:30:08.681 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 8522 ms
Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/131434
文章 [ 1 ]  |  最新文章 4 年前