> For the complete documentation index, see [llms.txt](https://docs.realmjoin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmjoin.com/ja/toraburushtinguto-faq/troubleshooting/package-installation-issues/troubleshooting-failed-craft-packages.md).

# 失敗した craft パッケージのトラブルシューティング

craft パッケージには個別のログはありません（craft パッケージ内のインストーラーによって明示的に書き込まれた場合を除く）。\
実行されるスコープによって異なります `システム` または `ユーザー`、（ごく基本的な）出力は次の場所にあります `tray.log` （ユーザースコープの場合）または次の `realmjoin.log` （システムスコープの場合）。

## ユーザースコープの craft パッケージ

ユーザースコープで実行される craft パッケージの場合、前述のとおり、出力は次の `tray.log` ファイルにあります。パッケージ ID の代わりに、設定されたパッケージの表示名を使って関連する行を見つけることができます：

{% code overflow="wrap" %}

```log
2023-11-07 15:37:57.7527|INFO|RealmJoin.Core.SoftwarePackaging.CraftPackageEntry|   1|craft パッケージ Microsoft Teams 1.6.0.2757300（user）をインストールしています
```

{% endcode %}

その後、ほぼすぐに（インストール時間によりますが）次が続きます：

{% code overflow="wrap" %}

```log
2023-11-07 15:38:51.1590|INFO|RealmJoin.Core.SoftwarePackaging.CraftPackageEntry|   1|パッケージ結果: コード = 0、出力:

2023-11-07 15:38:51.1590|INFO|RealmJoin.Core.SoftwarePackaging.CraftPackageEntry|   1|Microsoft Teams 1.6.0.2757300（Craft）パッケージのインストールに成功しました。
```

{% endcode %}

<figure><img src="/files/b86d72ed434d2851d924f296b8a95f9bdb5d0f48" alt=""><figcaption><p>craft ユーザーパッケージのインストール成功時の出力例</p></figcaption></figure>

## システムスコープの craft パッケージ

システムスコープで実行される craft パッケージに関する関連ログは、次の `tray.log` ダウンロードと初期化情報用のファイルと、 `realmjoin.log` 実際の出力と戻り値コード用のファイルに分かれて出力されます。それ以外は、ユーザースコープの craft パッケージのインストールと同じです。

以下の例では、パッケージの出力がログ ファイルにどのように含まれるかを示します：

<figure><img src="/files/df9346428268d4a8fd8b5bee9a7b1c0dc2c60f53" alt=""><figcaption><p>ログ ファイルに表示される craft パッケージ スクリプトの出力。</p></figcaption></figure>

その `tray.log` ファイルには、パッケージがシステムスコープまたはユーザースコープのどちらで実行されるかを示すヒントが、常にバージョン番号の後ろの括弧内に含まれます：

{% code overflow="wrap" %}

```log
2023-11-07 15:48:58.5875|INFO|RealmJoin.Core.SoftwarePackaging.CraftPackageEntry|   1|craft パッケージ RealmJoin Set Environment Variable 2.0.0.0（system）をインストールしています
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.realmjoin.com/ja/toraburushtinguto-faq/troubleshooting/package-installation-issues/troubleshooting-failed-craft-packages.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
