# サーバーのトラブルシューティング

> Learn how to troubleshoot the Unity Licensing Server.

## サーバーのステータスのチェック##checking-the-status-of-your-server

[サーバーのステータスのチェック](./server-admin.md#checking-the-status-of-your-server) を参照してください。

## ログ##logs

Unity Floating Licensing サーバーでは、問題の診断に使用できるログファイルが生成されます。以下の表を使用して、ログの場所を特定してください。

| OS      | サーバーバージョン | ファイルパス                                                |
| ------- | --------- | ----------------------------------------------------- |
| Windows | 2.0 以降    | `%PROGRAMDATA%\Unity\logs\Unity.Licensing.Server.log` |
| Windows | 1.x       | `%LOCALAPPDATA%\Unity\Unity.Licensing.Server.log`     |
| Linux   | 2.0 以降    | `/usr/share/unity3d/logs/Unity.Licensing.Server.log`  |
| Linux   | 1.x       | `~/.config/unity3d/Unity/Unity.Licensing.Server.log`  |

## ライセンスサーバーレポートの生成##generating-a-licensing-server-report

トラブルシューティングに必要なライセンシング関連データを収集し、アーカイブするには、以下のコマンドを実行してください。

調査のため、生成されたアーカイブを Unity サポートに送信することもできます。

Linux ターミナルまたは Windows PowerShell で、OS に応じたコマンドを実行します。

* **Linux**: `./Unity.Licensing.Server generate-report --output-directory [directory path]`
* **Windows**: `.\Unity.Licensing.Server.exe generate-report --output-directory [directory path]`

`--output-directory` 引数は任意です。省略した場合、CLI コマンドによって現在のディレクトリにアーカイブが作成されます。

特定のディレクトリにアーカイブを生成するには、`[directory path]` を宛先のパスで置き換えます。

コマンドが正常に実行されると、生成されたアーカイブのパスが出力に表示されます。例えば、PowerShell ウィンドウでコマンドを実行すると、以下のような出力が返されます。

```bash
Creating temporary folder...Done
Collecting configuration files...Done
Collecting license files...Done
Collecting delegation files...Done
Collecting log files...Done
Creating summary file...Done
Archiving files...Done

Archive successfully created: D:\Licensing.Server.Support.2020-06-12-025617.zip
```

## その他のリソース

* [フローティングライセンスとビルドサーバー](https://support.unity.com/hc/en-us/sections/360013970451-Floating-Licenses-and-Build-Servers) に関するサポート記事
* サポートへのコンタクト [floatinglicense-support@unity3d.com](mailto:floatinglicense-support@unity3d.com)
