CentreForDigitalHumanities / tscan

T-scan: an analysis tool for dutch texts to assess the complexity of the text, based on original work by Rogier Kraf
GNU Affero General Public License v3.0
18 stars 6 forks source link

failed to connect to frog #17

Open WillSkywalker opened 3 years ago

WillSkywalker commented 3 years ago
failed to open Frog connection: localhost:7001
Reason: invalid socket : ClientSocket: Connection on localhost:5 failed (Connection refused)

I get this error repeatedly with all the dependencies running on correct ports. Why would the program attempt to connect to port 5?

kosloot commented 3 years ago

Well, I am not quiet sure who maintains TScan at the moment, but this message is generated by the SocketBasics module in ticcutils. And I know a few details of that module: The number 5 is NOT the port number, but the Socket number of connection opened to port 7001 This means that the initial steps steps were already successful:

But then an attempt to connect() to that socket fails.

It is quite difficult to determine what goes wrong.

As a first check you could do is trying to use telnet to connect directly to Frog: so use the command: telnet localhost 7001

This should trigger a response from Frog like this:

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

If Frog isn't running you will get:

Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

That would at least give a hint about Frog working OK.

Note: In a few odd occasions I have seen that you must use localhost:localhost 7001

Next thing to do is checking the FrogServer logfile. probably it is named /tmp/frog-tscan.log

That too should hint on Frog really working ok.

Good luck