Connection to server at port 5436 failed running on docker - postgresql

I am trying to install pgAdmin4 in my windows machine. I am getting error message of connection to server failed.
I found a similar kind of issue here but the solution doesn't work. I have been struggling with the issue and didn't found any working solution. Earlier, I have PostgreSql 15 version installed but the 15 version was not compatible with yii2 project of mine. So, I uninstalled the PostgreSQL 15 version and reinstalled PostgreSQL 13. After reinstalling I start getting this error.
I tried to restart the services of postgresql from Task Manager -> Services but didn't worked.
Can anyone suggest me what I am doing wrong or what can I do get this fixed.
Many Thanks.

Related

"su: cannot open session: Module is unknown" error when starting JasperServer 8.0.x Community Edition

I'm having some issues after installing JasperServer Community Edition 8.0.
When I try to run ctlscript.sh start, I get the following error message:
su: cannot open session: Module is unknown
<INSTALL_PATH>/postgresql/scripts/ctl.sh : postgresql  could not be started
and the PostgreSQL included in the installation does not start.
I tried debugging the startup code, and it seems that the issue is in file <INSTALL_PATH>/postgresql/scripts/ctl.sh, at line 63:
su postgres -c "$POSTGRESQL_START"
Just to let you have the complete context, I already have a Jasper Server at version 7.8 running on this server, using the same postgres user as the new 8.0 one. I'm not sure if it's a session issue.
Could you please help me figure out what's the problem?
Thanks a lot
Edit: I forgot to mention that the server is running RedHat 8.6

How to install PostgreSQL 14 into MacOS Big Sur

I am currently self-studying postgreSQL from the ground up. I have spent the last 3 days trying to install PostgreSQL 14 and pgAdmin 4 into Mac OS Big Sur (version 11.6.2), but I kept getting the following errors:
1. When running pgAdmin 4, I encountered this message at the very beginning:
2. When installing postgreSQL 14 from EDB, at the very end of the installation process, I kept bumping into the error message: Problem running post-install step. Installation may not complete correctly Failed to start the database server. I tried following the solutions suggested in this thread, but I still get the same error in 1.
Question. Can someone please help me with the entire installment process to overcome these errors? Also, I am curious to know if pgAdmin 4's role to PostgreSQL 14 is the same as Rstudio's role to R or Anaconda to Python?

Google VM Instance Stopped Working after Upgrade

