|
Home > Archive > PostgreSQL for Windows > July 2005 > Sporadic ValidateBinary error
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Sporadic ValidateBinary error
|
|
| Wynn, Robin 2005-07-15, 9:23 am |
| Hi...
I'm using Postgres 7.3.1 (yes, I know it's old) on a number of machines
running Windows 2000. For reasons I can't get into, we cannot start
Postgres as a service, we instead have a startup script that gets
registered with a cron-like application. What we are seeing is that on
some machines, postgres starts normally, and all is well. On others, it
comes up in the process list, then disappears. On still others, the
problem is sporadic. I have two debug environment dumps from one of the
sporadic machines, one instance where postgres came up and one where it
did not. They are identical until they reach this point:
2005-07-14 20:24:33 [1764] DEBUG:
-----------------------------------------
2005-07-14 20:24:33 [1764] DEBUG: FindExec: searching PATH ...
2005-07-14 20:24:33 [1764] DEBUG: FindExec: found
"/jms_root/bin/postgres" using PATH
2005-07-14 20:24:33 [1764] DEBUG: invoking IpcMemoryCreate(size
=1441792)
2005-07-14 20:24:37 [1764] DEBUG: FindExec: searching PATH ...
2005-07-14 20:24:37 [1764] DEBUG: FindExec: found
"/jms_root/bin/postmaster" using PATH
2005-07-14 20:24:37 [1848] LOG: database system was shut down at
2005-07-14 20:22:31 GMTST
2005-07-14 20:24:37 [1848] LOG: checkpoint record is at 0/C1F690
2005-07-14 20:24:37 [1848] LOG: redo record is at 0/C1F690; undo record
is at 0/0; shutdown TRUE
2005-07-14 20:24:37 [1848] LOG: next transaction id: 3856; next oid:
33324
2005-07-14 20:24:37 [1848] LOG: database system is ready
That's an example that worked fine. The next reboot of the machine, it
failed:
2005-07-14 21:03:29 [2176] DEBUG:
-----------------------------------------
2005-07-14 21:03:29 [2176] DEBUG: FindExec: searching PATH ...
2005-07-14 21:03:29 [2176] DEBUG: FindExec: found
"/jms_root/bin/postgres" using PATH
2005-07-14 21:03:29 [2176] DEBUG: invoking IpcMemoryCreate(size
=1441792)
2005-07-14 21:03:33 [2176] DEBUG: FindExec: searching PATH ...
2005-07-14 21:03:33 [2176] DEBUG: ValidateBinary:
"/jms_root/bin/postmaster" is not other read/execute
The last line caught my attention, but as I said, it's the same machine,
with the same postmaster executable, with the same permissions. The
user in both cases starting Postgres is SYSTEM, and SYSTEM has full
control of the executable. The sporadic nature of the problem makes me
wonder if there is some sort of race condition, but I can't think of
anything that would be touching the postmaster executable besides our
startup script. Does this ring any bells with anyone? I have been
digging through the archives here, but haven't seen anything, and I
figured I'd get this post out because time is somewhat of the essence.
Any advice would be appreciated. Thanks...
Robin
| |
| S. L. 2005-07-17, 11:23 am |
| [...]
>2005-07-14 21:03:33 [2176] DEBUG: ValidateBinary:
>"/jms_root/bin/postmaster" is not other read/execute
>
>
>The last line caught my attention, but as I said, it's the same machine,
>with the same postmaster executable, with the same permissions. The
>user in both cases starting Postgres is SYSTEM, and SYSTEM has full
>control of the executable. The sporadic nature of the problem makes me
>wonder if there is some sort of race condition, but I can't think of
>anything that would be touching the postmaster executable besides our
>startup script. Does this ring any bells with anyone?
[...]
The first bell it rang was that a disk issue condition could happen. A chkdsk on the posmaster in your scripts might help.
Also in that debug line, I think the key word is "other". It doesn't matter SYSTEM is "rwx" on the postmaster, but you must make sure other (the righmost rights) is at least "r-x" (as ValidateBinary suggests). So a "chmod <put_proper_options> postmaster"
in your scripts, could also be a good ideea.
SLao
____________________
____________________
____________________
______
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register
Netscape. Just the Net You Need.
New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql
.org so that your
message can get through to the mailing list cleanly
|
|
|
|
|