Skip to content
New issue

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

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

Already on GitHub? # to your account

add troubleshooting page and ready for publishing online #11

Merged
merged 1 commit into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "mambaforge-4.10"

sphinx:
builder: html
configuration: docs/conf.py
fail_on_warning: true

conda:
environment: environment.yml
1 change: 1 addition & 0 deletions docs/developer/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ Development Guide

config_for_local_use
service_through_apache
troubleshoot/index
Binary file added docs/developer/media/forward_rule_443.GIF
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions docs/developer/troubleshoot/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _troubleshoot:

============
Troubleshoot
============

These pages contain various scenarions where the app fails.

.. toctree::
:maxdepth: 1

unresponsive
44 changes: 44 additions & 0 deletions docs/developer/troubleshoot/unresponsive.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
.. _unresponsive:

Unresponsive Testing Server
---------------------------

Issue
+++++
Pointing the web browser to http://testfixture02-test.ornl.gov/admin causes the page to **hang**, the adming page
never shows up.

**Diagnostics: faulty TLS (ssl) certs**

login to testfixture02-test.ornl.gov and examine the `nginx` logs

.. code-block:: bash

$> ssh cloud@testfixture02-test.ornl.gov
$> docker logs test-nginx-1
SSL_CTX_use_PrivateKey("/etc/pki/wildcard.sns.gov.key") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch)
nginx: [emerg] SSL_CTX_use_PrivateKey("/etc/pki/wildcard.sns.gov.key") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch)

The logs indicate a problem with the certificate files.

An additional test is to substitute the
`nginx.conf file for the testing environment <https://code.ornl.gov/sns-hfir-scse/deployments/livedata-deploy/-/blob/main/test/nginx.conf?ref_type=heads>`_
with the
`local environment one <https://github.com/neutrons/live_data_server/blob/b903a26232dcbccf9f974d522c6113094a0689f0/config/nginx/envlocal.conf>`_,
which does not contain SSL certificates. Don't forget to change
`the server name <https://github.com/neutrons/live_data_server/blob/b903a26232dcbccf9f974d522c6113094a0689f0/config/nginx/envlocal.conf#L4>`_
from `"localhost"` to `"testfixture02-test.ornl.gov"`.
Redeploy after this. If the http://testfixture02-test.ornl.gov/admin (notice the `http` instead of `https`) app is
served now, then it's a problem of the secure connection.


**Diagnostics: upstream firewall policy**

If the prod or test servers are hosted on ORNL cloud, ensure that unsolicited incoming requests on ports 80 and 443 are allowed in the upstream firewall.
Navigate to https://orc-open.ornl.gov and select the security group rules for the hosted instance.
Check to see that Ingress ports 80(HTTP) and 443(HTTPS) are allowed for 0.0.0.0/0 all IPv4 hosts. The following screenshot depicts the desired configuration.

.. image:: /developer/media/forward_rule_443.GIF
:width: 800px
:align: center
:alt: forward rule in CADES management