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

Cannot connect to emulator in azure storage explorer when only running table service #2347

Open
smargoli2 opened this issue Jan 23, 2024 · 3 comments
Assignees

Comments

@smargoli2
Copy link

Which service(blob, file, queue, table) does this issue concern?

Table

Which version of the Azurite was used?

Latest

Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)

npm, running with docker

What's the Node.js version?

What problem was encountered?

When I run docker run -p 10002:10002 mcr.microsoft.com/azure-storage/azurite azurite-table --tableHost 0.0.0.0 --tablePort 10002 in the vs code powershell cli, the output I see looks like this:

Azurite Table service is starting on 0.0.0.0:10002
Azurite Table service successfully started on 0.0.0.0:10002

Notice it does not say 'Azurite Table service listening on 0.0.0.0:10002'. When I try to view the emulator in Azure Storage Explorer, it says 'You are attempting to access an emulator storage account without a running emulator. Storage Explorer does not ship with an emulator, you must install your own. It is recommended that you use Azurite. Once you have installed an emulator you can start it and refresh this node.'
image

Steps to reproduce the issue?

Do what I did.
If possible, please provide the debug log using the -d parameter, replacing <pathtodebuglog> with an appropriate path for your OS, or review the instructions for docker containers:

-d "<pathtodebuglog>"

Please be sure to remove any PII or sensitive information before sharing!
The debug log will log raw request headers and bodies, so that we can replay these against Azurite using REST and create tests to validate resolution.

Have you found a mitigation/solution?

Nope. I just run all the services together, but I really only need the table service.

@EmmaZhu
Copy link
Collaborator

EmmaZhu commented Jan 24, 2024

Hi @smargoli2 ,

I can connect to Azurite with Storage Explorer, with following steps:

  1. start Azurite with only table service with command like:
    docker run -p 10002:10002 mcr.microsoft.com/azure-storage/azurite azurite-table --tableHost 0.0.0.0 --tablePort 10002

2.In storage explorer, add connection to Azurite's table service:
image

  1. Clear blobs port and queue port to avoid to connect to blob or queue service which is not started in Azurite:
    image

Can you have a try with the above steps and share results to us?

@smargoli2
Copy link
Author

Okay, I can successfully follow those steps. But how do I map the location to a different folder? I tried this
docker run -p 10002:10002 -v "$PWD/src/support/azurite:/data" mcr.microsoft.com/azure-storage/azurite azurite-table --tableHost 0.0.0.0 --tablePort 10002 and it does not show the data that is in the files in the storage explorer.

@EmmaZhu
Copy link
Collaborator

EmmaZhu commented Jan 25, 2024

@smargoli2 , For this issue, I may need to take some time to investigate.

The location mapping works well when starting all three services, but doesn't work when only starting table service.

Will get back to you with any progress.

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