mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 01:16:01 +03:00
[GH-ISSUE #3188] Failed to decode some part of the version of modoboa #1792
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#1792
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 @n3witalia on GitHub (Feb 10, 2024).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3188
Impacted versions
Steps to reproduce
The process can be long, feel free to take a coffee and come back later ;)

Starting...
Generating new certificate using letsencrypt
Installing amavis
Installing spamassassin
Installing razor
Installing clamav
Installing fail2ban
Installing modoboa
User modoboa already exists, skipping creation but please make sure the /srv/modoboa directory exists.
Failed to decode some part of the version of modoboa
Failed to decode some part of the version of modoboa
Traceback (most recent call last):
File "./run.py", line 282, in
main(sys.argv[1:])
File "./run.py", line 266, in main
scripts.install(appname, config, args.upgrade, args.restore)
File "/root/modoboa-installer/modoboa_installer/scripts/init.py", line 29, in install
getattr(script, appname.capitalize())(config, upgrade, archive_path).run()
File "/root/modoboa-installer/modoboa_installer/scripts/base.py", line 205, in run
self.install_config_files()
File "/root/modoboa-installer/modoboa_installer/scripts/base.py", line 158, in install_config_files
config_files = self.get_config_files()
File "/root/modoboa-installer/modoboa_installer/scripts/modoboa.py", line 229, in get_config_files
if self.modoboa_2_2_or_greater:
File "/root/modoboa-installer/modoboa_installer/scripts/base.py", line 55, in modoboa_2_2_or_greater
(int(modoboa_version[0]) == 2 and int(modoboa_version[1]) >= 2) or
ValueError: invalid literal for int() with base 10: ' modoboa'
Current behavior
Expected behavior
Video/Screenshot link (optional)
@Gecko64 commented on GitHub (Mar 4, 2024):
I meet the same problem actually and haven't yet found why.
I'm new on Modoboa...
I can say that i've used the interactive mode.
EDIT : I restored my VM with just a fresh Debian installed and it solved the problem.
Maybe it was caused by a DNS propagation not enough fast :-/
@SweetBabyCheesus commented on GitHub (Mar 17, 2024):
I have the same problem, any other fixes than restoring the VM?
@damko commented on GitHub (Mar 29, 2024):
I have the same problem.
I'm currently on version 2.1.2, trying to update to the latest version. I've updated the installer at the latest version of today.
@joyma commented on GitHub (Apr 5, 2024):
It's caused by unexpected output at the start of "pip show modoboa". The script is relying on the version of modoboa to be in the second line of the output. In my case it was a locale that didn't exist causing a warning at the start of pip show. After running "sudo dpkg-reconfigure locales" and adding the missing locale, the issue was resolved.
@tonioo commented on GitHub (Apr 9, 2024):
Fixed by this commit:
github.com/modoboa/modoboa-installer@9eda3b81be.Thanks for the report