mongoose as windows service, failed error 1053

157 views
Skip to first unread message

Martin BA

unread,
Sep 12, 2013, 7:10:00 AM9/12/13
to mongoos...@googlegroups.com
I'm trying to run Mongoose as Windows service. According my conditions I can't run it by "Install as service" in systray icon, I have to run it by command line.

This is commands I use:

Service has been successfully installed:

Registry:



But I'm still getting ERROR 1053 on SC START. What am I doing wrong please?



Sergey Lyubka

unread,
Sep 12, 2013, 7:22:58 AM9/12/13
to mongoose-users
Hi Martin,
commands and registry info got stripped out from your email, could you re-send it please?



--
You received this message because you are subscribed to the Google Groups "mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongoose-user...@googlegroups.com.
To post to this group, send email to mongoos...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/groups/opt_out.

Martin BA

unread,
Sep 12, 2013, 7:28:44 AM9/12/13
to mongoos...@googlegroups.com
of course - attached
I use this version of mongoose: https://mongoose.googlecode.com/files/mongoose-4.1.exe

Dňa štvrtok, 12. septembra 2013 13:22:58 UTC+2 Sergey Lyubka napísal(-a):
mongoose.reg
mongoose.conf
m.rename-to-bat

Sergey Lyubka

unread,
Sep 12, 2013, 7:32:53 AM9/12/13
to mongoose-users
I don't think "-service" paramenter should be used in your .bat file.
Please delete the service, remove the param, and re-create the service.

Martin ILLE

unread,
Sep 12, 2013, 7:42:01 AM9/12/13
to mongoos...@googlegroups.com
still getting the same error - see attached screen

(btw, if you are able, we could use teamviewer)


S pozdravom / Yours sincerely
Martin ILLE
+421 908 811 128
skype: martinille


1.png

Sergey Lyubka

unread,
Sep 12, 2013, 8:01:29 AM9/12/13
to mongoose-users
Sorry, can't use team viewer.
I am not sure how settings in .reg file interact with the service. I think
Windows start services in windows/system32 directory, which contradicts .reg file.

Try to register your service with a bare minimum, and start it:

sc create MG binPath= c:\atmos3\mongoose\mongoose.exe
sc start MG
 

Martin ILLE

unread,
Sep 12, 2013, 8:05:43 AM9/12/13
to mongoos...@googlegroups.com
unfortunately, the same error... but the starting (sc start MG)  took a few seconds, probably trying to start the service
do you have any idea please?


S pozdravom / Yours sincerely
Martin ILLE
+421 908 811 128
skype: martinille




1.png

Sergey Lyubka

unread,
Sep 12, 2013, 8:10:48 AM9/12/13
to mongoose-users
ok, rename mongoose.conf in the mongoose directory to something else.
make sure port 8080 is not occupied by anything, and try starting service MG again.

Martin ILLE

unread,
Sep 12, 2013, 8:17:38 AM9/12/13
to mongoos...@googlegroups.com
port 8080 not used (line netstat...), still the same error 1053

btw, my goal is to run mongoose without systray icon, so I don't need it exactly as service. if is it here another solution how to run it without systray, I can try it.. unfortunately I don't know C programming language for embedding it


S pozdravom / Yours sincerely
Martin ILLE
+421 908 811 128
skype: martinille




1.png

Sergey Lyubka

unread,
Sep 12, 2013, 8:49:57 AM9/12/13
to mongoose-users
Maybe firewall blocks it, and service manager gives up on waiting?
Try to start the binary by hands first. Add a rule to firewall to allow listening on port.

Sergey Lyubka

unread,
Sep 12, 2013, 8:59:40 AM9/12/13
to mongoose-users
Looked at main.c, apparently a "--" argument needs to be passed to mongoose.exe in service mode.

Martin ILLE

unread,
Sep 12, 2013, 9:31:18 AM9/12/13
to mongoos...@googlegroups.com
Ok I turned off firewall and tried again with "--service" parameter. Still looks the same: http://prntscr.com/1qtx8a


S pozdravom / Yours sincerely
Martin ILLE
+421 908 811 128
skype: martinille




Sergey Lyubka

unread,
Sep 12, 2013, 9:32:05 AM9/12/13
to mongoose-users
Not "--service", just "--".

Martin ILLE

unread,
Sep 12, 2013, 9:43:07 AM9/12/13
to mongoos...@googlegroups.com
Working!! http://prntscr.com/1qty37 http://prntscr.com/1qty64
Even with firewall turned on.

Thank you very much!



S pozdravom / Yours sincerely
Martin ILLE
+421 908 811 128
skype: martinille




Sergey Lyubka

unread,
Sep 12, 2013, 9:44:39 AM9/12/13
to mongoose-users
You're welcome Martin.
Reply all
Reply to author
Forward
0 new messages