Re: Postmaster doesn't start under CygWin (semctl failed)

Lists: pgsql-cygwin
From: Bernard NIZET <bernard(dot)nizet(at)online(dot)be>
To: pgsql-cygwin(at)postgresql(dot)org
Subject: Postmaster doesn't start under CygWin (semctl failed)
Date: 2003-06-25 16:25:40
Message-ID: 3EF9CD04.4030104@online.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-cygwin

Thanks for help.
Now I have my postgres user.

And I saw I'm in postgresql 7.3.2.
If I want to upgrade to 7.3.3 do I have to uninstall ? Do I need to
upgrade ?

I tried to start postmaster, without success. The service stop with no
message from postmaster.

So I gave a look at /usr/share/postgresql directory
I saw the owner was not postgres. So I tried a chown or chown -R again
on the data directory and the owner stays always and always my NT Login
User.

I started postmaster under bash (while IPC-daemon was started like a NT
service) and I used -d 5 parameter to debug.

The message received was :

IpcSemaphoreInitialize: semctl(id=2, 0, SETVAL, 0) failed: Invalid argument

Where is the problem ?

>
>


From: Jason Tishler <jason(at)tishler(dot)net>
To: Bernard NIZET <bernard(dot)nizet(at)online(dot)be>
Cc: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: Postmaster doesn't start under CygWin (semctl failed)
Date: 2003-06-25 20:07:51
Message-ID: 20030625200751.GA1048@tishler.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-cygwin

Bernard,

On Wed, Jun 25, 2003 at 06:25:40PM +0200, Bernard NIZET wrote:
> The message received was :
>
> IpcSemaphoreInitialize: semctl(id=2, 0, SETVAL, 0) failed: Invalid argument
>
> Where is the problem ?

Does the following help?

http://216.239.39.100/search?q=cache:WmTl_QK1BdoJ:sources.redhat.com/ml/cygwin/2002-12/msg00481.html+IpcSemaphoreInitialize+cygwin&hl=en&ie=utf-8

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6


From: Jason Tishler <jason(at)tishler(dot)net>
To: Bernard NIZET <bernard(dot)nizet(at)online(dot)be>
Cc: Pgsql-Cygwin <pgsql-cygwin(at)postgresql(dot)org>
Subject: Re: Postmaster doesn't start under CygWin (semctl failed)
Date: 2003-06-26 12:24:17
Message-ID: 20030626122417.GB1336@tishler.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-cygwin

Bernard,

Please keep you replies on-list.

On Wed, Jun 25, 2003 at 11:16:54PM +0200, Bernard NIZET wrote:
> Jason Tishler a écrit :
>
> [snip]
>
> Does the following help?
>
> http://216.239.39.100/search?q=cache:WmTl_QK1BdoJ:sources.redhat.com/ml/cygwin/2002-12/msg00481.html+IpcSemaphoreInitialize+cygwin&hl=en&ie=utf-8
>
> Sorry but I did it before my mail (remove tmp files and directories)
> ... and it doesn't help...

I cannot reproduce the problem or think of other things to try. So, you
will have to debug this problem further yourself.

Sorry,
Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6


From: Reshat Sabiq <sabiq(at)purdue(dot)edu>
To: Bernard NIZET <bernard(dot)nizet(at)online(dot)be>
Cc: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: Postmaster doesn't start under CygWin (semctl failed)
Date: 2003-06-26 19:29:37
Message-ID: 3EFB49A1.1060108@purdue.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-cygwin

Bernard NIZET wrote:

> Thanks for help.
> Now I have my postgres user.
>
> And I saw I'm in postgresql 7.3.2.
> If I want to upgrade to 7.3.3 do I have to uninstall ? Do I need to
> upgrade ?
>
> I tried to start postmaster, without success. The service stop with no
> message from postmaster.
>
> So I gave a look at /usr/share/postgresql directory
> I saw the owner was not postgres. So I tried a chown or chown -R again
> on the data directory and the owner stays always and always my NT
> Login User.
>
> I started postmaster under bash (while IPC-daemon was started like a
> NT service) and I used -d 5 parameter to debug.
>
> The message received was :
>
> IpcSemaphoreInitialize: semctl(id=2, 0, SETVAL, 0) failed: Invalid
> argument
>
>
> Where is the problem ?
>

I had a similar problem when i tried to install postgres as a service
last year. I ended up just starting manually from the command line. Good
thing old commands are saved by the shell, and can be easily scrolled
through...

--
Sincerely,
Reshat.

-------------------------------------------------------------------------------------------
If you see my certificate with this message, you should be able to send me encrypted e-mail.
Please consult your e-mail client for details if you would like to do that.


From: Jason Tishler <jason(at)tishler(dot)net>
To: Reshat Sabiq <sabiq(at)purdue(dot)edu>
Cc: Bernard NIZET <bernard(dot)nizet(at)online(dot)be>, pgsql-cygwin(at)postgresql(dot)org
Subject: Re: Postmaster doesn't start under CygWin (semctl failed)
Date: 2003-06-27 12:21:16
Message-ID: 20030627122116.GA884@tishler.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-cygwin

On Thu, Jun 26, 2003 at 02:29:37PM -0500, Reshat Sabiq wrote:
> Bernard NIZET wrote:
> >IpcSemaphoreInitialize: semctl(id=2, 0, SETVAL, 0) failed: Invalid
> >argument
>
> I had a similar problem when i tried to install postgres as a service
> last year. I ended up just starting manually from the command line.
> Good thing old commands are saved by the shell, and can be easily
> scrolled through...

It would be nice if someone who can reproduce the problem tries to debug
it, so we can squash this one too...

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6