Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conguration problem with Event Hubs Emulator #46

Closed
vfarah-if opened this issue Jan 8, 2025 · 2 comments
Closed

Conguration problem with Event Hubs Emulator #46

vfarah-if opened this issue Jan 8, 2025 · 2 comments

Comments

@vfarah-if
Copy link

vfarah-if commented Jan 8, 2025

Describe the bug
Docker compose does not load event hub configuration file

To Reproduce
Steps to reproduce the behavior:
Create docker-compose-azurite.yaml file with the attached config and build and up docker compose -f docker-compose-azurite.yml build

services:
  azurite:
    container_name: azurite
    image: mcr.microsoft.com/azure-storage/azurite:3.33.0
    ports:
      - '10000:10000'
      - '10001:10001'
      - '10002:10002'
    environment:
      - AZURITE_ACCOUNTS=devstoreaccount1
    volumes:
      - azurite-data:/data
    networks:
      eh-emulator:
        
  eventhub-emulator:
    container_name: eventhub-emulator
    image: mcr.microsoft.com/azure-messaging/eventhubs-emulator:latest
    pull_policy: always
    working_dir: /app
    environment:
      - CONFIG_PATH=/app/config.json 
      - BLOB_SERVER=azurite
      - METADATA_SERVER=azurite      
      - ACCEPT_EULA=Y
      - EMULATOR_CONNECTION_STRING=Endpoint=sb://azurite:10001/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==
    volumes:
      - "./emulator-eh-config.json:/app/config.json"
    ports:
      - '5671:5671' # AMQP over TLS
      - '5672:5672' # AMQP
    command: >
      --log-level Debug
    restart: unless-stopped
    depends_on:
      - azurite
    networks:
      eh-emulator:
        
volumes:
  azurite-data:
    
networks:
  eh-emulator:

Expected behavior
I expect the configuration to be created in the eventhubs emulator configured but it only seems to load a default setup, see screenshot for exact issue

Screenshots

Image

