Genvid Forum

Genvid-bastion install fails every time


#1

After restarting my computer, genvid-bastion install (genvid-bastion start) fails the first time after a restart every time.

C:\Users\paperspace\Desktop>genvid-bastion install
Installing supervisor services

INFO:genvid-bastion:Installing consul
WARNING:service-consul:Service consul is already installed.
ERROR:service-consul:'consul' [5440] doesn't exist
WARNING:service-consul:An error has occurred, cleaning up pid file for consul
INFO:genvid-bastion:Installing vault
WARNING:service-vault:Service vault is already installed.
Starting daemon process: C:\Genvid\Genvid Technologies SDK 1.12.2\bin\consul.exe agent -config-dir=C:\Users\paperspace/.genvid\consul\config -data-dir=C:\Users\paperspace/.genvid\consul\data
INFO:service-vault:Waiting for service consul ...
ERROR:service-vault:'vault' [5428] doesn't exist
WARNING:service-vault:An error has occurred, cleaning up pid file for vault
VAULT_ADDR http://10.0.15.5:8200
INFO:service-vault:Connecting to vault at 'http://10.0.15.5:8200'
Starting daemon process: C:\Genvid\Genvid Technologies SDK 1.12.2\bin\vault.exe server -config=C:\Users\paperspace/.genvid\vault\config
HTTPConnectionPool(host='10.0.15.5', port=8200): Max retries exceeded with url: /v1/sys/init (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001F5B1315438>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))
  File "c:\users\paperspace\appdata\local\programs\python\python35\lib\site-packages\requests\adapters.py", line 508, in send
    raise ConnectionError(e, request=request)

The max retries seem to appear almost instantly.

If I just re-run the command it works fine:

C:\Users\paperspace\Desktop>genvid-bastion install
Installing supervisor services

INFO:genvid-bastion:Installing consul
WARNING:service-consul:Service consul is already installed.
WARNING:service-consul:Service consul is already started.
INFO:genvid-bastion:Installing vault
WARNING:service-vault:Service vault is already installed.
WARNING:service-vault:Service vault is already started.
VAULT_ADDR http://10.0.15.5:8200
INFO:service-vault:Connecting to vault at 'http://10.0.15.5:8200'
INFO:service-vault:Unsealing vault
INFO:service-vault:Waiting for service vault[active] ...
INFO:service-vault:Active vault is 10.0.15.5:8200
INFO:service-vault:Adding policies from 'C:\Genvid\Genvid Technologies SDK 1.12.2\bastion-services\vault-policies'
INFO:service-vault:Adding vault policy 'genvid'
INFO:service-vault:Adding vault policy 'nomad-server'
INFO:service-vault:Adding policies from 'C:\Genvid\Genvid Technologies SDK 1.12.2\bastion-services\vault-roles'
INFO:genvid-bastion:Installing nomad
WARNING:service-nomad:Service nomad is already installed.
INFO:service-nomad:Retrieving nomad token.
ERROR:service-nomad:'nomad' [5460] doesn't exist
WARNING:service-nomad:An error has occurred, cleaning up pid file for nomad

Waiting for the services to start...
INFO:genvid-bastion:Checking consul client on http://10.0.15.5:8500
INFO:genvid-bastion:Consul leader: '10.0.15.5:8300'
INFO:genvid-bastion:Checking vault service
INFO:genvid-bastion:Connecting to vault client on http://10.0.15.5:8200
INFO:genvid-bastion:Vault is unsealed
INFO:genvid-bastion:Checking nomad service
INFO:genvid-bastion:Checking nomad client on http://10.0.15.5:4646
Starting daemon process: C:\Genvid\Genvid Technologies SDK 1.12.2\bin\nomad.exe agent -config=C:\Users\paperspace/.genvid\nomad\config -data-dir=C:\Users\paperspace/.genvid\nomad\data -dev
INFO:genvid-bastion:Checking nomad client on http://10.0.15.5:4646
INFO:genvid-bastion:Checking nomad client on http://10.0.15.5:4646
INFO:genvid-bastion:Checking nomad client on http://10.0.15.5:4646
INFO:genvid-bastion:Checking nomad client on http://10.0.15.5:4646
INFO:genvid-bastion:Nomad leader: '10.0.15.5:4647'

Running run on bastion-api
==========================

INFO:genvid-bastion:Generating job description for bastion-api
INFO:genvid-bastion:Applying 'run' on 'C:\\Genvid\\Genvid Technologies SDK 1.12.2\\bastion-services\\jobs\\bastion-api.nomad'
==> Monitoring evaluation "b64c4e87"
    Evaluation triggered by job "bastion-api"
    Allocation "652e7e21" created: node "c6664eee", group "bastion-api"
    Evaluation status changed: "pending" -> "complete"
==> Evaluation "b64c4e87" finished with status "complete"


INFO:logs-api:Starting job cluster-api
INFO:logs-api:Starting job hashi-ui

These are my envrionment-variables: (Note GENVID_DEFAULT_IP, GENVID_STATIC_BINDING is set)

ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\paperspace\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=PSAN9MZH3
ComSpec=C:\Windows\system32\cmd.exe
GENVID_DEFAULT_IP=10.0.15.5
GENVID_STATIC_BINDING=1
HOMEDRIVE=C:
HOMEPATH=\Users\paperspace
LOCALAPPDATA=C:\Users\paperspace\AppData\Local
LOGONSERVER=\\PSAN9MZH3
NUMBER_OF_PROCESSORS=8
OS=Windows_NT
Path=C:\Users\paperspace\AppData\Local\Programs\Python\Python35\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\paperspace\AppData\Local\Programs\Python\Python35\Scripts;C:\Users\paperspace\AppData\Local\Microsoft\WindowsApps;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 79 Stepping 1, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=4f01
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\PAPERS~1\AppData\Local\Temp\1
TMP=C:\Users\PAPERS~1\AppData\Local\Temp\1
USERDOMAIN=PSAN9MZH3
USERDOMAIN_ROAMINGPROFILE=PSAN9MZH3
USERNAME=paperspace
USERPROFILE=C:\Users\paperspace
windir=C:\Windows

If you need any other information, feel free to ask. We can also provide you with access to the installation.


#2

OK, that’s a new one (see the interleaving of Starting daemon process AFTER the Connecting). I didn’t see this behavior here but will try to get a fix for 1.13.