Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

jobqueue.pl on Windows

114 views
Skip to first unread message

Justin Daubenmire

unread,
Dec 28, 2009, 2:58:38 PM12/28/09
to support-...@lists.mozilla.org
Guys,

Does anyone know of a way to get jobqueue.pl to work on windows?

I've read over some blogs and posts on bugzilla 3.4.4 with folks getting
errors related to jobqueue.pl on Windows. I seen a few posts from max
saying it was not tested on windows. Has anyone got jobqueue.pl to
work yet on windows? If yes, how?

Thanks!


/Justin

Justin Daubenmire

unread,
Dec 29, 2009, 7:09:21 AM12/29/09
to support-...@lists.mozilla.org
Hey Max (or anyone else),

Under windows, I was thinking that I could program a simple console
application to perform the routine you are doing in the jobqueue.pl
file.

Can you explain to me how you are finding the emails that are cued to
send out? Are you searching the bugs database for a flag such as "sent"
true/false? Or are you saving information to files on the hard drive and
reading them to construct an email to send out? If files, where can I
review the format of the files so I can perhaps read them with a windows
console application that is setup to run as a scheduled task every 5
minutes, for example.

Basically, I want to study or understand how you have this in place,
what .pl or .cgi files I should study, then I am going to try to program
a windows console application to perform the same task that the
jobqueue.pl file is performing.

Thanks for any pointers!


/Justin


________________________________

Thorsten Schöning

unread,
Dec 29, 2009, 8:07:05 AM12/29/09
to support-...@lists.mozilla.org
Guten Tag Justin Daubenmire,
am Dienstag, 29. Dezember 2009 um 13:09 schrieben Sie:

> Under windows, I was thinking that I could program a simple console
> application to perform the routine you are doing in the jobqueue.pl
> file.

As I understood the problem Bugzilla uses the generic job framework
TheSchwartz, which is not available for Windows. What you really need
to do is get that one running under Windows or else you are
reimplementing it.

Look in Bugzilla::JobQueue.

Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning
AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig

Telefon: Potsdam: 0331-743881-0
E-Mail: tscho...@am-soft.de
Web: http://www.am-soft.de

AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam
Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow

Justin Daubenmire

unread,
Dec 29, 2009, 2:08:33 PM12/29/09
to support-...@lists.mozilla.org
I was able to install TheSchwartz package for bugzilla 3.4.4 on windows xp just fine.

I am a .net programmer, have not messed much with perl, but where can I get the source code for TheSchwartz - does anyone know?

Also, does any windows programmers/users out there know what is the matter with TheSchwartz package under windows?

Finally, would it actually be easier to just role out a windows console application for this exact task? Others, any thoughts on that?

/Justin

Look in Bugzilla::JobQueue.

Mit freundlichen Grüßen,

Thorsten Schöning

_______________________________________________
support-bugzilla mailing list
support-...@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put support-...@lists.mozilla.org in the To: field when you reply.

Thorsten Schöning

unread,
Dec 30, 2009, 2:37:47 AM12/30/09
to support-...@lists.mozilla.org
Guten Tag Justin Daubenmire,
am Dienstag, 29. Dezember 2009 um 20:08 schrieben Sie:

> I was able to install TheSchwartz package for bugzilla 3.4.4 on windows xp just fine.

Then everything I said is wrong. :-) Did you really install
TheSchwartz and not TheSchwartz-Simple, for example? Informer threads
Windows users had a lot of propblems installing TheSchwartz and
Deamon-Generic because it is not in the ActiveState nor theory58S
repository and manually installing it seemed to be a pain because of
prerequisites which are either not supported under Windows etc.

> I am a .net programmer, have not messed much with perl, but where
> can I get the source code for TheSchwartz - does anyone know?

This is not the Windows-version, just search for the file in your perl
installation or where ever your packages installed by ppm went to and
open it in an editor of your choice.

http://search.cpan.org/~bradfitz/TheSchwartz-1.07/lib/TheSchwartz.pm
http://cpansearch.perl.org/src/BRADFITZ/TheSchwartz-1.07/lib/TheSchwartz.pm

> Also, does any windows programmers/users out there know what is the
> matter with TheSchwartz package under windows?

Search the list, especially the Thread "Where to get TheSchwartz and
Daemon-Generic".

