0

I'm trying to make a service out of devpi-server, here's the steps I've followed:

  • Create virtualenv: virtualenv venv_devpi
  • Activate: venv_devpi\Scripts\activate
  • Install devpi-server: pip install devpi-server
  • Test the server (it runs at localhost:3141): devpi-server
  • Stop it: ctrl+c
  • Create windows service: sc create devpi-server binPath="D:\venv_devpi\Scripts\devpi-server.exe"
  • Test new service: sc start devpi-server

And I'm getting the following error:

# sc start devpi-server [SC] StartService FAILED 1053:

The service did not respond to the start or control request in a timely fashion.

Here's the information of the service:

# sc qc devpi-server
[SC] QueryServiceConfig SUCCESS

SERVICE_NAME: devpi-server
        TYPE               : 10  WIN32_OWN_PROCESS
        START_TYPE         : 3   DEMAND_START
        ERROR_CONTROL      : 1   NORMAL
        BINARY_PATH_NAME   : D:\venv_devpi\Scripts\devpi-server.exe
        LOAD_ORDER_GROUP   :
        TAG                : 0
        DISPLAY_NAME       : devpi-server
        DEPENDENCIES       :
        SERVICE_START_NAME : LocalSystem

If you run devpi-gen-config one folder with some instructions for windows are generated and it's suggesting to use the very old instsrv.exe or srvany.exe which it's not available on windows10... I saw there is this non-windows nssm tool.

Anyway, let's forget about these non builtin win10 tools for a moment. How can I run devpi-server by just using the builtin win10 services.msc and sc.exe tools? Is it possible to fix this error code 1053 somehow?

BPL
  • 9,632
  • 9
  • 59
  • 117

0 Answers0