ElasticHQ / elasticsearch-HQ

Monitoring and Management Web Application for ElasticSearch instances and clusters.
http://www.elastichq.org
Other
4.96k stars 528 forks source link

3.5.12 won't work on Ubuntu 20.04 #540

Open notfixingit opened 3 years ago

notfixingit commented 3 years ago

General information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): 20.04
ElasticHQ Version:
Elasticsearch Version: 3.5.12
Python version (ignore is using docker image): 3.8.5
Browser Vendor and Version (if applicable):

Issue Description

Would not start due to Sqlalchemy 1.3.0 requirement from Alembic After this, error still remained because testresources is not installed After the above is solved, still had issue connecting with "'Request' object has no attribute 'is_xhr'" error in the output

Solution

Could not upgrade flask to the latest version as another issue had mentioned because it would look for a function that no longer existed, however I did find a solution to all of the above to get this to work on Ubuntu 20.04

Edit requirements.txt

Change Flask==0.12.4 to 0.12.5 Change SQLAlchemy==1.2.0 to 1.3.0 Add testresources under the # Testing section list

Rerun pip install -r requirements.txt

sizeg commented 3 years ago

Thanks, was helpful for me on Debian 10 and python 3.7

cu-18bcs1637 commented 2 years ago

As of March 22, 2022 after following the above instructions it's working for me. @notfixingit Thanks.