我已经在ubuntu的azure虚拟服务器上安装了Greg Youngs EventStore,如下所述:Setup EventStore on Windows Azure
EventStore正在运行,我可以使用.Net Api连接到它,但http服务器根本不工作。 Web界面不能像atom api那样工作。我没有得到服务器的答复。日志中没有任何内容。端口转发似乎在tcp端点正常工作时起作用。
这是日志:
[53170,01,18:13:00.010] MessageHierarchy initialization took 00:00:00.1765448.
[53170,01,18:13:03.093] CACHED TFChunk #0-0 (chunk-000000.000000) in 00:00:00.3169408.
[53170,01,18:13:03.341] Starting MiniWeb for /web/es/js/projections ==> /home/azureuser/EventStore/bin/eventstore/release/anycpu/singlenode-web/js/projections
[53170,01,18:13:03.341] Starting MiniWeb for /web/es/js/projections/v8/Prelude ==> /home/azureuser/EventStore/bin/eventstore/release/anycpu/Prelude
[53170,01,18:13:03.342] Starting MiniWeb for /web/es/js/projections/resources ==> /home/azureuser/EventStore/bin/eventstore/release/anycpu/web-resources/js
[53170,01,18:13:03.343] Binding MiniWeb to /web/es/js/projections/{*remaining_path}
[53170,01,18:13:03.343] Binding MiniWeb to /web/es/js/projections/v8/Prelude/{*remaining_path}
[53170,01,18:13:03.343] Binding MiniWeb to /web/es/js/projections/resources/{*remaining_path}
[53170,01,18:13:03.348] Starting MiniWeb for /web ==> /home/azureuser/EventStore/bin/eventstore/release/anycpu/singlenode-web
[53170,01,18:13:03.348] Starting MiniWeb for /web/es ==> /home/azureuser/EventStore/bin/eventstore/release/anycpu/es-common-web
[53170,01,18:13:03.348] Binding MiniWeb to /web/{*remaining_path}
[53170,01,18:13:03.348] Binding MiniWeb to /web/es/{*remaining_path}
[53170,01,18:13:03.348] Starting MiniWeb for /web/users ==> /home/azureuser/EventStore/bin/eventstore/release/anycpu/Users/web
[53170,01,18:13:03.348] Binding MiniWeb to /web/users/{*remaining_path}
[53170,10,18:13:03.384] ========== [#############:2113] SYSTEM INIT...
[53170,08,18:13:03.457] TableIndex initialization...
[53170,08,18:13:03.472] ReadIndex building...
[53170,10,18:13:03.502] Starting Normal TCP listening on TCP endpoint: ###############:1113.
[53170,10,18:13:03.568] SLOW BUS MSG [MainBus]: SystemInit - 115ms. Handler: TcpService.
[53170,10,18:13:03.641] Starting HTTP server on [####################]...
[53170,10,18:13:03.646] HTTP server is up and listening on [#######################]
[53170,10,18:13:03.646] SLOW BUS MSG [MainBus]: SystemInit - 77ms. Handler: HttpService.
[53170,10,18:13:03.713] SLOW QUEUE MSG [MainQueue]: SystemInit - 296ms. Q: 0/1012.
[53170,08,18:13:05.878] ReadIndex Rebuilding Done: total processed 33820 records, time elapsed: 00:00:02.4055370.
[53170,10,18:13:05.882] ========== [##############:2113] SYSTEM START....
[53170,08,18:13:05.882] SLOW QUEUE MSG [StorageWriterQueue]: SystemInit - 2488ms. Q: 0/0.
[53170,10,18:13:05.889] ========== [#############:2113] PRE-MASTER STATE, WAITING FOR CHASER TO CATCH UP...
[53170,10,18:13:05.894] ========== [#############:2113] IS WORKING!!! SPARTA!!!
[53170,08,18:13:06.024] === Writing E3@248463988:{d52679ba-8314-479e-8d9c-9911094d17a8} (previous epoch at 301989).
[53170,12,18:13:06.029] SLOW BUS MSG [manager input bus]: ReadStreamEventsBackwardCompleted - 60ms. Handler: ProjectionManager.
[53170,12,18:13:06.029] SLOW QUEUE MSG [Projections Master]: ReadStreamEventsBackwardCompleted - 64ms. Q: 0/4.
[53170,08,18:13:06.122] === Update Last Epoch E3@248463988:{d52679ba-8314-479e-8d9c-9911094d17a8} (previous epoch at 301989).
[53170,13,18:13:06.157] Creating an event distribution point at 'C:0/P:-1'
有人有类似的问题吗?
我的配置:
{
"db": "/mnt/datadrive/eventStore/db",
"logsDir": "/mnt/datadrive/eventStore/logs",
"ip": "10.26.222.3",
"httpPrefixes": ["http://mymachinename.cloudapp.net/"]
}
答案 0 :(得分:3)
好的,发现了问题。
哟必须在httpPrefix中指定端口:
我的更正配置:
{
"db": "/mnt/datadrive/eventStore/db",
"logsDir": "/mnt/datadrive/eventStore/logs",
"ip": "10.26.222.3",
"httpPrefixes": ["http://mymachinename.cloudapp.net:2113/"]
}