-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install libapache2-mod-wsgi-py3, which can only be installed if libapache2-mod-wsgi is not there #4292
Comments
This issue is currently blocking progress on #4355. We cannot manage package state within The best bet we have to leverage the cron-apt upgrade logic, similar to https://github.com/freedomofpress/securedrop/blob/e3da51c7a0a6e72103fdd4f39af4db8781095716/install_files/securedrop-config/etc/cron-apt/action.d/9-remove. The cron-apt logic is currently written to be agnostic to server roles, however, and the package removal of |
The cron-apt tweaks are sufficient to ensure that |
Proceeded with a test of the two-step upgrade logic, first modifying the cron-apt configs, second pulling in the new py3 dependencies via a rebuilt securedrop-app-code deb. Discovered that the Problems there are two-fold:
If we decide it's worthwhile to depend on the universe channel, we'll need to update the cron-apt config logic to support automatic installation. If we decide to preserve the existing update channels, then we'll need to find another way to unblock Python3 WSGI. Let's discuss as a team which is the preferable option here. Once we have clarity, we can resume functional testing to evaluate db state behavior. |
After digging into mod_wsgi's installation options and talking to @conorsch, it looks like there are at least the following solutions to choose from: 1. System Apache + bundled mod_wsgiReplace the stock Ubuntu Advantages
Disadvantages
2. System Apache, modified to proxy to new
|
Great summary, @rmol! Modest preference for option 1, given the minimal updates required to the apache vhost configs. One clarifying question on this passage:
What if we:
Then we'd have neatly sidestepped the dependency madness, and on the subsequent nightly run—after the servers have been upgraded to the latest version including the changes listed above—then the no-longer-used Does the above solution match your observations of the how the service must be defined when using the pip-installed wsgi? If so, then we can discuss the acceptability of the ~24h window of updates. If we decide we'd like to avoid it altogether, we could be able to pin a specific upstream version of |
I think that flow should work nicely. I'd been (still am, honestly) unclear on conffile handling, but some quick testing suggests that we can modify |
This was resolved via #4622. |
Description
For Python3 we will have to install
libapache2-mod-wsgi-py3
which can only be installed iflibapache2-mod-wsgi
is not there. Means, we can not just autoupgrade to Python3 easily,User Stories
I am SecureDrop admin, and I want to move to the latest Python3 based SecureDrop smoothly without any userinput.
The text was updated successfully, but these errors were encountered: