Mule-Openshift部署问题

时间:2018-07-13 21:13:55

标签: mule openshift

我需要将代码部署到Openshift mule运行时3.9.0,在此每次部署发生时,将通过杀死旧Pod来分配新的POD。 我已将API自动发现设置为开启,因此每次部署时,它都应在cloudhub的API管理器中自动发现API,或者如果不可用则生成一个。

在将代码部署到Openshift时,我从不同文件中获取以下日志或部分日志:

mule_ee.log

WARN  2018-07-13 11:48:33,873 [WrapperListener_start_runner] com.mulesoft.agent.AgentPlugin: There was an error reading the Server ID. Reason: FileNotFoundException: /opt/mule-enterprise
-standalone-3.9.0/conf/mule-agent.yml (No such file or directory)                                                                                                                         
INFO  2018-07-13 11:48:34,870 [WrapperListener_start_runner] com.mulesoft.agent.AgentPlugin: Starting Mule Agent Version: 1.9.0-mule-3.x ; build-20171003                                 
INFO  2018-07-13 11:48:34,964 [WrapperListener_start_runner] com.mulesoft.agent.AgentPlugin: The /opt/mule-enterprise-standalone-3.9.0/plugins/mule-agent-plugin/lib/modules folder doesn'
t exists, skipping appending of jars.                                                                                                                                                     
WARN  2018-07-13 11:48:35,864 [WrapperListener_start_runner] com.mulesoft.agent.configuration.descriptor.YamlMuleAgentDescriptor: Descriptor file not found, starting with default configu
ration.                                                                                                                                                                                   
INFO  2018-07-13 11:49:06,670 [WrapperListener_start_runner] com.mulesoft.mule.plugin.manager.MulePluginManager: Registering plugin: mule-agent-plugin                                    
INFO  2018-07-13 11:49:06,677 [WrapperListener_start_runner] com.mulesoft.mule.plugin.manager.MulePluginManager: Registering plugin: mule-plugin-debugger-3.9.0                           
INFO  2018-07-13 11:49:06,767 [WrapperListener_start_runner] com.mulesoft.mule.plugin.manager.MulePluginManager: Registering plugin: mule-plugin-weave-3.9.0-dist                         
INFO  2018-07-13 11:49:07,264 [WrapperListener_start_runner] org.mule.module.launcher.coreextension.DefaultMuleCoreExtensionManager: Starting core extensions                             
INFO  2018-07-13 11:49:08,083 [WrapperListener_start_runner] com.mulesoft.mule.plugin.manager.MulePluginManager: Starting plugin: mule-agent-plugin                                       
INFO  2018-07-13 11:49:08,267 [WrapperListener_start_runner] com.mulesoft.agent.util.DefaultLicenseService: Mule EE version. Enabling Mule Agent usage.                                   
INFO  2018-07-13 11:49:08,269 [WrapperListener_start_runner] com.mulesoft.agent.AgentTransportManager: Initializing transport: WebSocketAgentTransport                                    
ERROR 2018-07-13 11:49:08,269 [WrapperListener_start_runner] com.mulesoft.agent.AgentTransportManager: Could not initialise the transport: WebSocketAgentTransport: Could not initialise W
ebSocket Client: The URL is blank  


    ---------------------
    ---------------------
    ---------------------

WARN  2018-07-13 11:50:41,769 [WrapperListener_start_runner] com.mulesoft.agent.handlers.internal.InternalApplicationDeploymentNotificationHandler: Could not send message to external sys
tem via WebSocketAgentTransport : NullPointerException:                                                                                                                                   
INFO  2018-07-13 11:50:42,169 [WrapperListener_start_runner] org.mule.module.launcher.DeploymentDirectoryWatcher:                                                                         
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++                                                                                                                              
+ Mule is up and kicking (every 5000ms)                    +                                                                                                                              
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++                                                                                                                              
WARN  2018-07-13 11:50:42,170 [WrapperListener_start_runner] org.eclipse.jetty.util.component.AbstractLifeCycle: FAILED ServerConnector@2c2fd653{HTTP/1.1}{0.0.0.0:443}: java.net.SocketEx
ception: Permission denied                                                                                                                                                                
java.net.SocketException: Permission denied                                                                                                                                               
        at sun.nio.ch.Net.bind0(Native Method) ~[?:1.8.0_161]                                                                                                                             
        at sun.nio.ch.Net.bind(Net.java:433) ~[?:1.8.0_161]                                                                                                                               
        at sun.nio.ch.Net.bind(Net.java:425) ~[?:1.8.0_161]                                                                                                                               
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) ~[?:1.8.0_161]                                                                                       
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) ~[?:1.8.0_161]                                                                                                
        at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:264) ~[jetty-server-9.0.7.v20131107.jar:9.0.7.v20131107]                                                    
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) ~[jetty-server-9.0.7.v20131107.jar:9.0.7.v20131107]                                
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69) [jetty-util-9.0.7.v20131107.jar:9.0.7.v20131107]                                           
        at com.mulesoft.agent.rest.AgentRestLayer.enable(AgentRestLayer.java:130) [mule-agent-rest-common-1.9.0-mule-3.x.jar:?]                                                           
        at com.mulesoft.agent.rest.transport.RestAgentTransport.enableIncomingRequests(RestAgentTransport.java:210) [mule-agent-plugin-rest-1.9.0-mule-3.x.jar:?]                         
        at com.mulesoft.agent.AgentTransportManager.enableIncomingRequests(AgentTransportManager.java:119) [mule-agent-plugin-1.9.0-mule-3.x.jar:build-20171003]                          
        at com.mulesoft.agent.AgentPlugin$1.onAfterStartup(AgentPlugin.java:370) [mule-agent-plugin-1.9.0-mule-3.x.jar:build-20171003]                                                    
        at org.mule.module.launcher.MuleDeploymentService.start(MuleDeploymentService.java:145) [mule-module-launcher-3.9.0.jar:3.9.0]                                                    
        at org.mule.module.launcher.MuleContainer.start(MuleContainer.java:172) [mule-module-launcher-3.9.0.jar:3.9.0]                                                                    
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161]                                                                                                     
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_161]                                                                                   
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161]                                                                           
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]                                                                                                                
        at org.mule.module.reboot.MuleContainerWrapper.start(MuleContainerWrapper.java:52) [mule-module-boot-ee-3.9.0.jar:3.9.0]                                                          
        at org.tanukisoftware.wrapper.WrapperManager$11.run(WrapperManager.java:4242) [wrapper-3.5.29.jar:3.5.29]                                                                         
ERROR 2018-07-13 11:50:42,269 [WrapperListener_start_runner] com.mulesoft.agent.AgentTransportManager: Could not enable incoming requests for transport: RestAgentTransport: Unable to sta
rt REST http connector. Configuration (host: 0.0.0.0, port: 443, keyStore (alias / file): not configured)                                                                                 
INFO  2018-07-13 11:50:42,375 [WrapperListener_start_runner] org.mule.module.launcher.StartupSummaryDeploymentListener:                                                                   
**********************************************************************                                                                                                                    
*              - - + DOMAIN + - -               * - - + STATUS + - - *                                                                                                                    
**********************************************************************                                                                                                                    
* default                                       * DEPLOYED           *                                                                                                                    
**********************************************************************                                                                                                                    

*******************************************************************************************************                                                                                   
*            - - + APPLICATION + - -            *       - - + DOMAIN + - -       * - - + STATUS + - - *                                                                                   
*******************************************************************************************************                                                                                   
* xyz-SNAPSHOT         * default                        * DEPLOYED           *                                                                                   
*******************************************************************************************************        

POD日志:

            Started app 'xyz-SNAPSHOT'                *

        **********************************************************************

        WARN  2018-07-11 17:12:46,987 [WrapperListener_start_runner] com.mulesoft.agent.handlers.internal.InternalApplicationDeploymentNotificationHandler: Could not send message to external system via WebSocketAgentTransport : NullPointerException: 

        INFO  2018-07-11 17:12:47,285 [WrapperListener_start_runner] org.mule.module.launcher.DeploymentDirectoryWatcher: 

        ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

        + Mule is up and kicking (every 5000ms)                    +

        ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

        WARN  2018-07-11 17:12:47,286 [WrapperListener_start_runner] org.eclipse.jetty.util.component.AbstractLifeCycle: FAILED ServerConnector@2c2fd653{HTTP/1.1}{0.0.0.0:443}: java.net.SocketException: Permission denied

        java.net.SocketException: Permission denied

            at sun.nio.ch.Net.bind0(Native Method) ~[?:1.8.0_161]

            at sun.nio.ch.Net.bind(Net.java:433) ~[?:1.8.0_161]

            at sun.nio.ch.Net.bind(Net.java:425) ~[?:1.8.0_161]

            at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) ~[?:1.8.0_161]

            at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) ~[?:1.8.0_161]

            at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:264) ~[jetty-server-9.0.7.v20131107.jar:9.0.7.v20131107]

            at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) ~[jetty-server-9.0.7.v20131107.jar:9.0.7.v20131107]

            at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69) [jetty-util-9.0.7.v20131107.jar:9.0.7.v20131107]

            at com.mulesoft.agent.rest.AgentRestLayer.enable(AgentRestLayer.java:130) [mule-agent-rest-common-1.9.0-mule-3.x.jar:?]

            at com.mulesoft.agent.rest.transport.RestAgentTransport.enableIncomingRequests(RestAgentTransport.java:210) [mule-agent-plugin-rest-1.9.0-mule-3.x.jar:?]

            at com.mulesoft.agent.AgentTransportManager.enableIncomingRequests(AgentTransportManager.java:119) [mule-agent-plugin-1.9.0-mule-3.x.jar:build-20171003]

            at com.mulesoft.agent.AgentPlugin$1.onAfterStartup(AgentPlugin.java:370) [mule-agent-plugin-1.9.0-mule-3.x.jar:build-20171003]

            at org.mule.module.launcher.MuleDeploymentService.start(MuleDeploymentService.java:145) [mule-module-launcher-3.9.0.jar:3.9.0]

            at org.mule.module.launcher.MuleContainer.start(MuleContainer.java:172) [mule-module-launcher-3.9.0.jar:3.9.0]

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161]

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_161]

现在,在检查API管理器是否未发现API时,未自动发现该API并通过Service not available for uri : /xyz...响应找到我收到503的请求,这很明显,因为我的代码启用了API自动发现功能,但没有在API管理器中配置。

我尝试了谷歌搜索,并在Mulesoft论坛中找到了以下问题,但看不到任何合适的答案,因此无法理解分辨率:( 。

x86 assembly introduction https://forums.mulesoft.com/questions/1477/new-mule-agent-tracking-error.html 请帮忙。

0 个答案:

没有答案