ESGF / esg-publisher

ESGF Publisher
http://esg-publisher.readthedocs.org/
9 stars 22 forks source link

Spurious error message on thredds reinit #41

Closed pchengi closed 7 years ago

pchengi commented 7 years ago

Version of ESGF: 2.4.5 devel A successful data publish ends with a suspicious looking error message like below. It's misleading and potentially confusing.

INFO 2016-12-08 20:33:33,947 Reinitializing THREDDS server Traceback (most recent call last): File "/usr/local/uvcdat/2.2.0/bin/esgpublish", line 4, in import('pkg_resources').run_script('esgcet==3.0.1', 'esgpublish') File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 743, in run_script File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 1498, in run_script File "/usr/local/uvcdat/2.2.0/lib/python2.7/site-packages/esgcet-3.0.1-py2.7.egg/EGG-INFO/scripts/esgpublish", line 579, in main(sys.argv[1:]) File "/usr/local/uvcdat/2.2.0/lib/python2.7/site-packages/esgcet-3.0.1-py2.7.egg/EGG-INFO/scripts/esgpublish", line 573, in main result = publishDatasetList(datasetNames, Session, publish=publish, thredds=thredds, las=las, parentId=parent, service=service, perVariable=perVariable, reinitThredds=threddsReinit, restInterface=restApi, schema=schema) File "/usr/local/uvcdat/2.2.0/lib/python2.7/site-packages/esgcet-3.0.1-py2.7.egg/esgcet/publish/publish.py", line 295, in publishDatasetList result = reinitializeThredds() File "/usr/local/uvcdat/2.2.0/lib/python2.7/site-packages/esgcet-3.0.1-py2.7.egg/esgcet/publish/thredds.py", line 1081, in reinitializeThredds raise ESGPublishError("Error reinitializing the THREDDS Data Server. Result=%s"%reinitResult) esgcet.exceptions.ESGPublishError: Error reinitializing the THREDDS Data Server. Result='<!DOCTYPE html>Apache Tomcat/8.5.8 - Error report

HTTP Status 401 -

type Status report

message

description This request requires HTTP authentication.


Apache Tomcat/8.5.8

'

cofinoa commented 7 years ago

Prasha,

the user been used to reinit the catalog doesn't have the requiered role to do it. http://www.unidata.ucar.edu/software/thredds/current/tds/reference/RemoteManagement.html

Antonio

sashakames commented 7 years ago

We think this is an issue with tomcat 8.5.8 in how the password is encoded (hash algorithm). Correct passwords get rejected in browser tests. Keeping the issue open until fixed in the installer

pchengi commented 7 years ago

Thanks @sashakames and @cofinoa . The tomcat rollback made this issue go away, so closing this issue.