Re: jobqueue.pl permissions issue - Mozilla

This is a discussion on Re: jobqueue.pl permissions issue - Mozilla ; Probably this is the same "Permission Denied" that comes up when testing the package "Data::ObjectDriver" (prerequisite to The Schwartz); seems like there's a windows-specific issue with the perl- command "unlink" which is used... > Yes, the user running jobqueue.pl has ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Re: jobqueue.pl permissions issue

  1. Re: jobqueue.pl permissions issue

    Probably this is the same "Permission Denied" that comes up when
    testing the package "Data::ObjectDriver" (prerequisite to The
    Schwartz); seems like there's a windows-specific issue with the perl-
    command "unlink" which is used...


    > Yes, the user running jobqueue.pl has "Full Control" on the data/
    > directory. *The "jobqueue.pl.pid" file gets created, but is empty.
    >
    > -----Original Message-----
    > From:
    >
    > support-bugzilla-bounces+jgoldberg=msdignition....@lists.mozilla.or g
    > [mailto:support-bugzilla-bounces+jgoldberg=msdignition....@lists.mozilla
    > .org] On Behalf Of Max Kanat-Alexander
    > Sent: Thursday, July 30, 2009 4:40 AM
    > To: support-bugzi...@lists.mozilla.org
    > Subject: Re: jobqueue.pl permissions issue
    >
    > Jonathan E. Goldberg wrote:
    > > write_file './data/jobqueue.pl.pid' - syswrite: Permission denied at
    > > c:/Perl/site/lib/Daemon/Generic.pm line 182

    >
    > * * * * Although, come to think of it, this particular issue might be
    > that the
    > user running jobqueue.pl needs to have "Full Control" on the data/
    > directory.
    >
    > * * * * -Max
    > --http://www.everythingsolved.com/
    > Competent, Friendly Bugzilla and Perl Services. Everything Else, too.
    > _______________________________________________
    > support-bugzilla mailing list
    > support-bugzi...@lists.mozilla.orghttps://lists.mozilla.org/listinfo/support-bugzilla
    > PLEASE put support-bugzi...@lists.mozilla.org in the To: field when you
    > reply.



  2. Re: jobqueue.pl permissions issue

    OK, this issue is down to "unlink" on Windows OS. It seems on windows
    it can't unlink files if the file has an open handle.

    Is there any other module that can be used instead of
    "Daemon::Generic" and "TheSchwartz" as both have a lot of trouble
    compiling and running on Windows OS?

  3. Re: jobqueue.pl permissions issue

    Quote Originally Posted by rojanu View Post
    OK, this issue is down to "unlink" on Windows OS. It seems on windows
    it can't unlink files if the file has an open handle.

    Is there any other module that can be used instead of
    "Daemon::Generic" and "TheSchwartz" as both have a lot of trouble
    compiling and running on Windows OS?
    1. Using Notepad to create a new file and name “jobqueue.pl.pid”, then save it on “D:” driver
    2. Open file “C:\Bugzilla\perl\perl\site\lib\File\Slurp.pm”
    3. Edit code at line296 “unless ( sysopen( $write_fh, $file_name, $mode ) )“ to “unless ( sysopen( $write_fh, “D:/jobqueue.pl.pid”, $mode ) )”
    4. Run command "perl jobqueue.pl -f start" again

    Hope it is useful for you

+ Reply to Thread