2017-12-25 9 views
0

からWSO2ストリームプロセッサメーカーのサービスにアクセスできませんJDKおよびWSO2 Stream Processorディストリビューション(ドッカー構築文脈でfilesディレクトリには、これらの分布が含まれている必要があります)。は、私は、次のDockerfileを使用してWSO2ストリームプロセッサ<a href="https://docs.wso2.com/display/SP400/Running+the+Product#RunningtheProduct-Startingtheeditor/studio" rel="nofollow noreferrer">editor profile</a>のサンプルドッカーイメージを実装ドッカーコンテナ

、私は

docker run -it -p 9390:9390 wso2sp:4.0.0 

とポートなし

docker run -it wso2sp:4.0.0 

転送して作成したドッカーイメージを実行しているが、私は以下のログに示されているようにポート9390.からエディタのUIにアクセスすることができませんURLを介してサービスにアクセスできるようにする必要があります。

http://localhost:9390/editor (when port forwarding) 

または

http://<private_container_IP>:9390/editor (no port forwarding) 

I次のようにも、サーバーが正常にログを起動したことを見つける:実行中のサービスにアクセスするには、この不能の原因は何

JAVA_HOME environment variable is set to /home/wso2carbon/java 
CARBON_HOME environment variable is set to /home/wso2carbon/wso2sp-4.0.0 
RUNTIME_HOME environment variable is set to /home/wso2carbon/wso2sp-4.0.0/wso2/editor 
[2017-12-25 22:47:44,035] INFO {org.wso2.carbon.launcher.extensions.OSGiLibBundleDeployerUtils updateOSGiLib} - Successfully updated the OSGi bundle information of Carbon Runtime: editor 
osgi> [2017-12-25 22:47:46,187] INFO {org.wso2.msf4j.internal.websocket.WebSocketServerSC} - All required capabilities are available of WebSocket service component is available. 
[2017-12-25 22:47:46,190] INFO {org.wso2.carbon.metrics.core.config.model.JmxReporterConfig} - Creating JMX reporter for Metrics with domain 'org.wso2.carbon.metrics' 
[2017-12-25 22:47:46,211] INFO {org.wso2.carbon.metrics.core.reporter.impl.AbstractReporter} - Started JMX reporter for Metrics 
[2017-12-25 22:47:46,269] INFO {org.wso2.msf4j.analytics.metrics.MetricsComponent} - Metrics Component is activated 
[2017-12-25 22:47:46,274] INFO {org.wso2.carbon.databridge.agent.internal.DataAgentDS} - Successfully deployed Agent Server 
[2017-12-25 22:47:46,307] INFO {org.wso2.msf4j.internal.websocket.EndpointsRegistryImpl} - Endpoint Registered : /console 
[2017-12-25 22:47:46,457] INFO {org.wso2.carbon.event.simulator.core.service.CSVFileDeployer} - CSV file deployer initiated. 
[2017-12-25 22:47:46,460] INFO {org.wso2.carbon.event.simulator.core.service.SimulationConfigDeployer} - Simulation config deployer initiated. 
[2017-12-25 22:47:46,463] INFO {org.wso2.carbon.siddhi.editor.core.internal.WorkspaceDeployer} - Workspace artifact deployer initiated. 
[2017-12-25 22:47:46,518] INFO {org.wso2.carbon.cluster.coordinator.rdbms.internal.RDBMSCoordinationServiceComponent} - Cluster coordination has been disabled. Enable it in deployment.yaml to use the clustering service 
[2017-12-25 22:47:46,645] INFO {org.wso2.carbon.stream.processor.statistics.api.StatisticsApi} - org.wso2.carbon.stream.processor.statistics.api.StatisticsApi service component has started. 
[2017-12-25 22:47:46,759] INFO {org.wso2.carbon.siddhi.editor.core.internal.StartupComponent} - Editor Started on : http://localhost:9390/editor 
[2017-12-25 22:47:46,762] INFO {org.wso2.msf4j.internal.MicroservicesServerSC} - All microservices are available 
[2017-12-25 22:47:46,825] INFO {org.wso2.transport.http.netty.listener.ServerConnectorBootstrap$HTTPServerConnector} - HTTP(S) Interface starting on host 127.0.0.1 and port 9390 
[2017-12-25 22:47:46,828] INFO {org.wso2.transport.http.netty.listener.ServerConnectorBootstrap$HTTPServerConnector} - HTTP(S) Interface starting on host 0.0.0.0 and port 9743 
[2017-12-25 22:47:46,888] INFO {org.wso2.carbon.databridge.receiver.binary.internal.BinaryDataReceiver} - Started Binary SSL Transport on port : 9715 
[2017-12-25 22:47:46,889] INFO {org.wso2.carbon.databridge.receiver.binary.internal.BinaryDataReceiver} - Started Binary TCP Transport on port : 9615 
[2017-12-25 22:47:46,897] INFO {org.wso2.carbon.databridge.receiver.thrift.ThriftDataReceiver} - Thrift Server started at 0.0.0.0 
[2017-12-25 22:47:46,911] INFO {org.wso2.carbon.databridge.receiver.thrift.ThriftDataReceiver} - Thrift SSL port : 7714 
[2017-12-25 22:47:46,913] INFO {org.wso2.carbon.databridge.receiver.thrift.ThriftDataReceiver} - Thrift port : 7614 
[2017-12-25 22:47:46,917] INFO {org.wso2.carbon.databridge.core.internal.DataBridgeDS} - Successfully deployed Agent Server 
[2017-12-25 22:47:46,930] INFO {org.wso2.carbon.kernel.internal.CarbonStartupHandler} - WSO2 Stream Processor started in 3.181 sec 

?どんな提案やアイデアも高く評価されます。

答えて

0

何私は推測していること(起動時出力に基づいて)何が起こっているだけで、そのポートでlocalhostをリッスンしているコンテナです。リスンアドレスはlocalhostの代わりに0.0.0.0に設定する必要があります(ポート9390のインターフェイスは127.0.0.1ですが、は0.0.0.0になります)。ドッカーコンテナへの接続がNATを行うホスト上のドッキングウィンドウブリッジを介してあるので

です。コンテナのlocahostは実際のホストのlocalhostと同じではありません。

ポートに関するhttps://docs.wso2.com/display/APPM120/Changing+the+Default+Ports+with+Offsetでいくつかの情報があります。 0.0.0.0でリッスンするために、エディターサーバー構成を含むXMLファイルを変更することができます。 HTTPSポート9743ため0.0.0.0でリッスンしているよう

また、それが見えます。あなたは(おそらく自己署名SSL証明書を使用して)https://localhost:9743でそれを使用することができます。)

関連する問題

 関連する問題