YunoHost-Apps / searx_ynh

Searx package for YunoHost
https://searx.github.io/searx/
GNU General Public License v3.0
20 stars 17 forks source link

Add ynh_check_starting #33

Closed maniackcrudelis closed 6 years ago

maniackcrudelis commented 6 years ago

Problem

Solution

PR Status

Work finished. Package_check, basic tests and upgrade from last version OK.
Could be reviewed and tested.

Validation


Minor decision

JimboJoe commented 6 years ago

Still 504 gateway timeout errors in CI...

maniackcrudelis commented 6 years ago

So... that means that we have to debug that directly on this CI...

Edit: Debug ongoing...

maniackcrudelis commented 6 years ago

Probably find the problem

CRITICAL:searx.webapp:The pyopenssl package has to be installed.

Except that pyopenssl is a dependency of searx, installed by pip. And the log says

Successfully installed [...] pyopenssl [...]

maniackcrudelis commented 6 years ago

Well... It still doesn't work... But, I think that I found the error here

Found existing installation: pyOpenSSL 0.14
Not uninstalling pyOpenSSL at /usr/lib/python2.7/dist-packages, outside environment /opt/yunohost/searx

...Shit, I just saw that it says "Not UNinstalling"... Why this fucking python's still saying that "The pyopenssl package has to be installed" since it's quite obvious that pyopenssl IS ALREADY INSTALLED !!!

That's going to be all for today... Any help would be welcome...

maniackcrudelis commented 6 years ago

Still broken... If you want to try to work on that, I'm working in /home/yunohost.app/ssh_chroot_directories/Official/data/searx/searx_ynh add_ynh_check_starting on ci-apps-dev.yunohost.org.

The error is around the line 97. Next test will be with:

set +u; source $final_path/bin/activate; set -u
pip install -U setuptools
pip install pyopenssl
pip install --upgrade --requirement $final_path/requirements-ynh.txt

pip install pyopenssl is new in this test.

maniackcrudelis commented 6 years ago

Any help on this issue would be welcome. I have no idea why python is shitting here...

maniackcrudelis commented 6 years ago

Last test, https://ci-apps-dev.yunohost.org/jenkins/job/searx_ynh%20add_ynh_check_starting%20(Official)/15/console with

virtualenv --system-site-packages "$final_path"
set +u; source $final_path/bin/activate; set -u
pip install --upgrade setuptools
pip install --upgrade --requirement $final_path/requirements-ynh.txt

And pyopenssl removed from the install script and also from requirements-ynh.txt. Because I discovered that python-openssl is already a dependency of YunoHost.

Build Status

maniackcrudelis commented 6 years ago

Last test with

#virtualenv --system-site-packages "$final_path"
virtualenv "$final_path"
set +u; source $final_path/bin/activate; set -u
pip install --upgrade setuptools
pip install --upgrade --requirement $final_path/requirements-ynh.txt

and

# Have a look to https://github.com/asciimoo/searx/blob/master/requirements.txt for each upgrade of Searx
certifi==2017.11.5
flask==0.12.2
flask-babel==0.11.2
idna==2.5
pygments==2.1.3
python-dateutil==2.6.1
pyyaml==3.12
requests[socks]==2.18.4

# Additionnals requirements
markupsafe>=0.23
ndg-httpsclient>=0.4.2
pyasn1>=0.1.9
pyasn1-modules>=0.0.8
cffi>=1.6

PySocks>=1.6.5
pyOpenSSL>=16.2.0
lxml>=3.7.1
cryptography>=1.7.1
Babel>=2.3.4
Werkzeug>=0.12.1
asn1crypto>=0.22.0
pyparsing>=2.2.0
maniackcrudelis commented 6 years ago

Ok... I eventually removed the https redirection from the nginx conf, in order to be sure that pyopenssl is the problem. It appears that there's still a timeout, even without https, so the issue is elsewhere... But where... ? There's nothing in the nginx log, only a timeout, that I already known. Nothing neither in the UWSGI log...

maniackcrudelis commented 6 years ago

Build Status !!! \o/

Ready to be reviewed !!!

JimboJoe commented 6 years ago

Will be merged in 3 days.