More on TG as a Service

4 views
Skip to first unread message

martin

unread,
Jul 26, 2006, 6:03:50 AM7/26/06
to TurboGears
The last Thread and the cool code snippet with tutorial at

http://trac.turbogears.org/turbogears/wiki/DeployAsWindowsService

has been very helpful, up to the point that it doesnt start.

Now it says the script has been tested on TG0.96a

I am currently running TG0.89 and I have an application which needs to
run and cannot be rewriten in time for deployment.

The Service seems to install correctly with the script, on Starting it
shuts down right away.

The Event Log tells me:

The instance's SvcRun() method failed
File "C:\Python24\Lib\site-packages\win32\lib\win32serviceutil.py",
line 715, in SvcRun
self.SvcDoRun()
File "c:\home\martin\python\order\service.py", line 105, in SvcDoRun
self.tg_init()
File "c:\home\martin\python\order\service.py", line 138, in tg_init
turbogears.update_config(configfile="dev.cfg",
exceptions.AttributeError: 'module' object has no attribute
'update_config'


which seems to indicate a version incompatibility. Is there a work
around?

Please, please advise.

Joost Moesker

unread,
Jul 26, 2006, 7:02:53 AM7/26/06
to TurboGears
I think that 0.89 still used the cherrypy.config module. Your
start-projectname.py file should show you the procedure used to
configure the application. Another option would be to use instsrv.exe
(google it for more info).

Joost Moesker

unread,
Jul 26, 2006, 7:05:53 AM7/26/06
to TurboGears

Joost Moesker wrote:
> Another option would be to use instsrv.exe (google it for more info).

SRVANY.EXE that is

Jorge Vargas

unread,
Jul 26, 2006, 11:25:34 AM7/26/06
to turbo...@googlegroups.com
On 7/26/06, martin <br_m...@yahoo.com> wrote:

The last Thread and the cool code snippet with tutorial at

http://trac.turbogears.org/turbogears/wiki/DeployAsWindowsService

has been very helpful, up to the point that it doesnt start.

Now it says the script has been tested on TG0.96a

I am currently running TG0.89 and I have an application which needs to
run and cannot be rewriten in time for deployment.

The Service seems to install correctly with the script, on Starting it
shuts down right away.

which seems to indicate a version incompatibility. Is there a work
around?

I believe that wiki was written on the 0.9 branch, therefore never tested under 0.8, you will probably have to backport some things.

the history shows it's creation at 12/07/05, which sems to be close to the 0.9.8 release
I remenber reporting it broken a while ago and some instructions where change
why don't you try
http://trac.turbogears.org/turbogears/wiki/DeployAsWindowsService?version=1

Sean De La Torre

unread,
Jul 26, 2006, 4:49:03 PM7/26/06
to turbo...@googlegroups.com
The original version of that doc was written with the 0.8.x version of TG.  Take a look at version 3 of that doc (http://trac.turbogears.org/turbogears/wiki/DeployAsWindowsService?version=3 ) - it looks like I fixed a couple of typos with the first two versions.
Reply all
Reply to author
Forward
0 new messages