Running a local gwdatafind-server
I have attempted to setup a local gwdatafind-server
running on a (virtual) centos 7 machine without SSL using the following virtialhost configuration:
<VirtualHost *:80>
ServerName www.test.com
ServerAlias test.com
ErrorLog /var/www/test.com/error.log
CustomLog /var/www/test.com/requests.log combined
ProxyPass "/LDR" "http://127.0.0.1:8080/" retry=0
ProxyPassReverse "/LDR" "http://127.0.0.1:8080/"
<Location "/LDR/">
Require all granted
</Location>
</VirtualHost>
But when I try to ping it using: python -m gwdatafind -p -r test.com
, but I get; the following:
urllib.error.HTTPError: HTTP Error 404: NOT FOUND
and when I try to find the list of observatories (python -m gwdatafind -w -r test.com
), I get the following:
urllib.error.HTTPError: HTTP Error 500: INTERNAL SERVER ERROR
the gwdatafind-server
also prints an error:
[2021-08-26 12:36:50,803] ERROR in app: Exception on /services/data/v1/gwf.json [GET]
Traceback (most recent call last):
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py39-20210512/lib/python3.9/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py39-20210512/lib/python3.9/site-packages/flask/app.py", line 1615, in full_dispatch_request
return self.finalize_request(rv)
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py39-20210512/lib/python3.9/site-packages/flask/app.py", line 1630, in finalize_request
response = self.make_response(rv)
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py39-20210512/lib/python3.9/site-packages/flask/app.py", line 1740, in make_response
rv = self.response_class.force_type(rv, request.environ)
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py39-20210512/lib/python3.9/site-packages/werkzeug/wrappers/base_response.py", line 269, in force_type
response = BaseResponse(*_run_wsgi_app(response, environ))
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py39-20210512/lib/python3.9/site-packages/werkzeug/test.py", line 1096, in run_wsgi_app
app_rv = app(environ, start_response)
TypeError: 'dict' object is not callable
The apache error.log
file is empty and the requests.log
file contains:
127.0.0.1 - - [26/Aug/2021:12:41:07 -0400] "HEAD /LDR/services/data/v1/gwf/H/R/1,2 HTTP/1.1" 404 - "-" "-"
127.0.0.1 - - [26/Aug/2021:12:41:11 -0400] "GET /LDR/services/data/v1/gwf.json HTTP/1.1" 500 290 "-" "-"
I take it I am getting the NOT FOUND
error from the ping because the location /LDR/services/data/v1/gwf/H/R/1,2
doesn't exist? But I am unsure about the INTERNAL SERVER ERROR
.