Hi,
I’ve set up a 3-node cluster in AWS running version 4.0.2. Write requests sent to slaves over HTTP are not forwarded to the master node. The client gets HTTP 500, and the slaves log files contain the following exception trace:
System.FormatException: One of the identified items was in an invalid format.
at System.Net.Http.Headers.HttpHeaders.AddInternal (System.String name, System.Collections.Generic.IEnumerable`1[T] values, System.Net.Http.Headers.HeaderInfo headerInfo, System.Boolean ignoreInvalid) [0x0004c] in <41c316444c8a4380b9344ba09eeb18de>:0
at System.Net.Http.Headers.HttpHeaders.Add (System.String name, System.Collections.Generic.IEnumerable`1[T] values) [0x0001b] in <41c316444c8a4380b9344ba09eeb18de>:0
at System.Net.Http.Headers.HttpHeaders.Add (System.String name, System.String value) [0x00000] in <41c316444c8a4380b9344ba09eeb18de>:0
at EventStore.Core.Services.HttpSendService.ForwardRequest (EventStore.Transport.Http.EntityManagement.HttpEntityManager manager, System.Uri forwardUri) [0x00291] in <9e5f3ee780fe4efca17196a08aa2afeb>:0
at EventStore.Core.Services.HttpSendService.EventStore.Core.Services.Transport.Http.IHttpForwarder.ForwardRequest (EventStore.Transport.Http.EntityManagement.HttpEntityManager manager) [0x0006c] in <9e5f3ee780fe4efca17196a08aa2afeb>:0
at EventStore.Core.Services.Transport.Http.Controllers.UsersController.GetUser (EventStore.Transport.Http.EntityManagement.HttpEntityManager http, System.UriTemplateMatch match) [0x0000d] in <9e5f3ee780fe4efca17196a08aa2afeb>:0
at EventStore.Core.Services.Transport.Http.HttpService+c__AnonStorey0.<>m__0 (EventStore.Transport.Http.EntityManagement.HttpEntityManager man, System.UriTemplateMatch match) [0x00000] in <9e5f3ee780fe4efca17196a08aa2afeb>:0
at (wrapper delegate-invoke) System.Func`3[EventStore.Transport.Http.EntityManagement.HttpEntityManager,System.UriTemplateMatch,EventStore.Core.Services.Transport.Http.RequestParams]:invoke_TResult_T1_T2 (EventStore.Transport.Http.EntityManagement.HttpEntityManager,System.UriTemplateMatch)
at EventStore.Core.Services.Transport.Http.AuthenticatedHttpRequestProcessor.ProcessRequest (EventStore.Core.Services.Transport.Http.HttpService httpService, EventStore.Transport.Http.EntityManagement.HttpEntity httpEntity) [0x0015f] in <9e5f3ee780fe4efca17196a08aa2afeb>:0
Here is the “modified options” section of the log:
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: [18218,01,03:56:56.358] MODIFIED OPTIONS:
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: RUN PROJECTIONS: All (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: EXT IP: 172.31.16.169 (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: INT IP: 172.31.16.169 (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: EXT IP ADVERTISE AS: 13.210.86.10 (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: INT IP ADVERTISE AS: 13.210.86.10 (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: EXT HTTP PORT: 80 (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: INT HTTP PORT: 2112 (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: EXT TCP PORT: 1113 (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: INT TCP PORT: 1112 (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: EXT HTTP PREFIXES: http://*:80/ (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: INT HTTP PREFIXES: http://*:2112/ (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: ADD INTERFACE PREFIXES: false (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: DISCOVER VIA DNS: false (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: CLUSTER GOSSIP PORT: 2112 (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: GOSSIP SEED: [ 13.210.56.177:2112, 52.65.228.195:2112 ] (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: GOSSIP TIMEOUT MS: 10000 (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: GOSSIP INTERVAL MS: 20000 (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: INT TCP HEARTBEAT TIMEOUT: 10000 (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: INT TCP HEARTBEAT INTERVAL: 10000 (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: EXT TCP HEARTBEAT TIMEOUT: 10000 (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: EXT TCP HEARTBEAT INTERVAL: 20000 (Config File)
Sep 20 03:56:56 ip-172-31-16-169 eventstored[18218]: CLUSTER SIZE: 3 (Config File)
Write requests sent to master are successful. I would appreciate any help in diagnosing and resolving this problem.
Kind Regards,
Lazar