yunohost-apps / weblate_ynh Goto Github PK
View Code? Open in Web Editor NEWWeblate package for YunoHost
Home Page: https://weblate.org/
License: GNU Affero General Public License v3.0
Weblate package for YunoHost
Home Page: https://weblate.org/
License: GNU Affero General Public License v3.0
Weblate no more install on buster.
https://ci-apps.yunohost.org/ci/logs/weblate_amd64_stable_complete.log or https://ci-apps.yunohost.org/ci/job/8554
# include "xxhash.c" /* include xxhash function bodies as
static, for inlining */
Seems that the issue comes from borgbackup, that requires libxxhash >= 0.8.1
https://borgbackup.readthedocs.io/en/stable/installation.html#pyinstaller-binary
Installation goes fine when building xxhash from source: https://github.com/Cyan4973/xxHash
so two options:
what we do ?
Hello,
I just installed a fresh WebLate on my YunoHost, without any problem.
I've read that the LDAP integration does not exists and that's fine for me.
So, I tried to create an account, but I never received the mail.
Then, I tried to contact tho administrator (via weblate), and there is a server error whenn I send the message.
3rd thing I tried : log in with my YunoHost login/pass : error
But when I tried to create an account with the user I set to bi the admin, I have a message that it already exists (but with which password ?).
Some time after, I received a few mails from weblate, but not the account creation or the message sent, they were mails about a server error.
There was no error log on the server (maybe somewhere else than /var/log/weblate/ ?) so there is the content of one of the mails : https://paste.yunohost.org/ejewuketam.http
(each mail came in pair, one fulltext, and one in HTML)
They seems to contain similar content so I copied the fulltext one.
Critera: The application manages LDAP and/or HTTP Auth
I will not connect Weblate to YunoHost's LDAP, since it will require to deactivate email authentication:
https://docs.weblate.org/en/latest/admin/auth.html?highlight=LDAP#ldap-authentication
This also isn't a good idea as it is a translation platform, creating an LDAP account to every contributor would be a lot of work, and won't match with "What YunoHost is not?": https://yunohost.org/#/whatsyunohost_en
Not sure what's happening here but maybe that means more things for you :
https://ci-buster.nohost.me/ci/job/275
Info: [############+.......] > Create weblate configuration file... [00h02m,48s]
[1241.1] cp: cannot create regular file '/var/www/weblate/venv/lib/python3.5/site-packages/weblate/settings.py': No such file or directory
Hi,
There's a problem with new and upgrade installs related with web page display.
As a developer using YunoHost to self-host my software forge (currently ynh:gitlab, considering switching to ynh:forgejo), I want to configure Weblate to connect to my forge.
Currently the Weblate installer appears to require me to select either github.com or gitlab.com, but I am using yunohost in order to get away from those. It makes me feel this is not for me.
Now I understand from a comment in #60 that it's possible to put in garbage values to get past this and then do a manual configuration.
I would like to enter the config details of my own forge in the weblate setup. The easier the better, but it does not have to be completely done in the GUI. The most important thing in my opinion is to make it clear that the two options currently offered are optional helpers and make it clear that that many other options are possible, even if they require manual config file editing.
Some possible solutions:
Notes: the Weblate documentation is pretty solid and understandable. Displaying a link directly to this section would also be helpful.
After failing the most recent update (see issue #84 ), I tried to restore the pre-upgrade backup of my Weblate instance, which failed, for apparently two reasons:
ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
Returned:
ERROR: must be owner of extension pg_trgm
Which is due to not giving proper postgresql rights to user 'weblate' used in the command.
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/weblate.log" --line_match="spawned uWSGI"
Returned:
uwsgi[3721077]: open("/etc/uwsgi/apps-available/weblate.ini"): Permission denied [core/io.c line 525]
Which is due to not properly setting access rights to the file.
Restoring from either the web admin interface or through the 'yunohost backup restore' command through SSH will yield the same problem.
App gets back up and running =) .
Relevant log lines shared at the top.
I succeeded in restoring my backup archive by untaring, editing the restore script so that:
ynh_psql_execute_as_root --sql="alter role weblate superuser;" --database=$db_name
ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
ynh_psql_execute_as_root --sql="alter role weblate nosuperuser;" --database=$db_name
chmod a+r /etc/uwsgi/apps-available/weblate.ini
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/weblate.log" --line_match="spawned uWSGI"
I could make a pull request with these changes if that can help ;)
Hi,
Problem with ARCH :
+ wget --quiet https://github.com/github/hub/releases/download/v2.3.0-pre10/hub-linux-i386-2.3.0-pre10.tgz
The correct URL is without "i" before 386 : https://github.com/github/hub/releases/download/v2.3.0-pre10/hub-linux-386-2.3.0-pre10.tgz
Best regards,
Hey, i cannot install weblate on my yunohost.
I tried with GUI interface and the CLI too.
Am I the only one? thanks ;-)
This is the journal:
https://paste.yunohost.org/raw/ataruconew
When I upgrade to Debian Buster I got error 500 from nginx, it's probably broken.
Hello,
Would it be possible to add logrotate to handle weblate logs? On saperlipopette they end up taking 7.7 Gb of place :x
Apparently you simply need to use the "ynh_use_logrotate" helper as shown here https://yunohost.org/#/packaging_apps_helpers_en
Kind regards,
could you append a thing like:
try:
import * from .local_settings
except ImportError:
pass
at the end of the settings.py? it will allow user to override only the values they want to change in a local_settings.py files next to the settings.py file.
Hello,
Thank you for this Weblate package for Yunohost, it really is one of the easiest ways available to get it running quickly. So far, it works like a charm !
Weblate notified me of the latest version available today when I opened it, and I thought it would be a good idea to open an issue here to keep track of the update of the Yunohost package ;-).
I was also wondering if there was a patreon/whatever set up to encourage the maintenance efforts of this app that I find particularly useful.
Wish you a very nice day !
Encountered an internal server error 500 whenever trying to go a translation page for any language on my project. Same error on performance dashboard. Checked logs and found the error described in this mainstream issue : WeblateOrg/weblate#7841.
The fix to this issue has been published in the 4.14 version of Weblate - I applied it manually on my server for the moment and can confirm it works. Could you please update this packaged version for Yunohost ?
hello,
on https://yunohost/yunohost/admin/#/services/weblate.service
buttons doesn't work.
also, log is empty.
Install script is unable to install
Error produced in: sudo: unable to execute /var/www/weblate/venv/bin/pip: Permission denied
Hetzner VPS server
Clean install of Debian 11 and Yunohost 11.1.15
sudo yunohost app install weblate
enter info
error happens
[removed for privacy]
Apparently, user connection (LDAP integration) is not working. I can not login with the existing user credentials. Do I need to perform additional steps?
Using YunoHost 2.7.10 (stable) on Rasperry PI.
Running on Raspberry Pi.
Seems like installation is failing at weblate migrate --noinput
.
Traceback (please read from bottom to top):
ImportError: No module named phply.phpparse
from phply.phpparse import make_parser
File "/var/www/weblate/venv/local/lib/python2.7/site-packages/translate/storage/php.py", line 63, in
from translate.storage import php, po
File "/var/www/weblate/venv/local/lib/python2.7/site-packages/translate/convert/po2php.py", line 31, in
from translate.convert import po2php
File "/var/www/weblate/venv/local/lib/python2.7/site-packages/weblate/trans/formats.py", line 37, in
from weblate.trans.formats import FILE_FORMAT_CHOICES, FILE_FORMATS, ParseError
File "/var/www/weblate/venv/local/lib/python2.7/site-packages/weblate/trans/models/subproject.py", line 42, in
from weblate.trans.models.subproject import SubProject
File "/var/www/weblate/venv/local/lib/python2.7/site-packages/weblate/trans/models/__init__.py", line 36, in
__import__(name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
self.models_module = import_module(models_module_name)
File "/var/www/weblate/venv/local/lib/python2.7/site-packages/django/apps/config.py", line 202, in import_models
app_config.import_models()
File "/var/www/weblate/venv/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
apps.populate(settings.INSTALLED_APPS)
File "/var/www/weblate/venv/local/lib/python2.7/site-packages/django/__init__.py", line 27, in setup
django.setup()
File "/var/www/weblate/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute
utility.execute()
File "/var/www/weblate/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
execute_from_command_line(argv)
File "/var/www/weblate/venv/local/lib/python2.7/site-packages/weblate/runner.py", line 33, in main
load_entry_point('Weblate==2.17.1', 'console_scripts', 'weblate')()
File "/var/www/weblate/venv/bin/weblate", line 9, in
Traceback (most recent call last):
+ weblate migrate --noinput
This breaks the static files. To fix it I had to change:
STATIC_URL = '{0}/static/'.format(URL_PREFIX)
To
STATIC_URL = '/static/'
And in the nginx file, all the location //static
had to be replaced by location /static
This is a pure curiosity question: I plan to install this app on my yunohost instance, but I’m stuck at setup, due to the github token requirement. However, as all my git repository are stored elsewhere, I don’t plan to use github integration, thus this requirement sounds superfluous to me. As you can see, I do have a github account, thus I could create such token, but I’m just curious about the necessity of it.
Hellow !
Apparently fails to install on YunoHost 3.0 according to the CI : https://ci-stretch.nohost.me/jenkins/job/weblate%20(Community)/lastBuild/consoleFull
This error :
**Warning: yunohost.hook <lambda> - [926.1] sed: can't read /etc/postgresql/9.4/main/pg_hba.conf: No such file or directory**
indicates that there's a hard-coded reference to postgresql 9.4 somewhere, but Stretch runs 9.6 😜
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.