Comment 29 for bug 2042744

Revision history for this message
Shebin Thomas (tshebin) wrote (last edit ):

hey could anyone guide me with the steps required as i still am getting the same error i am using ubuntu 22.04.3 server version

su -s /bin/bash -c "keystone-manage db_sync" keystone
Traceback (most recent call last):
  File "/usr/bin/keystone-manage", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python3/dist-packages/keystone/cmd/manage.py", line 41, in main
    cli.main(argv=sys.argv, developer_config_file=developer_config)
  File "/usr/lib/python3/dist-packages/keystone/cmd/cli.py", line 1359, in main
    keystone.conf.setup_logging()
  File "/usr/lib/python3/dist-packages/keystone/conf/__init__.py", line 129, in setup_logging
    log.setup(CONF, 'keystone')
  File "/usr/lib/python3/dist-packages/oslo_log/log.py", line 291, in setup
    _setup_logging_from_conf(conf, product_name, version)
  File "/usr/lib/python3/dist-packages/oslo_log/log.py", line 399, in _setup_logging_from_conf
    filelog = file_handler(logpath)
  File "/usr/lib/python3.10/logging/handlers.py", line 479, in __init__
    logging.FileHandler.__init__(self, filename, mode=mode,
  File "/usr/lib/python3.10/logging/__init__.py", line 1169, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python3.10/logging/__init__.py", line 1201, in _open
    return open_func(self.baseFilename, self.mode,
PermissionError: [Errno 13] Permission denied: '/var/log/keystone/keystone-manage.log'
Exception ignored in: <function _removeHandlerRef at 0x7f25b73183a0>
Traceback (most recent call last):
  File "/usr/lib/python3.10/logging/__init__.py", line 846, in _removeHandlerRef
  File "/usr/lib/python3.10/logging/__init__.py", line 226, in _acquireLock
  File "/usr/lib/python3.10/threading.py", line 164, in acquire
  File "/usr/lib/python3/dist-packages/eventlet/green/thread.py", line 33, in get_ident
AttributeError: 'NoneType' object has no attribute 'getcurrent'