Logs
✔ Container azurite Created 0.0s
✔ Container eventhub-emulator Created 0.0s
Attaching to azurite, eventhub-emulator
azurite | Azurite Blob service is starting at http://0.0.0.0:10000
azurite | Azurite Blob service is successfully listening at http://0.0.0.0:10000
azurite | Azurite Queue service is starting at http://0.0.0.0:10001
azurite | Azurite Queue service is successfully listening at http://0.0.0.0:10001
azurite | Azurite Table service is starting at http://0.0.0.0:10002
azurite | Azurite Table service is successfully listening at http://0.0.0.0:10002
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "PUT /devstoreaccount1/testcontainer?restype=container&timeout=20 HTTP/1.1" 201 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "POST /devstoreaccount1/Tables()?timeout=20 HTTP/1.1" 204 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "GET /devstoreaccount1?comp=list HTTP/1.1" 200 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "DELETE /devstoreaccount1/bst-sb-sea-uks-01?restype=container HTTP/1.1" 202 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "DELETE /devstoreaccount1/emulatorblobcontainer-at-dc979a4fbbc645b39a0acb6cb91f59ce?restype=container HTTP/1.1" 202 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "DELETE /devstoreaccount1/emulatorblobcontainer-at-e43067f4f3a644c1bdcd7aa300c5382a?restype=container HTTP/1.1" 202 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "DELETE /devstoreaccount1/emulatorblobcontainer-dc979a4fbbc645b39a0acb6cb91f59ce?restype=container HTTP/1.1" 202 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "DELETE /devstoreaccount1/emulatorblobcontainer-e43067f4f3a644c1bdcd7aa300c5382a?restype=container HTTP/1.1" 202 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "DELETE /devstoreaccount1/emulatorblobcontainer-ot-dc979a4fbbc645b39a0acb6cb91f59ce?restype=container HTTP/1.1" 202 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "DELETE /devstoreaccount1/emulatorblobcontainer-ot-e43067f4f3a644c1bdcd7aa300c5382a?restype=container HTTP/1.1" 202 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "DELETE /devstoreaccount1/event-hubs-producer-id?restype=container HTTP/1.1" 202 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "DELETE /devstoreaccount1/testcontainer?restype=container HTTP/1.1" 202 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "GET /devstoreaccount1/Tables HTTP/1.1" 200 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "DELETE /devstoreaccount1/Tables('Checkpoint') HTTP/1.1" 204 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "DELETE /devstoreaccount1/Tables('EventHub') HTTP/1.1" 204 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "DELETE /devstoreaccount1/Tables('LoaderLock') HTTP/1.1" 204 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "DELETE /devstoreaccount1/Tables('testtable') HTTP/1.1" 204 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "POST /devstoreaccount1/Tables() HTTP/1.1" 204 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "POST /devstoreaccount1/Tables() HTTP/1.1" 204 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:52 +0000] "POST /devstoreaccount1/Tables() HTTP/1.1" 204 -
eventhub-emulator | info: a.D.aDE[0]
eventhub-emulator | Emulator Service is Launching On Platform:CBL-Mariner/Linux,Arm64
eventhub-emulator | info: a.D.aDE[0]
eventhub-emulator | Instantiating service components
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "PUT /devstoreaccount1/event-hubs-producer-id?restype=container HTTP/1.1" 201 -
eventhub-emulator | info: a.D.aDE[0]
eventhub-emulator | Creating namespace, entities and consumer groups
eventhub-emulator | info: a.D.aDM[0]
eventhub-emulator | Emulator is launching with config : {"LoggingConfig":{"Type":"File"},"NamespaceConfig":[{"Type":"EventHub","Name":"emulatorns1","Entities":[{"Name":"eh1","PartitionCount":2,"ConsumerGroups":[{"Name":"cg1"},{"Name":"$default"}]}]}]}
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "POST /devstoreaccount1/$batch?timeout=18 HTTP/1.1" 202 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "PUT /devstoreaccount1/emulatorblobcontainer-551e960ab57b4835b85c2203508835a4?restype=container HTTP/1.1" 201 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "HEAD /devstoreaccount1/emulatorblobcontainer-551e960ab57b4835b85c2203508835a4/State.ext HTTP/1.1" 404 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "PUT /devstoreaccount1/emulatorblobcontainer-551e960ab57b4835b85c2203508835a4/State.ext?timeout=2 HTTP/1.1" 201 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "PUT /devstoreaccount1/emulatorblobcontainer-ot-551e960ab57b4835b85c2203508835a4?restype=container HTTP/1.1" 201 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "HEAD /devstoreaccount1/emulatorblobcontainer-ot-551e960ab57b4835b85c2203508835a4/State.ext HTTP/1.1" 404 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "PUT /devstoreaccount1/emulatorblobcontainer-ot-551e960ab57b4835b85c2203508835a4/State.ext?timeout=2 HTTP/1.1" 201 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "PUT /devstoreaccount1/emulatorblobcontainer-at-551e960ab57b4835b85c2203508835a4?restype=container HTTP/1.1" 201 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "HEAD /devstoreaccount1/emulatorblobcontainer-at-551e960ab57b4835b85c2203508835a4/State.ext HTTP/1.1" 404 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "PUT /devstoreaccount1/emulatorblobcontainer-at-551e960ab57b4835b85c2203508835a4/State.ext?timeout=2 HTTP/1.1" 201 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "GET /devstoreaccount1/EventHub?$filter=%28%28%28%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%272_EMULATORNS1%3AEVENTHUB%3AEH116383%27%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%273_EMULATORNS1%3AEVENTHUB%3AEH116383%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%271_EMULATORNS1%3AEVENTHUB%3AEH116383%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%270_EMULATORNS1%3AEVENTHUB%3AEH116383%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28%28%28RowKey%20ge%20%271_0_EMULATORNS1%3AEVENTHUB%3AEH116383_%20%27%29%20and%20%28RowKey%20le%20%271_0_EMULATORNS1%3AEVENTHUB%3AEH116383_%27%29%29%20or%20%28%28RowKey%20ge%20%271_0_EMULATORNS1%3AEVENTHUB%3AEH116383_%C2%A0%27%29%20and%20%28RowKey%20le%20%271_0_EMULATORNS1%3AEVENTHUB%3AEH116383_%C3%BF%27%29%29%29%29&timeout=17 HTTP/1.1" 200 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "GET /devstoreaccount1/EventHub?$filter=%28%28%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%272_EMULATORNS1%3AEVENTHUB%3AEH1
16383%7CCG1%27%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%273_EMULATORNS1%3AEVENTHUB%3AEH116383%7CCG1%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%271_EMULATORNS1%3AEVENTHUB%3AEH116383%7CCG1%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%270_EMULATORNS1%3AEVENTHUB%3AEH116383%7CCG1%27%29%29&timeout=17 HTTP/1.1" 200 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "GET /devstoreaccount1/EventHub?$filter=%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%270_EMULATORNS1%3AEVENTHUB%3AEH1
16383%27%29&timeout=17 HTTP/1.1" 200 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "POST /devstoreaccount1/$batch?timeout=17 HTTP/1.1" 202 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "GET /devstoreaccount1/EventHub?$filter=%28%28%28%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%272_EMULATORNS1%3AEVENTHUB%3AEH116383%27%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%273_EMULATORNS1%3AEVENTHUB%3AEH116383%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%271_EMULATORNS1%3AEVENTHUB%3AEH116383%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%270_EMULATORNS1%3AEVENTHUB%3AEH116383%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28%28%28RowKey%20ge%20%271_0_EMULATORNS1%3AEVENTHUB%3AEH116383_%20%27%29%20and%20%28RowKey%20le%20%271_0_EMULATORNS1%3AEVENTHUB%3AEH116383_%27%29%29%20or%20%28%28RowKey%20ge%20%271_0_EMULATORNS1%3AEVENTHUB%3AEH116383_%C2%A0%27%29%20and%20%28RowKey%20le%20%271_0_EMULATORNS1%3AEVENTHUB%3AEH116383_%C3%BF%27%29%29%29%29&timeout=17 HTTP/1.1" 200 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "GET /devstoreaccount1/EventHub?$filter=%28%28%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%272_EMULATORNS1%3AEVENTHUB%3AEH1
16383%7C%24DEFAULT%27%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%273_EMULATORNS1%3AEVENTHUB%3AEH116383%7C%24DEFAULT%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%271_EMULATORNS1%3AEVENTHUB%3AEH116383%7C%24DEFAULT%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%270_EMULATORNS1%3AEVENTHUB%3AEH116383%7C%24DEFAULT%27%29%29&timeout=17 HTTP/1.1" 200 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "GET /devstoreaccount1/EventHub?$filter=%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%270_EMULATORNS1%3AEVENTHUB%3AEH1
16383%27%29&timeout=17 HTTP/1.1" 200 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "POST /devstoreaccount1/$batch?timeout=17 HTTP/1.1" 202 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "POST /devstoreaccount1/$batch?timeout=18 HTTP/1.1" 202 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "PUT /devstoreaccount1/emulatorblobcontainer-58e67b128d694e3a9659eebe34d9c366?restype=container HTTP/1.1" 201 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "HEAD /devstoreaccount1/emulatorblobcontainer-58e67b128d694e3a9659eebe34d9c366/State.ext HTTP/1.1" 404 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "PUT /devstoreaccount1/emulatorblobcontainer-58e67b128d694e3a9659eebe34d9c366/State.ext?timeout=2 HTTP/1.1" 201 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "PUT /devstoreaccount1/emulatorblobcontainer-ot-58e67b128d694e3a9659eebe34d9c366?restype=container HTTP/1.1" 201 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "HEAD /devstoreaccount1/emulatorblobcontainer-ot-58e67b128d694e3a9659eebe34d9c366/State.ext HTTP/1.1" 404 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "PUT /devstoreaccount1/emulatorblobcontainer-ot-58e67b128d694e3a9659eebe34d9c366/State.ext?timeout=2 HTTP/1.1" 201 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "PUT /devstoreaccount1/emulatorblobcontainer-at-58e67b128d694e3a9659eebe34d9c366?restype=container HTTP/1.1" 201 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "HEAD /devstoreaccount1/emulatorblobcontainer-at-58e67b128d694e3a9659eebe34d9c366/State.ext HTTP/1.1" 404 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "PUT /devstoreaccount1/emulatorblobcontainer-at-58e67b128d694e3a9659eebe34d9c366/State.ext?timeout=2 HTTP/1.1" 201 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "GET /devstoreaccount1/EventHub?$filter=%28%28%28%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%272_EMULATORNS1%3AEVENTHUB%3AEH132766%27%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%273_EMULATORNS1%3AEVENTHUB%3AEH132766%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%271_EMULATORNS1%3AEVENTHUB%3AEH132766%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%270_EMULATORNS1%3AEVENTHUB%3AEH132766%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28%28%28RowKey%20ge%20%271_0_EMULATORNS1%3AEVENTHUB%3AEH132766_%20%27%29%20and%20%28RowKey%20le%20%271_0_EMULATORNS1%3AEVENTHUB%3AEH132766_%27%29%29%20or%20%28%28RowKey%20ge%20%271_0_EMULATORNS1%3AEVENTHUB%3AEH132766_%C2%A0%27%29%20and%20%28RowKey%20le%20%271_0_EMULATORNS1%3AEVENTHUB%3AEH132766_%C3%BF%27%29%29%29%29&timeout=17 HTTP/1.1" 200 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "GET /devstoreaccount1/EventHub?$filter=%28%28%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%272_EMULATORNS1%3AEVENTHUB%3AEH1
32766%7CCG1%27%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%273_EMULATORNS1%3AEVENTHUB%3AEH132766%7CCG1%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%271_EMULATORNS1%3AEVENTHUB%3AEH132766%7CCG1%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%270_EMULATORNS1%3AEVENTHUB%3AEH132766%7CCG1%27%29%29&timeout=17 HTTP/1.1" 200 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "GET /devstoreaccount1/EventHub?$filter=%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%270_EMULATORNS1%3AEVENTHUB%3AEH1
32766%27%29&timeout=17 HTTP/1.1" 200 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "POST /devstoreaccount1/$batch?timeout=17 HTTP/1.1" 202 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "GET /devstoreaccount1/EventHub?$filter=%28%28%28%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%272_EMULATORNS1%3AEVENTHUB%3AEH132766%27%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%273_EMULATORNS1%3AEVENTHUB%3AEH132766%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%271_EMULATORNS1%3AEVENTHUB%3AEH132766%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%270_EMULATORNS1%3AEVENTHUB%3AEH132766%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28%28%28RowKey%20ge%20%271_0_EMULATORNS1%3AEVENTHUB%3AEH132766_%20%27%29%20and%20%28RowKey%20le%20%271_0_EMULATORNS1%3AEVENTHUB%3AEH132766_%27%29%29%20or%20%28%28RowKey%20ge%20%271_0_EMULATORNS1%3AEVENTHUB%3AEH132766_%C2%A0%27%29%20and%20%28RowKey%20le%20%271_0_EMULATORNS1%3AEVENTHUB%3AEH132766_%C3%BF%27%29%29%29%29&timeout=17 HTTP/1.1" 200 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "GET /devstoreaccount1/EventHub?$filter=%28%28%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%272_EMULATORNS1%3AEVENTHUB%3AEH1
32766%7C%24DEFAULT%27%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%273_EMULATORNS1%3AEVENTHUB%3AEH132766%7C%24DEFAULT%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%271_EMULATORNS1%3AEVENTHUB%3AEH132766%7C%24DEFAULT%27%29%29%29%20or%20%28%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%270_EMULATORNS1%3AEVENTHUB%3AEH132766%7C%24DEFAULT%27%29%29&timeout=17 HTTP/1.1" 200 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "GET /devstoreaccount1/EventHub?$filter=%28PartitionKey%20eq%20%270%27%29%20and%20%28RowKey%20eq%20%270_EMULATORNS1%3AEVENTHUB%3AEH1
32766%27%29&timeout=17 HTTP/1.1" 200 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:06:53 +0000] "POST /devstoreaccount1/$batch?timeout=17 HTTP/1.1" 202 -
eventhub-emulator | info: a.D.aDE[0]
eventhub-emulator | Emulator Service is Successfully Up! ; Use connection string: "Endpoint=sb://localhost;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;". For more networking-options refer: https://github.com/Azure/azure-event-hubs-emulator-installer?tab=readme-ov-file#networking-options
azurite | 172.19.0.3 - - [08/Jan/2025:10:07:53 +0000] "GET /devstoreaccount1/EventHub?$filter=%28PartitionKey%20eq%20%270%27%29%20and%20%28%28%28RowKey%20gt%20%270%20%27%29%20and%20%28RowKey%20lt%20%270~%27%29%29%20or%20%28%28RowKey%20gt%20%270%C2%A0%27%29%20and%20%28RowKey%20lt%20%270%C3%BF%27%29%29%29&timeout=118 HTTP/1.1" 200 -
azurite | 172.19.0.1 - - [08/Jan/2025:10:30:11 +0000] "GET /devstoreaccount1;QueueEndpoint=http://127.0.0.1:10001/devstoreaccount1;TableEndpoint=http://127.0.0.1:10002/devstoreaccount1 HTTP/1.1" 400 -
azurite | 172.19.0.3 - - [08/Jan/2025:10:37:53 +0000] "GET /devstoreaccount1/EventHub?$filter=%28PartitionKey%20eq%20%270%27%29%20and%20%28%28%28RowKey%20gt%20%270%20%27%29%20and%20%28RowKey%20lt%20%270~%27%29%29%20or%20%28%28RowKey%20gt%20%270%C2%A0%27%29%20and%20%28RowKey%20lt%20%270%C3%BF%27%29%29%29&timeout=118 HTTP/1.1" 200 -
azurite | 172.19.0.3 - - [08/Jan/2025:11:07:53 +0000] "GET /devstoreaccount1/EventHub?$filter=%28PartitionKey%20eq%20%270%27%29%20and%20%28%28%28RowKey%20gt%20%270%20%27%29%20and%20%28RowKey%20lt%20%270~%27%29%29%20or%20%28%28RowKey%20gt%20%270%C2%A0%27%29%20and%20%28RowKey%20lt%20%270%C3%BF%27%29%29%29&timeout=118 HTTP/1.1" 200 -
azurite | 172.19.0.3 - - [08/Jan/2025:11:37:53 +0000] "GET /devstoreaccount1/EventHub?$filter=%28PartitionKey%20eq%20%270%27%29%20and%20%28%28%28RowKey%20gt%20%270%20%27%29%20and%20%28RowKey%20lt%20%270~%27%29%29%20or%20%28%28RowKey%20gt%20%270%C2%A0%27%29%20and%20%28RowKey%20lt%20%270%C3%BF%27%29%29%29&timeout=118 HTTP/1.1" 200 -
azurite | 172.19.0.3 - - [08/Jan/2025:12:07:53 +0000] "GET /devstoreaccount1/EventHub?$filter=%28PartitionKey%20eq%20%270%27%29%20and%20%28%28%28RowKey%20gt%20%270%20%27%29%20and%20%28RowKey%20lt%20%270~%27%29%29%20or%20%28%28RowKey%20gt%20%270%C2%A0%27%29%20and%20%28RowKey%20lt%20%270%C3%BF%27%29%29%29&timeout=118 HTTP/1.1" 200 -
EmulatorContainerLogSample

