CIRCL / AIL-framework

AIL framework - Analysis Information Leak framework. Project moved to https://github.com/ail-project
https://github.com/ail-project/ail-framework
GNU Affero General Public License v3.0
1.29k stars 283 forks source link

502 error after updating to 3.4 #541

Closed ttuuxxeerr closed 5 months ago

ttuuxxeerr commented 3 years ago

Hi,

I updated our AIL instance to v3.4 (9d2962cd13b64909002218e29c7444a0c17602c8) with the command ./LAUNCH.sh -u .

After stopping AIL and starting again, I am not able to reach the web interface having a 502 error. I don't see any error in the logs or in the starting script (./LAUNCH.sh -l).

Do you have any advise what to check now?

lesleyxyz commented 3 years ago

Is AIL behind a reverse proxy? Are you sure that it is setup correctly? Can you check the following command: screen -r Flask_AIL

ttuuxxeerr commented 3 years ago

AIL was working fine with version 3.3. I updated to the latest version 3.5 and I still have the same issues. I run the command you mentioned and this is the result, see attached ail 3 5

lesleyxyz commented 3 years ago

What python version are you using? AIL Requires 3.6+, I'm using 3.7. (source) Pretty sure you're using <3.6 because the "f" format syntax like on that line was added in 3.6 (source)

ttuuxxeerr commented 3 years ago

Unfortunately the same error after updating to 3.7 . Anything else I should check? Capture

Terrtia commented 3 years ago

Hi @lesleyxyz !

The virtualenv is still using the old python version (you can see the current version inail-framework/AILENV/lib)

You need to re-install the virtualenv:

cd ail-framework
# Stop AIL
./bin/LAUNCH.sh -k
# Delete old virtualenv
rm -r AILENV
# Install virtualenv
./install_virtualenv.sh

Let me know if this solve your issue.

ttuuxxeerr commented 3 years ago

the install_virtualenv gives the following error:

Capture

Terrtia commented 3 years ago

It seem like you also need to update virtualenv:

sudo pip install -U virtualenv

Could you update the vitualenv package and re-install AIL virtualenv ? (you need to delete the old one)