Soo....at some point after posting that last message in Sept, it started working. If I did anything to make it work, I unfortunately didn't note it. But either way, the install of Ansys would complete and no longer hang.
Now, without having changed anything on my end (so in other words, nothing on the host that I'm using to build this), and without having changed Spack versions (0.15.4), it has started having the problem again.
I'm using RHEL7 on a VMWare machine and attempting to install to an NFS mount. Again, for the past 3 months, this has been working. Now it's not. It's possible something network related changed, but I don't know how I would go about finding that out. The actual install() function completes, but Spack does not ever come back.
I did this last install with lots of debug and verbose messages, and there is an error about the io.BufferedReader having a reentrant call inside it, but I think those messages came after I started hitting Ctrl-C to get control back.
-----------------------------------------------------------------------------------------------------------
Configuring Help ...
Running "/opt/aci/sw/ansys/2019R3_gcc-4.8.5-qn3/v195/Tools/mono/Linux64/bin/mono" "/opt/aci/sw/ansys/2019R3_gcc-4.8.5-qn3/v195/commonfiles/help/HelpViewer/ANSYSHelpConfigurationTool.exe" --setLocal
Exiting
==> [2021-01-03-13:50:05.018090] Installing /opt/aci/spack-repo/packages/ansys/license.preferences.xml to /opt/aci/sw/ansys/2019R3_gcc-4.8.5-qn3/shared_files/licensing
==> [2021-01-03-13:50:05.031053, 26721] FileNotFoundError: [Errno 2] No such file or directory: '/opt/aci/sw/ansys/2019R3_gcc-4.8.5-qn3/.spack/repos'
==> [2021-01-03-13:50:05.031583, 26721] Installing /tmp/rug262/spack-stage/spack-stage-ansys-2019R3-qn3u52h4qgreiukrclbqvxrkkffvfizc/spack-build-out.txt to /opt/aci/sw/ansys/2019R3_gcc-4.8.5-qn3/.spack/spack-build-out.txt
==> [2021-01-03-13:50:05.035670, 26721] Installing /tmp/rug262/spack-stage/spack-stage-ansys-2019R3-qn3u52h4qgreiukrclbqvxrkkffvfizc/spack-build-env.txt to /opt/aci/sw/ansys/2019R3_gcc-4.8.5-qn3/.spack/spack-build-env.txt
==> [2021-01-03-13:50:05.046634, 26721] Installing /opt/aci/spack-repo/packages/ansys/package.py to /opt/aci/sw/ansys/2019R3_gcc-4.8.5-qn3/.spack/repos/spack-dev/packages/ansys
Signal received : entering python shell.
Traceback:
File "/opt/aci/spack/bin/spack", line 64, in <module>
sys.exit(spack.main.main())
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/main.py", line 762, in main
return _invoke_command(command, parser, args, unknown)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/main.py", line 490, in _invoke_command
return_val = command(parser, args)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/cmd/install.py", line 285, in install
env.install_all(args)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/environment.py", line 1303, in install_all
self._install(spec, **kwargs)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/environment.py", line 1261, in _install
spec.package.do_install(**install_args)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/package.py", line 1477, in do_install
builder.install(**kwargs)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/installer.py", line 1547, in install
self._install_task(task, **kwargs)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/installer.py", line 1183, in _install_task
pkg, build_process, dirty=dirty, fake=fake)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/build_environment.py", line 901, in fork
child_result = parent_pipe.recv()
File "/usr/lib64/python3.6/multiprocessing/connection.py", line 250, in recv
buf = self._recv_bytes()
File "/usr/lib64/python3.6/multiprocessing/connection.py", line 407, in _recv_bytes
buf = self._recv(4)
File "/usr/lib64/python3.6/multiprocessing/connection.py", line 379, in _recv
chunk = read(handle, remaining)
>>> Signal received : entering python shell.
Traceback:
File "/opt/aci/spack/bin/spack", line 64, in <module>
sys.exit(spack.main.main())
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/main.py", line 762, in main
return _invoke_command(command, parser, args, unknown)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/main.py", line 490, in _invoke_command
return_val = command(parser, args)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/cmd/install.py", line 285, in install
env.install_all(args)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/environment.py", line 1303, in install_all
self._install(spec, **kwargs)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/environment.py", line 1261, in _install
spec.package.do_install(**install_args)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/package.py", line 1477, in do_install
builder.install(**kwargs)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/installer.py", line 1547, in install
self._install_task(task, **kwargs)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/installer.py", line 1183, in _install_task
pkg, build_process, dirty=dirty, fake=fake)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/build_environment.py", line 901, in fork
child_result = parent_pipe.recv()
File "/usr/lib64/python3.6/multiprocessing/connection.py", line 250, in recv
buf = self._recv_bytes()
File "/usr/lib64/python3.6/multiprocessing/connection.py", line 407, in _recv_bytes
buf = self._recv(4)
File "/usr/lib64/python3.6/multiprocessing/connection.py", line 379, in _recv
chunk = read(handle, remaining)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/util/debug.py", line 28, in debug_handler
i.interact(message)
File "/usr/lib64/python3.6/code.py", line 228, in interact
line = self.raw_input(prompt)
File "/usr/lib64/python3.6/code.py", line 275, in raw_input
return input(prompt)
>>> ==> [2021-01-03-22:34:52.844195, 26645] Error: Failed to install ansys due to RuntimeError: reentrant call inside <_io.BufferedReader name='<stdin>'>
==> [2021-01-03-22:34:52.844573, 26645] Flagging ansys as failed: reentrant call inside <_io.BufferedReader name='<stdin>'>
==> [2021-01-03-22:34:52.849403, 26645] WRITE LOCK (ansys): /opt/aci/sw/.spack-db/prefix_failures[4736563551886430498:1] [Acquiring]
==> [2021-01-03-22:34:52.850604, 26645] write locking [4736563551886430498:1]: timeout None sec
==> [2021-01-03-22:34:52.851063, 26645] WRITE LOCK (ansys): /opt/aci/sw/.spack-db/prefix_failures[4736563551886430498:1] [Acquired at 22:34:52.851028]
==> [2021-01-03-22:34:52.851219, 26645] READ LOCK (database): /opt/aci/sw/.spack-db/lock[0:0] [Acquiring]
==> [2021-01-03-22:34:52.852281, 26645] read locking [0:0]: timeout 3 sec
==> [2021-01-03-22:34:52.852373, 26645] READ LOCK (database): /opt/aci/sw/.spack-db/lock[0:0] [Acquired at 22:34:52.852348]
==> [2021-01-03-22:34:52.853406, 26645] READ LOCK (database): /opt/aci/sw/.spack-db/lock[0:0] [Releasing]
==> [2021-01-03-22:34:52.853717, 26645] READ LOCK (database): /opt/aci/sw/.spack-db/lock[0:0] [Released at 22:34:52.853680]
Signal received : entering python shell.
Traceback:
File "/opt/aci/spack/bin/spack", line 64, in <module>
sys.exit(spack.main.main())
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/main.py", line 762, in main
return _invoke_command(command, parser, args, unknown)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/main.py", line 490, in _invoke_command
return_val = command(parser, args)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/cmd/install.py", line 285, in install
env.install_all(args)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/environment.py", line 1303, in install_all
self._install(spec, **kwargs)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/environment.py", line 1261, in _install
spec.package.do_install(**install_args)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/package.py", line 1477, in do_install
builder.install(**kwargs)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/installer.py", line 1595, in install
pkg.remove_prefix()
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/package.py", line 1113, in remove_prefix
spack.store.layout.remove_install_directory(self.spec)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/directory_layout.py", line 111, in remove_install_directory
shutil.rmtree(path)
File "/usr/lib64/python3.6/shutil.py", line 486, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/usr/lib64/python3.6/shutil.py", line 424, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
File "/usr/lib64/python3.6/shutil.py", line 424, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
File "/usr/lib64/python3.6/shutil.py", line 424, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
[Previous line repeated 2 more times]
File "/usr/lib64/python3.6/shutil.py", line 412, in _rmtree_safe_fd
orig_st = os.stat(name, dir_fd=topfd, follow_symlinks=False)
>>> Signal received : entering python shell.
Traceback:
File "/opt/aci/spack/bin/spack", line 64, in <module>
sys.exit(spack.main.main())
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/main.py", line 762, in main
return _invoke_command(command, parser, args, unknown)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/main.py", line 490, in _invoke_command
return_val = command(parser, args)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/cmd/install.py", line 285, in install
env.install_all(args)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/environment.py", line 1303, in install_all
self._install(spec, **kwargs)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/environment.py", line 1261, in _install
spec.package.do_install(**install_args)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/package.py", line 1477, in do_install
builder.install(**kwargs)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/installer.py", line 1595, in install
pkg.remove_prefix()
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/package.py", line 1113, in remove_prefix
spack.store.layout.remove_install_directory(self.spec)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/directory_layout.py", line 111, in remove_install_directory
shutil.rmtree(path)
File "/usr/lib64/python3.6/shutil.py", line 486, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/usr/lib64/python3.6/shutil.py", line 424, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
File "/usr/lib64/python3.6/shutil.py", line 424, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
File "/usr/lib64/python3.6/shutil.py", line 424, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
[Previous line repeated 2 more times]
File "/usr/lib64/python3.6/shutil.py", line 412, in _rmtree_safe_fd
orig_st = os.stat(name, dir_fd=topfd, follow_symlinks=False)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/util/debug.py", line 28, in debug_handler
i.interact(message)
File "/usr/lib64/python3.6/code.py", line 228, in interact
line = self.raw_input(prompt)
File "/usr/lib64/python3.6/code.py", line 275, in raw_input
return input(prompt)
>>> Traceback (most recent call last):
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/installer.py", line 1547, in install
self._install_task(task, **kwargs)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/installer.py", line 1183, in _install_task
pkg, build_process, dirty=dirty, fake=fake)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/build_environment.py", line 901, in fork
child_result = parent_pipe.recv()
File "/usr/lib64/python3.6/multiprocessing/connection.py", line 250, in recv
buf = self._recv_bytes()
File "/usr/lib64/python3.6/multiprocessing/connection.py", line 407, in _recv_bytes
buf = self._recv(4)
File "/usr/lib64/python3.6/multiprocessing/connection.py", line 379, in _recv
chunk = read(handle, remaining)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/util/debug.py", line 28, in debug_handler
i.interact(message)
File "/usr/lib64/python3.6/code.py", line 228, in interact
line = self.raw_input(prompt)
File "/usr/lib64/python3.6/code.py", line 275, in raw_input
return input(prompt)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/util/debug.py", line 28, in debug_handler
i.interact(message)
File "/usr/lib64/python3.6/code.py", line 228, in interact
line = self.raw_input(prompt)
File "/usr/lib64/python3.6/code.py", line 275, in raw_input
return input(prompt)
RuntimeError: reentrant call inside <_io.BufferedReader name='<stdin>'>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/aci/spack/bin/spack", line 64, in <module>
sys.exit(spack.main.main())
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/main.py", line 762, in main
return _invoke_command(command, parser, args, unknown)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/main.py", line 490, in _invoke_command
return_val = command(parser, args)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/cmd/install.py", line 285, in install
env.install_all(args)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/environment.py", line 1303, in install_all
self._install(spec, **kwargs)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/environment.py", line 1261, in _install
spec.package.do_install(**install_args)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/package.py", line 1477, in do_install
builder.install(**kwargs)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/installer.py", line 1595, in install
pkg.remove_prefix()
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/package.py", line 1113, in remove_prefix
spack.store.layout.remove_install_directory(self.spec)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/directory_layout.py", line 111, in remove_install_directory
shutil.rmtree(path)
File "/usr/lib64/python3.6/shutil.py", line 486, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/usr/lib64/python3.6/shutil.py", line 424, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
File "/usr/lib64/python3.6/shutil.py", line 424, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
File "/usr/lib64/python3.6/shutil.py", line 424, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
[Previous line repeated 2 more times]
File "/usr/lib64/python3.6/shutil.py", line 412, in _rmtree_safe_fd
orig_st = os.stat(name, dir_fd=topfd, follow_symlinks=False)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/util/debug.py", line 28, in debug_handler
i.interact(message)
File "/usr/lib64/python3.6/code.py", line 228, in interact
line = self.raw_input(prompt)
File "/usr/lib64/python3.6/code.py", line 275, in raw_input
return input(prompt)
File "/opt/global/RedHat-7/20210102/spack/lib/spack/spack/util/debug.py", line 28, in debug_handler
i.interact(message)
File "/usr/lib64/python3.6/code.py", line 228, in interact
line = self.raw_input(prompt)
File "/usr/lib64/python3.6/code.py", line 275, in raw_input
return input(prompt)
RuntimeError: reentrant call inside <_io.BufferedReader name='<stdin>'>