Simple Configuration on MacOSX

Hi,

I’m having trouble with a simple configuration on MacOSX 10.9 using the 3.0.0 MacOSX binary.

I am using:

LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH MONO_GC_DEBUG=clear-at-gc ./clusternode --run-projections=all --ext-ip=10.0.10.2 --http-prefixes=“http://*:2113” $@

but I keep getting:

[32642,01,16:29:12.750] Quorum size set to 1
[32642,01,16:29:12.759] Plugins path: plugins
[32642,01,16:29:12.816]
INSTANCE ID: e20859a6-30b9-44e1-9bb2-a2d640f4dbe0
DATABASE: /var/folders/2z/rs0hnwfx35n8s9w3_3z7wh5m0000gn/T/EventStore/2014-10-13_16.29.11.212999-Node2113
WRITER CHECKPOINT: 0 (0x0)
CHASER CHECKPOINT: 0 (0x0)
EPOCH CHECKPOINT: -1 (0xFFFFFFFFFFFFFFFF)
TRUNCATE CHECKPOINT: -1 (0xFFFFFFFFFFFFFFFF)
[32642,01,16:29:13.149] MessageHierarchy initialization took 00:00:00.2674426.
[32642,01,16:29:16.913] CACHED TFChunk #0-0 (chunk-000000.000000) in 00:00:00.0743733.
System.ArgumentException: No path specified.
at System.Net.ListenerPrefix.CheckUri (System.String uri) [0x00000] in :0
at System.Net.HttpListenerPrefixCollection.Add (System.String uriPrefix) [0x00000] in :0
at EventStore.Transport.Http.Server.HttpAsyncServer.CreateListener (IEnumerable1 prefixes) [0x00000] in <filename unknown>:0 at EventStore.Transport.Http.Server.HttpAsyncServer..ctor (System.String[] prefixes) [0x00000] in <filename unknown>:0 at EventStore.Core.Services.Transport.Http.HttpService..ctor (ServiceAccessibility accessibility, IPublisher inputBus, IUriRouter uriRouter, EventStore.Core.Bus.MultiQueuedHandler multiQueuedHandler, System.String[] prefixes) [0x00000] in <filename unknown>:0 at EventStore.Core.ClusterVNode..ctor (EventStore.Core.TransactionLog.Chunks.TFChunkDb db, EventStore.Core.Cluster.Settings.ClusterVNodeSettings vNodeSettings, IGossipSeedSource gossipSeedSource, EventStore.Core.ISubsystem[] subsystems) [0x00000] in <filename unknown>:0 at EventStore.ClusterNode.Program.Create (EventStore.ClusterNode.ClusterNodeOptions opts) [0x00000] in <filename unknown>:0 at EventStore.Core.ProgramBase1[EventStore.ClusterNode.ClusterNodeOptions].Run (System.String[] args) [0x00000] in :0
Exiting with exit code: 1.
Exit reason: No path specified.
[32642,01,16:29:17.042] Unhandled exception while starting application:
No path specified.
No path specified.
[32642,01,16:29:17.100] Exiting with exit code: 1.
Exit reason: No path specified.

What path does it want specified?

I can access Web admin fine from 10.0.10.2 when I don’t have the --http-prefixes="http://:2113" or --http-prefixes=http://:2113

Thanks,

Ashley.

You don’t need the prefix unless you are doing some kind of mapping will take a look at error

Thank you - it does work without the --http-prefixes on the local network.

However, I want to access the ES from another network using port forwarding through a firewall.

When I try to access from that network I get “Bad Request (Invalid host)”

I believe all ports are open appropriately.

Thanks,

Ashley.

I will have to look at the error on osx this should be ok

Do you get the same from config file or env var ?

Yes, same from config file (AFAIK).

Not sure of the correct YAML for the HttpPrefixes though, seems to have problems with things like:

HttpPrefixes:

  • “http://*:1113”
  • "http://*:2113”

and tried other (not YAML) like:

