Eventstore: Not able to start 20.6 on Windows 10

Created on 11 Jun 2020  路  44Comments  路  Source: EventStore/EventStore

When trying to start:

`docker run --name eventstore2 -it -p 2113:2113 -p 1113:1113 eventstore/eventstore
[ 1, 1,07:45:29.764,INF]
"ES VERSION:" "0.0.0" ("Unknown"/"Unknown", "Unknown")
[ 1, 1,07:45:29.779,INF] "OS:" Linux ("Unix 4.19.76.0")
[ 1, 1,07:45:29.781,INF] "RUNTIME:" ".NET 3.1.4" (64-bit)
[ 1, 1,07:45:29.781,INF] "GC:" "3 GENERATIONS"
[ 1, 1,07:45:29.782,INF] "LOGS:" "/var/log/eventstore"
[ 1, 1,07:45:29.790,INF] MODIFIED OPTIONS:

    EXT IP:                   0.0.0.0 (Command Line)
    INT IP:                   0.0.0.0 (Command Line)

DEFAULT OPTIONS:

    HELP:                     False (<DEFAULT>)
    VERSION:                  False (<DEFAULT>)
    LOG:                      /var/log/eventstore (<DEFAULT>)
    CONFIG:                   <empty> (<DEFAULT>)
    WHAT IF:                  False (<DEFAULT>)
    START STANDARD PROJECTIONS: False (<DEFAULT>)
    DISABLE HTTP CACHING:     False (<DEFAULT>)
    HTTP PORT:                2113 (<DEFAULT>)
    ENABLE EXTERNAL TCP:      False (<DEFAULT>)
    INT TCP PORT:             1112 (<DEFAULT>)
    EXT TCP PORT:             1113 (<DEFAULT>)
    EXT HOST ADVERTISE AS:    <empty> (<DEFAULT>)
    EXT TCP PORT ADVERTISE AS: 0 (<DEFAULT>)
    HTTP PORT ADVERTISE AS:   0 (<DEFAULT>)
    INT HOST ADVERTISE AS:    <empty> (<DEFAULT>)
    INT TCP PORT ADVERTISE AS: 0 (<DEFAULT>)
    INT TCP HEARTBEAT TIMEOUT: 700 (<DEFAULT>)
    EXT TCP HEARTBEAT TIMEOUT: 1000 (<DEFAULT>)
    INT TCP HEARTBEAT INTERVAL: 700 (<DEFAULT>)
    EXT TCP HEARTBEAT INTERVAL: 2000 (<DEFAULT>)
    GOSSIP ON SINGLE NODE:    False (<DEFAULT>)
    CONNECTION PENDING SEND BYTES THRESHOLD: 10485760 (<DEFAULT>)
    CONNECTION QUEUE SIZE THRESHOLD: 50000 (<DEFAULT>)
    CLUSTER SIZE:             1 (<DEFAULT>)
    NODE PRIORITY:            0 (<DEFAULT>)
    MIN FLUSH DELAY MS:       2 (<DEFAULT>)
    COMMIT COUNT:             -1 (<DEFAULT>)
    PREPARE COUNT:            -1 (<DEFAULT>)
    DISABLE ADMIN UI:         False (<DEFAULT>)
    DISABLE STATS ON HTTP:    False (<DEFAULT>)
    DISABLE GOSSIP ON HTTP:   False (<DEFAULT>)
    DISABLE SCAVENGE MERGING: False (<DEFAULT>)
    SCAVENGE HISTORY MAX AGE: 30 (<DEFAULT>)
    DISCOVER VIA DNS:         True (<DEFAULT>)
    CLUSTER DNS:              fake.dns (<DEFAULT>)
    CLUSTER GOSSIP PORT:      30777 (<DEFAULT>)
    GOSSIP SEED:              <empty> (<DEFAULT>)
    STATS PERIOD SEC:         30 (<DEFAULT>)
    CACHED CHUNKS:            -1 (<DEFAULT>)
    READER THREADS COUNT:     4 (<DEFAULT>)
    CHUNKS CACHE SIZE:        536871424 (<DEFAULT>)
    MAX MEM TABLE SIZE:       1000000 (<DEFAULT>)
    HASH COLLISION READ LIMIT: 100 (<DEFAULT>)
    DB:                       /var/lib/eventstore (<DEFAULT>)
    INDEX:                    <empty> (<DEFAULT>)
    MEM DB:                   False (<DEFAULT>)
    SKIP DB VERIFY:           False (<DEFAULT>)
    WRITE THROUGH:            False (<DEFAULT>)
    UNBUFFERED:               False (<DEFAULT>)
    CHUNK INITIAL READER COUNT: 5 (<DEFAULT>)
    RUN PROJECTIONS:          None (<DEFAULT>)
    PROJECTION THREADS:       3 (<DEFAULT>)
    WORKER THREADS:           5 (<DEFAULT>)
    PROJECTIONS QUERY EXPIRY: 5 (<DEFAULT>)
    FAULT OUT OF ORDER PROJECTIONS: False (<DEFAULT>)
    ENABLE TRUSTED AUTH:      False (<DEFAULT>)
    TRUSTED ROOT CERTIFICATES PATH: <empty> (<DEFAULT>)
    CERTIFICATE FILE:         <empty> (<DEFAULT>)
    CERTIFICATE PRIVATE KEY FILE: <empty> (<DEFAULT>)
    CERTIFICATE PASSWORD:     <empty> (<DEFAULT>)
    CERTIFICATE STORE LOCATION: <empty> (<DEFAULT>)
    CERTIFICATE STORE NAME:   <empty> (<DEFAULT>)
    CERTIFICATE SUBJECT NAME: <empty> (<DEFAULT>)
    CERTIFICATE THUMBPRINT:   <empty> (<DEFAULT>)
    DISABLE INTERNAL TCP TLS: False (<DEFAULT>)
    DISABLE EXTERNAL TCP TLS: False (<DEFAULT>)
    AUTHORIZATION TYPE:       internal (<DEFAULT>)
    AUTHENTICATION TYPE:      internal (<DEFAULT>)
    AUTHORIZATION CONFIG:     <empty> (<DEFAULT>)
    AUTHENTICATION CONFIG:    <empty> (<DEFAULT>)
    DISABLE FIRST LEVEL HTTP AUTHORIZATION: False (<DEFAULT>)
    PREPARE TIMEOUT MS:       2000 (<DEFAULT>)
    COMMIT TIMEOUT MS:        2000 (<DEFAULT>)
    WRITE TIMEOUT MS:         2000 (<DEFAULT>)
    UNSAFE DISABLE FLUSH TO DISK: False (<DEFAULT>)
    UNSAFE IGNORE HARD DELETE: False (<DEFAULT>)
    SKIP INDEX VERIFY:        False (<DEFAULT>)
    INDEX CACHE DEPTH:        16 (<DEFAULT>)
    OPTIMIZE INDEX MERGE:     False (<DEFAULT>)
    GOSSIP INTERVAL MS:       2000 (<DEFAULT>)
    GOSSIP ALLOWED DIFFERENCE MS: 60000 (<DEFAULT>)
    GOSSIP TIMEOUT MS:        2500 (<DEFAULT>)
    READ ONLY REPLICA:        False (<DEFAULT>)
    UNSAFE ALLOW SURPLUS NODES: False (<DEFAULT>)
    ENABLE HISTOGRAMS:        False (<DEFAULT>)
    LOG HTTP REQUESTS:        False (<DEFAULT>)
    LOG FAILED AUTHENTICATION ATTEMPTS: False (<DEFAULT>)
    ALWAYS KEEP SCAVENGED:    False (<DEFAULT>)
    SKIP INDEX SCAN ON READS: False (<DEFAULT>)
    REDUCE FILE CACHE PRESSURE: False (<DEFAULT>)
    INITIALIZATION THREADS:   1 (<DEFAULT>)
    MAX AUTO MERGE INDEX LEVEL: 2147483647 (<DEFAULT>)
    WRITE STATS TO DB:        False (<DEFAULT>)
    MAX TRUNCATION:           268435456 (<DEFAULT>)
    MAX APPEND SIZE:          1048576 (<DEFAULT>)
    DEV:                      False (<DEFAULT>)
    ENABLE ATOM PUB OVER HTTP: False (<DEFAULT>)
    DEAD MEMBER REMOVAL PERIOD SEC: 1800 (<DEFAULT>)

[ 1, 1,07:45:29.792,INF]
INTERFACES
External TCP (Protobuf)
Enabled : False
Port : 1113
HTTP (AtomPub)
Enabled : False
Port : 2113

[ 1, 1,07:45:29.829,INF] Quorum size set to 1
[ 1, 1,07:45:29.831,FTL] Host terminated unexpectedly.
System.Exception: A TLS Certificate is required unless development mode (--dev) is set.
at EventStore.ClusterNode.ClusterVNodeHostedService.BuildNode(ClusterNodeOptions options) in /build/src/EventStore.ClusterNode/ClusterVNodeHostedService.cs:line 378
at EventStore.ClusterNode.ClusterVNodeHostedService.Create(ClusterNodeOptions opts) in /build/src/EventStore.ClusterNode/ClusterVNodeHostedService.cs:line 174
at EventStore.Core.EventStoreHostedService1..ctor(String[] args) in /build/src/EventStore.Core/EventStoreHostedService.cs:line 43 at EventStore.ClusterNode.ClusterVNodeHostedService..ctor(String[] args) in /build/src/EventStore.ClusterNode/ClusterVNodeHostedService.cs:line 34 at EventStore.ClusterNode.Program.Main(String[] args) in /build/src/EventStore.ClusterNode/Program.cs:line 20

kinbug

Most helpful comment

  • Are you using **https**://localhost:2113 in your browser? (Note that the server uses https by default now.

Please update the documentation, I spent hours on this (first timer on eventstore), and had issues with undocumented changes when following the "getting started" guide.

"ExtSecureTcpPort throws EventStore.Rags.OptionException: The option ExtSecureTcpPort is not a known option" and "System.Exception: TrustedRootCertificatesPath must be specified unless development mode (--dev) is set"

documented here:
https://gist.github.com/JimiSweden/f8916a94bd3dab1ff07c940b9169c946

//Jimi

(reported as "bug" here https://github.com/EventStore/EventStore/issues/2573)

All 44 comments

Hey @jmail, thanks for raising this issue!

For getting up and running in a development environment, you could use the development mode which is activated via the dev flag.
i.e.

docker run --name eventstore2 -it -p 2113:2113 -p 1113:1113 -e EVENTSTORE_DEV=true eventstore/eventstore

Event Store is failing to start up as a Tls Certificate is required as indicated in the log

System.Exception: A TLS Certificate is required unless development mode (--dev) is set.

hi, sorry for jumping in, but I'm having a similar issue: just updated to 20.6 and I cannot connect to the server. Not even the admin UI is loading anymore.

I'm using this command as suggested:
docker run --name eventstore2 -it -p 2113:2113 -p 1113:1113 -e EVENTSTORE_DEV=true eventstore/eventstore
I get a 404 when trying to load localhost:2113 in Chrome

@mizrael would you mind providing us with some more information about your environment and how you are trying to connect?

  • Are you using https://localhost:2113 in your browser? (Note that the server uses https by default now.
  • Which client are you trying to connect with? If it's TCP, you would need to explicitly enable the protocol as it's disabled by default (Enabled with enable-external-tcp option). The gRPC protocol is the new default protocol moving forward from Event Store DB 20.6.

hi @pgermishuys , thanks for your reply. I've updated my docker-compose.yml as follows:

version: '3.4'

services:
  eventstore_db:
    image: eventstore/eventstore
    command: --dev --enable-external-tcp
    environment:
      - EVENTSTORE_CLUSTER_SIZE=1
      - EVENTSTORE_INT_TCP_PORT=1112
      - EVENTSTORE_EXT_TCP_PORT=1113
      - EVENTSTORE_INT_HTTP_PORT=2112
      - EVENTSTORE_EXT_HTTP_PORT=2113
    ports:
      - 1113:1113
      - 2113:2113
    restart: always

and this is what I get when I start the containers (truncated):

eventstore_db_1  | [    1, 1,05:15:16.565,INF]
eventstore_db_1  | "ES VERSION:"             "0.0.0" ("Unknown"/"Unknown", "Unknown")
eventstore_db_1  | [    1, 1,05:15:16.573,INF] "OS:"                     Linux ("Unix 4.19.76.0")
eventstore_db_1  | [    1, 1,05:15:16.575,INF] "RUNTIME:"                ".NET 3.1.4" (64-bit)
eventstore_db_1  | [    1, 1,05:15:16.575,INF] "GC:"                     "3 GENERATIONS"
eventstore_db_1  | [    1, 1,05:15:16.575,INF] "LOGS:"                   "/var/log/eventstore"
eventstore_db_1  | [    1, 1,05:15:16.584,INF] MODIFIED OPTIONS:
eventstore_db_1  |
eventstore_db_1  |      DEV:                      true (Command Line)
eventstore_db_1  |      ENABLE EXTERNAL TCP:      True (Command Line)
eventstore_db_1  |      INT TCP PORT:             1112 (Environment Variable)
eventstore_db_1  |      EXT TCP PORT:             1113 (Environment Variable)
eventstore_db_1  |      CLUSTER SIZE:             1 (Environment Variable)
eventstore_db_1  |      MEM DB:                   True (Set by 'Development Mode' mode)
eventstore_db_1  |      TRUSTED ROOT CERTIFICATES PATH: /opt/eventstore/dev-ca (Set by 'Development Mode' mode)
eventstore_db_1  |      CERTIFICATE FILE:         /opt/eventstore/dev-ca/server1.pem (Set by 'Development Mode' mode)
eventstore_db_1  |      CERTIFICATE PRIVATE KEY FILE: /opt/eventstore/dev-ca/server1.key (Set by 'Development Mode' mode)
eventstore_db_1  |      ENABLE ATOM PUB OVER HTTP: True (Set by 'Development Mode' mode)

I can also see that both TCP and HTTP interfaces are enabled. However, the UI is still not working.

In my code, I'm trying to connect to the server with this code:

var settings = ConnectionSettings.Create()
                 .EnableVerboseLogging()
                 .UseConsoleLogger()
                .Build();
            var connection = EventStoreConnection.Create(settings, new Uri("tcp://admin:[email protected]:1113"));

the call to .Create doesn' fail, but I get no logs whatsoever (quite suspicious...) and then the system crashes later on when I try to open a transaction with await connection.StartTransactionAsync

I'm experiencing this problem as well. I'm using the docker container.

I ended up using the previous version for the time being. eventstore/eventstore:release-5.0.8

@mizrael since you are override the options via your own command line options, you would need to add ext-ip=0.0.0.0 and int-ip=0.0.0.0. Let me know if this works for you.

@pgermishuys that fixed the issue with the UI, thank you :)

I still cannot start transactions and write events. Is there an issue with the connection string maybe?

I just noticed that now I'm getting some logs:

eventstore_db_1  | [    1,20,05:51:38.039,INF] External TCP connection accepted: [Secure, "172.18.0.1:54550", L"172.18.0.2:1113", {ed00f9da-52c0-464e-8363-39dcf83af5e7}].
eventstore_db_1  | [    1,14,05:51:38.044,INF] [S"172.18.0.1:54550", L"172.18.0.2:1113"]
eventstore_db_1  | [    1,14,05:51:38.044,INF] Cipher: Aes256
eventstore_db_1  | [    1,14,05:51:38.044,INF] Cipher strength: 256
eventstore_db_1  | [    1,14,05:51:38.044,INF] Hash: None
eventstore_db_1  | [    1,14,05:51:38.044,INF] Hash strength: 0
eventstore_db_1  | [    1,14,05:51:38.044,INF] Key exchange: DiffieHellman
eventstore_db_1  | [    1,14,05:51:38.044,INF] Key exchange strength: 0
eventstore_db_1  | [    1,14,05:51:38.044,INF] Protocol: Tls12
eventstore_db_1  | [    1,14,05:51:38.044,INF] Is authenticated: True as server? True
eventstore_db_1  | [    1,14,05:51:38.044,INF] IsSigned: True
eventstore_db_1  | [    1,14,05:51:38.044,INF] Is Encrypted: True
eventstore_db_1  | [    1,14,05:51:38.044,INF] Can read: True, write True
eventstore_db_1  | [    1,14,05:51:38.044,INF] Can timeout: True
eventstore_db_1  | [    1,14,05:51:38.044,INF] Certificate revocation list checked: False
eventstore_db_1  | [    1,14,05:51:38.044,INF] Local certificate was issued to "CN=eventstoredb-node" and is valid from "05/29/2020 09:19:25" until "05/28/2025 09:19:25".
eventstore_db_1  | [    1,14,05:51:38.044,INF] Remote certificate is null.
eventstore_db_1  | [    1,14,05:51:38.047,DBG] Exception during EndRead.
eventstore_db_1  | System.IO.IOException: The decryption operation failed, see inner exception.
eventstore_db_1  |  ---> Interop+OpenSsl+SslException: Decrypt failed with OpenSSL error - SSL_ERROR_SSL.
eventstore_db_1  |  ---> Interop+Crypto+OpenSslCryptographicException: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca
eventstore_db_1  |    --- End of inner exception stack trace ---
eventstore_db_1  |    at Interop.OpenSsl.Decrypt(SafeSslHandle context, Byte[] outBuffer, Int32 offset, Int32 count, SslErrorCode& errorCode)
eventstore_db_1  |    at System.Net.Security.SslStreamPal.EncryptDecryptHelper(SafeDeleteContext securityContext, ReadOnlyMemory`1 input, Int32 offset, Int32 size, Boolean encrypt, Byte[]& output, Int32& resultSize)
eventstore_db_1  |    --- End of inner exception stack trace ---
eventstore_db_1  |    at System.Net.Security.SslStream.ReadAsyncInternal[TReadAdapter](TReadAdapter adapter, Memory`1 buffer)
eventstore_db_1  |    at System.Threading.Tasks.TaskToApm.End[TResult](IAsyncResult asyncResult)
eventstore_db_1  |    at System.Net.Security.SslStream.EndRead(IAsyncResult asyncResult)
eventstore_db_1  |    at EventStore.Transport.Tcp.TcpConnectionSsl.OnEndRead(IAsyncResult ar) in /build/src/EventStore.Transport.Tcp/TcpConnectionSsl.cs:line 427
eventstore_db_1  | [    1,14,05:51:38.047,INF] ES "TcpConnectionSsl" closed [05:51:38.047: N"172.18.0.1:54550", L"172.18.0.2:1113", {ed00f9da-52c0-464e-8363-39dcf83af5e7}]:Received bytes: 0, Sent bytes: 0
eventstore_db_1  | [    1,14,05:51:38.047,INF] ES "TcpConnectionSsl" closed [05:51:38.047: N"172.18.0.1:54550", L"172.18.0.2:1113", {ed00f9da-52c0-464e-8363-39dcf83af5e7}]:Send calls: 0, callbacks: 0
eventstore_db_1  | [    1,14,05:51:38.047,INF] ES "TcpConnectionSsl" closed [05:51:38.047: N"172.18.0.1:54550", L"172.18.0.2:1113", {ed00f9da-52c0-464e-8363-39dcf83af5e7}]:Receive calls: 1, callbacks: 1
eventstore_db_1  | [    1,14,05:51:38.047,INF] ES "TcpConnectionSsl" closed [05:51:38.047: N"172.18.0.1:54550", L"172.18.0.2:1113", {ed00f9da-52c0-464e-8363-39dcf83af5e7}]:Close reason: [SocketError] "Exception during EndRead."
eventstore_db_1  | [    1,14,05:51:38.048,INF] Connection '"external-secure"""' ["172.18.0.1:54550", {ed00f9da-52c0-464e-8363-39dcf83af5e7}] closed: SocketError.
eventstore_db_1  | [    1,14,05:51:38.048,DBG] Persistent subscription lost connection from "172.18.0.1:54550"
eventstore_db_1  | TcpConnectionSsl::InitClientSocket(172.18.0.1:54556, L172.18.0.2:1113)
eventstore_db_1  | [    1, 6,05:51:38.247,INF] External TCP connection accepted: [Secure, "172.18.0.1:54556", L"172.18.0.2:1113", {30159eec-7b94-41ff-823b-58a4be13c0c4}].
eventstore_db_1  | [    1, 6,05:51:38.250,INF] [S"172.18.0.1:54556", L"172.18.0.2:1113"]
eventstore_db_1  | [    1, 6,05:51:38.250,INF] Cipher: Aes256
eventstore_db_1  | [    1, 6,05:51:38.250,INF] Cipher strength: 256
eventstore_db_1  | [    1, 6,05:51:38.250,INF] Hash: None
eventstore_db_1  | [    1, 6,05:51:38.250,INF] Hash strength: 0
eventstore_db_1  | [    1, 6,05:51:38.250,INF] Key exchange: DiffieHellman
eventstore_db_1  | [    1, 6,05:51:38.250,INF] Key exchange strength: 0
eventstore_db_1  | [    1, 6,05:51:38.250,INF] Protocol: Tls12
eventstore_db_1  | [    1, 6,05:51:38.250,INF] Is authenticated: True as server? True
eventstore_db_1  | [    1, 6,05:51:38.250,INF] IsSigned: True
eventstore_db_1  | [    1, 6,05:51:38.250,INF] Is Encrypted: True
eventstore_db_1  | [    1, 6,05:51:38.250,INF] Can read: True, write True
eventstore_db_1  | [    1, 6,05:51:38.250,INF] Can timeout: True
eventstore_db_1  | [    1, 6,05:51:38.250,INF] Certificate revocation list checked: False
eventstore_db_1  | [    1, 6,05:51:38.250,INF] Local certificate was issued to "CN=eventstoredb-node" and is valid from "05/29/2020 09:19:25" until "05/28/2025 09:19:25".
eventstore_db_1  | [    1, 6,05:51:38.250,INF] Remote certificate is null.
eventstore_db_1  | [    1, 6,05:51:38.252,DBG] Exception during EndRead.
eventstore_db_1  | System.IO.IOException: The decryption operation failed, see inner exception.
eventstore_db_1  |  ---> Interop+OpenSsl+SslException: Decrypt failed with OpenSSL error - SSL_ERROR_SSL.
eventstore_db_1  |  ---> Interop+Crypto+OpenSslCryptographicException: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca
eventstore_db_1  |    --- End of inner exception stack trace ---
eventstore_db_1  |    at Interop.OpenSsl.Decrypt(SafeSslHandle context, Byte[] outBuffer, Int32 offset, Int32 count, SslErrorCode& errorCode)
eventstore_db_1  |    at System.Net.Security.SslStreamPal.EncryptDecryptHelper(SafeDeleteContext securityContext, ReadOnlyMemory`1 input, Int32 offset, Int32 size, Boolean encrypt, Byte[]& output, Int32& resultSize)
eventstore_db_1  |    --- End of inner exception stack trace ---
eventstore_db_1  |    at System.Net.Security.SslStream.ReadAsyncInternal[TReadAdapter](TReadAdapter adapter, Memory`1 buffer)
eventstore_db_1  |    at System.Threading.Tasks.TaskToApm.End[TResult](IAsyncResult asyncResult)
eventstore_db_1  |    at System.Net.Security.SslStream.EndRead(IAsyncResult asyncResult)
eventstore_db_1  |    at EventStore.Transport.Tcp.TcpConnectionSsl.OnEndRead(IAsyncResult ar) in /build/src/EventStore.Transport.Tcp/TcpConnectionSsl.cs:line 427
eventstore_db_1  | [    1, 6,05:51:38.252,INF] ES "TcpConnectionSsl" closed [05:51:38.252: N"172.18.0.1:54556", L"172.18.0.2:1113", {30159eec-7b94-41ff-823b-58a4be13c0c4}]:Received bytes: 0, Sent bytes: 0
eventstore_db_1  | [    1, 6,05:51:38.252,INF] ES "TcpConnectionSsl" closed [05:51:38.252: N"172.18.0.1:54556", L"172.18.0.2:1113", {30159eec-7b94-41ff-823b-58a4be13c0c4}]:Send calls: 0, callbacks: 0
eventstore_db_1  | [    1, 6,05:51:38.252,INF] ES "TcpConnectionSsl" closed [05:51:38.252: N"172.18.0.1:54556", L"172.18.0.2:1113", {30159eec-7b94-41ff-823b-58a4be13c0c4}]:Receive calls: 1, callbacks: 1
eventstore_db_1  | [    1, 6,05:51:38.252,INF] ES "TcpConnectionSsl" closed [05:51:38.252: N"172.18.0.1:54556", L"172.18.0.2:1113", {30159eec-7b94-41ff-823b-58a4be13c0c4}]:Close reason: [SocketError] "Exception during EndRead."
eventstore_db_1  | [    1, 6,05:51:38.252,INF] Connection '"external-secure"""' ["172.18.0.1:54556", {30159eec-7b94-41ff-823b-58a4be13c0c4}] closed: SocketError.
eventstore_db_1  | [    1, 6,05:51:38.252,DBG] Persistent subscription lost connection from "172.18.0.1:54556"

so I guess it's not an issue with the connection string. Probably it's something with the command line options I'm (not) passing instead...

@mizrael great!
Which version of the client are you using?
Tls is enabled over TCP by default on the server which the v5 client does not have enabled and the v20.6 client does.

<ItemGroup>
    <PackageReference Include="EventStore.Client" Version="20.6.0" />
</ItemGroup>

For development and testing purposes you can disable tls on the tcp connection by setting the disable-external-tcp-tls option to true.

now I'm getting this:

eventstore_db_1  | [    1,16,06:12:52.053,DBG] Persistent subscription lost connection from "172.18.0.1:60612"
eventstore_db_1  | [    1,21,06:12:52.405,INF] External TCP connection accepted: [Normal, "172.18.0.1:60618", L"172.18.0.4:1113", {b9fd72f1-2638-4f69-82ed-d2885b8e97fc}].
eventstore_db_1  | [    1,10,06:12:57.423,DBG] Closing connection '"external-normal"""' ["172.18.0.1:60618", L"172.18.0.4:1113", {b9fd72f1-2638-4f69-82ed-d2885b8e97fc}] cleanly." Reason: HEARTBEAT TIMEOUT at msgNum 1"
eventstore_db_1  | [    1,10,06:12:57.423,INF] ES "TcpConnection" closed [06:12:57.423: N"172.18.0.1:60618", L"172.18.0.4:1113", {b9fd72f1-2638-4f69-82ed-d2885b8e97fc}]:Received bytes: 147, Sent bytes: 22
eventstore_db_1  | [    1,10,06:12:57.423,INF] ES "TcpConnection" closed [06:12:57.423: N"172.18.0.1:60618", L"172.18.0.4:1113", {b9fd72f1-2638-4f69-82ed-d2885b8e97fc}]:Send calls: 1, callbacks: 1
eventstore_db_1  | [    1,10,06:12:57.423,INF] ES "TcpConnection" closed [06:12:57.423: N"172.18.0.1:60618", L"172.18.0.4:1113", {b9fd72f1-2638-4f69-82ed-d2885b8e97fc}]:Receive calls: 2, callbacks: 1
eventstore_db_1  | [    1,10,06:12:57.423,INF] ES "TcpConnection" closed [06:12:57.423: N"172.18.0.1:60618", L"172.18.0.4:1113", {b9fd72f1-2638-4f69-82ed-d2885b8e97fc}]:Close reason: [Success] "HEARTBEAT TIMEOUT at msgNum 1"
eventstore_db_1  | [    1,10,06:12:57.424,INF] Connection '"external-normal"""' ["172.18.0.1:60618", {b9fd72f1-2638-4f69-82ed-d2885b8e97fc}] closed: Success.
eventstore_db_1  | [    1,21,06:12:57.424,DBG] Persistent subscription lost connection from "172.18.0.1:60618"
eventstore_db_1  | [    1,16,06:12:57.603,INF] External TCP connection accepted: [Normal, "172.18.0.1:60624", L"172.18.0.4:1113", {389c18bd-cc4d-48cb-a7cd-6489c3df3eb0}].

but still no success

@mizrael Would you mind disabling TLS on the client side as well? This can be done via the connection settings builder.
i.e.

var settings = ConnectionSettings.Create()
    .DisableTls()
    .Build();
var connection =
    EventStoreConnection.Create(settings, new IPEndPoint(IPAddress.Loopback, 1113));

@pgermishuys that worked perfectly, thank you!

this is my working configuration:

var settings = ConnectionSettings.Create()
                 .EnableVerboseLogging()
                 .UseConsoleLogger()
                 .DisableTls()
                .Build();
            var connection = EventStoreConnection.Create(settings, new Uri("tcp://admin:[email protected]:1113"));

docker-compose.yml:

eventstore_db:
    image: eventstore/eventstore
    command: --dev --enable-external-tcp --ext-ip=0.0.0.0 --int-ip=0.0.0.0 --disable-external-tcp-tls
    environment:
      - EVENTSTORE_CLUSTER_SIZE=1
      - EVENTSTORE_INT_TCP_PORT=1112
      - EVENTSTORE_EXT_TCP_PORT=1113
      - EVENTSTORE_INT_HTTP_PORT=2112
      - EVENTSTORE_EXT_HTTP_PORT=2113
    ports:
      - 1113:1113
      - 2113:2113
    restart: always

Of course this would be valid only on a DEV environment.
Do you think it would be worth adding something like it to the official docs ?

I also have issues with the new version, i cannot access the eventstore db from my application inside the container nor the management interface from the outside world. I have updated the nuget packages and the docker image. It worked before the update without any problems.

Docker Compose File

version: '3.7'

volumes:
  app.eventstore-data:
    name: app.eventstore-data

networks:
  application-public-net:
    name: application-public-net
    driver: bridge
  app.isolated-net:
    name: app.isolated-net
    driver: bridge
    internal: true

services:
  app.eventstore:
    image: eventstore/eventstore:latest
    container_name: app.eventstore
    restart: always
    environment:
      - EVENTSTORE_CLUSTER_SIZE=1
      - EVENTSTORE_EXT_TCP_PORT=53001
      - EVENTSTORE_EXT_HTTP_PORT=54001
      - EVENTSTORE_DEV=true
    volumes:
      - app.eventstore-data:/var/lib/eventstore
    networks:
      - application-public-net
      - app.isolated-net
    ports:
      - "53001:53001"
      - "54001:54001"

Log

[    1, 1,11:58:08.131,INF] 
"ES VERSION:"             "0.0.0" ("Unknown"/"Unknown", "Unknown")
[    1, 1,11:58:08.142,INF] "OS:"                     Linux ("Unix 4.19.76.0")
[    1, 1,11:58:08.144,INF] "RUNTIME:"                ".NET 3.1.4" (64-bit)
[    1, 1,11:58:08.144,INF] "GC:"                     "3 GENERATIONS"
[    1, 1,11:58:08.144,INF] "LOGS:"                   "/var/log/eventstore"
[    1, 1,11:58:08.152,INF] MODIFIED OPTIONS:

    EXT IP:                   0.0.0.0 (Command Line)
    INT IP:                   0.0.0.0 (Command Line)
    EXT TCP PORT:             53001 (Environment Variable)
    CLUSTER SIZE:             1 (Environment Variable)
    DEV:                      true (Environment Variable)
    MEM DB:                   True (Set by 'Development Mode' mode)
    TRUSTED ROOT CERTIFICATES PATH: /opt/eventstore/dev-ca (Set by 'Development Mode' mode)
    CERTIFICATE FILE:         /opt/eventstore/dev-ca/server1.pem (Set by 'Development Mode' mode)
    CERTIFICATE PRIVATE KEY FILE: /opt/eventstore/dev-ca/server1.key (Set by 'Development Mode' mode)
    ENABLE ATOM PUB OVER HTTP: True (Set by 'Development Mode' mode)

DEFAULT OPTIONS:

    HELP:                     False (<DEFAULT>)
    VERSION:                  False (<DEFAULT>)
    LOG:                      /var/log/eventstore (<DEFAULT>)
    CONFIG:                   <empty> (<DEFAULT>)
    WHAT IF:                  False (<DEFAULT>)
    START STANDARD PROJECTIONS: False (<DEFAULT>)
    DISABLE HTTP CACHING:     False (<DEFAULT>)
    HTTP PORT:                2113 (<DEFAULT>)
    ENABLE EXTERNAL TCP:      False (<DEFAULT>)
    INT TCP PORT:             1112 (<DEFAULT>)
    EXT HOST ADVERTISE AS:    <empty> (<DEFAULT>)
    EXT TCP PORT ADVERTISE AS: 0 (<DEFAULT>)
    HTTP PORT ADVERTISE AS:   0 (<DEFAULT>)
    INT HOST ADVERTISE AS:    <empty> (<DEFAULT>)
    INT TCP PORT ADVERTISE AS: 0 (<DEFAULT>)
    INT TCP HEARTBEAT TIMEOUT: 700 (<DEFAULT>)
    EXT TCP HEARTBEAT TIMEOUT: 1000 (<DEFAULT>)
    INT TCP HEARTBEAT INTERVAL: 700 (<DEFAULT>)
    EXT TCP HEARTBEAT INTERVAL: 2000 (<DEFAULT>)
    GOSSIP ON SINGLE NODE:    False (<DEFAULT>)
    CONNECTION PENDING SEND BYTES THRESHOLD: 10485760 (<DEFAULT>)
    CONNECTION QUEUE SIZE THRESHOLD: 50000 (<DEFAULT>)
    NODE PRIORITY:            0 (<DEFAULT>)
    MIN FLUSH DELAY MS:       2 (<DEFAULT>)
    COMMIT COUNT:             -1 (<DEFAULT>)
    PREPARE COUNT:            -1 (<DEFAULT>)
    DISABLE ADMIN UI:         False (<DEFAULT>)
    DISABLE STATS ON HTTP:    False (<DEFAULT>)
    DISABLE GOSSIP ON HTTP:   False (<DEFAULT>)
    DISABLE SCAVENGE MERGING: False (<DEFAULT>)
    SCAVENGE HISTORY MAX AGE: 30 (<DEFAULT>)
    DISCOVER VIA DNS:         True (<DEFAULT>)
    CLUSTER DNS:              fake.dns (<DEFAULT>)
    CLUSTER GOSSIP PORT:      30777 (<DEFAULT>)
    GOSSIP SEED:              <empty> (<DEFAULT>)
    STATS PERIOD SEC:         30 (<DEFAULT>)
    CACHED CHUNKS:            -1 (<DEFAULT>)
    READER THREADS COUNT:     4 (<DEFAULT>)
    CHUNKS CACHE SIZE:        536871424 (<DEFAULT>)
    MAX MEM TABLE SIZE:       1000000 (<DEFAULT>)
    HASH COLLISION READ LIMIT: 100 (<DEFAULT>)
    DB:                       /var/lib/eventstore (<DEFAULT>)
    INDEX:                    <empty> (<DEFAULT>)
    SKIP DB VERIFY:           False (<DEFAULT>)
    WRITE THROUGH:            False (<DEFAULT>)
    UNBUFFERED:               False (<DEFAULT>)
    CHUNK INITIAL READER COUNT: 5 (<DEFAULT>)
    RUN PROJECTIONS:          None (<DEFAULT>)
    PROJECTION THREADS:       3 (<DEFAULT>)
    WORKER THREADS:           5 (<DEFAULT>)
    PROJECTIONS QUERY EXPIRY: 5 (<DEFAULT>)
    FAULT OUT OF ORDER PROJECTIONS: False (<DEFAULT>)
    ENABLE TRUSTED AUTH:      False (<DEFAULT>)
    CERTIFICATE PASSWORD:     <empty> (<DEFAULT>)
    CERTIFICATE STORE LOCATION: <empty> (<DEFAULT>)
    CERTIFICATE STORE NAME:   <empty> (<DEFAULT>)
    CERTIFICATE SUBJECT NAME: <empty> (<DEFAULT>)
    CERTIFICATE THUMBPRINT:   <empty> (<DEFAULT>)
    DISABLE INTERNAL TCP TLS: False (<DEFAULT>)
    DISABLE EXTERNAL TCP TLS: False (<DEFAULT>)
    AUTHORIZATION TYPE:       internal (<DEFAULT>)
    AUTHENTICATION TYPE:      internal (<DEFAULT>)
    AUTHORIZATION CONFIG:     <empty> (<DEFAULT>)
    AUTHENTICATION CONFIG:    <empty> (<DEFAULT>)
    DISABLE FIRST LEVEL HTTP AUTHORIZATION: False (<DEFAULT>)
    PREPARE TIMEOUT MS:       2000 (<DEFAULT>)
    COMMIT TIMEOUT MS:        2000 (<DEFAULT>)
    WRITE TIMEOUT MS:         2000 (<DEFAULT>)
    UNSAFE DISABLE FLUSH TO DISK: False (<DEFAULT>)
    UNSAFE IGNORE HARD DELETE: False (<DEFAULT>)
    SKIP INDEX VERIFY:        False (<DEFAULT>)
    INDEX CACHE DEPTH:        16 (<DEFAULT>)
    OPTIMIZE INDEX MERGE:     False (<DEFAULT>)
    GOSSIP INTERVAL MS:       2000 (<DEFAULT>)
    GOSSIP ALLOWED DIFFERENCE MS: 60000 (<DEFAULT>)
    GOSSIP TIMEOUT MS:        2500 (<DEFAULT>)
    READ ONLY REPLICA:        False (<DEFAULT>)
    UNSAFE ALLOW SURPLUS NODES: False (<DEFAULT>)
    ENABLE HISTOGRAMS:        False (<DEFAULT>)
    LOG HTTP REQUESTS:        False (<DEFAULT>)
    LOG FAILED AUTHENTICATION ATTEMPTS: False (<DEFAULT>)
    ALWAYS KEEP SCAVENGED:    False (<DEFAULT>)
    SKIP INDEX SCAN ON READS: False (<DEFAULT>)
    REDUCE FILE CACHE PRESSURE: False (<DEFAULT>)
    INITIALIZATION THREADS:   1 (<DEFAULT>)
    MAX AUTO MERGE INDEX LEVEL: 2147483647 (<DEFAULT>)
    WRITE STATS TO DB:        False (<DEFAULT>)
    MAX TRUNCATION:           268435456 (<DEFAULT>)
    MAX APPEND SIZE:          1048576 (<DEFAULT>)
    DEAD MEMBER REMOVAL PERIOD SEC: 1800 (<DEFAULT>)

[    1, 1,11:58:08.154,WRN] 
========================================================================================================
DEVELOPMENT MODE IS ON. THIS MODE IS *NOT* INTENDED FOR PRODUCTION USE.
WHEN IN DEVELOPMENT MODE EVENT STORE WILL
 - NOT WRITE ANY DATA TO DISK.
 - USE A SELF SIGNED CERTIFICATE.
========================================================================================================

[    1, 1,11:58:08.154,INF] 
INTERFACES
External TCP (Protobuf)
    Enabled : False
    Port    : 53001
HTTP (AtomPub)
    Enabled : True
    Port    : 2113

[    1, 1,11:58:08.154,WRN] 
 DEPRECATION WARNING: AtomPub over HTTP Interface has been deprecated as of version 20.02. It is recommended to use gRPC instead.

[    1, 1,11:58:08.162,INF] Quorum size set to 1
[    1, 1,11:58:08.198,INF] Trusted root certificate file loaded: "server1.pem"
[    1, 1,11:58:08.198,INF] Trusted root certificate file loaded: "ca.pem"
[    1, 1,11:58:08.208,INF] Cannot find plugins path: "/usr/share/eventstore/plugins"
[    1, 1,11:58:08.370,DBG] MessageHierarchy initialization took 00:00:00.1316889.
[    1, 1,11:58:08.388,INF] "INSTANCE ID:"            16f13818-8575-46e5-8eaa-434be24a0be7
[    1, 1,11:58:08.388,INF] "DATABASE:"               "/tmp/EmbeddedEventStore/2020-06-14_11.58.08.164552-EmbeddedNode"
[    1, 1,11:58:08.388,INF] "WRITER CHECKPOINT:"      0 (0x0)
[    1, 1,11:58:08.388,INF] "CHASER CHECKPOINT:"      0 (0x0)
[    1, 1,11:58:08.388,INF] "EPOCH CHECKPOINT:"       -1 (0xFFFFFFFFFFFFFFFF)
[    1, 1,11:58:08.388,INF] "TRUNCATE CHECKPOINT:"    -1 (0xFFFFFFFFFFFFFFFF)
[    1, 1,11:58:08.430,DBG] Could not create performance counter: category='"Processor"', counter='"% Processor Time"', instance='"_Total"'. Error: "Performance Counters are not supported on this platform."
[    1, 1,11:58:08.430,DBG] Could not create performance counter: category='"Memory"', counter='"Available Bytes"', instance='""'. Error: "Performance Counters are not supported on this platform."
[    1, 1,11:58:08.540,INF] Starting MiniWeb for "/web/es/js/projections" ==> "/opt/eventstore/projections"
[    1, 1,11:58:08.540,INF] Starting MiniWeb for "/web/es/js/projections/v8/Prelude" ==> "/opt/eventstore/Prelude"
[    1, 1,11:58:08.547,INF] Starting MiniWeb for "/web" ==> "/opt/eventstore/clusternode-web"
[    1,11,11:58:08.601,INF] ========== ["0.0.0.0:2113"] SYSTEM INIT...
[    1,11,11:58:08.607,INF] ========== ["0.0.0.0:2113"] Service '"StorageReader"' initialized.
[    1,11,11:58:08.608,INF] ========== ["0.0.0.0:2113"] Service '"StorageWriter"' initialized.
[    1,13,11:58:08.609,INF] TableIndex initialization...
[    1,13,11:58:08.612,INF] ReadIndex building...
[    1,13,11:58:08.613,DBG] ReadIndex rebuilding done: total processed 0 records, time elapsed: 00:00:00.0007854.
[    1,11,11:58:08.626,INF] ========== ["0.0.0.0:2113"] Service '"StorageChaser"' initialized.
[    1,11,11:58:08.626,INF] ========== ["0.0.0.0:2113"] SYSTEM START...
[    1,11,11:58:08.628,INF] ========== ["0.0.0.0:2113"] IS UNKNOWN...
[    1,14,11:58:08.630,DBG] Persistent subscriptions received state change to Unknown. Stopping listening
[    1,11,11:58:08.630,INF] ELECTIONS: STARTING ELECTIONS.
[    1,11,11:58:08.630,INF] ELECTIONS: (V=0) SHIFT TO LEADER ELECTION.
[    1,11,11:58:08.631,INF] ELECTIONS: (V=0) VIEWCHANGE FROM ["Unspecified/127.0.0.1:2113", {16f13818-8575-46e5-8eaa-434be24a0be7}].
[    1,11,11:58:08.632,INF] ELECTIONS: (V=0) MAJORITY OF VIEWCHANGE.
[    1,11,11:58:08.633,INF] ELECTIONS: (V=0) SHIFT TO PREPARE PHASE.
[    1,11,11:58:08.634,INF] ELECTIONS: (V=0) PREPARE_OK FROM "[Unspecified/127.0.0.1:2113,{16f13818-8575-46e5-8eaa-434be24a0be7}](L=-1,W=0,C=0,E-1@-1:{00000000-0000-0000-0000-000000000000} (L={00000000-0000-0000-0000-000000000000}),Priority=0)".
[    1,11,11:58:08.635,INF] ELECTIONS: (V=0) SHIFT TO REG_LEADER.
[    1,11,11:58:08.641,DBG] ELECTIONS: (V=0) Proposing node: {16f13818-8575-46e5-8eaa-434be24a0be7} as best leader candidate
[    1,11,11:58:08.642,INF] ELECTIONS: (V=0) SENDING PROPOSAL CANDIDATE: "[Unspecified/127.0.0.1:2113,{16f13818-8575-46e5-8eaa-434be24a0be7}](L=-1,W=0,C=0,E-1@-1:{00000000-0000-0000-0000-000000000000} (L={00000000-0000-0000-0000-000000000000}),Priority=0)", ME: "[Unspecified/127.0.0.1:2113,{16f13818-8575-46e5-8eaa-434be24a0be7}](L=-1,W=0,C=0,E-1@-1:{00000000-0000-0000-0000-000000000000} (L={00000000-0000-0000-0000-000000000000}),Priority=0)".
[    1,11,11:58:08.642,INF] ELECTIONS: (V=0) ACCEPT FROM ["Unspecified/127.0.0.1:2113",{16f13818-8575-46e5-8eaa-434be24a0be7}] M=["Unspecified/127.0.0.1:2113",{16f13818-8575-46e5-8eaa-434be24a0be7}]).
[    1,11,11:58:08.643,INF] ELECTIONS: (V=0) DONE. ELECTED LEADER = "[Unspecified/127.0.0.1:2113,{16f13818-8575-46e5-8eaa-434be24a0be7}](L=-1,W=0,C=0,E-1@-1:{00000000-0000-0000-0000-000000000000} (L={00000000-0000-0000-0000-000000000000}),Priority=0)". ME="[Unspecified/127.0.0.1:2113,{16f13818-8575-46e5-8eaa-434be24a0be7}](L=-1,W=0,C=0,E-1@-1:{00000000-0000-0000-0000-000000000000} (L={00000000-0000-0000-0000-000000000000}),Priority=0)".
[    1,11,11:58:08.644,INF] ========== ["0.0.0.0:2113"] PRE-LEADER STATE, WAITING FOR CHASER TO CATCH UP...
[    1, 4,11:58:08.645,DBG] Persistent subscriptions received state change to PreLeader. Stopping listening
[    1,11,11:58:08.647,INF] ========== ["0.0.0.0:2113"] IS LEADER... SPARTA!
[    1,14,11:58:08.647,DBG] Persistent subscriptions Became Leader so now handling subscriptions
[    1,11,11:58:08.648,DBG] Searching for incomplete scavenges on node "0.0.0.0:2113".
[    1,11,11:58:08.653,DBG] Setting max age for the "$scavenges" stream to 30.00:00:00.
[    1,11,11:58:08.653,DBG] Setting $ops read permission for the "$scavenges" stream
[    1,11,11:58:08.681,DBG] No incomplete scavenges found on node "0.0.0.0:2113".
[    1, 1,11:58:08.726,WRN] Overriding address(es) '"http://+:80"'. Binding to endpoints defined in "UseKestrel()" instead.
[    1, 9,11:58:08.746,DBG] === Writing E0@0:{638c0ac7-8dc4-43ef-be87-9ba9a033dec5} (previous epoch at -1). L={16f13818-8575-46e5-8eaa-434be24a0be7}.
[    1, 9,11:58:08.747,DBG] === Update Last Epoch E0@0:{638c0ac7-8dc4-43ef-be87-9ba9a033dec5} (previous epoch at -1) L={16f13818-8575-46e5-8eaa-434be24a0be7}.
[    1,17,11:58:08.830,INF] 'admin' user account has been created.
[    1, 6,11:58:08.832,INF] 'ops' user account has been created.
[    1,18,11:58:08.832,INF] 'admin' user added to $users.
[    1,16,11:58:08.832,INF] 'ops' user added to $users.
[    1,22,11:58:08.835,INF] PROJECTIONS SUBSYSTEM: Starting components for Instance: f32b2685-9d85-48a7-98d6-5b6f349bc619
[    1,22,11:58:08.836,DBG] PROJECTIONS: Projection Core Coordinator component starting. Correlation: f32b2685-9d85-48a7-98d6-5b6f349bc619
[    1,22,11:58:08.836,DBG] PROJECTIONS: Starting Projections Core Coordinator
[    1,22,11:58:08.839,DBG] PROJECTIONS: SubComponent Started: "EventReaderCoreService"
[    1,22,11:58:08.840,DBG] PROJECTIONS SUBSYSTEM: Component '"ProjectionCoreCoordinator"' started for Instance: f32b2685-9d85-48a7-98d6-5b6f349bc619
[    1,22,11:58:08.840,INF] PROJECTIONS SUBSYSTEM: All components started for Instance: f32b2685-9d85-48a7-98d6-5b6f349bc619
[    1,11,11:58:08.840,INF] ========== ["0.0.0.0:2113"] Sub System '"Projections"' initialized.

Hey @endeffects,
I suspect you want to connect using the tcp client because of you having specified the Ext TCP Port.
With Event Store 20.6.0 you have to enable the Ext TCP interface, which can be done via --enable-external-tcp.

Let us know if this resolves your issue.

how to use the grpc protocol with eventstore client 20.0.6

I am getting the following error:
System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure

hi, sorry for jumping in, but I'm having a similar issue: just updated to 20.6 and I cannot connect to the server. Not even the admin UI is loading anymore.

I'm using this command as suggested:
docker run --name eventstore2 -it -p 2113:2113 -p 1113:1113 -e EVENTSTORE_DEV=true eventstore/eventstore
I get a 404 when trying to load localhost:2113 in Chrome

My team experienced the same thing. Rolling back to prior docker image fixed it.

@ekjuanrejon, would you mind providing more details about your environment?

  • How are you starting Event Store? (Are you running with the development mode turned on, etc.)
  • What options are you providing Event Store?

The logs would provide all the necessary information for us to help diagnose the issue further.

@ekjuanrejon @coridrew check my last comment, I managed to get to a working configuration with the help of @pgermishuys , maybe it will work for you as well

i tried all suggested changes but i still can't connect to the eventstore (db and admin interface).
could someone please provide a working docker-compose file?

version: '3.7'

volumes:
  app.eventstore-data:
    name: app.eventstore-data

networks:
  application-public-net:
    name: application-public-net
    driver: bridge
  app.isolated-net:
    name: app.isolated-net
    driver: bridge
    internal: true

services:
  app.eventstore:
    image: eventstore/eventstore:latest
    container_name: app.eventstore
    restart: always
    environment:
      - EVENTSTORE_CLUSTER_SIZE=1
      - EVENTSTORE_INT_TCP_PORT=53001
      - EVENTSTORE_EXT_TCP_PORT=53001
      - EVENTSTORE_INT_HTTP_PORT=54001
      - EVENTSTORE_EXT_HTTP_PORT=54001
    volumes:
      - app.eventstore-data:/var/lib/eventstore
    networks:
      - application-public-net
      - app.isolated-net
    ports:
      - "53001:53001"
      - "54001:54001"
    command: --dev --enable-external-tcp --ext-ip=0.0.0.0 --int-ip=0.0.0.0 --disable-external-tcp-tls

I connected to it. Use https when accessing the dashboard

  • Are you using **https**://localhost:2113 in your browser? (Note that the server uses https by default now.

Please update the documentation, I spent hours on this (first timer on eventstore), and had issues with undocumented changes when following the "getting started" guide.

"ExtSecureTcpPort throws EventStore.Rags.OptionException: The option ExtSecureTcpPort is not a known option" and "System.Exception: TrustedRootCertificatesPath must be specified unless development mode (--dev) is set"

documented here:
https://gist.github.com/JimiSweden/f8916a94bd3dab1ff07c940b9169c946

//Jimi

(reported as "bug" here https://github.com/EventStore/EventStore/issues/2573)

I want to use event store and i have tried to configure that into my windows 10 machine. I followed this.

  • 'choco install eventstore-oss' - succesfully installed.
  • 'EventStore.ClusterNode.exe --db ./db --log ./logs --dev' - successfuly started.

Now, when i run 'http://127.0.0.1:2113/ ' in chrome. i get 'page not working error.'
image

I have tried with my dotnet application but it gives me exception that 'Connection 'ES-5671a21c-0283-4205-bd07-a68ece54a466' was closed.' below is my API code.

`[HttpPost]
public string Index()
{
try
{
var conn = CreateConnection();
var streamName = "newstream";
var eventType = "event-type";
var data = "{ \"a\":\"2\"}";
var metadata = "{}";
var eventPayload = new EventData(Guid.NewGuid(), eventType, true, Encoding.UTF8.GetBytes(data), Encoding.UTF8.GetBytes(metadata));
conn.AppendToStreamAsync(streamName, ExpectedVersion.Any, eventPayload).Wait();

            var readResult = conn.ReadEventAsync(streamName, 0, true).Result;

            return Encoding.UTF8.GetString(readResult.Event.Value.Event.Data);
        }
        catch (Exception ex)
        {
            return ex.Message;
        }
    }

    private IEventStoreConnection CreateConnection()
    {
        var conn = EventStoreConnection.Create(new Uri("tcp://admin:changeit@localhost:1113"));
        conn.ConnectAsync().Wait();
        return conn;
    }`

below is log when i start using 'EventStore.ClusterNode.exe --dev' command.

`PS C:\Windows\system32> EventStore.ClusterNode.exe --dev
[ 6936, 1,17:53:17.860,INF]
"ES VERSION:" "20.6.0" ("master"/"7d8855961882b044f20c031773e729aa73734d67", "Tue, 9 Jun 2020 08:43:44 +0200")
[ 6936, 1,17:53:17.866,INF] "OS:" Windows ("Microsoft Windows NT 6.2.9200.0")
[ 6936, 1,17:53:17.867,INF] "RUNTIME:" ".NET 3.1.4" (64-bit)
[ 6936, 1,17:53:17.867,INF] "GC:" "3 GENERATIONS"
[ 6936, 1,17:53:17.867,INF] "LOGS:" "C:\ProgramData\chocolatey\lib\eventstore-oss\tools\EventStore-OSS-Windows-2019-v20.6.0\logs"
[ 6936, 1,17:53:17.874,INF] MODIFIED OPTIONS:

    DEV:                      True (Command Line)
    MEM DB:                   True (Set by 'Development Mode' mode)
    TRUSTED ROOT CERTIFICATES PATH: C:\ProgramData\chocolatey\lib\eventstore-oss\tools\EventStore-OSS-Windows-2019-v20.6.0\dev-ca (Set by 'Development Mode' mode)
    CERTIFICATE FILE:         C:\ProgramData\chocolatey\lib\eventstore-oss\tools\EventStore-OSS-Windows-2019-v20.6.0\dev-ca\server1.pem (Set by 'Development Mode' mode)
    CERTIFICATE PRIVATE KEY FILE: C:\ProgramData\chocolatey\lib\eventstore-oss\tools\EventStore-OSS-Windows-2019-v20.6.0\dev-ca\server1.key (Set by 'Development Mode' mode)
    ENABLE ATOM PUB OVER HTTP: True (Set by 'Development Mode' mode)

DEFAULT OPTIONS:

    HELP:                     False (<DEFAULT>)
    VERSION:                  False (<DEFAULT>)
    LOG:                      C:\ProgramData\chocolatey\lib\eventstore-oss\tools\EventStore-OSS-Windows-2019-v20.6.0\logs (<DEFAULT>)
    CONFIG:                   <empty> (<DEFAULT>)
    WHAT IF:                  False (<DEFAULT>)
    START STANDARD PROJECTIONS: False (<DEFAULT>)
    DISABLE HTTP CACHING:     False (<DEFAULT>)
    INT IP:                   127.0.0.1 (<DEFAULT>)
    EXT IP:                   127.0.0.1 (<DEFAULT>)
    HTTP PORT:                2113 (<DEFAULT>)
    ENABLE EXTERNAL TCP:      False (<DEFAULT>)
    INT TCP PORT:             1112 (<DEFAULT>)
    EXT TCP PORT:             1113 (<DEFAULT>)
    EXT HOST ADVERTISE AS:    <empty> (<DEFAULT>)
    EXT TCP PORT ADVERTISE AS: 0 (<DEFAULT>)
    HTTP PORT ADVERTISE AS:   0 (<DEFAULT>)
    INT HOST ADVERTISE AS:    <empty> (<DEFAULT>)
    INT TCP PORT ADVERTISE AS: 0 (<DEFAULT>)
    INT TCP HEARTBEAT TIMEOUT: 700 (<DEFAULT>)
    EXT TCP HEARTBEAT TIMEOUT: 1000 (<DEFAULT>)
    INT TCP HEARTBEAT INTERVAL: 700 (<DEFAULT>)
    EXT TCP HEARTBEAT INTERVAL: 2000 (<DEFAULT>)
    GOSSIP ON SINGLE NODE:    False (<DEFAULT>)
    CONNECTION PENDING SEND BYTES THRESHOLD: 10485760 (<DEFAULT>)
    CONNECTION QUEUE SIZE THRESHOLD: 50000 (<DEFAULT>)
    CLUSTER SIZE:             1 (<DEFAULT>)
    NODE PRIORITY:            0 (<DEFAULT>)
    MIN FLUSH DELAY MS:       2 (<DEFAULT>)
    COMMIT COUNT:             -1 (<DEFAULT>)
    PREPARE COUNT:            -1 (<DEFAULT>)
    DISABLE ADMIN UI:         False (<DEFAULT>)
    DISABLE STATS ON HTTP:    False (<DEFAULT>)
    DISABLE GOSSIP ON HTTP:   False (<DEFAULT>)
    DISABLE SCAVENGE MERGING: False (<DEFAULT>)
    SCAVENGE HISTORY MAX AGE: 30 (<DEFAULT>)
    DISCOVER VIA DNS:         True (<DEFAULT>)
    CLUSTER DNS:              fake.dns (<DEFAULT>)
    CLUSTER GOSSIP PORT:      30777 (<DEFAULT>)
    GOSSIP SEED:              <empty> (<DEFAULT>)
    STATS PERIOD SEC:         30 (<DEFAULT>)
    CACHED CHUNKS:            -1 (<DEFAULT>)
    READER THREADS COUNT:     4 (<DEFAULT>)
    CHUNKS CACHE SIZE:        536871424 (<DEFAULT>)
    MAX MEM TABLE SIZE:       1000000 (<DEFAULT>)
    HASH COLLISION READ LIMIT: 100 (<DEFAULT>)
    DB:                       C:\ProgramData\chocolatey\lib\eventstore-oss\tools\EventStore-OSS-Windows-2019-v20.6.0\data (<DEFAULT>)
    INDEX:                    <empty> (<DEFAULT>)
    SKIP DB VERIFY:           False (<DEFAULT>)
    WRITE THROUGH:            False (<DEFAULT>)
    UNBUFFERED:               False (<DEFAULT>)
    CHUNK INITIAL READER COUNT: 5 (<DEFAULT>)
    RUN PROJECTIONS:          None (<DEFAULT>)
    PROJECTION THREADS:       3 (<DEFAULT>)
    WORKER THREADS:           5 (<DEFAULT>)
    PROJECTIONS QUERY EXPIRY: 5 (<DEFAULT>)
    FAULT OUT OF ORDER PROJECTIONS: False (<DEFAULT>)
    ENABLE TRUSTED AUTH:      False (<DEFAULT>)
    CERTIFICATE PASSWORD:     <empty> (<DEFAULT>)
    CERTIFICATE STORE LOCATION: <empty> (<DEFAULT>)
    CERTIFICATE STORE NAME:   <empty> (<DEFAULT>)
    CERTIFICATE SUBJECT NAME: <empty> (<DEFAULT>)
    CERTIFICATE THUMBPRINT:   <empty> (<DEFAULT>)
    DISABLE INTERNAL TCP TLS: False (<DEFAULT>)
    DISABLE EXTERNAL TCP TLS: False (<DEFAULT>)
    AUTHORIZATION TYPE:       internal (<DEFAULT>)
    AUTHENTICATION TYPE:      internal (<DEFAULT>)
    AUTHORIZATION CONFIG:     <empty> (<DEFAULT>)
    AUTHENTICATION CONFIG:    <empty> (<DEFAULT>)
    DISABLE FIRST LEVEL HTTP AUTHORIZATION: False (<DEFAULT>)
    PREPARE TIMEOUT MS:       2000 (<DEFAULT>)
    COMMIT TIMEOUT MS:        2000 (<DEFAULT>)
    WRITE TIMEOUT MS:         2000 (<DEFAULT>)
    UNSAFE DISABLE FLUSH TO DISK: False (<DEFAULT>)
    UNSAFE IGNORE HARD DELETE: False (<DEFAULT>)
    SKIP INDEX VERIFY:        False (<DEFAULT>)
    INDEX CACHE DEPTH:        16 (<DEFAULT>)
    OPTIMIZE INDEX MERGE:     False (<DEFAULT>)
    GOSSIP INTERVAL MS:       2000 (<DEFAULT>)
    GOSSIP ALLOWED DIFFERENCE MS: 60000 (<DEFAULT>)
    GOSSIP TIMEOUT MS:        2500 (<DEFAULT>)
    READ ONLY REPLICA:        False (<DEFAULT>)
    UNSAFE ALLOW SURPLUS NODES: False (<DEFAULT>)
    ENABLE HISTOGRAMS:        False (<DEFAULT>)
    LOG HTTP REQUESTS:        False (<DEFAULT>)
    LOG FAILED AUTHENTICATION ATTEMPTS: False (<DEFAULT>)
    ALWAYS KEEP SCAVENGED:    False (<DEFAULT>)
    SKIP INDEX SCAN ON READS: False (<DEFAULT>)
    REDUCE FILE CACHE PRESSURE: False (<DEFAULT>)
    INITIALIZATION THREADS:   1 (<DEFAULT>)
    MAX AUTO MERGE INDEX LEVEL: 2147483647 (<DEFAULT>)
    WRITE STATS TO DB:        False (<DEFAULT>)
    MAX TRUNCATION:           268435456 (<DEFAULT>)
    MAX APPEND SIZE:          1048576 (<DEFAULT>)
    DEAD MEMBER REMOVAL PERIOD SEC: 1800 (<DEFAULT>)

[ 6936, 1,17:53:17.876,WRN]

DEVELOPMENT MODE IS ON. THIS MODE IS NOT INTENDED FOR PRODUCTION USE.
WHEN IN DEVELOPMENT MODE EVENT STORE WILL

  • NOT WRITE ANY DATA TO DISK.

- USE A SELF SIGNED CERTIFICATE.

[ 6936, 1,17:53:17.876,INF]
INTERFACES
External TCP (Protobuf)
Enabled : False
Port : 1113
HTTP (AtomPub)
Enabled : True
Port : 2113

[ 6936, 1,17:53:17.876,WRN]
DEPRECATION WARNING: AtomPub over HTTP Interface has been deprecated as of version 20.02. It is recommended to use gRPC instead.

[ 6936, 1,17:53:17.883,INF] Quorum size set to 1
[ 6936, 1,17:53:17.950,INF] Trusted root certificate file loaded: "ca.pem"
[ 6936, 1,17:53:17.952,INF] Trusted root certificate file loaded: "server1.pem"
[ 6936, 1,17:53:17.963,INF] Cannot find plugins path: "C:\ProgramData\chocolatey\lib\eventstore-oss\tools\EventStore-OSS-Windows-2019-v20.6.0\plugins"
[ 6936, 1,17:53:18.099,DBG] MessageHierarchy initialization took 00:00:00.0998084.
[ 6936, 1,17:53:18.102,INF] "INSTANCE ID:" d8f4cd89-f653-4059-8dcf-9954ae21feb2
[ 6936, 1,17:53:18.103,INF] "DATABASE:" "C:\Users\Karan.Rana\AppData\Local\Temp\EmbeddedEventStore\2020-08-04_12.23.17.887325-EmbeddedNode"
[ 6936, 1,17:53:18.103,INF] "WRITER CHECKPOINT:" 0 (0x0)
[ 6936, 1,17:53:18.103,INF] "CHASER CHECKPOINT:" 0 (0x0)
[ 6936, 1,17:53:18.103,INF] "EPOCH CHECKPOINT:" -1 (0xFFFFFFFFFFFFFFFF)
[ 6936, 1,17:53:18.103,INF] "TRUNCATE CHECKPOINT:" -1 (0xFFFFFFFFFFFFFFFF)
[ 6936, 1,17:53:19.294,INF] Starting MiniWeb for "/web/es/js/projections" ==> "C:\ProgramData\chocolatey\lib\eventstore-oss\tools\EventStore-OSS-Windows-2019-v20.6.0\projections"
[ 6936, 1,17:53:19.294,INF] Starting MiniWeb for "/web/es/js/projections/v8/Prelude" ==> "C:\ProgramData\chocolatey\lib\eventstore-oss\tools\EventStore-OSS-Windows-2019-v20.6.0\Prelude"
[ 6936, 1,17:53:19.300,INF] Starting MiniWeb for "/web" ==> "C:\ProgramData\chocolatey\lib\eventstore-oss\tools\EventStore-OSS-Windows-2019-v20.6.0\clusternode-web"
[ 6936,10,17:53:19.355,INF] ========== ["127.0.0.1:2113"] SYSTEM INIT...
[ 6936,10,17:53:19.358,INF] ========== ["127.0.0.1:2113"] Service '"StorageReader"' initialized.
[ 6936,10,17:53:19.358,INF] ========== ["127.0.0.1:2113"] Service '"StorageWriter"' initialized.
[ 6936,13,17:53:19.360,INF] TableIndex initialization...
[ 6936,13,17:53:19.363,INF] ReadIndex building...
[ 6936,13,17:53:19.364,DBG] ReadIndex rebuilding done: total processed 0 records, time elapsed: 00:00:00.0007690.
[ 6936,10,17:53:19.379,INF] ========== ["127.0.0.1:2113"] Service '"StorageChaser"' initialized.
[ 6936,10,17:53:19.380,INF] ========== ["127.0.0.1:2113"] SYSTEM START...
[ 6936,10,17:53:19.382,INF] ========== ["127.0.0.1:2113"] IS UNKNOWN...
[ 6936, 4,17:53:19.384,DBG] Persistent subscriptions received state change to Unknown. Stopping listening
[ 6936,10,17:53:19.384,INF] ELECTIONS: STARTING ELECTIONS.
[ 6936,10,17:53:19.384,INF] ELECTIONS: (V=0) SHIFT TO LEADER ELECTION.
[ 6936,10,17:53:19.385,INF] ELECTIONS: (V=0) VIEWCHANGE FROM ["Unspecified/127.0.0.1:2113", {d8f4cd89-f653-4059-8dcf-9954ae21feb2}].
[ 6936,10,17:53:19.386,INF] ELECTIONS: (V=0) MAJORITY OF VIEWCHANGE.
[ 6936,10,17:53:19.387,INF] ELECTIONS: (V=0) SHIFT TO PREPARE PHASE.
[ 6936,10,17:53:19.389,INF] ELECTIONS: (V=0) PREPARE_OK FROM "Unspecified/127.0.0.1:2113,{d8f4cd89-f653-4059-8dcf-9954ae21feb2}".
[ 6936,10,17:53:19.389,INF] ELECTIONS: (V=0) SHIFT TO REG_LEADER.
[ 6936,10,17:53:19.395,DBG] ELECTIONS: (V=0) Proposing node: {d8f4cd89-f653-4059-8dcf-9954ae21feb2} as best leader candidate
[ 6936,10,17:53:19.395,INF] ELECTIONS: (V=0) SENDING PROPOSAL CANDIDATE: "Unspecified/127.0.0.1:2113,{d8f4cd89-f653-4059-8dcf-9954ae21feb2}", ME: "Unspecified/127.0.0.1:2113,{d8f4cd89-f653-4059-8dcf-9954ae21feb2}".
[ 6936,10,17:53:19.396,INF] ELECTIONS: (V=0) ACCEPT FROM ["Unspecified/127.0.0.1:2113",{d8f4cd89-f653-4059-8dcf-9954ae21feb2}] M=["Unspecified/127.0.0.1:2113",{d8f4cd89-f653-4059-8dcf-9954ae21feb2}]).
[ 6936,10,17:53:19.396,INF] ELECTIONS: (V=0) DONE. ELECTED LEADER = "Unspecified/127.0.0.1:2113,{d8f4cd89-f653-4059-8dcf-9954ae21feb2}". ME="Unspecified/127.0.0.1:2113,{d8f4cd89-f653-4059-8dcf-9954ae21feb2}".
[ 6936,10,17:53:19.399,INF] ========== ["127.0.0.1:2113"] PRE-LEADER STATE, WAITING FOR CHASER TO CATCH UP...
[ 6936,15,17:53:19.399,DBG] Persistent subscriptions received state change to PreLeader. Stopping listening
[ 6936,10,17:53:19.401,INF] ========== ["127.0.0.1:2113"] IS LEADER... SPARTA!
[ 6936,10,17:53:19.403,DBG] Searching for incomplete scavenges on node "127.0.0.1:2113".
[ 6936,11,17:53:19.403,DBG] Persistent subscriptions Became Leader so now handling subscriptions
[ 6936,10,17:53:19.406,DBG] Setting max age for the "$scavenges" stream to 30.00:00:00.
[ 6936,10,17:53:19.406,DBG] Setting $ops read permission for the "$scavenges" stream
[ 6936,10,17:53:19.446,DBG] No incomplete scavenges found on node "127.0.0.1:2113".
[ 6936, 8,17:53:19.519,DBG] === Writing E0@0:{a5df3603-6990-4c19-9ee5-47c3e4e65d0b} (previous epoch at -1). L={d8f4cd89-f653-4059-8dcf-9954ae21feb2}.
[ 6936, 8,17:53:19.520,DBG] === Update Last Epoch E0@0:{a5df3603-6990-4c19-9ee5-47c3e4e65d0b} (previous epoch at -1) L={d8f4cd89-f653-4059-8dcf-9954ae21feb2}.
[ 6936,18,17:53:19.596,INF] 'admin' user account has been created.
[ 6936,17,17:53:19.597,INF] 'admin' user added to $users.
[ 6936,18,17:53:19.597,INF] 'ops' user account has been created.
[ 6936,17,17:53:19.597,INF] 'ops' user added to $users.
[ 6936,20,17:53:19.600,INF] PROJECTIONS SUBSYSTEM: Starting components for Instance: 174bfc86-c28a-4b19-9515-6f688b611354
[ 6936,20,17:53:19.600,DBG] PROJECTIONS: Projection Core Coordinator component starting. Correlation: 174bfc86-c28a-4b19-9515-6f688b611354
[ 6936,20,17:53:19.601,DBG] PROJECTIONS: Starting Projections Core Coordinator
[ 6936,20,17:53:19.603,DBG] PROJECTIONS: SubComponent Started: "EventReaderCoreService"
[ 6936,20,17:53:19.603,DBG] PROJECTIONS SUBSYSTEM: Component '"ProjectionCoreCoordinator"' started for Instance: 174bfc86-c28a-4b19-9515-6f688b611354
[ 6936,20,17:53:19.603,INF] PROJECTIONS SUBSYSTEM: All components started for Instance: 174bfc86-c28a-4b19-9515-6f688b611354
[ 6936,10,17:53:19.604,INF] ========== ["127.0.0.1:2113"] Sub System '"Projections"' initialized.
`
Can anyone please help me this? why i am getting API error mentioned above? and why UI is not working? what is wrong am i doing here. Thanks

@KaranSoluteLab has to be https you have http

@KaranSoluteLab has to be https you have http

Thanks @ekjuanrejon I got admin UI running. But i got same API error i mentioned above ''Connection 'ES-5671a21c-0283-4205-bd07-a68ece54a466' was closed.' I get error at AppendToStreamAsync Can you please tell me what is problem with that code? Thanks

@KaranSoluteLab has to be https you have http

Thanks @ekjuanrejon I got admin UI running. But i got same API error i mentioned above ''Connection 'ES-5671a21c-0283-4205-bd07-a68ece54a466' was closed.' I get error at AppendToStreamAsync Can you please tell me what is problem with that code? Thanks

I have tried this and start event store using --enable-external-tcp Then also not working.
image

@KaranSoluteLab,
By default the Event Store 20.6 TCP Client will attempt to use TLS. For development you can disable TLS in the TCP client

var settings = ConnectionSettings.Create().DisableTls();
var connection = EventStoreConnection.Create(settings, new IPEndPoint(IPAddress.Loopback, 1113));

Note that you will have to disable the tcp tls on the server for the above to work

.\EventStore.ClusterNode.exe --dev --enable-external-tcp --disable-external-tcp-tls

Please let us know if you run into any other difficulties.

@KaranSoluteLab,
By default the Event Store 20.6 TCP Client will attempt to use TLS. For development you can disable TLS in the TCP client

var settings = ConnectionSettings.Create().DisableTls();
var connection = EventStoreConnection.Create(settings, new IPEndPoint(IPAddress.Loopback, 1113));

Note that you will have to disable the tcp tls on the server for the above to work

.\EventStore.ClusterNode.exe --dev --enable-external-tcp --disable-external-tcp-tls

Please let us know if you run into any other difficulties.

@pgermishuys Thanks for solution. it is working perfectly now.

I'm using what @mizrael suggested (the same docker-compose file), but when I try to browse the admin it shows me that the certificate is not safe and when I click the proceed link, it continues but to a browser error page:
"localhost unexpectedly closed the connection."
And I see this error on the log:

Client certificate validation error: "The certificate provided by the client failed validation with the following error(s): RemoteCertificateChainErrors (PartialChain)"

@AbdoDabbas do you connect to the external HTTP port with the browser?

I ran the same docker-compose file that @mizrael provided, and connected to port 2113 via the browser.

docker run -d --name eventstore -p 2113:2113 -p 1113:1113 -e EVENTSTORE_DEV=true eventstore/eventstore

I ran the above command. This successfully starts the container, but connection via http or https is not possible. For http I get Site cannot be reached and the https prompts for a certificate and I get a list of generic certificates which look like they are generated by Windows for testing.

From this thread I understood that if you are using dev mode then certificates are not needed, but still it is not possible to connect to the UI interface. Any suggestions?

The dev mode does not disable the security but it uses certificates internally generated by the cluster node so you won't need to generate them yourself.

@justoke have you tried using Firefox? My Chrome (actually Brave) keeps asking for a certificate but Firefox works just fine.

@justoke have you tried using Firefox? My Chrome (actually Brave) keeps asking for a certificate but Firefox works just fine.

Thank you for the suggestion, I tried Edge and it worked - I got this prompt for certificates and just took the default selection.I got the same prompt in Chrome but it didn't work.
image

This is an acceptable work around. It would be nice though if in dev mode you could just not have all this to deal with. I just wanted to run some example code and got stuck on this for days. Thanks again.

If you use the latest nightly build, you will be able to run it in insecure mode (with .\EventStore.ClusterNode.exe --insecure --enable-external-tcp --enable-atom-pub) and it won't require any certificates. However, it will also disable any authentication or ACLs, so you should not send any credentials.

If you use the latest nightly build, you will be able to run it in insecure mode (with .\EventStore.ClusterNode.exe --insecure --enable-external-tcp --enable-atom-pub) and it won't require any certificates. However, it will also disable any authentication or ACLs, so you should not send any credentials.

It stopped working on Edge also - the Docker container is more convenient than trying to use the latest build - for a newcomer at least. So I tried latest overnight build and although it runs with the command as suggested it is still not accessible from the browser - any for that matter. The running log shows as follows:

image

This just seems so complicated just to get started. I've hit a dead end no matter what I've tried. Any help greatly appreciated.

Nothing stops you from using Docker container also for 20.6.1 nightly, it is available in the GitHub container registry.

Here is the example: https://developers.eventstore.com/clients/dotnet/generated/v20.6.0/getting-started/quick-tour.html

I have the same error on my windows machine for version 20.

docker run --name eventstore-node -it -p 2113:2113 -p 1113:1113 eventstore/eventstore

but when I use version release-5.0.8

docker run --name eventstore-node -it -p 2113:2113 -p 1113:1113 eventstore/eventstore:release-5.0.8 --dev --enable-external-tcp

@engmohamedsalah just to clarify - neither --dev nor --enable-external-tcp are valid options for 5.0.8.

ok thanks for the reply
but the only version worked with me 5.0.8
the latest did not work

Hello there, I am also having the same problem with the certificate, I tried the following with latest version, although I'm not sure if EVENTSOURCE_INSECURE is valid for this version:

version: '3'
services:
  eventstore:
    image: eventstore/eventstore:latest
    environment:
      - EVENTSTORE_INSECURE=true
      - EVENTSTORE_DEV=true
    ports:
      - 2113:2113
      - 1113:1113

And just for someone that got here too, indeed it works with firefox. I tried with chrome and edge (chromium version), none worked.

Same for me with the same (https://github.com/EventStore/EventStore/issues/2547#issuecomment-695853467) configuration:

 1,11,13:32:10.064,INF] ========== ["0.0.0.0:2113"] Sub System '"Projections"' initialized.

[ 1,26,13:32:49.683,ERR] Client certificate validation error: "The certificate provided by the client failed validation with the following error(s): RemoteCertificateChainErrors (PartialChain)"
Was this page helpful?
0 / 5 - 0 ratings