# Neo4j Enterprise deploy issue (ServiceUnavailable: WebSocket connection failure)

**URL:** <https://community.neo4j.com/t/neo4j-enterprise-deploy-issue-serviceunavailable-websocket-connection-failure/58707>\
**Category:** Neo4j Graph Platform\
**Tags:** migrated\
**Created:** [December 10, 2022, 10:14am UTC](https://community.neo4j.com/t/neo4j-enterprise-deploy-issue-serviceunavailable-websocket-connection-failure/58707 "2022-12-10T10:14:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexander](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@alexander](https://community.neo4j.com/u/alexander)\
**Post date:** [December 10, 2022, 10:14am UTC](https://community.neo4j.com/t/neo4j-enterprise-deploy-issue-serviceunavailable-websocket-connection-failure/58707/1 "2022-12-10T10:14:09Z")

</div>

I have an issue with accessing my Neo4j instance after deployment on Azure after following this guide: [https://neo4j.com/docs/operations-manual/current/cloud-deployments/neo4j-azure/single-instance-azure/](https://neo4j.com/docs/operations-manual/current/cloud-deployments/neo4j-azure/single-instance-azure/)

Summary error message when attempting to sign in:

```auto
ServiceUnavailable: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers development console to determine the root cause of the failure. Common reasons include the database being unavailable, using the wrong connection URL or temporary network problems. If you have enabled encryption, ensure your browser is configured to trust the certificate Neo4j is configured to use. WebSocket `readyState` is: 3

```

**The full steps I have used to reach this error:**

**Step#1: Search for Neo4j Enterprise Edition on Azure Marketplace**

 ![neo4j-debug-01.png](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/8/9/89a4d56aa1b7a6ffb57969de98b86659828a8e50.png "neo4j-debug-01.png")

**Step#2: Configure the basic VM settings**

 ![neo4j-debug-02.png](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/c/2/c203ad80887b3d57da1c85b66c8ab428a774d53b.png "neo4j-debug-02.png")

**Step#3: Configure the Neo4j settings**

 ![neo4j-debug-03.png](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/c/5/c5ac15c176436ff631ab7b1f9f0a26bf648c3017.png "neo4j-debug-03.png")

**Step#4: Overview of the configuration, validation passed, and finally create the instnace**

 ![neo4j-debug-04.png](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/b/7/b71233c8e0d14519f6084a76e8ed82a2da26e719.png "neo4j-debug-04.png")

**Step#5-6: Deployment successful, I into the "nodes" resource to find the IP**

 ![neo4j-debug-05.png](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/8/b/8b87a8821c107b07d79fbcf77453a0d3f2bb3750.png "neo4j-debug-05.png")

 ![neo4j-debug-06.png](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/3/c/3c4eac72b85094c9b969f273b4f372ebbcfc8935.png "neo4j-debug-06.png")

**Step#7: Bypass the SSL security issue (as written in the documentation)**

Navigate to `https://[MY_Azure_IP]:7473` and log in with the username `neo4j` and password `neo4j`. You will be prompted to change the password immediately.

Because you do not have a hostname or a valid SSL certificate configured by default, your browser will warn you that the certificate is not trusted. You can configure the certificate later.

Source: [Neo4j standalone instance (VM-based) - Access your new instance](https://neo4j.com/docs/operations-manual/current/cloud-deployments/neo4j-azure/single-instance-azure/#_access_your_new_instance)

 ![neo4j-debug-07.png](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/e/c/ecc8a22532971d8635f87b57c4fccc12fd00f97b.png "neo4j-debug-07.png")

**Step#8: Use the default login settings "username: neo4j password: neo4j"**

 ![neo4j-debug-08.png](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/a/8/a808fe782f3b2e5b6af69cf0f999b2aa60d4d65a.png "neo4j-debug-08.png")

**The full response error message from the image above:**

```auto
ServiceUnavailable: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers development console to determine the root cause of the failure. Common reasons include the database being unavailable, using the wrong connection URL or temporary network problems. If you have enabled encryption, ensure your browser is configured to trust the certificate Neo4j is configured to use. WebSocket `readyState` is: 3

```

I also attempted to manually SSH into the virtual machine and login directly with the default credentials. However, when I attempt to run "/bin/cypher-shell -u neo4j -p neo4j". I get the response "The Client Is Unauthorised Due To Authentication Failure" which would indicate that the disk image by someone responsible at Neo4j must have made some mistake when creating the new image. No tutorial exists that matches the new Azure UI. This video ([https://www.youtube.com/watch?v=ySTbWaVhVpA](https://www.youtube.com/watch?v=ySTbWaVhVpA)) from 1 year ago does not reflect how Neo4j is deployed today on Azure (Previously to load a VM image, now it is through a deploy script).

I would like to ask any viewer working on Neo4j to verify that someone can actually use the Image file from Azure to create new Neo4j instances, because I have read all old manuals and articles but none matches the current system. I have even attempted to edit files myself but due to the nature of the deployment have no authorization to edit any config files when I SSH in.

---

<div class="post-metadata">

**Author:** ![reneta\_popova](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/reneta_popova/32/12388_2.png) [@reneta\_popova](https://community.neo4j.com/u/reneta_popova)\
**Post date:** [December 22, 2022, 7:00pm UTC](https://community.neo4j.com/t/neo4j-enterprise-deploy-issue-serviceunavailable-websocket-connection-failure/58707/2 "2022-12-22T19:00:17Z")

</div>

Hey Alexander, you should use the Admin Password you have created when configuring your instance and not the default _neo4j_.

---

<div class="post-metadata">

**Author:** ![anthapu](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/anthapu/32/4113_2.png) [@anthapu](https://community.neo4j.com/u/anthapu)\
**Post date:** [December 25, 2022, 2:46pm UTC](https://community.neo4j.com/t/neo4j-enterprise-deploy-issue-serviceunavailable-websocket-connection-failure/58707/3 "2022-12-25T14:46:14Z")

</div>

neo4j+s and bolt+s are failing because the certificate validation. They are strict with certificate validation. Can you try bolt+ssc or neo4h+ssc protocol and try logging in?

---

<div class="post-metadata">

**Author:** ![reneta\_popova](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/reneta_popova/32/12388_2.png) [@reneta\_popova](https://community.neo4j.com/u/reneta_popova)\
**Post date:** [December 27, 2022, 1:36pm UTC](https://community.neo4j.com/t/neo4j-enterprise-deploy-issue-serviceunavailable-websocket-connection-failure/58707/4 "2022-12-27T13:36:06Z")

</div>

The Neo4j template on Azure Marketplace has been updated recently, as well as the docs - [https://neo4j.com/docs/operations-manual/current/cloud-deployments/neo4j-azure/](https://neo4j.com/docs/operations-manual/current/cloud-deployments/neo4j-azure/). So please, try again to deploy Neo4j and log in using the Admin Password you specify when configuring your instance.
