[GH-ISSUE #3188] Failed to decode some part of the version of modoboa #1792

Closed
opened 2026-02-27 11:19:10 +03:00 by kerem · 5 comments
Owner

Originally created by @n3witalia on GitHub (Feb 10, 2024).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3188

Impacted versions

  • OS Type: Debian/Ubuntu
  • OS Version: Number or Name
  • Database Type: PostgreSQL / MySQL
  • Database version: postegres
  • Modoboa: last version
  • installer used: Yes
  • Webserver: Nginx

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'
Screenshot 2024-02-10 185743

Current behavior

Expected behavior

Video/Screenshot link (optional)

Originally created by @n3witalia on GitHub (Feb 10, 2024). Original GitHub issue: https://github.com/modoboa/modoboa/issues/3188 # Impacted versions * OS Type: Debian/Ubuntu * OS Version: Number or Name * Database Type: PostgreSQL / MySQL * Database version: postegres * Modoboa: last version * installer used: Yes * Webserver: Nginx # 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 <module> 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' ![Screenshot 2024-02-10 185743](https://github.com/modoboa/modoboa/assets/574432/956fbc53-16b4-44b8-adf1-e049e94a8dc2) # Current behavior <!-- Explain the behavior you're seeing that you think is a bug, and explain how you think things should behave instead. --> # Expected behavior # Video/Screenshot link (optional)
kerem closed this issue 2026-02-27 11:19:10 +03:00
Author
Owner

@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 :-/

<!-- gh-comment-id:1977098864 --> @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 :-/
Author
Owner

@SweetBabyCheesus commented on GitHub (Mar 17, 2024):

I have the same problem, any other fixes than restoring the VM?

<!-- gh-comment-id:2002397108 --> @SweetBabyCheesus commented on GitHub (Mar 17, 2024): I have the same problem, any other fixes than restoring the VM?
Author
Owner

@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.

<!-- gh-comment-id:2027410946 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:2039662991 --> @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.
Author
Owner

@tonioo commented on GitHub (Apr 9, 2024):

Fixed by this commit: github.com/modoboa/modoboa-installer@9eda3b81be.

Thanks for the report

<!-- gh-comment-id:2044722331 --> @tonioo commented on GitHub (Apr 9, 2024): Fixed by this commit: https://github.com/modoboa/modoboa-installer/commit/9eda3b81bed65c0e4277c1276dbd7df14012a051. Thanks for the report
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1792
No description provided.