smadaminov / ovs-dpdk-meson-issues

VMware Summer 2021
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Cannot start service ovsdb-server on computer '.'. #84

Open williamtu opened 2 years ago

williamtu commented 2 years ago

when using Antrea's Install-OVS.ps1

sc.exe create ovsdb-server binPath= "$OVSInstallDir\usr\sbin\ovsdb-server.exe $
OVSInstallDir\etc\openvswitch\conf.db  -vfile:info --remote=punix:db.sock  --remote
=ptcp:6640  --log-file  --pidfile --service" start= auto

error

[SC] CreateService SUCCESS
[SC] ChangeServiceConfig2 SUCCESS
Start-Service : Service 'ovsdb-server (ovsdb-server)' cannot be started due to
the following error: Cannot start service ovsdb-server on computer '.'.
At C:\antrea\hack\windows\Install-OVS.ps1:214 char:5
+     Start-Service ovsdb-server
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.ServiceProcess.ServiceController
   :ServiceController) [Start-Service], ServiceCommandException
    + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.
   StartServiceCommand
williamtu commented 2 years ago

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/start-service?view=powershell-7.1#example-4--start-a-disabled-service looks correct maybe permission issue?

PS C:\antrea\hack\windows> sc.exe create ovsdb-server binPath= C:\openvswitch\usr\s
bin\ovsdb-server.exe
[SC] CreateService FAILED 1073:

The specified service already exists.

PS C:\antrea\hack\windows> sc.exe query ovsdb-server

SERVICE_NAME: ovsdb-server
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 1  STOPPED
        WIN32_EXIT_CODE    : 1077  (0x435)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
PS C:\antrea\hack\windows> sc.exe start ovsdb-server
[SC] StartService FAILED 1053:

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

ovs-vswitchd

PS C:\antrea\hack\windows> sc.exe query ovs-vswitchd

SERVICE_NAME: ovs-vswitchd
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 1  STOPPED
        WIN32_EXIT_CODE    : 1077  (0x435)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
PS C:\antrea\hack\windows> sc.exe start ovs-vswitchd
[SC] StartService FAILED 1068:

The dependency service or group failed to start.
williamtu commented 2 years ago

missing libeay32, install OpenSSL Screen Shot 2021-10-11 at 6 36 18 AM

williamtu commented 2 years ago

MSVCR120.dll not found

Screen Shot 2021-10-16 at 9 19 16 AM
williamtu commented 2 years ago

I just make a copy PS C:\Windows\System32> cp .\msvcr120_clr0400.dll msvcr120.dll