Project

General

Profile

Actions

Bug #6526

closed

Registering the smart-proxy service on windows fails.

Added by Oliver Weinmann almost 11 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hi,

I can't get the smart-proxy service registered on a Windows 2008 R2 server.

I receive the following error when running ruby extra/register-service.rb. The cmd shell is run as administrator.

There was a problem registering the service: The specified service has been marked for deletion. - CreateService: The specified service has been marked for deletion. Check log file for details

I don't know if there is a specific log?

I had problems installing the win32-service gem:

c:\Ruby187\devkit>devkitvars.bat
Adding the DevKit to PATH...
gem install --version 0.7.1 --platform x86-mingw32-60 win32-service
Building native extensions.  This could take a while...
ERROR:  Error installing win32-service:
        ERROR: Failed to build gem native extension.

        C:/Ruby187/bin/ruby.exe extconf.rb
checking for RegisterServiceCtrlHandlerEx()... yes
creating Makefile

make
gcc -I. -I. -IC:/Ruby187/lib/ruby/1.8/i386-mingw32 -I. -DHAVE_REGISTERSERVICECTR
LHANDLEREX    -g -O2 -DFD_SETSIZE=256    -c win32/daemon.c
win32/daemon.c: In function 'Ruby_Service_Ctrl':
win32/daemon.c:141:7: error: '__try' undeclared (first use in this function)
win32/daemon.c:141:7: note: each undeclared identifier is reported only once for
 each function it appears in
win32/daemon.c:142:7: error: expected ';' before '{' token
win32/daemon.c: In function 'Service_Ctrl':
win32/daemon.c:199:4: error: '__try' undeclared (first use in this function)
win32/daemon.c:200:4: error: expected ';' before '{' token
make: *** [daemon.o] Error 1

Instead I installed

win32-service (0.7.1 x86-mswin32-60)

Could this be the root cause of the problems?

Actions #1

Updated by Anonymous over 9 years ago

  • Status changed from New to Feedback

This happens when you attempt to re-install the smart-proxy service using 'register-service' script. Rebooting the OS will let you install the service again.

Actions #2

Updated by Anonymous almost 8 years ago

  • Status changed from Feedback to Resolved

no reaction, closing

Actions

Also available in: Atom PDF