microsoft / AzureStorageExplorer

Easily manage the contents of your storage account with Azure Storage Explorer. Upload, download, and manage blobs, files, queues, tables, and Cosmos DB entities. Gain easy access to manage your virtual machine disks. Work with either Azure Resource Manager or classic storage accounts, plus manage and configure cross-origin resource sharing (CORS) rules.
Creative Commons Attribution 4.0 International
377 stars 87 forks source link

Unable to Sign In to Azure Storage Explorer on macOS - "Safari Cannot Find the Server" Error #8289

Open SaraAlthubaiti opened 1 week ago

SaraAlthubaiti commented 1 week ago

Hello everyone,

I'm encountering an issue when trying to sign in to Azure Storage Explorer on my Mac. When I initiate the sign-in process, I'm directed to the sign-in page in my browser (I've tried both Safari and Chrome), and after entering my email and password, I receive an error stating, "Safari cannot find the server."

When I return to Azure Storage Explorer, I see the following error message:

{
  "message": "\"An HttpListenerException occurred while listening on http://localhost:54468/ for the system browser to complete the login. Possible cause and mitigation: the app is unable to listen on the specified URL; run 'netsh http add iplisten 127.0.0.1' from the Admin command prompt.\""
}

Details:

macOS Version: 13.7.1 (22H221) Azure Storage Explorer Version: 1.36.2 Browsers Tried: Safari and Google Chrome Troubleshooting Steps Taken: Verified that my Mac is up to date. Downloaded and installed the latest version of Azure Storage Explorer. Tried using both Safari and Chrome to complete the sign-in.

Any guidance on resolving this for macOS would be greatly appreciated!

Thank you!

JasonYeMSFT commented 1 week ago

@SaraAlthubaiti Have you tried following the suggested step to allow listening to your localhost?

SaraAlthubaiti commented 1 week ago

@JasonYeMSFT The netsh command is a built-in tool in Windows, so I cannot try what's been suggested. I searched about equivalent command for Mac, I found this sudo lsof -i :54468 but still nothing change and I'm getting the same error message.

JasonYeMSFT commented 1 week ago

@SaraAlthubaiti I see. Could you follow the steps to reproduce the issue and collect some verbose logs so hopefully we can see what the exact error is? https://learn.microsoft.com/en-us/troubleshoot/azure/azure-storage/blobs/alerts/storage-explorer-troubleshooting?tabs=Windows#authentication-logs

Are you running any webserver like program on your localhost that is already listening to localhost or 127.0.0.1?