サーバーの新しいバージョンへの移行
Learn how to migrate your Unity Licensing Server to a new version.
読み終わるまでの所要時間 2 分最終更新 1ヶ月前
新しいバージョンのサーバーでは、異なるサーバーデータベースやサーバー設定が必要になる場合があります。例えば、バージョン 1.6 からバージョン 1.9 を実行したい場合、サーバーには異なる設定が必要になります。 移行プロセスでは、サーバー設定ファイル の
serverVersionこの非互換性を解決するには、使用している OS に応じたコマンドを実行します。Cannot start the licensing server. Incompatible version is already installed. Please, make sure to stop existing Licensing.Server service (if it is running) and run setup command.
- Linux: Linuxのターミナルを使用して、として
sudoを実行します。./Unity.Licensing.Server setup - Windows: Windows PowerShell を管理者として開き、を実行します。
.\Unity.Licensing.Server.exe setup
- - -Welcome to Unity Licensing Server setup command line interface.This setup will help you configure your license server and generate server registration request file.- - -Upgrading from 1.6.0 to 1.9.0...Backup installed version 1.6.0...DoneScripts to run: 1.9.0Executing 1.9.0...DoneStamping version 1.9.0...DoneSuccessfully migrated from 1.6.0 to 1.9.0
確認が必要な移行例 (Windows):
> .\Unity.Licensing.Server.exe setup- - - -Welcome to Unity Licensing Server setup command line interface.This setup will help you configure your license server and generate server registration request file.- - - -Upgrading from 1.10.0 to 1.11.0...This migration can take more than a few minutes. Are you sure you want to run it now? [y/N] yProceeding with migration...Backup installed version 1.10.0...DoneScripts to run: 1.11.0Executing 1.11.0...DoneStamping version 1.11.0...DoneSuccessfully migrated from 1.10.0 to 1.11.0Enter the server name (e.g. LicenseServer):
移行の仕組み
setupLicensingServerBackups- Linux:
- バージョン 2.0 以降:
/usr/share/unity3d/LicensingServerBackups - バージョン 1.x:
~/.config/unity3d/Unity/LicensingServerBackups
- バージョン 2.0 以降:
- Windows:
- バージョン 2.0 以降:
%PROGRAMDATA%\Unity\LicensingServerBackups - バージョン 1.x:
%LOCALAPPDATA%\Unity\LicensingServerBackups
- バージョン 2.0 以降:
許可リストを使用した管理者アクセス
バージョン 1.x から移行する場合、IP アドレスを使用して管理者アクセスを制御する許可リストを設定している可能性があります。バージョン 2.0 以降に移行する場合、管理者アクセス権を維持するための明示的な手順はありません。許可リストに含まれる IP アドレスは、API のadminデータベースの復元
サーバーを上位バージョンに移行する際に、setupこれは、サーバーが無効な状態であり、以前のサーバーのバージョンを引き続き使用できなくなる可能性があることを示しています。このエラーを修正するには、An error occurred while restoring a backup.
LicensingServerBackups/<your_old_server_version>/LicensingServerサーバーを以前のバージョンに復元するには、以下のステップに従います。├── LicensingServer│ ├── config│ │ ├── key-b4573620-ca22-423f-8d52-e3a767391234.xml│ │ ├── licensing-server-config.json│ │ └── unity.licensing.delegation.key│ ├── data│ └── wwwroot\v1\package\acl│└── LicensingServerBackups └── 1.6.0 ├── config ├── data └── wwwroot
-
既存のデータベースをターゲットフォルダーに入れます。ターゲットフォルダーは、サーバーの OS とライセンスサーバーのバージョンによって異なります。
- Linux:
- バージョン 2.0 以降:
/usr/share/unity3d/LicensingServer/data/ - バージョン 1.x:
~/.config/unity3d/Unity/LicensingServer/data/
- バージョン 2.0 以降:
- Windows:
- バージョン 2.0 以降:
%PROGRAMDATA%\Unity\LicensingServer\data\ - バージョン 1.x:
%LOCALAPPDATA%\Unity\LicensingServer\data\
- バージョン 2.0 以降:
- Linux:
-
ファイルの名前を に変更します。
LicensingServerDb.sqlite
その他のリソース
- setup コマンドの実行 (バージョン 2.0 以降)
- setup コマンドの実行 (バージョン 1.x)