Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Group Details Private

translator

Translators

  • RE: java.lang.RuntimeException: Expected at least '1grams', '2grams', and '3grams' sub directories but only got [3grams] in /app/data/ngrams/en

    My mistake. I restarted the app too early.
    After the full download of almost 8 GB EN n-gram dataset, you need to give your Cloudron instance enough time to unpack and move the files to (by default) /app/data/ngram/en.

    In my case, it took more than 15 minutes to meet the requirements.
    The moment you restarted the app too early, the zip file was not unzipped completely. In this case the error occurs and you have to start again from the beginning.

    Search your logs for ===> en ngram dataset has been installed.

    posted in LanguageTool
  • RE: java.lang.RuntimeException: Expected at least '1grams', '2grams', and '3grams' sub directories but only got [3grams] in /app/data/ngrams/en

    @nebulon yesterday I followed the documentation from here https://docs.cloudron.io/apps/languagetool/.
    By the way: Is there a hint if it is important to comment out NGRAM_DATASET_PATH? In my case I only commented out NGRAM_DATASET=("en").

    And yes: it is a permanent error. Every time I restarted the box, the same error occurred. Fun fact: the moment I comment NGRAM_DATASET=("en") again and restart the app, the error still occurs.

    Q: is there an option to "redownload"?

    posted in LanguageTool
  • java.lang.RuntimeException: Expected at least '1grams', '2grams', and '3grams' sub directories but only got [3grams] in /app/data/ngrams/en

    The moment you try to perform a language check after activating the en n-gram data set:

    Jan 27 11:49:49 2023-01-27 10:49:49 +0000 Starting LanguageTool 6.0 (build date: 2022-12-29 12:13:11 +0000, e44dbb0) server on http://localhost:8010...
    Jan 27 11:49:49 2023-01-27 10:49:49 +0000 Server started
    Jan 27 11:49:50 172.18.0.1 - - [27/Jan/2023:10:49:50 +0000] "GET / HTTP/1.1" 200 810 "-" "Mozilla (CloudronHealth)"
    Jan 27 11:50:00 172.18.0.1 - - [27/Jan/2023:10:50:00 +0000] "GET / HTTP/1.1" 200 810 "-" "Mozilla (CloudronHealth)"
    Jan 27 11:50:10 172.18.0.1 - - [27/Jan/2023:10:50:10 +0000] "GET / HTTP/1.1" 200 810 "-" "Mozilla (CloudronHealth)"
    Jan 27 11:50:12 2023-01-27 10:50:12.527 +0000 INFO org.languagetool.server.LanguageToolHttpHandler Handling POST /v2/check
    Jan 27 11:50:12 2023-01-27 10:50:12.527 +0000 INFO org.languagetool.server.LanguageToolHttpHandler Handling POST /v2/check
    Jan 27 11:50:15 2023-01-27 10:50:15.099 +0000 ERROR org.languagetool.server.LanguageToolHttpHandler An error has occurred: 'java.lang.RuntimeException: Expected at least '1grams', '2grams', and '3grams' sub directories but only got [3grams] in /app/data/ngrams/en, detected: en-US', sending HTTP code 500. Access from 0:0:0:0:0:0:0:1, HTTP user agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0, User agent param: webextension-firefox-ng, v: 6.0.1, Referrer: null, language: en-gb, h: 2, r: 2, time: 2589m: TEXTLEVEL_ONLY, l: PICKY, iID: 94148:1674816428889, Stacktrace follows:java.lang.RuntimeException: java.lang.RuntimeException: Expected at least '1grams', '2grams', and '3grams' sub directories but only got [3grams] in /app/data/ngrams/en, detected: en-US
    Jan 27 11:50:15 at org.languagetool.server.TextChecker.checkText(TextChecker.java:507)
    Jan 27 11:50:15 at org.languagetool.server.ApiV2.handleCheckRequest(ApiV2.java:172)
    Jan 27 11:50:15 at org.languagetool.server.ApiV2.handleRequest(ApiV2.java:83)
    Jan 27 11:50:15 at org.languagetool.server.LanguageToolHttpHandler.handle(LanguageToolHttpHandler.java:185)
    Jan 27 11:50:15 at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
    Jan 27 11:50:15 at jdk.httpserver/sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:82)
    Jan 27 11:50:15 at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:80)
    Jan 27 11:50:15 at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:848)
    Jan 27 11:50:15 at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)
    Jan 27 11:50:15 at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:817)
    Jan 27 11:50:15 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    Jan 27 11:50:15 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    Jan 27 11:50:15 at java.base/java.lang.Thread.run(Thread.java:829)
    Jan 27 11:50:15 Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Expected at least '1grams', '2grams', and '3grams' sub directories but only got [3grams] in /app/data/ngrams/en
    Jan 27 11:50:15 at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
    Jan 27 11:50:15 at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
    Jan 27 11:50:15 at org.languagetool.server.TextChecker.checkText(TextChecker.java:489)
    Jan 27 11:50:15 ... 12 more
    Jan 27 11:50:15 Caused by: java.lang.RuntimeException: Expected at least '1grams', '2grams', and '3grams' sub directories but only got [3grams] in /app/data/ngrams/en
    Jan 27 11:50:15 at org.languagetool.languagemodel.LuceneSingleIndexLanguageModel.validateDirectory(LuceneSingleIndexLanguageModel.java:72)
    Jan 27 11:50:15 at org.languagetool.languagemodel.LuceneSingleIndexLanguageModel.doValidateDirectory(LuceneSingleIndexLanguageModel.java:109)
    
    posted in LanguageTool
  • RE: Cloudron not removing expired backups from deleted apps

    @d19dotca Thanks for reporting. This seems like a bug/regression because all app backups are cleaned up per backup policy and the code doesn't depend on installation state.

    Let me test this and get back.

    posted in Support
  • RE: Let's Encrypt Didn't seem to auto-renew

    @nj the logs thing is fixed in 7.3.5. Can you update and check?

    But there is still the underlying problem of certs not renewing sometimes with 7.3.

    posted in Support
  • LanguageTool is now available

    Hi all,
    LanguageTool is now available in the app store.

    LanguageTool is an Open Source proofreading software for English, Spanish, French, German, Portuguese, Polish, Dutch, and more than 20 other languages. It finds many errors that a simple spell checker cannot detect.

    Thanks to @vladimir-d for the packaging work!

    Code: https://git.cloudron.io/cloudron/languagetool-app
    Docs: https://docs.cloudron.io/apps/languagetool/
    App store: https://www.cloudron.io/store/org.languagetool.cloudronapp.html

    Forum section: https://forum.cloudron.io/category/157/languagetool

    posted in Announcements
  • RE: Error: listen EADDRNOTAVAIL: address not available 172.18.0.1:3003

    Thanks for the update! Do you know why it died in the first place?

    posted in Support
  • RE: What happened to FilePizza?

    It's supposed to be still listed, but I can't find it. @nebulon will know.

    posted in FilePizza
  • FYI size of n-gram data sets

    EN is around 8 GB

    posted in LanguageTool
  • RE: Outline - a Notion-like open source app

    @matbrgz don't see why not, we will take a look shortly. Thanks for packging this!

    posted in App Wishlist