mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 17:36:01 +03:00
[GH-ISSUE #1772] Upgrading to Debian 10 Buster #1396
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1396
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @stathis on GitHub (Aug 29, 2019).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1772
I recently upgraded one of my machines to Debian 10 Buster. Some things like Statistics and DKIM regeneration, record monitoring etc have stopped working.
When trying to invoke such scripts (usually ran by cron) manually, errors like the following occur:
Has anyone experienced such errors, and if so, is there a solution?
Thank you in advance.
Impacted versions
Steps to reproduce
Upgrade from Debian 9.9 to 10.
Current behavior
Most cron scripts fail at runtime. Statistics do not update, DKIM keys do not regenerate.
Expected behavior
Above things stated to actually work.
@Toniob commented on GitHub (Aug 29, 2019):
Hi there,
During the update, your python has been upgraded. And now your virtualenv is probably broken. You have to setup it again, to update the links with the debian packaged python.
@stathis commented on GitHub (Aug 29, 2019):
Thank you for your answer.
So would this in theory, be enough: https://gist.github.com/tevino/1a557a0c200d61d4e4fb
@Toniob commented on GitHub (Aug 29, 2019):
It may works. Just be sure to backup your current directory before.
@stathis commented on GitHub (Aug 29, 2019):
I ran a script like the one I linked, like this inside the virtualenv:
Just one catch, I had to use the python 2.7 binary. Restarted uwsgi afterwards and all is fine.
@xagaba commented on GitHub (Sep 25, 2019):
How/Where do you run this script ? and with wich user ?