找不到startNodeManager.sh

时间:2017-12-12 05:23:42

标签: docker weblogic

我一直在尝试在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.

如何通过此错误消息?

1 个答案:

答案 0 :(得分:0)

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

  

~/docker-images/OracleWebLogic/samples/1221-domain/container-scripts 包含有用的Bash和WLST脚本,这些脚本提供了三种可能的模式来在Docker容器上运行WebLogic受管服务器。在启动ManagedServer容器之前,请确保已运行AdminServer容器。

     

默认情况下,示例脚本会尝试查找在t3://wlsadmin:8001运行的AdminServer。你可以改变它。
  但最重要的是,AdminServer容器必须与Docker的--link参数链接。

     

下面是在示例12c-domain中运行ManagedServer Container的三个建议:

     

启动NodeManager(手动):

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

启动NodeManager并自动创建机器:

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

启动NodeManager,创建计算机并自动创建ManagedServer

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

请参阅" Example of Image with WLS Domain"。