HTTP Error 503. The service is unavailable.

I started up EventStore with no problem. But when I try to access http://127.0.0.1:2113, it ends up with error of “HTTP Error 503. The service is unavailable.”

I have granted permission and open port for 2113 and I can make my own console project to test httplistener for 2113 successfully. I checked the IIS and the

application pool is running. I tested with IIS8+Windows8. So where’s the problem? Any suggestions?

do you get any errors when starting up in the console/logs?

Hi,

Can you post the first few lines of the logs from when you start Event Store?

What configuration do you have such that IIS is involved?

Thanks,

James

Hi,

I have granted permission

It happens in a case of http.sys mis-configuration. Check if there are no duplicate rules in “netsh http” and whether user accounts are correct. Sometime you can bind a rule to an account without specifying a domain, but it doe snot work later.

-yuriy

Hi, Grey. There seems no error when starting up. Here was the log as below. Thanks.

[PID:15640 2013.07.01 14:39:05.883 Info ProgramBase`1 1]

OS: Windows (Microsoft Windows NT 6.2.9200.0)

RUNTIME: .NET 4.0.30319.18046 (64-bit)

GC: 3 GENERATIONS

LOGS: D:\Example\eventstore\ESData-logs

SHOW HELP: False ()

SHOW VERSION: False ()

LOGS DIR: ()

CONFIGS: ()

DEFINES: ()

IP: 127.0.0.1 ()

TCP PORT: 1113 ()

HTTP PORT: 2113 ()

STATS PERIOD SEC: 30 ()

CACHED CHUNKS: 2 ()

DB PATH: .\ESData (–db from command line)

SKIP DB VERIFY: False ()

RUN PROJECTIONS: True (–run-projections from command line)

PROJECTION THREADS: 3 ()

TCP SEND THREADS: 3 ()

HTTP RECEIVE THREADS: 5 ()

HTTP SEND THREADS: 3 ()

HTTP PREFIXES: ()

[PID:15640 2013.07.01 14:39:05.908 Info ProgramBase`1 1]

DATABASE: D:\Example\eventstore\ESData

[PID:15640 2013.07.01 14:39:06.097 Trace TFChunk 1]

CACHED TFChunk #0 at chunk-000000.000000 in 00:00:00.0265036.

[PID:15640 2013.07.01 14:39:06.626 Info MiniWeb 1]

Starting MiniWeb for /web ==> D:\Example\eventstore\singlenode-web

[PID:15640 2013.07.01 14:39:06.626 Info MiniWeb 1]

Starting MiniWeb for /web/es ==> D:\Example\eventstore\es-common-web

[PID:15640 2013.07.01 14:39:06.626 Info MiniWeb 1]

Starting MiniWeb for /web/es/js/projections ==> D:\Example\eventstore\singlenode-web\js\projections

[PID:15640 2013.07.01 14:39:06.626 Trace MiniWeb 1]

Binding Mini Web to /web/{*remaining_path}

[PID:15640 2013.07.01 14:39:06.626 Trace MiniWeb 1]

Binding Mini Web to /web/es/{*remaining_path}

[PID:15640 2013.07.01 14:39:06.626 Trace MiniWeb 1]

Binding Mini Web to /web/es/js/projections/{*remaining_path}

[PID:15640 2013.07.01 14:39:06.664 Info MiniWeb 1]

Starting MiniWeb for /web/es/js/projections/v8/Prelude ==> D:\Example\eventstore\Prelude

[PID:15640 2013.07.01 14:39:06.668 Trace MiniWeb 1]

Binding Mini Web to /web/es/js/projections/v8/Prelude/{*remaining_path}

[PID:15640 2013.07.01 14:39:06.684 Info SingleVNodeController 18]

========= SystemInit: SingleVNodeController =========

[PID:15640 2013.07.01 14:39:06.707 Info HttpAsyncServer 18]

