pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Cant start PostgreSQL Using command prompt
7+ messages / 4 participants
[nested] [flat]

* Cant start PostgreSQL Using command prompt
@ 2013-09-11 11:00 Saravanan Nagarajan <n.saravanan86@gmail.com>
  2013-09-11 13:01 ` Re: Cant start PostgreSQL Using command prompt Michael Paquier <michael.paquier@gmail.com>
  2013-09-11 17:19 ` Re: Cant start PostgreSQL Using command prompt John R Pierce <pierce@hogranch.com>
  0 siblings, 2 replies; 7+ messages in thread

From: Saravanan Nagarajan @ 2013-09-11 11:00 UTC (permalink / raw)
  To: pgsql-bugs

Hi,

I am using PostgreSQL. If am starting the db with System Account/ any
domain account using wrapper, the DB is starting fine.

If i am trying to start the PostgreSQL DB using command prompt, [Normal
mode or Run as administrator.], It wont start. I provided full permission
for everyone in Postgres DB Folder.

I didn't find any error in pg_log file. I installed DB in 2008 R2 windows
machine.

My command : *pg_ctl -D "..\data" -o -p3306 --log "D:\logs\pglog.txt" start
&*
*
*
Thanks in advance.

-- 
Regards
  Saravanan.N.

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Cant start PostgreSQL Using command prompt
  2013-09-11 11:00 Cant start PostgreSQL Using command prompt Saravanan Nagarajan <n.saravanan86@gmail.com>
@ 2013-09-11 13:01 ` Michael Paquier <michael.paquier@gmail.com>
  2013-09-17 06:52   ` Re: Cant start PostgreSQL Using command prompt Saravanan Nagarajan <n.saravanan86@gmail.com>
  1 sibling, 1 reply; 7+ messages in thread

From: Michael Paquier @ 2013-09-11 13:01 UTC (permalink / raw)
  To: Saravanan Nagarajan <n.saravanan86@gmail.com>; +Cc: pgsql-bugs

