Mistake on this page? Email us

Installing the first node

  1. Run the start command and wait until services are ready:

    $ ./sfn start
    $
    
  2. Run the status command to check services' status:

    $ ./sfn status
    

    The first node is installed and ready when the status of all services is healthy:

    ==================================================
    Secure Factory Service
    ==================================================
    Secure Factory Service installed under:
            /usr/local/arm/secure_factory
    Secure Factory Service Docker containers:
      Secure Factory Service status:
            version: 2019.12.827
            running version: 2019.12.827
            status: healthy
    
      Secure Factory Command service status:
            version: 2019.12.827
            running version: 2019.12.827
            status: healthy
    
      HSM client service:
            version: 398
            running version: 398
            status: healthy
    
      Mongo database service:
            version: 4.2.0
            running version: 4.2.0
            status: healthy
    

    If a service is in unhealthy status for more than few minutes, try using the restart command.

  3. Run the db status command to check the database cluster status:

    $ ./sfn db status
    

    Verify that the first node database is up and in PRIMARY state:

    Mongodb Replica Set Status
    Number of active members: 1
    
    	    Mongodb cluster members:
    
        Id: 1
    	  Hostname: secure-room-node-1
    	  IP Address: 192.168.33.10
    	  State: PRIMARY
    
    	  Id: 2
    	  Hostname: secure-room-node-2
    	  State: down
    
    	  Id: 3
    	  Hostname: secure-room-node-3
    	  State: down
    $