http://groups.google.com/group/mozilla.support.bugzilla/browse_thread/thread/58b761f5f876df23/10880ad3fad34142?lnk=raot

Justin Daubenmire

unread,
Jan 6, 2010, 2:41:01 PM1/6/10
to support-...@lists.mozilla.org
Hi all,

How do I use the quick bug entry form in v3.4.4?

Is there any documentation on it?

If I use the quick bug entry form in 3.4.4, who is the ticket actually assigned to?

Sorry if this is covered elsewhere, I cannot seem to find detailed documentation on it.

Thanks for any help!

/Justin

Gervase Markham

unread,
Jan 11, 2010, 5:57:30 AM1/11/10
to
On 06/01/10 19:41, Justin Daubenmire wrote:
> How do I use the quick bug entry form in v3.4.4?

Which form is that?

Gerv

Justin Daubenmire

unread,
Jan 13, 2010, 7:12:21 AM1/13/10
to support-...@lists.mozilla.org
Guys,

Is there any way this can be fixed to work under windows for version 3.5 of bugzilla?

I have had no luck trying to fix it myself.



/Justin

-----Original Message-----
From: support-bugzilla-bounces+justin=cbos...@lists.mozilla.org [mailto:support-bugzilla-bounces+justin=cbos...@lists.mozilla.org] On Behalf Of Thorsten Schöning
Sent: Wednesday, December 30, 2009 2:38 AM
To: support-...@lists.mozilla.org
Subject: Re: jobqueue.pl on Windows

http://search.cpan.org/~bradfitz/TheSchwartz-1.07/lib/TheSchwartz.pm
http://cpansearch.perl.org/src/BRADFITZ/TheSchwartz-1.07/lib/TheSchwartz.pm

http://groups.google.com/group/mozilla.support.bugzilla/browse_thread/thread/58b761f5f876df23/10880ad3fad34142?lnk=raot

Mit freundlichen Grüßen,

Thorsten Schöning

_______________________________________________

Max Kanat-Alexander

unread,
Mar 8, 2010, 10:44:42 PM3/8/10
to support-...@lists.mozilla.org
On 12/29/2009 04:09 AM, Justin Daubenmire wrote:
> Under windows, I was thinking that I could program a simple console
> application to perform the routine you are doing in the jobqueue.pl
> file.

Hey Justin. As Thorsten has pointed out, we are using TheSchwartz.

The problem is that you can't fork a daemon on Windows, because you
can't fork processes on Windows. It's possible that jobqueue.pl will run
anyway with these arguments:

./jobqueue.pl -f start

That doesn't fork it or try to make it a daemon. If you could install a
service that did that (from the Bugzilla directory), it's possible you
could get it working on Windows. If you do, please post your experience
and instructions somewhere for other people to use.

-Max
--
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.

Thorsten Schöning

unread,
Mar 9, 2010, 2:49:59 AM3/9/10
to support-...@lists.mozilla.org
Guten Tag Max Kanat-Alexander,
am Dienstag, 9. März 2010 um 04:44 schrieben Sie:

> The problem is that you can't fork a daemon on Windows, because you
> can't fork processes on Windows.

Win32::Process works just fine for us, when we nee to launch a program
running in the background under Windows and Linux. We retrieve the
perl execution path, build a command line for perl.exe and are
creating a detached process. The program to start should just
recognize it's running on Windows and shouldn't fork in this case.

> That doesn't fork it or try to make it a daemon. If you could install a
> service that did that (from the Bugzilla directory), it's possible you
> could get it working on Windows. If you do, please post your experience
> and instructions somewhere for other people to use.

I have SCMBug running as a service using srvany from Windows Resource
Kit for years now and it works just fine.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SCMBug]
"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):73,00,72,00,76,00,61,00,6e,00,79,00,2e,00,65,00,78,00,65,00,\
00,00
"DisplayName"="SCMBug"
"ObjectName"=".\\SCMBug"
"Description"="SCMBug für Subversion"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SCMBug\Parameters]
"Application"="C:\\\\Programme\\\\Perl\\\\bin\\\\perl.exe \"C:\\\\Programme\\\\Scmbug\\\\sbin\\\\scmbug_daemon.pl\" \"C:\\\\Programme\\\\Scmbug\\\\etc\\\\scmbug\\\\daemon.conf\""

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SCMBug\Enum]
"0"="Root\\LEGACY_SCMBUG\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001

0 new messages