On Wed, Sep 11, 2013 at 4:00 AM, Saravanan Nagarajan
<n.saravanan86@gmail.com> wrote:
> Hi,
>
> I am using PostgreSQL. If am starting the db with System Account/ any domain
> account using wrapper, the DB is starting fine.
>
> If i am trying to start the PostgreSQL DB using command prompt, [Normal mode
> or Run as administrator.], It wont start. I provided full permission for
> everyone in Postgres DB Folder.
>
> I didn't find any error in pg_log file. I installed DB in 2008 R2 windows
> machine.
>
> My command : pg_ctl -D "..\data" -o -p3306 --log "D:\logs\pglog.txt" start &
What is exactly the version of Postgres you are trying to use?
What is the output of D:\logs\pglog.txt?
-- 
Michael


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Cant start PostgreSQL Using command prompt
  2013-09-11 11:00 Cant start PostgreSQL Using command prompt Saravanan Nagarajan <n.saravanan86@gmail.com>
  2013-09-11 13:01 ` Re: Cant start PostgreSQL Using command prompt Michael Paquier <michael.paquier@gmail.com>
@ 2013-09-17 06:52   ` Saravanan Nagarajan <n.saravanan86@gmail.com>
  2013-09-19 07:30     ` Re: Cant start PostgreSQL Using command prompt Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Saravanan Nagarajan @ 2013-09-17 06:52 UTC (permalink / raw)
  To: pgsql-bugs-owner@postgresql.org; pgsql-bugs

In pglog_txt,

LOG:  could not bind IPv6 socket: No error
HINT:  Is another postmaster already running on port 33307? If not, wait a
few seconds and retry.
LOG:  could not bind IPv4 socket: No error
HINT:  Is another postmaster already running on port 33307? If not, wait a
few seconds and retry.
WARNING:  could not create listen socket for "localhost"
FATAL:  could not create any TCP/IP sockets

But already, i set ipv6&4 in pg_hba.conf file.
My PostgreSQL Version : 9.2.1

-- Saravanan .
On 11 September 2013 18:31, Michael Paquier <michael.paquier@gmail.com>wrote:

> On Wed, Sep 11, 2013 at 4:00 AM, Saravanan Nagarajan
> <n.saravanan86@gmail.com> wrote:
> > Hi,
> >
> > I am using PostgreSQL. If am starting the db with System Account/ any
> domain
> > account using wrapper, the DB is starting fine.
> >
> > If i am trying to start the PostgreSQL DB using command prompt, [Normal
> mode
> > or Run as administrator.], It wont start. I provided full permission for
> > everyone in Postgres DB Folder.
> >
> > I didn't find any error in pg_log file. I installed DB in 2008 R2 windows
> > machine.
> >
> > My command : pg_ctl -D "..\data" -o -p3306 --log "D:\logs\pglog.txt"
> start &
> What is exactly the version of Postgres you are trying to use?
> What is the output of D:\logs\pglog.txt?
> --
> Michael
>

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Cant start PostgreSQL Using command prompt
  2013-09-11 11:00 Cant start PostgreSQL Using command prompt Saravanan Nagarajan <n.saravanan86@gmail.com>
  2013-09-11 13:01 ` Re: Cant start PostgreSQL Using command prompt Michael Paquier <michael.paquier@gmail.com>
  2013-09-17 06:52   ` Re: Cant start PostgreSQL Using command prompt Saravanan Nagarajan <n.saravanan86@gmail.com>
@ 2013-09-19 07:30     ` Michael Paquier <michael.paquier@gmail.com>
  2013-09-19 09:22       ` Re: Cant start PostgreSQL Using command prompt Saravanan Nagarajan <n.saravanan86@gmail.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Michael Paquier @ 2013-09-19 07:30 UTC (permalink / raw)
  To: Saravanan Nagarajan <n.saravanan86@gmail.com>; +Cc: pgsql-bugs-owner@postgresql.org; pgsql-bugs

On Tue, Sep 17, 2013 at 1:52 AM, Saravanan Nagarajan
<n.saravanan86@gmail.com> wrote:
> In pglog_txt,
>
> LOG:  could not bind IPv6 socket: No error
> HINT:  Is another postmaster already running on port 33307? If not, wait a
> few seconds and retry.
> LOG:  could not bind IPv4 socket: No error
> HINT:  Is another postmaster already running on port 33307? If not, wait a
> few seconds and retry.
> WARNING:  could not create listen socket for "localhost"
> FATAL:  could not create any TCP/IP sockets
>
> But already, i set ipv6&4 in pg_hba.conf file.
> My PostgreSQL Version : 9.2.1
This might be caused by something that changed on your Windows
environment like the addition of a new software (Anti-virus)? Also,
are you sure that your server is not running? Is there any process
Postgres.exe listed if you run a simple command tasklist?
-- 
Michael


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Cant start PostgreSQL Using command prompt
  2013-09-11 11:00 Cant start PostgreSQL Using command prompt Saravanan Nagarajan <n.saravanan86@gmail.com>
  2013-09-11 13:01 ` Re: Cant start PostgreSQL Using command prompt Michael Paquier <michael.paquier@gmail.com>
  2013-09-17 06:52   ` Re: Cant start PostgreSQL Using command prompt Saravanan Nagarajan <n.saravanan86@gmail.com>
  2013-09-19 07:30     ` Re: Cant start PostgreSQL Using command prompt Michael Paquier <michael.paquier@gmail.com>
