LoginSignup
0
0

More than 5 years have passed since last update.

DynamoDBLog: InvalidSignatureException: Signature expired エラーと解決策

Last updated at Posted at 2016-01-18

今まで問題なく動いていたアプリが以下エラーを吐きましたのでメモ。

DynamoDBのエラー
InvalidSignatureException: Signature expired: 20160118T082956Z is now earlier than 20160118T083029Z (20160118T084529Z - 15 min.)

原因は、ありがちですが、OSの時間が20分ほどずれていたことでした。
ぐぐったところ、CentOS7の標準のNTPはChronyとかいうパッケージらしいので、入れてみますね。

# yum -y install chrony

インストール:
  chrony.x86_64 0:2.1.1-1.el7.centos

完了しました!

起動します。

# systemctl start chronyd
# systemctl status chronyd
chronyd.service - NTP client/server
   Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled)
   Active: active (running) since 月 2016-01-18 17:53:37 JST; 15min ago

 1月 18 17:53:37 shiitake.com systemd[1]: Started NTP client/server.
 1月 18 17:53:42 shiitake.com chronyd[3768]: Selected source 59.106.180.168
 1月 18 17:53:42 shiitake.com chronyd[3768]: System clock wrong by 931.269655 seconds, adjustment started
 1月 18 18:09:14 shiitake.com chronyd[3768]: System clock was stepped by 931.269655 seconds
Hint: Some lines were ellipsized, use -l to show in full.

Chronydが起動した後、すぐに正しい時刻が設定されました。

OS起動時に自動的に起動するように設定して完了。

# systemctl enable chronyd
# systemctl list-unit-files | grep chronyd
chronyd.service                                          enabled

今回はNTPクライアントとして使うのみなので、特に設定せず。

おわり

参考サイト

0
0
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
0
0