Helsinki-NLP / OPUS-CAT

OPUS-CAT is a collection of software which make it possible to OPUS-MT neural machine translation models in professional translation. OPUS-CAT includes a local offline MT engine and a collection of CAT tool plugins.
MIT License
71 stars 11 forks source link

Connection issue with OPUS-CAT MT Engine in SDL 2024 #104

Closed pagime closed 2 months ago

pagime commented 2 months ago

Hello,

I wanted to test SDL 2024 with OPUS and I can't connect to the remote server where OPUS is installed (I have several models trained with another version of OPUS and I wanted to see if I could use them with the new version of the plugin) but I get the error message: No connection to OPUS-CAT MT Engine at XXX. Does the new SDL 2024 plugin only work with certain versions of OPUS or do I have to go through the settings to turn on certain functions that would allow me to connect to my remote server? With the OPUS-CAT MT Engine v1.2.0 version and the plugins for SDL 2021 and 2022 there's no problem, I can set up a connection without any problem.

Thanks in advance and thanks for all your work so far :).

image

TommiNieminen commented 2 months ago

Hi,

There may be some changes to the way remote use works with the new plugin, since I updated the RestSharp library version. I tested the 2024 plugin, and I could get a connection from the plugin to an MT engine running on a different computer on my local network (I tested this with v1.2.0.0, v1.2.4.0 and the new 1.3.1, they all work). The reasons why it might not work for you:

  1. The AllowRemoteUse setting is set to False in OpusCatMTEngine.exe.config file (it is False by default, since usually the engine is used locally). The setting is not exposed in the user interface, so you need to modify it in a text editor.
  2. Firewall needs to allow communication with OpusCatMTEngine.exe, so you need to set up an exception for it.
  3. You need to reserve a port for OpusCatMtEngine for remote connections. You can either run the engine as an administrator (not really recommended), or to make an explicit reservation with the following command: netsh http add urlacl url=http://+:8500/ user=DOMAIN\user (replace DOMAIN\user with your domain and username)
pagime commented 2 months ago

Hi, there, I've tried version 1.3.1 and it works perfectly! Thanks a lot!