@ 2013-09-19 09:22       ` Saravanan Nagarajan <n.saravanan86@gmail.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Saravanan Nagarajan @ 2013-09-19 09:22 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: pgsql-bugs-owner@postgresql.org; pgsql-bugs

Hi Michael & Team,

No anti-virus is running on that machine. I started the DB using Windows
service. Its working fine. I am trying to start the DB with different user
credentials using command prompt, the DB is not started. I provided full
permission for everyone to postgres folder and its sub folder.


On 19 September 2013 13:00, Michael Paquier <michael.paquier@gmail.com>wrote:

> On Tue, Sep 17, 2013 at 1:52 AM, Saravanan Nagarajan
> <n.saravanan86@gmail.com> wrote:
> > In pglog_txt,
> >
> > LOG:  could not bind IPv6 socket: No error
> > HINT:  Is another postmaster already running on port 33307? If not, wait
> a
> > few seconds and retry.
> > LOG:  could not bind IPv4 socket: No error
> > HINT:  Is another postmaster already running on port 33307? If not, wait
> a
> > few seconds and retry.
> > WARNING:  could not create listen socket for "localhost"
> > FATAL:  could not create any TCP/IP sockets
> >
> > But already, i set ipv6&4 in pg_hba.conf file.
> > My PostgreSQL Version : 9.2.1
> This might be caused by something that changed on your Windows
> environment like the addition of a new software (Anti-virus)? Also,
> are you sure that your server is not running? Is there any process
> Postgres.exe listed if you run a simple command tasklist?
> --
> Michael
>



-- 
Regards
  Saravanan.N.
  Ph: +91-9965003321
  Twitter : twitter.com/#!/Saravanan221186/<http://twitter.com/#%21/Saravanan221186/;

"First, be unique. Second, remember that 21st century India requires you to
‘work with integrity and succeed with integrity’. Third, the spirit of
‘What Can I Give’ shall replace the attitude of ‘What Can I Take’ — which
is what causes greed, leading to problems like corruption, environmental
degradation and moral turpitude." - Dr.A.P.J.Abdul Kalam

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Cant start PostgreSQL Using command prompt
  2013-09-11 11:00 Cant start PostgreSQL Using command prompt Saravanan Nagarajan <n.saravanan86@gmail.com>
@ 2013-09-11 17:19 ` John R Pierce <pierce@hogranch.com>
  2013-09-12 06:50   ` Re: Cant start PostgreSQL Using command prompt Thomas Kellerer <spam_eater@gmx.net>
  1 sibling, 1 reply; 7+ messages in thread

From: John R Pierce @ 2013-09-11 17:19 UTC (permalink / raw)
  To: pgsql-bugs

On 9/11/2013 4:00 AM, Saravanan Nagarajan wrote:
> I am using PostgreSQL. If am starting the db with System Account/ any 
> domain account using wrapper, the DB is starting fine.
>
> If i am trying to start the PostgreSQL DB using command prompt, 
> [Normal mode or Run as administrator.], It wont start. I provided full 
> permission for everyone in Postgres DB Folder.
>
> I didn't find any error in pg_log file. I installed DB in 2008 R2 
> windows machine.
>
> My command : *pg_ctl -D "..\data" -o -p3306 --log "D:\logs\pglog.txt" 
> start &*
> *
> *


NET START "postgres service name"


btw, afaik Windows command prompt has no idea what & means.

-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Cant start PostgreSQL Using command prompt
  2013-09-11 11:00 Cant start PostgreSQL Using command prompt Saravanan Nagarajan <n.saravanan86@gmail.com>
  2013-09-11 17:19 ` Re: Cant start PostgreSQL Using command prompt John R Pierce <pierce@hogranch.com>
@ 2013-09-12 06:50   ` Thomas Kellerer <spam_eater@gmx.net>
  0 siblings, 0 replies; 7+ messages in thread

From: Thomas Kellerer @ 2013-09-12 06:50 UTC (permalink / raw)
  To: pgsql-bugs

John R Pierce, 11.09.2013 19:19:
> btw, afaik Windows command prompt has no idea what & means.

No, that's not true.

See here for example:
<http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds_shelloverview....;






-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2013-09-19 09:22 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-09-11 11:00 Cant start PostgreSQL Using command prompt Saravanan Nagarajan <n.saravanan86@gmail.com>
2013-09-11 13:01 ` Michael Paquier <michael.paquier@gmail.com>
2013-09-17 06:52   ` Saravanan Nagarajan <n.saravanan86@gmail.com>
2013-09-19 07:30     ` Michael Paquier <michael.paquier@gmail.com>
2013-09-19 09:22       ` Saravanan Nagarajan <n.saravanan86@gmail.com>
2013-09-11 17:19 ` John R Pierce <pierce@hogranch.com>
2013-09-12 06:50   ` Thomas Kellerer <spam_eater@gmx.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox