Browser Synthetic Monitoring Troubleshooting

Linux ベースの Private Synthetic Agent での登録後に合成ジョブが実行されない

問題:

Linux ベースの Private Synthetic Agent v21.5.0 への登録が完了しました。ただし、コントローラでジョブを作成すると、ジョブは実行されません。

Heimdall ポッドログには、次の例外が表示されます。

org.springframework.data.r2dbc.BadSqlGrammarException: executeMany; bad SQL grammar [INSERT
INTO heimdall.measurement (measurement_id, schedule_id, location_id,
browser_type, account, job_type, last_updated, measurement_status,
duration_secs, measurement_details) VALUES ($1, $2, $3, $4, $5, $6, $7,
$8, $9, $10)]; nested exception is io.r2dbc.postgresql.ExceptionFactory$PostgresqlBadGrammarException: [22001] value too long for type character varying(50)

Resolution:

Postgres データベースポッドにログインし、location_id 列のサイズを変更します。

  1. 次のコマンドを実行して、データベースにログインします。

    kubectl exec -it service/postgres --namespace measurement -- psql --username synthuser
  2. location_id を変更するには、このコマンドを実行します。

    ALTER TABLE heimdall.measurement ALTER COLUMN location_id TYPE character varying(256);