Linux上のホストエージェントのトラブルシューティング
Linux上のホストエージェントで観察される一般的な問題の解決策を参照してください:
エージェントは、自動化された(ワンライナーの)スクリプトを使用してインストールされます
自動(ワンライナー)スクリプトを使用してホストエージェントをインストールする場合、次のような問題が発生する可能性があります:
Debian ベース
問題点:
Debianの派生製品では、以下のような出力が表示されるかもしれない:
Setting up Instana APT repository
Importing Instana GPG key
Updating apt metadata ...
E: The method driver /usr/lib/apt/methods/https could not be found.
APT repository metadata update failed
解決方法この場合、Aptは現在 HTTPS サーバーからフォントを取得しないため、 apt-transport-https 。
SUSE および SLES
問題: SUSE Linux Enterprise Server12の場合、次のような出力が表示されることがあります:
Setting up Instana agent for GNU/Linux
Setting up Instana zypper repository
Updating zypper metadata ...
Installing Instana agent ...
Error building the cache:
[instana-agent|https://_@packages.instana.io/agent/generic/x86_64] Valid metadata not found at specified URL
Some of the repositories have not been refreshed because of an error.
No provider of 'instana-agent-static' found.
Instana agent package install failed
解決方法最新の HTTPS 接続でアーティファクトを適切に受信できるように、 opensslを更新する必要があります。 ホストエージェントのネットワーク要件については、 「 Instana エージェントのネットワーク要件」 を参照してください。
CentOS
問題: CentOS-6ベースのシステムでは、以下の出力が表示されることがあります:
Setting up Instana agent for GNU/Linux
Setting up Instana YUM repository
Updating YUM metadata ...
YUM repository metadata update failed
解決方法libcurlのバージョンを更新する。
RHEL
RHEL システムでは、次のような問題が発生する可能性があります:
問題:次のような出力が表示されるかもしれない:
Error unpacking rpm package instana-agent-dynamic-20210630-0948.x86_64 Error: Transaction failed解決方法連邦情報処理標準(FIPS)またはSELinuxが有効になっていると、ワンライナーのインストール中に次のようなエラーが発生することがある。 ホストエージェントをインストールするときは、FIPS と SELinux を無効にしてください。
問題:以下のセットアップでは、「
instana-agentパッケージの手動インストールに失敗する:sudo rpm -ivh instana-agent-dynamic-20210713-1352.x86_64.rpm ... error: unpacking of archive failed on file /etc/init.d/instana-agent;60eda3b3: cpio: Digest mismatch error: instana-agent-dynamic-20210713-1352.x86_64: install failed解決方法手動インストールの回避策として、以下のコマンドで検証をスキップすることができます:
sudo rpm -ivh --nodigest --nofiledigest instana-agent-dynamic-20210713-1352.x86_64.rpm
パッケージマネージャまたは手動でインストールされたエージェント (DEB、RPM)
パッケージマネージャー を使用するか、手動(DEB、RPM)でホストエージェントをインストールする場合、次のような問題が発生する可能性があります:
Debian ベース
Debianのデリバティブの場合、以下のような問題が発生する可能性がある:
問題:次のような接続エラーメッセージが表示されることがあります:
GnuTLS recv error (-9): A TLS packet with unexpected length was received解決方法このバグは、Curl、Git、aptのようなGnuTLS-dependingプログラムで見つかります。
問題:インストールを実行すると、次のような出力が表示されることがあります。
E: The method driver /usr/lib/apt/methods/https could not be found.` `APT repository metadata update failed解決方法この場合、Aptは現在 HTTPS サーバーからフォントを取得しないため、
apt-transport-https。
SUSE および SLES
SUSE Linux Enterprise Server12では、次の問題が発生する可能性があります:
問題:次のような出力が表示されるかもしれない:
Error building the cache: [instana-agent|https://_@packages.instana.io/agent/generic/x86_64] Valid metadata not found at specified URL Some of the repositories have not been refreshed because of an error. No provider of 'instana-agent-static' found. Instana agent package install failed解決方法 GnuTLS, OpenSSL,、NSSライブラリとその依存プログラム(Curlなど)を更新する必要があります。 このアップデートは、最新の HTTPS 接続でアーティファクトを適切に受信するために重要である。
問題: systemd を使用してサービスを
instana-agent有効にしようとすると、 SUSE Enterprise Linux で次のようなエラーメッセージが表示される場合があります:systemctl enable instana-agent Synchronizing state of instana-agent.service with SysV service script with /usr/lib/systemd/systemd-sysv-install. Executing: /usr/lib/systemd/systemd-sysv-install enable instana-agent ln -sf ../instana-agent /etc/init.d/rc2.d/S50instana-agent ln: failed to create symbolic link '/etc/init.d/rc2.d/S50instana-agent': No such file or directory解決策:
/etc/init.d/instana-agentファイルを削除する。次のコマンドを実行します。
systemctl enable instana-agentすると、シンボリックリンクが正しく作成されていることが確認できる:
systemctl enable instana-agent Created symlink /etc/systemd/system/multi-user.target.wants/instana-agent.service → /lib/systemd/system/instana-agent.service.`
CentOS
CentOS6ベースのシステムでは、以下の問題が発生する可能性があります:
問題:次のようなログが出力されることがある:
Updating YUM metadata ...
YUM repository metadata update failed
解決方法libcurlのバージョンを更新する。
非 root ユーザーとしてインストールされ、実行されるエージェント
Instana エージェントをroot以外のユーザーとして起動すると、次のような問題が発生する可能性があります:
問題:次のような出力が表示されるかもしれない:
java.nio.file.AccessDeniedException: /var/lib/instana解決策: root権限でディレクトリを作成し、所有権を Instana ユーザーに変更します。
sudo mkdir /var/lib/instana sudo chown instana: /var/lib/instana sudo chmod 700 /var/lib/instana問題:次のような出力が表示されるかもしれない:
Skipping the memory calculator: cannot retrieve the maximum amount of memory to be used by the agent from /sys/fs/cgroup/memory/memory.limit The memory calculator has not been used, and neither the 'JAVA_MAX_MEM' nor 'JAVA_OPTS' environment variables specify a maximum heap setting解決方法このエラーはエージェント自体には影響しません。 メモリ計算ツールは、systemd やコンテナにおいて、設定された制限に基づいてエージェントに割り当てる Java のヒープ容量を決定するために使用される小さなバイナリです。 環境
JAVA_OPTS変数を入力することで、この問題を解決できます。これは、エージェントがrootが所有するプロセスのシンボリックリンクを読もうとすることが原因です。
解決策:
sudoersファイルに以下のエントリーを追加する:instana ALL=(root) NOPASSWD:/usr/bin/readlinkこのエントリにより、エージェントはルート・プロセスの「
readlinkコマンドにアクセスできる。オプション:sudoログを有効にして問題をデバッグする:
Defaults logfile=/var/log/sudo.log次のスニペットは、エージェントスクリプトがコマンド
readlinkを読み込もうとした際のログを表示しています:Nov 12 06:03:19 : instana : command not allowed ; TTY=pts/2 ; PWD=/home/tester/instana-agent ; USER=root ; COMMAND=/usr/bin/readlink /proc/21025/exe Nov 12 06:03:19 : instana : command not allowed ; TTY=pts/2 ; PWD=/home/tester/instana-agent ; USER=root ; COMMAND=/usr/bin/readlink /proc/21025/cwd Nov 12 06:03:19 : instana : command not allowed ; TTY=pts/2 ; PWD=/home/tester/instana-agent ; USER=root ; COMMAND=/usr/bin/readlink /proc/12152/exe Nov 12 06:03:19 : instana : command not allowed ; TTY=pts/2 ; PWD=/home/tester/instana-agent ; USER=root ; COMMAND=/usr/bin/readlink /proc/12152/cwd
すべてのホストエージェントに共通するトラブルシューティング情報については、'ホストエージェントの管理トラブルシューティング を参照のこと。