. Advertisement .
..3..
. Advertisement .
..4..
Most database professionals have experienced this error at some point in their careers. The “Get fatal error: server could not be contacted when running pgAdmin4. ‘NoneType’ object has no attribute ‘value’” error is problematic for beginners and even senior database professionals. However, this confusing error message is not a complex one. This blog will show you a few ways you can fix this error.
When Do You Get The Error “Get fatal error: server could not be contacted when running pgAdmin4. ‘NoneType’ object has no attribute ‘value’”?
When installing Postgresql pgAdmin4 on your Windows PC for the first time, in postgresql, you may get a “fatal error: server could not be contacted” after running pgAdmin 4.
Traceback (most recent call last):
File "C:\Program Files\PostgreSQL\13\pgAdmin 4\web\pgAdmin4.py", line 98, in <module>
app = create_app()
File "C:\Program Files\PostgreSQL\13\pgAdmin 4\web\pgadmin\__init__.py", line 347, in
create_app
if not os.path.exists(SQLITE_PATH) or get_version() == -1:
File "C:\Program Files\PostgreSQL\13\pgAdmin 4\web\pgadmin\setup\db_version.py", line
19, in get_version
return version.value
AttributeError: 'NoneType' object has no attribute 'value'
How To Fix The Error “Get fatal error: server could not be contacted when running pgAdmin4. ‘NoneType’ object has no attribute ‘value’”
Option 1: Simply set up the array
The simplest way for you to solve the error “Get fatal error: server could not be contacted when running pgAdmin4. ‘NoneType’ object has no attribute ‘value’” is simple setting up the array. Let’s follow these steps:
- This is one of the workarounds: you can use Python to run the “pgAdmin 4” app.
- First, you need to remove C:\Users\username\AppData\Roaming\pgadmin from your computer.
- Access terminal.
- The next step is tilizing Python, let’s run the C:\Program Files\PostgreSQL\12\pgAdmin 4\web\pgAdmin4.py file.
- Finally run the “pgAdmin 4” app from the Windows menu as administrator, and it will perform as expected.
After finishing these steps, your error will be completely resolved and your program will run well without any errors. Let’s do it to get your desired results.
Option 2: PgAdmin can be downloaded from pgadmin.org/download
PostgreSQL is the most sophisticated Open Source database in the world, and pgAdmin is its most popular and feature-rich administration and development environment. On Unix, Linux, macOS, and Windows, pgAdmin can be used to manage PostgreSQL and EDB Advanced Server 10 and higher. There are two ways to install pgAdmin: in server and desktop modes. While server mode can be accessed across a network and is usable by numerous users, the desktop mode is installed as a standalone application that the same operating system user utilizes.
This is an issue in pgAdmin. This seems to be a widespread bug, as evidenced by the number of reports on the pgAdmin bug list. However, pgAdmin can be downloaded from pgadmin.org/download and installed without any problems.
Two solutions mentioned above are very simple, aren’t they? However, they work flawlessly for you. Your error will disappear if you apply them. Let’s try them.
Conclusion
We hope you will enjoy our article about fixing the error “Get fatal error: server could not be contacted when running pgAdmin4. ‘NoneType’ object has no attribute ‘value’”. We know that this error can be frustrating to deal with, so we hope that our information has helped you fix it. If you have any other questions or concerns about working with Conda, please leave a comment below. Thank you for reading; we are always excited when one of our posts can provide useful information on a topic like this!
Read more
→ Fix the error “FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed – JavaScript heap out of memory”
Leave a comment