Note: This is really a set of notes so I can think things through accurately. It might be instructive to someone else who has similar issues.
Background: Newly assigned to an IT program as a database resource, I have been allocated an AWS EC2 VM (m5.large, 100GiB size, CentOS 7). Now it is time to configure the VM, install and configure the tools I will need to collaborate in the DevOps environment with the new teammates. Git, Jira, Confluence, Jenkins all seemed to install correctly and have been appropriately configured. VS Code 1.56.1 installed, but failed to actually run. The issue was a missing library (gcc 5, including CXXABI_1.3.9). VS Code has a lot of customers. The more recent updates require this module to work with UBUNTU (and I assume other linux flavors). CentOS may be considered “moribund”. The workaround for VS Code is to install the version 1.51.1. The next step is install pgAdmin!
Following local instructions, I install postgreSQL 11. No apparent issues.
Following local instructions, I install pgadmin4-web. yum reports, “Package pgadmin4-web-5.2.1.el7.noarch already installed and latest version. Nothing to do”
Following local instructions,
sudo su. This reports an error, “ABRT has detected 1 problem. For more info run: abrt-cli list –since 1621010402”. Running the abrt-cli command, I learn that “
xdrp-keygen killed by SIGABRT“. I do not think this is a factor and continue.
The next command in the instructions is
sudo python3 /usr/pgadmin4/web/pgAdmin4.py &. That returns a ModuleNotFoundError: No module named ‘cheroot’. This occurred in the pgAdmin4.py operation at line 16 in module from cheroot.wsgi import Server as CherootServer.
Next course of action: If python cannot find cheroot.wsgi, I’ll try to load that myself. The first attempt failed, using
pip3 install cheroot-wsgi But error messages indicated that locations in the directory were not writeable, which induced me to try
sudo pip3 install cheroot-wsgi and that worked.
Overall, the key to the end of this part of the story is
sudo pip3 install cheroot-wsgi.