Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert2rhel silently hangs if too many (list too long) third-party packages #914

Open
Jskud opened this issue Sep 13, 2023 · 2 comments
Open

Comments

@Jskud
Copy link

Jskud commented Sep 13, 2023

I'm converting from CentOS 7.9 to RHEL 7 using convert2rhel.

I had 568 third-party packages which generated an internal command line of over 25K characters.

Trying multiple times, each time the conversion process hung; with --debug, I got this traceback:
[2023-09-13T13:29:41+0000] DEBUG - Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/convert2rhel/main.py", line 113, in main_locked pre_conversion_results = actions.run_actions() File "/usr/lib/python2.7/site-packages/convert2rhel/actions/__init__.py", line 707, in run_actions results = system_checks.run() File "/usr/lib/python2.7/site-packages/convert2rhel/actions/__init__.py", line 587, in run successes, failures, skips = self.next_stage.run(successes, failures, skips) File "/usr/lib/python2.7/site-packages/convert2rhel/actions/__init__.py", line 559, in run action.run() File "/usr/lib/python2.7/site-packages/convert2rhel/actions/pre_ponr_changes/handle_packages.py", line 40, in run pkg_list = pkghandler.format_pkg_info(sorted(third_party_pkgs, key=self.extract_packages)) File "/usr/lib/python2.7/site-packages/convert2rhel/utils.py", line 242, in wrapper process.join() File "/usr/lib64/python2.7/multiprocessing/process.py", line 145, in join res = self._popen.wait(timeout) File "/usr/lib64/python2.7/multiprocessing/forking.py", line 154, in wait return self.poll(0) File "/usr/lib64/python2.7/multiprocessing/forking.py", line 135, in poll pid, sts = os.waitpid(self.pid, flag) KeyboardInterrupt
I managed to observe the troublesome command using *ps" -- it was a very long repoquery command, which generates over 28K of output when run standalone.

When I cut my third-party packages way down and restarted the conversion process, it got past that Convert: List third-party packages point, and now underway.

@bocekm
Copy link
Member

bocekm commented Sep 14, 2023

@Jskud, thanks for the report. Would you please post the /var/log/convert2rhel/convert2rhel.log and /var/log/convert2rhel/rpm_va.log files? That would help us reproduce the bug and fix it. Thank you.

@zhentianzhang
Copy link

How to convert centos7.4 to rhel7.4? If the system is not upgraded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants