EnvironmentError:[Errno 1]不允许操作:无


0

每次我重新启动系统时,我都会收到来自服务器的电子邮件,其中包含以下错误:

reason: _libudev.py:219:check_errno:EnvironmentError: [Errno 1] Operation not permitted: None
cmdline: /usr/bin/python -Es /usr/sbin/tuned -l -P
executable: /usr/sbin/tuned
package: tuned-2.9.0-1.el7
component: tuned
pid: 593
hostname: xxxxxx.it
count: 34
abrt_version: 2.1.11
analyzer: Python
architecture: x86_64
dso_list: python-pyudev-0.15-9.el7.noarch
os_release: CentOS Linux release 7.5.1804 (Core) 
pkg_arch: noarch
pkg_epoch: 0
pkg_fingerprint: 24C6 A8A7 F4A8 0EB5
pkg_name: tuned
pkg_release: 1.el7
pkg_vendor: CentOS
pkg_version: 2.9.0
runlevel: unknown
time: Thu 02 Aug 2018 09:32:49 AM CEST
type: Python
uid: 0


backtrace:
:_libudev.py:219:check_errno:EnvironmentError: [Errno 1] Operation not permitted: None
:
:Traceback (most recent call last):
: File "/usr/sbin/tuned", line 65, in <module>
: app = tuned.daemon.Application(args.profile, config)
: File "/usr/lib/python2.7/site-packages/tuned/daemon/application.py", line 32, in __init__
: hardware_inventory = hardware.Inventory(buffer_size=udev_buffer_size)
: File "/usr/lib/python2.7/site-packages/tuned/hardware/inventory.py", line 26, in __init__
: self._udev_monitor.set_receive_buffer_size(buffer_size)
: File "/usr/lib/python2.7/site-packages/pyudev/monitor.py", line 277, in set_receive_buffer_size
: self._reraise_with_socket_path()
: File "/usr/lib/python2.7/site-packages/pyudev/monitor.py", line 89, in _reraise_with_socket_path
: reraise(exc_value, traceback)
: File "/usr/lib/python2.7/site-packages/pyudev/monitor.py", line 275, in set_receive_buffer_size
: self._libudev.udev_monitor_set_receive_buffer_size(self, size)
: File "/usr/lib/python2.7/site-packages/pyudev/_libudev.py", line 219, in check_errno
: raise exception_from_errno(errno)
:EnvironmentError: [Errno 1] Operation not permitted: None
:
:Local variables in innermost frame:
:errno: 1
:args: ((<pyudev.monitor.Monitor object at 0x7f8d413e68d0>, 1048576),)
:result: -1
:func: <_FuncPtr object at 0x7f8d41164ef0>
environ:
:LANG=en_US.UTF-8
:pATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
event_log:
:
:** COLLECTED WARNINGS **
:Failed to open memory buffer (/dev/mem): No such file or directory
:No SMBIOS nor DMI entry point found, sorry.
:permission denied to memory file/device (/dev/mem)
:permission denied to memory file/device (/dev/mem)
:permission denied to memory file/device (/dev/mem)
:permission denied to memory file/device (/dev/mem)
....

我输入SSH这个命令:“systemctl status tuned”这就是我收到的:

● tuned.service - Dynamic System Tuning Daemon

Loaded: loaded (/usr/lib/systemd/system/tuned.service; enabled; vendor preset: enabled)

Active: failed (Result: exit-code) since dom 2019-02-03 19:30:39 CET; 11s ago

Docs: man:tuned(8)

man:tuned.conf(5)

man:tuned-adm(8)

Process: 8187 ExecStart=/usr/sbin/tuned -l -P (code=exited, status=1/FAILURE)

Main PID: 8187 (code=exited, status=1/FAILURE)


feb 03 19:30:39 xxxxx.it tuned[8187]: self._udev_monitor.set_receive_buffer_size(buffer_size)

feb 03 19:30:39 xxxxx.it tuned[8187]: File "/usr/lib/python2.7/site-packages/pyudev/monitor.py", line 277, in set_receive_buffer_size

feb 03 19:30:39 xxxxx.it tuned[8187]: self._reraise_with_socket_path()

feb 03 19:30:39 xxxxx.it tuned[8187]: File "/usr/lib/python2.7/site-packages/pyudev/monitor.py", line 89, in _reraise_with_socket_path

feb 03 19:30:39 xxxxx.it tuned[8187]: reraise(exc_value, traceback)

feb 03 19:30:39 xxxxx.it tuned[8187]: File "/usr/lib/python2.7/site-packages/pyudev/monitor.py", line 275, in set_receive_buffer_size

feb 03 19:30:39 xxxxx.it tuned[8187]: self._libudev.udev_monitor_set_receive_buffer_size(self, size)

feb 03 19:30:39 xxxxx.it tuned[8187]: File "/usr/lib/python2.7/site-packages/pyudev/_libudev.py", line 219, in check_errno

feb 03 19:30:39 xxxxxx.it tuned[8187]: raise exception_from_errno(errno)

feb 03 19:30:39 xxxxx.it tuned[8187]: EnvironmentError: [Errno 1] Operation not permitted: None​

有人可以帮我解决这个问题吗?

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.