OSError: [Errno 30] Read-only file system: '/var/crash/...
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: Traceback (most recent call last):
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: File "/usr/bin/pyzor", line 408, in <module>
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: main()
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: File "/usr/bin/pyzor", line 152, in main
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: if not dispatch(client, servers, config):
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: File "/usr/bin/pyzor", line 239, in check
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: send_digest(
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: File "/usr/bin/pyzor", line 262, in send_digest
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: _send_digest(
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: File "/usr/bin/pyzor", line 253, in _send_digest
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: runner.run(server, (digested, server))
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: File "/usr/lib/
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: response = self.routine(*args, **kwargs)
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: File "/usr/lib/
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: msg = (b"Code: %s\nDiag: OK\nPV: %s\nThread: 1024\nCount: 0\n"
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'int'
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: Error in sys.excepthook:
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: Traceback (most recent call last):
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: File "/usr/lib/
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: with os.fdopen(
Dec 6 12:02:32 mail-cbf-int pyzor[2966924]: OSError: [Errno 30] Read-only file system: '/var/crash/
1) due to an encoding error, pyzor is throwing an exception.
2) /usr/lib/
3) This exception handler tries to write to /var/crash/
I checked the permissions:
# ls -l /var/crash
total 0
# ls -ld /var/crash
drwxrwxrwt 2 root root 4096 Dec 8 16:45 /var/crash
# ls -ld /var/
drwxr-xr-x 18 root root 4096 Jun 23 2020 /var/
# ls -ld /
drwxr-xr-x 24 root root 4096 Nov 30 06:19 /
/var/crash is sticky, so why can't it write?
# cat /proc/mounts |fgrep crash
#
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: python3-apport 2.20.11-
ProcVersionSign
Uname: Linux 5.11.0-36-generic x86_64
ApportLog:
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
Date: Thu Dec 9 09:39:40 2021
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: apport
UpgradeStatus: Upgraded to focal on 2021-04-07 (245 days ago)
The error says "Read-only file system". Is / (or /var) mounted read-only? Did you had a file-system failure where the kernel remounted the file system in read-only mode?