HttpPrefixes: [ "http://:1113", "http://:2113” ]

All with no luck.

Thanks,

Ashley.

Why are you setting up 1113 which is tcp by default not http?

Just for an extra entry in the “array” because I couldn’t get the syntax right for one entry, I thought it would just be irrelevant anyway.

Tried with just:

HttpPrefixes:

  • "http://*:2113”

and get same error:

./run-node.sh

[33900,01,17:02:23.928]

ES VERSION: 3.0.0.0 (master/51cef1881b1c5ab5e3962fb61bffac1dc99ec506, Wed, 17 Sep 2014 16:42:34 +0100)

OS: Unknown (Unix 13.4.0.0)

RUNTIME: 3.8.0 ((detached/45d0ba1) (64-bit)

GC: 2 GENERATIONS

LOGS: /var/folders/2z/rs0hnwfx35n8s9w3_3z7wh5m0000gn/T/EventStore/2014-10-13_17.02.22.039913-Node2113-logs

HELP: False ()

VERSION: False ()

LOG: ()

CONFIG: testing.config (Command Line)

DEFINES: ()

WHAT IF: False ()

INT IP: 10.0.10.2 (Config File)

EXT IP: 10.0.10.2 (Config File)

INT HTTP PORT: 2112 ()

EXT HTTP PORT: 2113 ()

INT TCP PORT: 1112 ()

INT SECURE TCP PORT: 0 ()

EXT TCP PORT: 1113 ()

EXT SECURE TCP PORT: 0 ()

INT TCP HEARTBEAT TIMEOUT: 700 ()

EXT TCP HEARTBEAT TIMEOUT: 1000 ()

INT TCP HEARTBEAT INTERVAL: 700 ()

EXT TCP HEARTBEAT INTERVAL: 2000 ()

FORCE: False ()

CLUSTER SIZE: 1 ()

NODE PRIORITY: 0 ()

MIN FLUSH DELAY MS: 2 ()

COMMIT COUNT: -1 ()

PREPARE COUNT: -1 ()

ADMIN ON EXT: True ()

STATS ON EXT: True ()

GOSSIP ON EXT: True ()

DISABLE SCAVENGE MERGING: False ()

DISCOVER VIA DNS: True ()

CLUSTER DNS: fake.dns ()

CLUSTER GOSSIP PORT: 30777 ()

GOSSIP SEED: ()

STATS PERIOD SEC: 30 ()

CACHED CHUNKS: -1 ()

CHUNKS CACHE SIZE: 536871424 ()

MAX MEM TABLE SIZE: 1000000 ()

DB: ()

MEM DB: False ()

SKIP DB VERIFY: False ()

RUN PROJECTIONS: All (Command Line)

PROJECTION THREADS: 3 ()

WORKER THREADS: 5 ()

HTTP PREFIXES: [ http://*:2113 ] (Config File)

ENABLE TRUSTED AUTH: False ()

CERTIFICATE STORE LOCATION: ()

CERTIFICATE STORE NAME: ()

CERTIFICATE SUBJECT NAME: ()

CERTIFICATE THUMBPRINT: ()

CERTIFICATE FILE: ()

CERTIFICATE PASSWORD: ()

USE INTERNAL SSL: False ()

SSL TARGET HOST: n/a ()

SSL VALIDATE SERVER: True ()

AUTHENTICATION TYPE: internal ()

PREPARE TIMEOUT MS: 2000 ()

COMMIT TIMEOUT MS: 2000 ()

UNSAFE DISABLE FLUSH TO DISK: False ()

GOSSIP INTERVAL MS: 1000 ()

GOSSIP ALLOWED DIFFERENCE MS: 60000 ()

GOSSIP TIMEOUT MS: 500 ()

[33900,01,17:02:24.039] Quorum size set to 1

[33900,01,17:02:24.048] Plugins path: plugins

[33900,01,17:02:24.107]

INSTANCE ID: 432f020d-d6a3-49e0-895c-db09c41c9976

DATABASE: /var/folders/2z/rs0hnwfx35n8s9w3_3z7wh5m0000gn/T/EventStore/2014-10-13_17.02.22.039913-Node2113

WRITER CHECKPOINT: 0 (0x0)

CHASER CHECKPOINT: 0 (0x0)

EPOCH CHECKPOINT: -1 (0xFFFFFFFFFFFFFFFF)

TRUNCATE CHECKPOINT: -1 (0xFFFFFFFFFFFFFFFF)

[33900,01,17:02:24.549] MessageHierarchy initialization took 00:00:00.3489732.

[33900,01,17:02:28.390] CACHED TFChunk #0-0 (chunk-000000.000000) in 00:00:00.0323750.

System.ArgumentException: No path specified.

at System.Net.ListenerPrefix.CheckUri (System.String uri) [0x00000] in :0

at System.Net.HttpListenerPrefixCollection.Add (System.String uriPrefix) [0x00000] in :0

at EventStore.Transport.Http.Server.HttpAsyncServer.CreateListener (IEnumerable`1 prefixes) [0x00000] in :0

at EventStore.Transport.Http.Server.HttpAsyncServer…ctor (System.String[] prefixes) [0x00000] in :0

at EventStore.Core.Services.Transport.Http.HttpService…ctor (ServiceAccessibility accessibility, IPublisher inputBus, IUriRouter uriRouter, EventStore.Core.Bus.MultiQueuedHandler multiQueuedHandler, System.String[] prefixes) [0x00000] in :0

at EventStore.Core.ClusterVNode…ctor (EventStore.Core.TransactionLog.Chunks.TFChunkDb db, EventStore.Core.Cluster.Settings.ClusterVNodeSettings vNodeSettings, IGossipSeedSource gossipSeedSource, EventStore.Core.ISubsystem[] subsystems) [0x00000] in :0

at EventStore.ClusterNode.Program.Create (EventStore.ClusterNode.ClusterNodeOptions opts) [0x00000] in :0

at EventStore.Core.ProgramBase`1[EventStore.ClusterNode.ClusterNodeOptions].Run (System.String[] args) [0x00000] in :0

Exiting with exit code: 1.

Exit reason: No path specified.

[33900,01,17:02:28.528] Unhandled exception while starting application:

No path specified.

No path specified.

[33900,01,17:02:28.566] Exiting with exit code: 1.

Exit reason: No path specified.

Try adding a trailing slash to the http prefixes

THANK YOU! THANK YOU! THANK YOU!

That did the trick, works now with:

HttpPrefixes:

  • "http://*:2113/”

All other examples I had seen didn’t have the trailing slash.

Cheers,

Ashley.