Upgrade from 4.16 to 4.17

Windows migration

For Windows deployment migration, simply run the standard SmartFace Platform installer. The wizard run re-creates all required services, updates binaries and executables and executes the database updates as well.

Linux migration

For Linux deployment you need to update docker containers and execute database migration.

Update container version.

When using pre-configured SmartFace deployment from our github, open .env file and update all versions:

SF_VERSION=v5_4.17.0
AC_VERSION=v5_1.8.0
SFS_VERSION=v5_1.14.1

When directly referencing image, update path to

version: "3.4"
    services:
    sf-base:
        image: registry.gitlab.com/innovatrics/smartface/sf-base:v5_4.17.0
        container_name: SFBase
        command: --serviceName SFBase
        ports:
        - 2406:2406
        restart: unless-stopped
        environment:
        - RabbitMQ__Hostname
        - RabbitMQ__Username
        ...
Update container configuration

Add RabbitMQ__* variables for GraphQL container:

sf-graphql-api:
    image: ${REGISTRY}sf-graphql-api:${SF_VERSION}
    container_name: SFGraphQLApi
    ports:
    - 8097:${Hosting__Port}
    restart: unless-stopped
    environment:
    - RabbitMQ__Hostname
    - RabbitMQ__Username
    - RabbitMQ__Password
    - RabbitMQ__Port
    - ConnectionStrings__CoreDbContext
    - Database__DbEngine
    - Hosting__Host
    - Hosting__Port
    - AppSettings__Log-RollingFile-Enabled=false
    - AppSettings__USE_JAEGER_APP_SETTINGS
    - JAEGER_AGENT_HOST
    - AppSettings__Log_RabbitMq_Enabled
Run upgrade scripts

Simply execute run.sh script shipped in our default deployment. In case you have custom deployment where you cannot use our pre-build script, call database upgrade manually. Please replace variables --rmq-* with your current configuration.

For MSSQL execute

docker run --rm --name admin_migration --network sf-network registry.gitlab.com/innovatrics/smartface/sf-admin:v5_4.17.0 run-migration -p 5 -c "Server=mssql;Database=SmartFace;User ID=sa;Password=Test1234;" -dbe MsSql --rmq-host rmq --rmq-user guest --rmq-pass guest --rmq-virtual-host / --rmq-port 5672 --rmq-use-ssl false

For PostgreSQL execute

docker run --rm --name admin_migration --network sf-network registry.gitlab.com/innovatrics/smartface/sf-admin:v5_4.17.0 run-migration -p 5 -c "Server=pgsql;Database=smartface;Username=postgres;Password=Test1234;Trust Server Certificate=true;" -dbe PgSql --rmq-host rmq --rmq-user guest --rmq-pass guest --rmq-virtual-host / --rmq-port 5672 --rmq-use-ssl false