LoginSignup
5
1

More than 5 years have passed since last update.

mackerel エラー:<command> Error while updating host specs: API error. status: 404, msg: api request failed

Last updated at Posted at 2016-05-11

 概要

webからホストを退役させて、もう1度登録しようとしたところ
「 Error while updating host specs: API
error. status: 404, msg: api request failed」
とログがでてうまく新規ホスト追加が出来なかった。

環境

OS Debian
mackerel 0.30.0-1

解決

最初やってみたこと。。。。

file
sudo apt-get purge mackerel-agent

上記して削除。そしてエージェントのインストール('https://mackerel.io/orgs/"プロジェクト名"/instruction-agent')してみたが、だめだった。
ログに

Error while updating host specs: API
error. status: 404, msg: api request failed

とあり、mackerelのダッシュボードに新規追加されなかった。

なんとか解決した方法

web側で退役済みの状態で、

file
sudo mackerel-agent retire #退役させる
sudo rm /var/lib/mackerel-agent/id #ホストIDを削除

上記を行う。
そして、エージェントの削除とインストールを行う。
すると新規追加された(たぶん、別のホストIDになったおかげ)

5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1