Bug 1622020 - [abrt] glances: _open(): config.py:566:configure:ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/tmp/glances-themasterr.log'
Summary: [abrt] glances: _open(): config.py:566:configure:ValueError: Unable to config...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: glances
Version: 28
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Edouard Bourguignon
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:0354d4b5655986ae923d416018d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-24 07:54 UTC by TheMasterR
Modified: 2019-05-28 22:13 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-05-28 22:13:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (3.75 KB, text/plain)
2018-08-24 07:55 UTC, TheMasterR
no flags Details
File: cgroup (351 bytes, text/plain)
2018-08-24 07:55 UTC, TheMasterR
no flags Details
File: cpuinfo (1.40 KB, text/plain)
2018-08-24 07:55 UTC, TheMasterR
no flags Details
File: environ (5.78 KB, text/plain)
2018-08-24 07:55 UTC, TheMasterR
no flags Details
File: mountinfo (4.48 KB, text/plain)
2018-08-24 07:55 UTC, TheMasterR
no flags Details
File: namespaces (129 bytes, text/plain)
2018-08-24 07:55 UTC, TheMasterR
no flags Details
File: open_fds (244 bytes, text/plain)
2018-08-24 07:55 UTC, TheMasterR
no flags Details

Description TheMasterR 2018-08-24 07:54:56 UTC
Description of problem:
started glances with sudo

Version-Release number of selected component:
glances-2.11.1-2.fc28

Additional info:
reporter:       libreport-2.9.5
cmdline:        /usr/bin/python3 /usr/bin/glances
crash_function: _open
exception_type: PermissionError
executable:     /usr/bin/glances
interpreter:    python3-3.6.6-1.fc28.x86_64
kernel:         4.17.14-202.fc28.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
config.py:566:configure:ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/tmp/glances-themasterr.log'

Traceback (most recent call last):
  File "/usr/lib64/python3.6/logging/config.py", line 558, in configure
    handler = self.configure_handler(handlers[name])
  File "/usr/lib64/python3.6/logging/config.py", line 731, in configure_handler
    result = factory(**kwargs)
  File "/usr/lib64/python3.6/logging/handlers.py", line 150, in __init__
    BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib64/python3.6/logging/handlers.py", line 57, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib64/python3.6/logging/__init__.py", line 1031, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python3.6/logging/__init__.py", line 1060, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/tmp/glances-themasterr.log'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/glances", line 11, in <module>
    load_entry_point('Glances==2.11.1', 'console_scripts', 'glances')()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 476, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2700, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2318, in load
    return self.resolve()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.6/site-packages/glances/__init__.py", line 43, in <module>
    from glances.logger import logger
  File "/usr/lib/python3.6/site-packages/glances/logger.py", line 119, in <module>
    logger = glances_logger()
  File "/usr/lib/python3.6/site-packages/glances/logger.py", line 114, in glances_logger
    logging.config.dictConfig(config)
  File "/usr/lib64/python3.6/logging/config.py", line 795, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/lib64/python3.6/logging/config.py", line 566, in configure
    '%r: %s' % (name, e))
ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/tmp/glances-themasterr.log'

Local variables in innermost frame:
deferred: []
filters: {}
formatters: {'standard': <logging.Formatter object at 0x7fa536792dd8>, 'short': <logging.Formatter object at 0x7fa5363320f0>, 'free': <logging.Formatter object at 0x7fa536332588>}
disable_existing: 'False'
handler: <StreamHandler <stderr> (CRITICAL)>
name: 'file'
handlers: {'file': {'filename': '/tmp/glances-themasterr.log'}, 'console': <StreamHandler <stderr> (CRITICAL)>}
EMPTY_DICT: {}
incremental: False
config: {'version': 1, 'root': {'level': 'INFO', 'handlers': ['file', 'console']}, 'formatters': {'standard': <logging.Formatter object at 0x7fa536792dd8>, 'short': <logging.Formatter object at 0x7fa5363320f0>, 'free': <logging.Formatter object at 0x7fa536332588>}, 'handlers': {'file': {'filename': '/tmp/glances-themasterr.log'}, 'console': <StreamHandler <stderr> (CRITICAL)>}, 'loggers': {'debug': {'handlers': ['file', 'console'], 'level': 'DEBUG'}, 'verbose': {'handlers': ['file', 'console'], 'level': 'INFO'}, 'standard': {'handlers': ['file'], 'level': 'INFO'}, 'requests': {'handlers': ['file', 'console'], 'level': 'ERROR'}, 'elasticsearch': {'handlers': ['file', 'console'], 'level': 'ERROR'}, 'elasticsearch.trace': {'handlers': ['file', 'console'], 'level': 'ERROR'}}, 'filters': {}}
self: <logging.config.DictConfigurator object at 0x7fa536792e10>

Comment 1 TheMasterR 2018-08-24 07:55:01 UTC
Created attachment 1478420 [details]
File: backtrace

Comment 2 TheMasterR 2018-08-24 07:55:02 UTC
Created attachment 1478421 [details]
File: cgroup

Comment 3 TheMasterR 2018-08-24 07:55:03 UTC
Created attachment 1478422 [details]
File: cpuinfo

Comment 4 TheMasterR 2018-08-24 07:55:05 UTC
Created attachment 1478423 [details]
File: environ

Comment 5 TheMasterR 2018-08-24 07:55:06 UTC
Created attachment 1478424 [details]
File: mountinfo

Comment 6 TheMasterR 2018-08-24 07:55:07 UTC
Created attachment 1478425 [details]
File: namespaces

Comment 7 TheMasterR 2018-08-24 07:55:09 UTC
Created attachment 1478426 [details]
File: open_fds

Comment 8 Ben Cotton 2019-05-02 21:02:15 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 9 Ben Cotton 2019-05-28 22:13:55 UTC
Fedora 28 changed to end-of-life (EOL) status on 2019-05-28. Fedora 28 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.