title: Neo4j: Service Unavailable: Websocket Connection Failure
body: <p>Currently trying to launch the [Community AMI (<a href="https://aws.amazon.com/marketplace/pp/B071P26C9D" rel="nofollow noreferrer">https://aws.amazon.com/marketplace/pp/B071P26C9D</a>) with Neo4j browser v3.2.10 &amp; Neo4j 3.4.9. I am using Google Chrome to access the browser. I'm receiving the following error: </p>
  
  <p><strong>Is acquiring an SSL Certificate currently the only way to get running?</strong></p>
  
  <blockquote>
    <p><em>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 <code>readyState</code> is: 3</em></p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/hcCm0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hcCm0.png" alt="![37%20PM|689x219](upload://f1ge2zafdXndlLsqUDv8mwIt2Zn.png)"></a> </p>
  
  <hr>
  
  <p>Solutions Tried as suggested from <a href="https://community.neo4j.com/t/troubleshooting-connection-issues-to-neo4j/129" rel="nofollow noreferrer">Troubleshooting Connection Issues to Neo4j</a>:</p>
  
  <ol>
  <li><strong>Follow directions for your browser to trust the server's certificate for the bolt port, and then refresh the page.</strong><br>
  <a href="http://ec2-54-xxx-xxx-111.compute-1.amazonaws.com:7687/" rel="nofollow noreferrer">http://ec2-54-xxx-xxx-111.compute-1.amazonaws.com:7687/</a> on Chrome returns:  <code>not a WebSocket handshake request: missing upgrade</code>, and there is not an option to trust this certificate.</li>
  <li><strong>Use Google Chrome</strong> Currently using Google Chrome 
  Does not work</li>
  <li><strong>Set dbms.connector.bolt.tls_level=OPTIONAL  in your neo4j config.</strong> </li>
  <li><strong>Set dbms.connector.bolt.address=0.0.0.0:7687 in your neo4j config</strong> as per <a href="https://neo4j.com/developer/kb/explanation-of-error-websocket-connection-failure/" rel="nofollow noreferrer">dbms.connector.bolt.address=0.0.0.0:7687</a> 
  Both of the above solutions did not correct the issue after changing <code>neo4j.template</code> in <code>/etc/neo4j/</code> as per <a href="https://community.neo4j.com/t/configuring-neo4j-provided-cloud-instances/130/2" rel="nofollow noreferrer">Configuring Neo4j Cloud Instances</a></li>
  <li>Security Groups should be good as per the following:
  <a href="https://i.stack.imgur.com/TWztL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TWztL.png" alt="![22%20PM|690x171](upload://mdHsdf38NvwnbGCOUxTKfyh0vdQ.png)"></a> </li>
  </ol>
  
  <hr>
  
  <p>So people don't think this is a duplicate question, these solutions don't work:
  <a href="https://stackoverflow.com/questions/44406145/websocket-connection-failure-due-to-security-constraints-in-your-web-browser">Web Sockets Connections Failure...</a> Does not work and options aren't avail in v3.2.10</p>
  
  <p><a href="https://stackoverflow.com/questions/44156066/neo4j-3-1-3-graph-database-access-remotely">Neo4j-3-1-3 Graph Database Access Remotely</a></p>
  
  <p><a href="https://stackoverflow.com/questions/45206816/neo4j-n-a-websocket-connection-failure">Neo4J Websocket Connection Failure</a> (TCP/IP Confi)
  All solutions do not work...</p>
  
  <hr>
  
  <p>Curious what the best option is to get going. Thanks</p>