What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 12.0.10
What app is this about: LibreTranslate
Describe your issue
Thank you for taking your time having a look at this. I am quite new to Yunohost and had a lot of fun tinkering with it yet.
However, I just ran into an issue with LibreTranslate which I did not manage to solve on my own yet. There is unfortunately no tag for LibreTranslate present here. Thus, I seached for keywords but did not found a solution on the following:
By default, the Yunohost installs Libretranslate with EN <> FR translations available via the web interface. I would love to use German (DE) and Spanish (ES) as well. There is even a forum post explaining this quite well:
Unfortunately, I somehow struggle to perform the commands mentioned there as my Yunohost admin user seems to lack permissions (?).
Example:
sudo -u libretranslate /var/www/libretranslate/venv/bin/argospm search
Sorry, user {my user} is not allowed to execute ‘/var/www/libretranslate/venv/bin/argospm search’ as libretranslate on {my domain}.ynh.fr.
I was successful executing the commands like this though:
sudo /var/www/libretranslate/venv/bin/argospm search
While it seems that this way, I was able to download the additional language models and to adjust the libretranslate.service - file, the changes to not appear in the web UI afterwards. I also restarted the application via Yunohost’s admin panel.
I am not sure whether this is a permission topic on my machine or if I did something wrong configuring LibreTranslate. How can I execute e.g.
sudo -u libretranslate /var/www/libretranslate/venv/bin/argospm search
with my standard Yunohost admin user?
Any tips are greatly appreciated!
Share relevant logs or error messages
sudo -u libretranslate /var/www/libretranslate/venv/bin/argospm search
Sorry, user {my user} is not allowed to execute ‘/var/www/libretranslate/venv/bin/argospm search’ as libretranslate on {my domain}.ynh.fr.