I have a google VM instance which was running flawlessly. It has Centos-7 and Plesk installed in it.
I just stopped it, upgraded machine type (to better CPU and RAM) and started it again. My server stopped responding at all. No websites are running, I can't connect to SSH & Google Cloud SDK Shell is unable to reach server. It says NETWORK ERROR, CONNECTION TIMED OUT. My all other instances works well.
I tried rebooting & resetting multiple times. Reading out stuff from internet since last 6 hours but for no luck. I also tried to clone disk of the instance and creating new instance with the cloned disk but for no luck. Same network connection issue. May be something in OS got corrupted? Please suggest. I have a number of websites hosted on the server which are down due to this. Thanks a lot in advance.
I took screenshot of my VM using Google Cloud Shell. It is as follows:
I connected with serial console which is as follows:
While creating a ticket with google, I found that they've posted some information under "Known Issues". I am pasting the whole stuff as there is no direct link to reach there. The symptoms they told were exactly what was happening to me:
Below is Known Issue Posted by Google:
Description:
We are experiencing an issue with Google Compute Engine instances running RHEL and CentOS 7 and 8. More details on this issue are available in the following article and bugs: https://access.redhat.com/solutions/5272311 https://bugzilla.redhat.com/show_bug.cgi?id=1861977 (RHEL 8) https://bugzilla.redhat.com/show_bug.cgi?id=1862045 (RHEL 7) Symptoms: Instances running RHEL and CentOS 7 and 8 that run yum update may fail to boot after restart with errors messages referring to a combination of: "X64 Exception Type - 0D(#GP - General Protection) CPU Apic ID", "FXSAVE_STATE" or "Find image based on IP". This issue affects instances with specific versions of the shim package installed. To find the currently installed shim version, use the following command: rpm -q shim-x64 Affected shim versions: CentOS 7: shim-x64-15-7.el7_9.x86_64 CentOS 8: shim-x64-15-13.el8.x86_64 RHEL 7: shim-x64-15-7.el7_8.x86_64 RHEL 8: shim-x64-15-14.el8_2.x86_64 Workaround: Do not update or reboot instances running RHEL or CentOS 7 and 8. If you are on an affected shim version, run yum downgrade shim\* grub2\* mokutil to downgrade to the correct version. This command may not work on CentOS 8. If you have already rebooted, you will need to attach the disk to another instance, chroot into the disk, then run the yum downgrade command. We will provide an update by Thursday, 2020-07-30 14:00 US/Pacific with current details.
Start time:
July 30, 2020 at 9:08:34 PM GMT+5
How to diagnose:
Instances running RHEL and CentOS 7 and 8 that run yum update may fail to boot after restart with errors messages referring to a combination of: "X64 Exception Type - 0D(#GP - General Protection) CPU Apic ID", "FXSAVE_STATE" or "Find image based on IP". This issue affects instances with specific versions of the shim package installed. To find the currently installed shim version, use the following command: rpm -q shim-x64 Affected shim versions: CentOS 7: shim-x64-15-7.el7_9.x86_64 CentOS 8: shim-x64-15-13.el8.x86_64 RHEL 7: shim-x64-15-7.el7_8.x86_64 RHEL 8: shim-x64-15-14.el8_2.x86_64
Workaround:
Do not update or reboot instances running RHEL or CentOS 7 and 8. If you are on an affected shim version, run yum downgrade shim\* grub2\* mokutil to downgrade to the correct version. This command may not work on CentOS 8. If you have already rebooted, you will need to attach the disk to another instance, chroot into the disk, then run the yum downgrade command.

Unable to connect to postgresql with pgAdmin4: readonly attribute error

I have a local postgresql 10 server (tested the same on 9.6, don't think it's related to the DB at all, only to pgAdmin4, as pgAdmin3 works just fine)
As in the screenshot, I am trying to connect to the localhost db with user postgres on a fresh installation, but I keep receiving this message:
readonly attribute
I searched everywhere for this error, but couldn't find any useful solutions or workarounds
pg4Admin 4 now is working for me. I got an update of python-psycopg2 to 2.7.4-1.pgdg16.04+1 amd64 version on my KDE Neon, that solved, to me, the readonly attribute problem.
This error is related to psycopg2. Please verify the version of psycopg2 installed on your system and update it to at least version 2.7.
At version 2.7 psycopg2 connection class the notices attribute is writable. On earlier versions it is a read only attribute.
If you comment the code in line 313 of /usr/share/pgadmin4/web/pgadmin/utils/driver/psycopg2/connection.py you could check it out.
#pg_conn.notices = deque([], self.ASYNC_NOTICE_MAXLENGTH)
You can try using pgAdmin4 wheel file, you will not face any such issues of an older version of packages from the native repo.
https://askubuntu.com/questions/831262/how-to-install-pgadmin-4-in-desktop-mode-on-ubuntu
I am on Ubuntu 16.04, but using postgresql and pgAdmin from apt.postgresql.org. I struck this bug. But the new version of psycopg2 that came through with the latest apt update solved the problem for me.

Mysql 6.1 db error

I am using mysql 6.1 workbench and having issues every time I turn on system. I've tried atleast 50 solutions from different sources but it is not getting fixed. Tried to change default port as well re-installed it quite a few times now. Couldn't understand why it's not getting fixed.
Error is: Can't connect to MySQL server on '127.0.0.1' (10061) (2003).
I've seen official documentation in detail and followed each step.
Please help.
I figured this out...actually when WAMP and MySQL Workbench both installed only then it shows this issue. Quitting WAMP closes connection so system shuts services down and workbench fails to start service at it's own. By removing one of both won't show such errors. Problem solved.