Starting HTTP server on [http://127.0.0.1:2113/]…

[PID:15640 2013.07.01 14:39:06.707 Info HttpAsyncServer 18]

HTTP server is up and listening on [http://127.0.0.1:2113/]

[PID:15640 2013.07.01 14:39:06.802 Info SingleVNodeController 18]

========= SystemStart: SingleVNodeController =========

[PID:15640 2013.07.01 14:39:06.810 Info TcpServerListener 18]

Starting TCP listening on TCP endpoint: 127.0.0.1:1113.

[PID:15640 2013.07.01 14:39:06.810 Info SingleVNodeController 18]

[127.0.0.1:2113] IS WORKING!!! SPARTA!!!111

[PID:15640 2013.07.01 14:39:06.841 Trace EventReader 20]

Resuming event distribution 1bff37bf-ed6f-4e6a-ba4f-a4e7c7ea2060 at ‘25604059/-1’

[PID:15640 2013.07.01 14:39:06.841 Trace EventReader 22]

Resuming event distribution 61ff4d56-4b87-4e40-8e99-09d39a261b8d at ‘25604059/-1’

[PID:15640 2013.07.01 14:39:06.841 Trace EventReader 21]

Resuming event distribution 0d64a855-d3df-4e04-bec5-8d440a8773b6 at ‘25604059/-1’

[PID:15640 2013.07.01 14:39:06.898 Trace MonitoringService 17]

Created stats stream ‘$stats-127.0.0.1:2113’, code = WrongExpectedVersion

[PID:15640 2013.07.01 14:39:06.930 Trace InMemoryBus 12]

SLOW BUS MSG [StorageReaderBus]: ReadStreamEventsBackward - 82ms. Handler: StorageReaderWorker.

[PID:15640 2013.07.01 14:39:06.935 Trace QueuedHandlerMRES 12]

SLOW QUEUE MSG [StorageReaderQueue #1]: ReadStreamEventsBackward - 98ms. Q: 0/1.

[PID:15640 2013.07.01 14:39:07.146 Trace EventReader 20]

Pausing event distribution 1bff37bf-ed6f-4e6a-ba4f-a4e7c7ea2060 at ‘25604623/25604499’

[PID:15640 2013.07.01 14:39:07.146 Trace EventReader 22]

Pausing event distribution 61ff4d56-4b87-4e40-8e99-09d39a261b8d at ‘25604623/25604499’

[PID:15640 2013.07.01 14:39:07.146 Trace EventReader 21]

Pausing event distribution 0d64a855-d3df-4e04-bec5-8d440a8773b6 at ‘25604623/25604499’

[PID:15640 2013.07.01 14:39:07.178 Trace InMemoryBus 19]

SLOW BUS MSG [manager input bus]: ReadStreamEventsBackwardCompleted - 248ms. Handler: ProjectionManager.

[PID:15640 2013.07.01 14:39:07.178 Trace QueuedHandlerMRES 19]

SLOW QUEUE MSG [ProjectionManager]: ReadStreamEventsBackwardCompleted - 248ms. Q: 2/3.

[PID:15640 2013.07.01 14:39:07.279 Trace EventReorderingProjectionSubscription 21]

Creating an event distribution point at ‘0/-1’

[PID:15640 2013.07.01 14:39:07.279 Trace EventReorderingProjectionSubscription 22]

Creating an event distribution point at ‘0/-1’

[PID:15640 2013.07.01 14:39:07.279 Trace EventReorderingProjectionSubscription 20]

Creating an event distribution point at ‘0/-1’

[PID:15640 2013.07.01 14:39:07.293 Trace ProjectionCoreService 21]

The ‘a91e17bb-b9f8-4148-9b84-c7c60adc4e55’ projection subscribed to the ‘426d6846-9263-4fd5-8740-eae35270cc73’ distribution point

[PID:15640 2013.07.01 14:39:07.293 Trace ProjectionCoreService 22]

The ‘f7005bee-d67a-4867-9716-dae454bc90b2’ projection subscribed to the ‘3a4d6b89-d919-4d46-83f0-947a3634844a’ distribution point

[PID:15640 2013.07.01 14:39:07.293 Trace ProjectionCoreService 20]

The ‘1fb7600c-40aa-4344-a28d-ff07b306fda5’ projection subscribed to the ‘ab7386f2-8c8c-410f-942c-fde9852ff4c4’ distribution point

[PID:15640 2013.07.01 14:39:07.293 Trace EventReader 21]

Resuming event distribution 426d6846-9263-4fd5-8740-eae35270cc73 at ‘0/-1’

[PID:15640 2013.07.01 14:39:07.293 Trace EventReader 22]

Resuming event distribution 3a4d6b89-d919-4d46-83f0-947a3634844a at ‘0/-1’

[PID:15640 2013.07.01 14:39:07.293 Trace EventReader 20]

Resuming event distribution ab7386f2-8c8c-410f-942c-fde9852ff4c4 at ‘0/-1’

[PID:15640 2013.07.01 14:39:07.293 Trace EventReorderingProjectionSubscription 20]

Creating an event distribution point at ‘0/-1’

[PID:15640 2013.07.01 14:39:07.293 Trace ProjectionCoreService 20]

The ‘7be94896-0edd-43e0-ad8f-3802b933ebed’ projection subscribed to the ‘526f02b7-f218-4f96-8107-1569d220769b’ distribution point

[PID:15640 2013.07.01 14:39:07.293 Trace EventReader 20]

Resuming event distribution 526f02b7-f218-4f96-8107-1569d220769b at ‘0/-1’

[PID:15640 2013.07.01 14:39:07.369 Trace InMemoryBus 22]

SLOW BUS MSG [bus]: CommittedEventDistributed - 68ms. Handler: ProjectionCoreService.

[PID:15640 2013.07.01 14:39:07.369 Trace InMemoryBus 20]

SLOW BUS MSG [bus]: CommittedEventDistributed - 68ms. Handler: ProjectionCoreService.

[PID:15640 2013.07.01 14:39:07.369 Trace QueuedHandlerMRES 22]

SLOW QUEUE MSG [Projection Core #2]: CommittedEventDistributed - 68ms. Q: 50/52.

[PID:15640 2013.07.01 14:39:07.369 Trace QueuedHandlerMRES 20]

SLOW QUEUE MSG [Projection Core #0]: CommittedEventDistributed - 68ms. Q: 50/53.

[PID:15640 2013.07.01 14:39:07.369 Trace InMemoryBus 21]

SLOW BUS MSG [bus]: CommittedEventDistributed - 69ms. Handler: ProjectionCoreService.

[PID:15640 2013.07.01 14:39:07.369 Trace QueuedHandlerMRES 21]

SLOW QUEUE MSG [Projection Core #1]: CommittedEventDistributed - 69ms. Q: 50/52.

[PID:15640 2013.07.01 14:39:07.387 Trace EventReader 20]

Pausing event distribution ab7386f2-8c8c-410f-942c-fde9852ff4c4 at ‘515743/515582’

[PID:15640 2013.07.01 14:39:07.387 Trace EventReader 21]

Pausing event distribution 426d6846-9263-4fd5-8740-eae35270cc73 at ‘515743/515582’

[PID:15640 2013.07.01 14:39:07.387 Trace ProjectionCoreService 20]

The ‘1fb7600c-40aa-4344-a28d-ff07b306fda5’ projection has unsubscribed from the ‘ab7386f2-8c8c-410f-942c-fde9852ff4c4’ distribution point

[PID:15640 2013.07.01 14:39:07.387 Trace ProjectionCoreService 21]

The ‘a91e17bb-b9f8-4148-9b84-c7c60adc4e55’ projection has unsubscribed from the ‘426d6846-9263-4fd5-8740-eae35270cc73’ distribution point

[PID:15640 2013.07.01 14:39:07.387 Trace EventReader 22]

Pausing event distribution 3a4d6b89-d919-4d46-83f0-947a3634844a at ‘515743/515582’

[PID:15640 2013.07.01 14:39:07.387 Trace ProjectionCoreService 22]

The ‘f7005bee-d67a-4867-9716-dae454bc90b2’ projection has unsubscribed from the ‘3a4d6b89-d919-4d46-83f0-947a3634844a’ distribution point

[PID:15640 2013.07.01 14:39:07.387 Trace EventReader 20]

Pausing event distribution 526f02b7-f218-4f96-8107-1569d220769b at ‘515743/515582’

[PID:15640 2013.07.01 14:39:07.387 Trace ProjectionCoreService 20]

The ‘7be94896-0edd-43e0-ad8f-3802b933ebed’ projection has unsubscribed from the ‘526f02b7-f218-4f96-8107-1569d220769b’ distribution point

2013年7月1日月曜日 23時05分19秒 UTC+9 Greg Young:

lets try something easy. Can you run it in an administrator console
with -h 5432? Then try to access 127.0.0.1:5432

Hi yuriy. You are right. There are duplicate rules in netsh http. After I corrected them, now I can see the exciting EventStore. Thank you so much.

2013年7月1日月曜日 23時08分20秒 UTC+9 Yuriy: