mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 17:36:01 +03:00
[GH-ISSUE #1863] configparser.NoSectionError: No section: 'centosplus' #1460
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#1460
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 @Super-Gil on GitHub (Apr 1, 2020).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1863
Impacted versions
Steps to reproduce
Current behavior
Raising error when installing postfix
Expected behavior
Should complete the installation.
Error message:
[root@iZj6c78t3hp8rnwcpnk0mnZ modoboa-installer]# sudo python3 ./run.py anckak.tech
Welcome to Modoboa installer!
Warning:
Before you start the installation, please make sure the following DNS records exist for domain 'anckak.tech':
mail IN A
IN MX mail.anckak.tech.
Your mail server will be installed with the following components:
modoboa automx amavis clamav dovecot nginx razor postfix postwhite spamassassin uwsgi radicale opendkim
Do you confirm? (Y/n) y
The process can be long, feel free to take a coffee and come back later ;)
Starting...
Overwrite the existing SSL certificate? (y/N) y
Generating new self-signed certificate
Installing amavis
Installing spamassassin
Installing razor
Installing clamav
Installing modoboa
User modoboa already exists, skipping creation but please make sure the /srv/modoboa directory exists.
Target directory for Modoboa deployment (/srv/modoboa/instance) already exists. If you choose to continue, it will be removed.
Do you confirm? (Y/n) y
Installing automx
User automx already exists, skipping creation but please make sure the /srv/automx directory exists.
Installing radicale
User radicale already exists, skipping creation but please make sure the /srv/radicale directory exists.
Installing uwsgi
Installing nginx
Installing opendkim
Installing postfix
Traceback (most recent call last):
File "./run.py", line 136, in
main(sys.argv[1:])
File "./run.py", line 126, in main
scripts.install("postfix", config, args.upgrade)
File "/root/modoboa-installer/modoboa_installer/scripts/init.py", line 22, in install
getattr(script, appname.capitalize())(config, upgrade).run()
File "/root/modoboa-installer/modoboa_installer/scripts/base.py", line 151, in run
self.install_packages()
File "/root/modoboa-installer/modoboa_installer/scripts/postfix.py", line 41, in install_packages
config.set("centosplus", "enabled", "1")
File "/usr/lib64/python3.6/configparser.py", line 1193, in set
super().set(section, option, value)
File "/usr/lib64/python3.6/configparser.py", line 901, in set
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'centosplus'
@tonioo commented on GitHub (Apr 2, 2020):
@Super-Gil Can you check the content of the
/etc/yum.repos.d/CentOS-Base.repoplease.@Super-Gil commented on GitHub (Apr 2, 2020):
Thanks for your reply!
Here is the result of "nano /etc/yum.repos.d/CentOS-Base.repo"
[base]
name=CentOS-$releasever
enabled=1
failovermethod=priority
baseurl=http://mirrors.cloud.aliyuncs.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.cloud.aliyuncs.com/centos/RPM-GPG-KEY-CentOS-7
[updates]
name=CentOS-$releasever
enabled=1
failovermethod=priority
baseurl=http://mirrors.cloud.aliyuncs.com/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.cloud.aliyuncs.com/centos/RPM-GPG-KEY-CentOS-7
[extras]
name=CentOS-$releasever
enabled=1
failovermethod=priority
baseurl=http://mirrors.cloud.aliyuncs.com/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.cloud.aliyuncs.com/centos/RPM-GPG-KEY-CentOS-7
@tonioo commented on GitHub (Apr 2, 2020):
Strange. You should have a
[centosplus]section has mentionned here: https://wiki.centos.org/AdditionalResources/Repositories/CentOSPlus.Can you try to add it?
@tonioo commented on GitHub (Sep 11, 2020):
@Super-Gil Any news?