Desktop:

  • OS: [Mac]

Image Platform-Architecture Used:

  • Linux-arm64
  • Others (Please specify)

Docker Version:

  • Docker Desktop Version (If applicable):
  • Docker Engine Version: Docker Desktop 4.37.1 (178610)

Arguments && Environment variables to start Emulator:

  • ACCEPT_EULA: Y
  • CONFIG_PATH:
  • CONFIG_PATH=/app/config.json
  • BLOB_SERVER=azurite
  • METADATA_SERVER=azurite
  • ACCEPT_EULA=Y
  • EMULATOR_CONNECTION_STRING=Endpoint=sb://azurite:10001/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==

Emulator Launch Method:

  • Direct Docker compose Yes
  • Launcher Script
  • Others (Please specify)

Additional context:
Add any other context about the problem here.

emulator-eh-config.json

@vfarah-if vfarah-if changed the title Congiuraion problem with Event Hubs Emulator Conguration problem with Event Hubs Emulator Jan 8, 2025
@vaibhavatul47
Copy link
Collaborator

CONFIG_PATH tells docker where the config file is located on the host machine. Whereas the path of config-file inside container is fixed.

In your case, if your customized config-file is located at "./emulator-eh-config.json" (i.e. in same directory as docker-compose.yml file), then your volume mount should look like this:

volumes:
      - "./emulator-eh-config.json:/Eventhubs_Emulator/ConfigFiles/Config.json"

@vfarah-if
Copy link
Author

Thank you very much for helping me solve that schoolboy mistake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants