openpreserve / jhove

File validation and characterisation.
http://jhove.openpreservation.org
Other
171 stars 79 forks source link

Can not open .xml file: java.net.ConnectException #879

Closed okaucky closed 1 year ago

okaucky commented 1 year ago

Hey we need help to fix following problem please.

In case, we try to open .xml, java.net.connectException is rised. jhove is used as a plugin for our app to gather some required information about files exactly same setup (our software version + jhove + same input data) works absolutely fine on our and most of our client computers. There is only specific machine which has this issue **but we haven not observed any suspicious difference in hardware and software on this specific pc - all prerequisites are installed, same os etc.

Here is a raw output what we got as a result from jhove. jhove_jnct_s1

Few steps we have already tested: 1) reinstalled java 2) checked admin access for the app that use jhove 3) replaced schema .xsd ref. with local file 4) started jhove.bat from cmd with exactly same start params as the app do (no success yet) *in case we try to mirror steps on another pc, everything works ok and jhove process the file in 0.x seconds with correct result..

Thank you for all the hints!

okaucky commented 1 year ago

Clarified: It looks like they have a permanent redirect to https at http://www.loc.gov/standards/alto/alto-v2.0.xsd (returns http 301 Moved Permanently). That's why it worked before (prev ~xy.07.2023) and now it stopped.

Reason: The problem was in the settings of the customer's site. Only certain specific destinations defined by IP addresses were allowed to access the Internet from the network.

The address 104.16.55.16 is allowed, but only the TCP/80 port

The solution is therefore simple and it was enough to enable the TCP/443 port as well.