gpt4 book ai didi

docker - 找不到startNodeManager.sh

转载 作者:行者123 更新时间:2023-12-02 20:09:09 26 4
gpt4 key购买 nike

我一直试图在Docker容器中运行Oracle weblogic,但是在启动NodeManager时遇到了麻烦。我运行了以下命令。

docker run -d --name MS1 --link wlsadmin:wlsadmin -p 8001:8001 -e ADMIN_PASSWORD=#123 \
-e MS_NAME=MS1 --volumes-from wlsadmin a5e55 createServer.sh

在正常情况下,预计将启动Nodemanager。

我可以访问weblogic控制台并启动受管服务器,然后返回错误-

-警告对于服务器MS1,与计算机Machine_MS1关联的节点管理器不可访问

这是执行上述“ docker run”命令时返回的日志文件的一部分:
Domain Home:  /u01/oracle/user_projects/domains/base_domain
Managed Server Name: MS1
NodeManager Name:
----> 'weblogic' admin password: ctebs#123
Waiting for WebLogic Admin Server on wlsadmin:7001 to become available...
WebLogic Admin Server is now available. Proceeding...
Setting NodeManager
----> No NodeManager Name set
Node Manager Name: Machine_MS1
Node Manager Home for Container: /u01/oracle/user_projects/domains/base_domain/Machine_MS1
cp: cannot stat '/u01/oracle/user_projects/domains/base_domain /bin/startNodeManager.sh': No such file or directory
cp: cannot stat '/u01/oracle/user_projects/domains/base_domain/nodemanager/*': No such file or directory
NODEMGR_HOME_STR: NODEMGR_HOME="/u01/oracle/user_projects/domains/base_domain/Machine_MS1"
NODEMGRHOME_STR: NodeManagerHome=/u01/oracle/user_projects/domains/base_domain/Machine_MS1
DOMAINSFILE_STR: DomainsFile=/u01/oracle/user_projects/domains/base_domain/Machine_MS1/nodemanager.domains
LOGFILE_STR: LogFile=/u01/oracle/user_projects/domains/base_domain/Machine_MS1/nodemanager.log
sed: can't read /u01/oracle/user_projects/domains/base_domain/Machine_MS1/startNodeManager.sh: No such file or directory
sed: can't read /u01/oracle/user_projects/domains/base_domain/Machine_MS1/nodemanager.properties: No such file or directory
sed: can't read /u01/oracle/user_projects/domains/base_domain/Machine_MS1/nodemanager.properties: No such file or directory
sed: can't read /u01/oracle/user_projects/domains/base_domain/Machine_MS1/nodemanager.properties: No such file or directory
Starting NodeManager in background...
NodeManager started.
Connection refused (Connection refused). Could not connect to NodeManager. Check that it is running at /172.17.0.3:5556.
Starting server MS1 ...No stack trace available.
This Exception occurred at Tue Dec 12 03:38:06 GMT 2017.
weblogic.management.scripting.ScriptException: Error occurred while performing start : Server with name MS1 failed to be started
No stack trace available.

我如何才能克服此错误消息?

最佳答案

您可以尝试按照此OracleWebLogic workshop intro指出:

The ~/docker-images/OracleWebLogic/samples/1221-domain/container-scripts has useful Bash and WLST scripts that provide three possible modes to run WebLogic Managed Servers on a Docker container. Make sure you have an AdminServer container running before starting a ManagedServer container.

The sample scripts will by default, attempt to find the AdminServer running at t3://wlsadmin:8001. You can change this.
But most importantly, the AdminServer container has to be linked with Docker's --link parameter.

Below, are the three suggestions for running ManagedServer Container within the sample 12c-domain:

Start NodeManager (Manually):

docker run -d --link wlsadmin:wlsadmin startNodeManager.sh

Start NodeManager and Create a Machine Automatically:

docker run -d --link wlsadmin:wlsadmin createMachine.sh

Start NodeManager, Create a Machine, and Create a ManagedServer Automatically

docker run -d --link wlsadmin:wlsadmin createServer.sh


有关更多信息,请参见`` Example of Image with WLS Domain'',此方法已于2019年4月在 commit e49bb4d中删除,两年之后,因为Oracle不再支持WebLogic版本。

关于docker - 找不到startNodeManager.sh,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47765818/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com