OPENDAP / hyrax-docker

GNU Lesser General Public License v3.0
22 stars 12 forks source link

SSL_ERROR_RX_RECORD_TOO_LONG error / blank webpage #6

Closed telegraphic closed 4 years ago

telegraphic commented 6 years ago

Hi, thanks for providing this image. I am however running into a few issues getting it up and running. The server appears to run, but when browing to http://localhost:8080 I get a blank page, and if I browse to https://localhost:8080 I receive a SSL_ERROR_RX_RECORD_TOO_LONG error.

I am following the instructions:

git clone https://github.com/opendap/hyrax-docker
cd hyrax-docker/hyrax-1.14.0
docker build -t hyrax_image hyrax
docker run -h hyrax -p 8080:8080 --name=hyrax_container hyrax_image

Hyrax seems to start:

(dcpy) dancpr@blh0:~/docker/hyrax-docker/hyrax-1.14.0$ docker run -h hyrax -p 8080:8080 --name=hyrax_container hyrax_image
############################## HYRAX ##################################
Greetings, I am root.
SERVER_HELP_EMAIL is not_set
FOLLOW_SYMLINKS is not_set
Assigning default NCWMS_BASE: https://localhost:8080
Starting the BES
OK: Successfully started the BES
PID: 20 UID: 0
The BES is UP! pid: 20
Tomcat is UP! pid: 38
Hyrax Has Arrived...

But when browsing to the page I get the ssl error.

telegraphic commented 6 years ago

Likely related to this comment:

https://www.drupal.org/project/cartaro/issues/2993396

Joel MMCC

In further research, this apparently turns out to be because of the self-signed SSL/TLS certificate in the Docker Demo Container’s web server. Modern web browsers do not support the older version of TLS used, and have deprecated, disabled, and completely removed all ways to override this restriction.

astrojuanlu commented 5 years ago

Confirmed. Is there any workaround?

astrojuanlu commented 5 years ago

Specifying -n http://localhost:8080 in the docker run command still didn't do the trick. The server returns 404:

[root@hyrax /]# tail -f /var/log/tomcat/localhost_access_log.*              
172.17.0.1 - - [04/May/2019:10:46:25 +0000] "GET / HTTP/1.1" 404 -
172.17.0.1 - - [04/May/2019:10:46:30 +0000] "GET / HTTP/1.1" 404 -
172.17.0.1 - - [04/May/2019:10:46:44 +0000] "GET /index.html HTTP/1.1" 404 -
172.17.0.1 - - [04/May/2019:10:46:44 +0000] "GET /favicon.ico HTTP/1.1" 404 -
172.17.0.1 - - [04/May/2019:10:46:52 +0000] "GET /index2.html HTTP/1.1" 404 -
astrojuanlu commented 5 years ago

I amend myself: this URL worked http://localhost:8080/opendap/

ndp-opendap commented 4 years ago

It's the URL as @astrojuanlu mentioned.