1
0

More than 3 years have passed since last update.

WindowsでDjangoを立ち上げたら Unable to configure handler 'watchtower'になった

Posted at

watchtowerでエラーになっているではありませんか

Traceback (most recent call last):
  File "C:\Users\A\.pyenv\pyenv-win\versions\3.8.2\lib\threading.py", line 932, in _bootstrap_inner
    self.run()
  File "C:\Users\A\.pyenv\pyenv-win\versions\3.8.2\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "c:\web-test\env\lib\site-packages\django\utils\autoreload.py", line 54, in wrapper
    fn(*args, **kwargs)
  File "c:\web-test\env\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run
    autoreload.raise_last_exception()
  File "c:\web-test\env\lib\site-packages\django\utils\autoreload.py", line 77, in raise_last_exception
    raise _exception[1]
  File "c:\web-test\env\lib\site-packages\django\__init__.py", line 19, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "c:\web-test\env\lib\site-packages\django\utils\log.py", line 76, in configure_logging
    logging_config_func(logging_settings)
  File "C:\Users\A\.pyenv\pyenv-win\versions\3.8.2\lib\logging\config.py", line 808, in dictConfig
    dictConfigClass(config).configure()
  File "C:\Users\A\.pyenv\pyenv-win\versions\3.8.2\lib\logging\config.py", line 570, in configure
    raise ValueError('Unable to configure handler '
ValueError: Unable to configure handler 'watchtower'

よくよく見ると、エラー内容を辿っていくとこのようなエラーになっています。

botocore.exceptions.ClientError: An error occurred (InvalidSignatureException) when calling the CreateLogGroup operation: Signature not yet current: 20210531T060458Z is still later than 20210531T044007Z (20210531T043507Z + 5 min.)

The above exception was the direct cause of the following exception:

Signature not yet current のエラーだった場合、PC時刻が現在時刻とズレておきる現象でした。(本当だったらPCは時刻同期しているのでズレることはないのですが、何故かずれてました。:sweat_smile:)

PCの時刻を再同期させたら、無事Djangoが立ち上がることができました.:smile:

1
0
1

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