#1 2014-09-05 11:10:11

proto
Member
From: Russia, Kostroma
Registered: 2011-09-12
Posts: 31

10 - Background Http service not work after update

i update mormot and recompile my background service and he broken - not work. I rollback to old mormot folder and service work fine, again change folder to new mormot and broken.
i run sample 10 - Background Http service and he broken too///

log on /install:

20140905 15080316 trace mORMotHttpServerService="ssStopped"
20140905 15080316 info  Controling mORMotHttpServerService with command "/install"
20140905 15080316 OSERR CreateService("mORMotHttpServerService","mORMot Http Server Service") "Указанная служба уже существует" (1073)  stack trace API 00528B12 005A77BA 005A7DB6 006345A7 00639D3E 7C817077
20140905 15080316 trace Quitting command line
20140905 15080316 trace mORMotHttpServerService="ssStopped"

log on /start

20140905 15080437 trace mORMotHttpServerService="ssStopped"
20140905 15080437 info  Controling mORMotHttpServerService with command "/start"
20140905 15080443 OSERR TServiceController(00C84F90) Start "Служба не ответила на запрос своевременно" (1053)  stack trace API 00528C02 005A7C92 005A7E56 006345A7 00639D3E 7C817077
20140905 15080443 trace Quitting command line
20140905 15080443 trace mORMotHttpServerService="ssStopped"

Last edited by proto (2014-09-05 11:35:15)

Offline

#2 2014-09-05 15:59:32

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: 10 - Background Http service not work after update

Seems the same as http://synopse.info/forum/viewtopic.php?id=1868

Could you please create an issue ticket, linking to both forum threads?

Offline

#3 2014-09-05 17:50:27

danielkuettner
Member
From: Germany
Registered: 2014-08-06
Posts: 357

Re: 10 - Background Http service not work after update

Only a note from me:

I use mORMot as service with the newest version and it works well.
I start the service on cmd with:

net start/stop XXX

I have XE6 upd 1.

Offline

#4 2014-09-05 18:00:26

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: 10 - Background Http service not work after update

Yes, using the "net" standard command is much cleaner than our "/start /stop" command line switches.

This is a very good workaround.
Thanks for the feedback.

Offline

#5 2014-09-08 10:38:49

proto
Member
From: Russia, Kostroma
Registered: 2011-09-12
Posts: 31

Re: 10 - Background Http service not work after update

hm, very strange.
rewrite server with 10 - Background Http service and try use xxx /install and danielkuettner command - it works!

thanks for advise danielkuettner, but i dont know why new version broken /start command, may be not execute procedure TSQLite3HttpService.DoStart(Sender: TService)?

Offline

#6 2014-09-08 11:40:07

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: 10 - Background Http service not work after update

Offline

#7 2014-09-24 20:18:35

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: 10 - Background Http service not work after update

This is in fact a limitation of the service implementation in Windows: you can not start a service from the same executable which implements it.

We have therefore added httpServiceSetup so that HttpService sample would be managed (i.e. install/start/stop/uninstall) in a separated sample.
See the ticket and http://synopse.info/fossil/info/d6d4c3283b

Offline

Board footer

Powered by FluxBB