sunjam
(james.network)
October 30, 2023, 12:43am
1
Continuing the discussion from LibreTranslate Plugin – Free and Open Source Translation API and Multilingual Plugin 🌐 - #122 by aerozol
I’m attempting to use the Multilingual app with Libretranslate and Discourse Translator.
Libretranslate working
Translator enabled
Discourse Translator working via globe icon to translate posts
allow user locale
multilingual enabled
multilingual content languages enabled
multilingual translator content tag sync
multilingual tag translations enforce format
What I see is multilingual content languages topic filtering enabled
hides posts instead of them being visible.
Not sure what else I need to do to get Multilingual plugin to work. I am seeing these errors:
Also reporting to Libretranslate here , but I’m encountering an error and warning when attempting to use Libretranslate with Multilingual and Translator apps.
Job exception: connect_write timeout reached
Backtrace
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/excon-0.104.0/lib/excon/socket.rb:317:in `select_with_timeout'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/excon-0.104.0/lib/excon/socket.rb:163:in `rescue in block in connect'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/excon-0.104.0/lib/excon/socket.rb:144:in `block in connect'
/usr/local/lib/ruby/3.2.0/resolv.rb:111:in `each_address'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/excon-0.104.0/lib/excon/socket.rb:134:in `connect'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/excon-0.104.0/lib/excon/socket.rb:51:in `initialize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/excon-0.104.0/lib/excon/connection.rb:477:in `new'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/excon-0.104.0/lib/excon/connection.rb:477:in `socket'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/excon-0.104.0/lib/excon/connection.rb:121:in `request_call'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/excon-0.104.0/lib/excon/middlewares/mock.rb:57:in `request_call'
DistributedMutex(“detect_translation_15”): held for too long, expected max: 60 secs, took an extra 1 secs
DistributedMutex("detect_translation_15"): held for too long, expected max: 60 secs, took an extra 1 secs
Backtrace
/var/www/discourse/lib/distributed_mutex.rb:103:in `warn'
/var/www/discourse/lib/distributed_mutex.rb:57:in `ensure in block in synchronize'
/var/www/discourse/lib/distributed_mutex.rb:64:in `block in synchronize'
/var/www/discourse/lib/distributed_mutex.rb:49:in `synchronize'
/var/www/discourse/lib/distributed_mutex.rb:49:in `synchronize'
/var/www/discourse/lib/distributed_mutex.rb:34:in `synchronize'
/var/www/discourse/plugins/discourse-translator/plugin.rb:98:in `execute'
/var/www/discourse/app/jobs/base.rb:292:in `block (2 levels) in perform'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rails_multisite-5.0.0/lib/rails_multisite/connection_management.rb:82:in `with_connection'
/var/www/discourse/app/jobs/base.rb:279:in `block in perform'
1 Like
Is your endpoint working properly? Did you test it outside Discourse? For example, if /languages
returns something?
2 Likes
sunjam
(james.network)
October 30, 2023, 2:20am
3
I’m using a hosted endpoint, which works just fine. Hoping to sort out my own arm64 instance in the linked thread so I can use it instead.
But, still not able to use multilingual plugin with the hosted instance that has been working fine for libretranslate.
1 Like
I just installed it on my computer, and it works fine on my dev instance:
Your error suggests that the URL cannot be reached or something is blocking it, resulting in a timeout.
That’s the reason I was asking if you can use your LibTranslate API outside of Discourse. I’m not too sure what your issue is. This sounds like a connection issue with Docker, but I’m not an expert.
2 Likes
sunjam
(james.network)
October 30, 2023, 4:11am
5
Arkshine:
Your error suggests that the URL cannot be reached or something is blocking it, resulting in a timeout.
That’s the reason I was asking if you can use your LibTranslate API outside of Discourse. I’m not too sure what your issue is. This sounds like a connection issue with Docker, but I’m not an expert.
My issues appear to be because my server is arm64. See Translations on M1 crash docker container · Issue #524 · LibreTranslate/LibreTranslate · GitHub
1 Like
sunjam
(james.network)
December 16, 2023, 11:12pm
6
@Arkshine Have you tried deploying the Multilingual app as well?
1 Like
Not recently, but it worked fine when I tested it in October.
1 Like