Issue
Persistent issues with /dev/null device file a CloudLinux server:
Error
The received data is wrong. Contact support for resolution.
Traceback (most recent call last):
File "/usr/share/l.v.e-manager/utils/cloudlinux-cli-user.py", line 12, in <module>
from cloudlinux_cli_user import CloudlinuxCliUser
File "/usr/share/l.v.e-manager/utils/cloudlinux_cli_user.py", line 22, in <module>
from clselector.clpassenger_detectlib import is_clpassenger_active
File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselector/__init__.py", line 12, in <module>
from .selectorlib import CloudlinuxSelectorLib
File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselector/selectorlib.py", line 31, in <module>
import clselect.clselectctlnodejsuser
File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/clselectctlnodejsuser.py", line 21, in <module>
from . import clpassenger
File "/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/clpassenger.py", line 43, in <module>
null_handler = logging.StreamHandler(open('/dev/null', 'w'))
PermissionError: [Errno 13] Permission denied: '/dev/null'
In particular, the error is: [Errno 13] Permission denied: '/dev/null'
Environment
- CloudLinux OS
- PHP Selector
- NodeJS Selector
- NetData
Solution
There must be recently netdata packages installed or updated:
# rpm -qa | grep netdata netdata-plugin-freeipmi-2.8.0.93.nightly-1.el8.x86_64 netdata-plugin-otel-2.8.0.93.nightly-1.el8.x86_64 netdata-plugin-apps-2.8.0.93.nightly-1.el8.x86_64 netdata-plugin-debugfs-2.8.0.93.nightly-1.el8.x86_64 netdata-2.8.0.93.nightly-1.el8.x86_64 netdata-plugin-chartsd-2.8.0.93.nightly-1.el8.x86_64 netdata-dashboard-2.5.0.201.nightly-1.el8.x86_64 netdata-plugin-network-viewer-2.8.0.93.nightly-1.el8.x86_64 netdata-plugin-pythond-2.8.0.93.nightly-1.el8.x86_64 netdata-plugin-cups-2.8.0.93.nightly-1.el8.x86_64 netdata-plugin-ebpf-2.8.0.93.nightly-1.el8.x86_64 netdata-plugin-slabinfo-2.8.0.93.nightly-1.el8.x86_64 netdata-repo-edge-5-2.noarch netdata-user-2.8.0.93.nightly-1.el8.x86_64 netdata-plugin-perf-2.8.0.93.nightly-1.el8.x86_64 netdata-plugin-systemd-journal-2.8.0.93.nightly-1.el8.x86_64 netdata-ebpf-legacy-code-2.8.0.93.nightly-1.el8.x86_64 netdata-plugin-go-2.8.0.93.nightly-1.el8.x86_64
And it appears that recent updates from netdata have introduced an issue. You can refer to the related GitHub reports here:
We've also received several tickets reporting the same problem. As a temporary workaround, you can try running the following command:
unlink /dev/null && mknod -m 666 /dev/null c 1 3 && chown root:root /dev/null
However, we recommend checking the GitHub issues above for any updated fixes or additional solutions provided by the netdata team.
Cause
Netdata packages updates conflicting /dev/null permissions.
$ ll /dev/null -rw-r--r-- 1 root root 2158186 Dec 9 21:53 /dev/null
Comments
0 comments
Please sign in to leave a comment.