Unable to connect to Server

PostgreSQL is the database server used to store information. Do you have a question or are you having problem with PostgreSQL? If so, post them here.

Moderator: Moderators

Unable to connect to Server

Postby Zorfox » Tue Jan 26, 2010 10:56 pm

I recently purchased PT3. Installed it and after a few stumbles it was working fine. While using table tracker, succesfully 20-30 times, I recieved an error stating it was unable to connect to the server. Waited and tried several more times. After several hours I read the forum and reconfigured my Norton Internet security firewall as described. Rebooted and attempted to open PT3. I recieved a database login. After searching for a DB, trying to create another...I eventually went into PSAdmin and found I was unable to connect to the database via that despite stopping, starting and rebooting several times. I have rechecked my firewall and even disbled it. I am still unable to connect. I tried reinstalling PT3 but PostgreSQL did not install. I am leary to reinstall PostgrSQL for fear of losing all my history. I am using Vista with all updates and service packs. Any help would be greatly appreciated.
Zorfox
 
Posts: 21
Joined: Wed Jan 20, 2010 7:02 pm

Re: Unable to connect to Server

Postby WhiteRider » Wed Jan 27, 2010 5:41 am

If you try to start postgres manually (Start > Programs > Postgres > Start Service) does that work? Do you then see any postgres.exe processes in Task Mananger > Processes?

Did you uninstall postgres? If you did a partial uninstall you'll need to follow the guide to fully re-install: How to reinstall PostgreSQL.
If you didn't try to uninstall postgres I wouldn't suggest that for now, there shouldn't be any need as it's probably a permissions issue.
Kraada will be on in a few hours and may have more suggestions, but if you can't get it sorted we can arrange for a remote session where someone can connect to your computer and help you get it working again.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Unable to connect to Server

Postby Zorfox » Wed Jan 27, 2010 6:42 pm

I did not uninstall anything initially. I am not sure if postgres was in the processes or not. After reading through online docs I came across the user account warning. So I disabled it in Vista, uninstalled everything and then reinstalled. Now PT3 does communicate but I am back to square one with table tracker. Whenever I do a search it advises unable to contact server, wait, if this does not help contact support. I have made all appropriate changes to my firewall and disabling it does not help.
Zorfox
 
Posts: 21
Joined: Wed Jan 20, 2010 7:02 pm

Re: Unable to connect to Server

Postby kraada » Wed Jan 27, 2010 7:07 pm

Please report this problem so that we can investigate further.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Unable to connect to Server

Postby Zorfox » Thu Jan 28, 2010 7:22 pm

I have had problems with PT3 from day one. Let me first say the application is wonderful when it works! I can understand the frustrations PT3 staff may have at times but from what I can see all my problems are related to PostgreSQL. The first installation was with UAC enabled since I saw no warning on installation to disable it, I should have read more before installing it. Problems started and I read forums and disabled it then reinstalled both PT3 and PostgreSQL. I had problems with Table tracker not communicating with the server. That problem went away without intervention. I then was unable to start PT3 due to no postgreSQL server running. This was the reason I reinstalled the first time!

Now it appears Postgres is the problem. Changing file permissions, setting Windows settings and jumping through hoops to make this work is absurd. It was not written for Windows to start and is a poor excuse for a Dbase server, yes I know its free, but come on.

I found several problems with Postgres server while the application was in this state. By the way it was after I rebooted, no changes, just rebooted.

1.Starting the service in pgAdminIII gave me an errorcode 3 message.
2.The service was listed in task manager but not running. If I attempted to start it I saw an error starting it, the system could not find the path specified.
3.In Windows services I see the service set but it had problems. No path to the exe was defined and it was set to logon as type ./postgres, this is windows NOT unix!
4.Starting the service from command prompt gives an error that I can't perform it as Administrator. Yes I am using Windows as administrator. I have for years and no asteroids have hit me lol. So I tried to start it as a user and error, no config file specified.

So... I uninstalled and reinstalled PostgreSQL. Whola! It works again, no surprise. Just thought I would post this since in the next day or two it will happen again. If anyone has ideas please let me know. I'll submit a ticket when It happens again.
Zorfox
 
Posts: 21
Joined: Wed Jan 20, 2010 7:02 pm

Re: Unable to connect to Server

Postby WhiteRider » Fri Jan 29, 2010 5:18 am

Often postgres issues are related to a firewall, so please read our Firewall Guide.
When we talk about running everything as administrator, that doesn't mean under an administrator account - running applications as administrator is different.
ATTENTION: Windows VISTA and 7 users, you must read this...
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Unable to connect to Server

Postby Zorfox » Mon Feb 08, 2010 10:42 am

I have found the reason for the above error starting PostgreSQL. I am using AML registry scanner. It identifies two entries as an invalid path in two locations...

Value = ImagePath
Type = REG_EXPAND_SZ
DATA = "C:\Program Files (x86)\PostgreSQL\8.3\bin\pg_ctl.exe" runservice -w -N "pgsql-8.3" -D "C:\Program Files (x86)\PostgreSQL\8.3\data\"

If I choose to repair the entries PostgreSQL will revert back to “no service started” error again. There will be no path set to the pgsql-8.3 service in the services applet. Just thought it may be useful to others.
Zorfox
 
Posts: 21
Joined: Wed Jan 20, 2010 7:02 pm

Re: Unable to connect to Server

Postby tarix » Mon Feb 08, 2010 11:38 am

Zorfox wrote:I am using AML registry scanner.


These sorts of tools are extremely dangerous. They do more harm than good.
tarix
Developer
 
Posts: 3760
Joined: Tue May 20, 2008 2:49 pm


Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests