Upgrade horror, security issues #375
Replies: 16 comments 34 replies
-
When we do a big upgrade already, is there a reason not to wait another three months and then upgrade straight to 22.04? That's a bigger leap but I assume it would also be longer until the same problem arises again. |
Beta Was this translation helpful? Give feedback.
-
Thanks for kicking of this discussion @frankystone, also excellent rundown of the current situation of the homepage package. My experience says that ubuntu updates are easy and non critical, so I would not have qualms just running two lsb updates back to back. We have nightly backups of the server (which I would ensure work before doing the update). As for the running of the website: It might be easier for us to run the gunicorn process within a docker container on the server. That way, its environment is decoupled from the OS and incremental updates should be easier. I have not worked with django in docker, but I am almost certain that this is the recommended way of doing it these days anyways. For example I found https://docs.docker.com/samples/django/, and https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/ which seems to be close to the setup we would want to run. |
Beta Was this translation helpful? Give feedback.
-
Thanks @SirVer .... I am not familiar with docker, just tested it a bit in the last days with modified examples you gave. The main problem using docker for me is (for now):
So using docker puts currently a lot of questions in my brain... |
Beta Was this translation helpful? Give feedback.
-
Docker is no Magic and solid choice (actually doing this on my Job in some openshift environment every day). |
Beta Was this translation helpful? Give feedback.
-
This discussion has died down a bit, but it becomes a bit more pressing now - 18.04 enters security fixes only mode. We should update soon. @hessenfarmer Any plans on how we should coordinate this update? |
Beta Was this translation helpful? Give feedback.
-
@hessenfarmer I am not a server guy. Working on the server makes me nervous and some times i am close to a heart attack ;) Sorry that i didn't mentioned it earlier: I have no interest in learning docker. And from what i know @janus isn't interested in docker also. We may can do the changes to upgrade the website related stuff if it is independent from docker. From my side possibly in the next winter time. The only thing what is needed is the target python version. |
Beta Was this translation helpful? Give feedback.
-
@stonerl @frankystone Thanks for volunteering. I do not think we need docker per se, I am just very short on time these days. @stonerl it would be great if you could do the server update. I have nightly backups via rsync of the server, so we should be good to go any time. |
Beta Was this translation helpful? Give feedback.
-
Announcement is on the website |
Beta Was this translation helpful? Give feedback.
-
So, this seems done now. I did the following things:
I did not test the extension server, since I have no knowledge how to. Overall, the website seems to be running stable again, however this was quite a few changes in a short amount of time, so I expect that we will have more problems going forward. Please keep your eyes peeled and inform me about any bugs you encounter. |
Beta Was this translation helpful? Give feedback.
-
many thanks for doing this hard work |
Beta Was this translation helpful? Give feedback.
-
Ooops, I don't know whether this is related but I can't login to the Metaserver anymore. (I changed my password to test this) |
Beta Was this translation helpful? Give feedback.
-
The addon-server has to be restarted. @Noordfrees ? |
Beta Was this translation helpful? Give feedback.
-
The search functionality does not work correct. I guess the indexes have to be reinitialized. I would be glad if someone else can do this? Probably this can be fixed this way:
this will take round about 10 to 15 Minutes (if i remember correctly) Reference: https://django-haystack.readthedocs.io/en/master/management_commands.html#rebuild-index |
Beta Was this translation helpful? Give feedback.
-
Since there is a Does the website now runs in a docker container? |
Beta Was this translation helpful? Give feedback.
-
Another regression: Replying to news comments seems to be broken. In this thread I tried to post my comment as a reply to the first comment but the Reply button doesn't do anything. |
Beta Was this translation helpful? Give feedback.
-
Since we have several security issues for django and third party apps, this is
about upgrading...
Current status of main software:
Assuming one wants to upgrade to Django 3.2:
Although Django 3.2 supports python 3.6 some third party apps needs a higher
python or django version. Here's a list of used apps/programs in the virtualenvironment
and which versions they need if upgrading (?=haven't found info about):
There are some more apps which will be installed as dependencies. Omitting them.
Most problematic seems to be django-messages which was last updated on October 2019. Maybe one can find a replacement on the django package index.
django-nocaptcha-recaptcha says it can be exchanged with django-recaptcha
Conclusion
The first step onto upgrading the security related apps/programs is creating a new virtualenvironment made with a higher python version.
Sticking on the server OS Ubuntu 18.04 means one can't create a new virtualenvironment because Ubuntu 18.04 does not provide a package for a higher python version. A possible solution is to compile an other python version on the server and create the new virtualenvironment with this new python version.
Upgrading the server OS to Ubuntu 20.04 one can create a new virtualenvironment with python version 3.8 which is the lowest version for numpy.
Any thoughts about this?
PS: Writing this doesn't mean i can do the upgrade
Beta Was this translation helpful? Give feedback.
All reactions