• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Install error on Centos 8.1

Xanathos

New Pleskian
Hi all,

I just test the installation of Plesk 18.0.25 on a OVH VPS with Centos 8.1 installed (fresh install).
Both the automatic installer and the console installer failed with the following error :

Start downloading 1 files of unknown size and 0 delta RPMs
TypeError: %d format: a number is required, not str
in AutoinstallerDownloadProgress.progress('CentOS-8 - AppStream', '0.0')
SWIG director method error. Error detected when calling 'RepoCB.progress'
dnf.exceptions.RepoError: SWIG director method error. Error detected when calling 'RepoCB.progress'
ERROR: L'utilitaire yum n'a pas réussi à installer les packs requis.
Attention ! Votre logiciel risque de ne pas fonctionner.
Visitez Plesk Help Center pour trouver une solution.

I can not attach the install log, so i post it here

[2020-03-21 17:45:24.604551] Environment locale name is 'fr_FR.UTF-8'
[2020-03-21 17:45:24.605723]

Programme d'installation de Plesk 3.23.23 (revision b5106629303b) started at (timezone CET) Sat Mar 21 17:45:24 2020
Command line arguments: /var/cache/parallels_installer/installer

[2020-03-21 17:45:24.605751] SourceUrl: original source url is Index of /
[2020-03-21 17:45:24.605765] SourceUrl: fixed url is Index of /
[2020-03-21 17:45:24.608001] Try to find rcfile...
[2020-03-21 17:45:24.608054] Autoinstaller rcfile not found.
[2020-03-21 17:45:24.608230] Got OS name Linux, vendor CentOS, version 8.1.1911, arch x86_64, environment ~empty
[2020-03-21 17:45:24.608411] Warning: Failed to attach to cgroup /sys/fs/cgroup/systemd/user/root/tasks, installer might be unexpectedly killed later by the system
[2020-03-21 17:45:34.134720] Checking hostname is sucessfull.
[2020-03-21 17:48:45.218762]
[2020-03-21 17:48:45.224824] Warning: BuildLoader finish with unsuccess.
[2020-03-21 17:48:45.224880] Getting new version of Plesk Installer...

[2020-03-21 17:52:21.619000] ERROR plesk_installer.details: in AutoinstallerDownloadProgress.progress('CentOS-8 - AppStream', '0.0')
Traceback (most recent call last):
File "/usr/local/psa/bin/dnf_install", line 76, in exception_logger
return method(self, *args, **kwargs)
File "/usr/local/psa/bin/dnf_install", line 256, in progress
self.done_size, self.total_size or 'unknown ', self.done_files, self.total_files))
TypeError: %d format: a number is required, not str
[2020-03-21 17:52:21.623000] ERROR plesk_installer.details: dnf_install failed
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 552, in load
ret = self._repo.load()
File "/usr/lib64/python3.6/site-packages/libdnf/repo.py", line 394, in load
return _repo.Repo_load(self)
RuntimeError: SWIG director method error. Error detected when calling 'RepoCB.progress'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/psa/bin/dnf_install", line 621, in <module>
main()
File "/usr/local/psa/bin/dnf_install", line 604, in main
installer.init(opts.repos, opts.tries)
File "/usr/local/psa/bin/dnf_install", line 372, in init
self.base.fill_sack()
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 406, in fill_sack
self._add_repo_to_sack(r)
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 136, in _add_repo_to_sack
repo.load()
File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 558, in load
raise dnf.exceptions.RepoError(str(e))
dnf.exceptions.RepoError: SWIG director method error. Error detected when calling 'RepoCB.progress'
doCheckConfiguration: '/usr/local/psa/bin/dnf_install -l /var/log/plesk/install/autoinstaller3.log' finished with errors (rc = 1)
TypeError: %d format: a number is required, not str
in AutoinstallerDownloadProgress.progress('CentOS-8 - AppStream', '0.0')
SWIG director method error. Error detected when calling 'RepoCB.progress'
dnf.exceptions.RepoError: SWIG director method error. Error detected when calling 'RepoCB.progress'

[2020-03-21 17:52:38.240136] repository: Get brief packages info for all sources
[2020-03-21 17:52:38.240215] Checking for installed in extension catalog packages
[2020-03-21 17:52:38.644857] Start downloading 1 files of unknown size and 0 delta RPMs
[2020-03-21 17:52:53.642000] ERROR plesk_installer.details: in AutoinstallerDownloadProgress.progress('CentOS-8 - AppStream', '0.0')
Traceback (most recent call last):
File "/usr/local/psa/bin/dnf_install", line 76, in exception_logger
return method(self, *args, **kwargs)
File "/usr/local/psa/bin/dnf_install", line 256, in progress
self.done_size, self.total_size or 'unknown ', self.done_files, self.total_files))
TypeError: %d format: a number is required, not str
[2020-03-21 17:52:53.644000] ERROR plesk_installer.details: dnf_install failed
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 552, in load
ret = self._repo.load()
File "/usr/lib64/python3.6/site-packages/libdnf/repo.py", line 394, in load
return _repo.Repo_load(self)
RuntimeError: SWIG director method error. Error detected when calling 'RepoCB.progress'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/psa/bin/dnf_install", line 621, in <module>
main()
File "/usr/local/psa/bin/dnf_install", line 604, in main
installer.init(opts.repos, opts.tries)
File "/usr/local/psa/bin/dnf_install", line 372, in init
self.base.fill_sack()
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 406, in fill_sack
self._add_repo_to_sack(r)
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 136, in _add_repo_to_sack
repo.load()
File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 558, in load
raise dnf.exceptions.RepoError(str(e))
dnf.exceptions.RepoError: SWIG director method error. Error detected when calling 'RepoCB.progress'
TypeError: %d format: a number is required, not str
in AutoinstallerDownloadProgress.progress('CentOS-8 - AppStream', '0.0')
SWIG director method error. Error detected when calling 'RepoCB.progress'
dnf.exceptions.RepoError: SWIG director method error. Error detected when calling 'RepoCB.progress'
prepareAvailablePackagesList: '/usr/local/psa/bin/dnf_install -s -l /var/log/plesk/install/autoinstaller3.log --tries=3' finished with errors (rc = 1)
TypeError: %d format: a number is required, not str
in AutoinstallerDownloadProgress.progress('CentOS-8 - AppStream', '0.0')
SWIG director method error. Error detected when calling 'RepoCB.progress'
dnf.exceptions.RepoError: SWIG director method error. Error detected when calling 'RepoCB.progress'

[2020-03-21 17:56:22.142879] Start downloading 1 files of unknown size and 0 delta RPMs
[2020-03-21 17:56:37.136000] ERROR plesk_installer.details: in AutoinstallerDownloadProgress.progress('CentOS-8 - AppStream', '0.0')
Traceback (most recent call last):
File "/usr/local/psa/bin/dnf_install", line 76, in exception_logger
return method(self, *args, **kwargs)
File "/usr/local/psa/bin/dnf_install", line 256, in progress
self.done_size, self.total_size or 'unknown ', self.done_files, self.total_files))
TypeError: %d format: a number is required, not str
[2020-03-21 17:56:37.138000] ERROR plesk_installer.details: dnf_install failed
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 552, in load
ret = self._repo.load()
File "/usr/lib64/python3.6/site-packages/libdnf/repo.py", line 394, in load
return _repo.Repo_load(self)
RuntimeError: SWIG director method error. Error detected when calling 'RepoCB.progress'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/psa/bin/dnf_install", line 621, in <module>
main()
File "/usr/local/psa/bin/dnf_install", line 604, in main
installer.init(opts.repos, opts.tries)
File "/usr/local/psa/bin/dnf_install", line 372, in init
self.base.fill_sack()
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 406, in fill_sack
self._add_repo_to_sack(r)
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 136, in _add_repo_to_sack
repo.load()
File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 558, in load
raise dnf.exceptions.RepoError(str(e))
dnf.exceptions.RepoError: SWIG director method error. Error detected when calling 'RepoCB.progress'
TypeError: %d format: a number is required, not str
in AutoinstallerDownloadProgress.progress('CentOS-8 - AppStream', '0.0')
SWIG director method error. Error detected when calling 'RepoCB.progress'
dnf.exceptions.RepoError: SWIG director method error. Error detected when calling 'RepoCB.progress'
Execute command /usr/local/psa/admin/bin/send-error-report install
[2020-03-21 17:56:37.188102] Warning: Failed to attach to cgroup /sys/fs/cgroup/systemd/user/root/tasks, installer might be unexpectedly killed later by the system
[2020-03-21 17:56:37.223218] Error: L'utilitaire yum n'a pas réussi à installer les packs requis.
Attention ! Votre logiciel risque de ne pas fonctionner.
Visitez Plesk Help Center pour trouver une solution.

Any idea ?

Thanks,
Nicolas
 
I would recommend you to try to install it on Centos 8.0 , not 8.1

Until the next minor release of Plesk.
 
I'd suggest you try to install Plesk on CentOS 8,1 with LANG=en_US.UTF-8 locale instead of French locale.
 
I would recommend you to try to install it on Centos 8.0 , not 8.1
I have asked our developers and they said we are testing Plesk on CentOS 8.1.


We have reproduced this issue. It could happen if a connection between a server and the repository is slow.
PI-658 has been created for that issue.
 
Last edited:
Thanks for your reply !

Same error with en_US locale (fresh english install).

Strange, the OVH has not slow connection (100 mbits) and all my downloads are normally speed (5/6 megaoctets / secs)
Is there an other plesk mirror to try ?

Cheers,
Nicolas
 
Weird. Three days ago I used Hetzner Cloud server. Installed CentOS 8.0 then i updated it to 8.1 manually.

After that i tried to install Plesk Obsidian trial just for the sake of testing it. And everything went smoothly. No errors like yours. Everything works fine for a few days. I tried some extensions etc. No problem.

Plesk was installed with no modification, i simply used their link in command line. It installed itself with no errors.
 
Ok, i used this mirror Index of /software/plesk/plesk/ instead of official mirror and it works perfectly ! ;)
Do you believe that they have different build in different locations? I doubt that but that could explain your experience. However it would be cool from Plesk to put some light to this. It's still unclear was it your server configuration that led to install error or it was Plesk having different builds on different mirrors??
 
No, i think the explanation from AYamshanov is true, and that connection speed between OVH and pureserver.de is much better than speed between OVH and Plesk official mirror.

So it’s just an plesk installer bug when connection speed is slow (maybe Plesk servers are slow ??)

Cheers,
Nicolas
 
Back
Top