Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

Apt update + apt upgrade + apt autoremove = bye bye python dependencies

After doing this on any node in version 2.3.1 , apt removes required python modules which ends in unusable node.

Nov 29 04:02:30 CEPH-11 deploy.py[10530]: Traceback (most recent call last):
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: File "/opt/petasan/services/web/deploy.py", line 18, in <module>
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: from flask import Flask, session
Nov 29 04:02:30 CEPH-11 deploy.py[10530]: ImportError: No module named flask
Nov 29 04:02:30 CEPH-11 systemd[1]: petasan-deploy.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 04:02:30 CEPH-11 systemd[1]: petasan-deploy.service: Failed with result 'exit-code'.

Thanks!

apt upgrade / autoremove is not supported in v. 2.3.1. Online upgrades is supported in 2.4.0 which is due soon.  with 2.3.1 you can use apt to install tools but not for upgrades.  in your current case, you should be able to fix it by apt install python-flask