[p4dti-discussion] P4DTI 2.3.5 on MS 2003 Server
Nick Barnes
nb at ravenbrook.com
Wed Feb 28 18:40:12 GMT 2007
At 2007-02-26 23:22:12+0000, "Ari Sirin" writes:
> Running P4DTI-2.3.5 as an NT Service integrating Bugzilla 2.22.1 and
> Perforce.
>
> Recently we started having replicator problems. While investigating this
> issue we started having another problem: Permission error on p4config
> file
>
> Fatal error in P4DTI service: exceptions.IOError: [Errno 13] Permission
> denied: 'p4config'.
>
> I checked the security permissions for this file and both the
> administrator and the SYSTEM have full permissions. The P4DTI service is
> running as the administrator.
>
> Any ideas why this may be happening?
I'm afraid not, no. I might be able to help more if you can provide
more of a stack backtrace (from the P4DTI log file).
The replicator creates the p4config file (see p4.py), writes to it,
and then changes the permissions on it so that other users can't read
it. This last part is done by the function protect_file in
portable.py, which as you can see is some rather ghastly code using
the Python win32 modules (win32security etc). Those modules are not
well documented.
When I wrote this code back in 2003 I tried to get better
documentation on the APIs from the authors of the Python win32
modules, but they weren't able to help me. I read the sources and the
MSDN documentation on the underlying Win32 C APIs, but it was still
something of a minefield.
Nick Barnes
P4DTI Project
Ravenbrook Limited
More information about the P4DTI-discussion
mailing list