서버를 새 버전으로 마이그레이션
Learn how to migrate your Unity Licensing Server to a new version.
읽는 시간 1분최근 업데이트: 9달 전
최신 서버 버전에서는 종종 다른 서버 데이터베이스 또는 구성이 필요할 수 있습니다. 예를 들어 버전 1.6이 설치되어 있는데 버전 1.9를 실행하려는 경우 서버에는 다른 구성이 필요합니다.
마이그레이션 프로세스에서는 서버 구성 파일에서 프로퍼티를 확인합니다. 마이그레이션 프로세스에서 현재 버전의 Unity Licensing Server가 새 버전과 호환되지 않는 것을 감지하면 다음 메시지가 표시되고 중지됩니다.
serverVersionCannot 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 Terminal을 사용하여 을
./Unity.Licensing.Server setup로 실행합니다.sudo - 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의 엔드포인트와 대시보드의 관리자 모드에 계속 액세스할 수 있습니다. 이러한 IP 주소를 가진 사용자가 대시보드에 액세스하면 로그인 화면을 우회하여 관리자 모드로 자동 로그인됩니다.
admin데이터베이스 복원
서버를 더 높은 버전으로 마이그레이션하면 커맨드가 자동으로 데이터베이스 파일의 백업 복사본을 생성합니다. 복원에 실패하면 다음과 같은 심각한 오류 메시지가 나타납니다.
setupAn 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
서버를 이전 버전으로 복원하려면 다음 단계를 따릅니다.
-
서버의 운영체제 및 라이선스 서버의 버전에 따라 달라지는 아래 타겟 폴더에 기존 데이터베이스를 넣습니다.
- 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