This issue cropped up in conjunction with my dashboard (netdata?) being mostly blank. Could it be related? Netdata log repeats:
2024-12-23 20:24:57: netdata INFO : MAIN : NETDATA_INSTANCE_CLOUD_INSTANCE_TYPE=unknown
2024-12-23 20:24:57: netdata INFO : MAIN : NETDATA_INSTANCE_CLOUD_INSTANCE_REGION=unknown
2024-12-23 20:24:57: netdata ERROR : MAIN : Failed to initialize database at /var/db/system/netdata/netdata-meta.db, due to "disk I/O error"
2024-12-23 20:24:57: netdata FATAL : netdata : Failed to initialize SQLite # : Success
/usr/sbin/netdata(+0x57893)[0x5604ef57e893]
/usr/sbin/netdata(+0xbb289)[0x5604ef5e2289]
/usr/sbin/netdata(+0x16628)[0x5604ef53d628]
/lib/x86_64-linux-gnu/libc.so.6(+0x2724a)[0x7fef5a77824a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85)[0x7fef5a778305]
/usr/sbin/netdata(+0x176a1)[0x5604ef53e6a1]
2024-12-23 20:24:57: netdata INFO : MAIN : EXIT: netdata prepares to exit with code 1...
2024-12-23 20:24:57: netdata INFO : MAIN : EXIT: cleaning up the database...
2024-12-23 20:24:57: netdata INFO : MAIN : Cleaning up database [0 hosts(s)]...
2024-12-23 20:24:57: netdata INFO : MAIN : EXIT: all done - netdata is now exiting - bye bye...
EOF found in spawn pipe.
Shutting down spawn server event loop.
I am currently running ElectricEel-24.10.1 on bare metal. Nothing particularly interesting:
Data Topology: 1 x RAIDZ2 | 6 wide | 10.91 TiB
CPU: i5-9600T
MB: Supermicro x11sca-f
RAM: 64GB DDR4
Boot drive: 1TB M.2
I’ve attempted to run the ‘debug’ and failed with the following error:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 509, in run
await self.future
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 556, in __run_body
rv = await self.middleware.run_in_thread(self.method, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1367, in run_in_thread
return await self.run_in_executor(io_thread_pool_executor, method, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1364, in run_in_executor
return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 183, in nf
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 55, in nf
res = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/system/debug.py", line 109, in debug
raise CallError(debug_job.error)
middlewared.service_exception.CallError: [EFAULT] [EFAULT] Failed to generate debug: OSError(5, 'Input/output error')
I then decided to reboot and attempt to run debug again and it was successful.
/var/log/samba4/log.smbd appears to be repeating the following every 10 seconds
[2024/12/23 19:49:00.344964, 1] ../../lib/messaging/messages_dgm.c:1073(messaging_dgm_init)
messaging_dgm_init: bind failed: Input/output error
[2024/12/23 19:49:00.345245, 0] ../../source3/lib/util.c:487(reinit_after_fork)
messaging_reinit() failed: NT_STATUS_IO_DEVICE_ERROR
[2024/12/23 19:49:00.345433, 0] ../../source3/smbd/server.c:1024(smbd_accept_connection)
reinit_after_fork() failed
[2024/12/23 19:49:00.345501, 0] ../../lib/util/fault.c:178(smb_panic_log)
===============================================================
[2024/12/23 19:49:00.345557, 0] ../../lib/util/fault.c:179(smb_panic_log)
INTERNAL ERROR: reinit_after_fork() failed in smbd () () pid 4159332 (4.20.5-truenas)
[2024/12/23 19:49:00.345612, 0] ../../lib/util/fault.c:186(smb_panic_log)
If you are running a recent Samba version, and if you think this problem is not yet fixed in the latest versions, please consider reporting this bug, see https://wiki.samba.org/index.php/Bug_Reporting
[2024/12/23 19:49:00.345660, 0] ../../lib/util/fault.c:191(smb_panic_log)
===============================================================
[2024/12/23 19:49:00.345706, 0] ../../lib/util/fault.c:192(smb_panic_log)
PANIC (pid 4159332): reinit_after_fork() failed in 4.20.5-truenas
[2024/12/23 19:49:00.347470, 0] ../../lib/util/fault.c:303(log_stack_trace)
BACKTRACE: 13 stack frames:
#0 /usr/lib/x86_64-linux-gnu/samba/libgenrand-private-samba.so(log_stack_trace+0x2e) [0x7fcd28ed65be]
#1 /usr/lib/x86_64-linux-gnu/samba/libgenrand-private-samba.so(smb_panic+0x9) [0x7fcd28ed6859]
#2 /usr/sbin/smbd(+0x9e6b) [0x55de509f7e6b]
#3 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_invoke_fd_handler+0x91) [0x7fcd29051781]
#4 /lib/x86_64-linux-gnu/libtevent.so.0(+0xfac9) [0x7fcd29058ac9]
#5 /lib/x86_64-linux-gnu/libtevent.so.0(+0xd137) [0x7fcd29056137]
#6 /lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x91) [0x7fcd29050911]
#7 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7fcd29050c0b]
#8 /lib/x86_64-linux-gnu/libtevent.so.0(+0xd0d7) [0x7fcd290560d7]
#9 /usr/sbin/smbd(main+0x1391) [0x55de509f51a1]
#10 /lib/x86_64-linux-gnu/libc.so.6(+0x2724a) [0x7fcd28cc924a]
#11 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7fcd28cc9305]
#12 /usr/sbin/smbd(_start+0x21) [0x55de509f5ab1]
[2024/12/23 19:49:00.347919, 0] ../../source3/lib/dumpcore.c:317(dump_core)
coredump is handled by helper binary specified at /proc/sys/kernel/core_pattern
[2024/12/23 19:49:10.931099, 1] ../../lib/messaging/messages_dgm.c:1073(messaging_dgm_init)
messaging_dgm_init: bind failed: Input/output error
[2024/12/23 19:49:10.931392, 0] ../../source3/lib/util.c:487(reinit_after_fork)
messaging_reinit() failed: NT_STATUS_IO_DEVICE_ERROR
[2024/12/23 19:49:10.931580, 0] ../../source3/smbd/server.c:1024(smbd_accept_connection)
reinit_after_fork() failed
[2024/12/23 19:49:10.931646, 0] ../../lib/util/fault.c:178(smb_panic_log)
===============================================================
[2024/12/23 19:49:10.931703, 0] ../../lib/util/fault.c:179(smb_panic_log)
INTERNAL ERROR: reinit_after_fork() failed in smbd () () pid 4160267 (4.20.5-truenas)
[2024/12/23 19:49:10.931758, 0] ../../lib/util/fault.c:186(smb_panic_log)
If you are running a recent Samba version, and if you think this problem is not yet fixed in the latest versions, please consider reporting this bug, see https://wiki.samba.org/index.php/Bug_Reporting
[2024/12/23 19:49:10.931807, 0] ../../lib/util/fault.c:191(smb_panic_log)
===============================================================
[2024/12/23 19:49:10.931852, 0] ../../lib/util/fault.c:192(smb_panic_log)
PANIC (pid 4160267): reinit_after_fork() failed in 4.20.5-truenas
[2024/12/23 19:49:10.933645, 0] ../../lib/util/fault.c:303(log_stack_trace)
BACKTRACE: 13 stack frames:
#0 /usr/lib/x86_64-linux-gnu/samba/libgenrand-private-samba.so(log_stack_trace+0x2e) [0x7fcd28ed65be]
#1 /usr/lib/x86_64-linux-gnu/samba/libgenrand-private-samba.so(smb_panic+0x9) [0x7fcd28ed6859]
#2 /usr/sbin/smbd(+0x9e6b) [0x55de509f7e6b]
#3 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_invoke_fd_handler+0x91) [0x7fcd29051781]
#4 /lib/x86_64-linux-gnu/libtevent.so.0(+0xfac9) [0x7fcd29058ac9]
#5 /lib/x86_64-linux-gnu/libtevent.so.0(+0xd137) [0x7fcd29056137]
#6 /lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x91) [0x7fcd29050911]
#7 /lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7fcd29050c0b]
#8 /lib/x86_64-linux-gnu/libtevent.so.0(+0xd0d7) [0x7fcd290560d7]
#9 /usr/sbin/smbd(main+0x1391) [0x55de509f51a1]
#10 /lib/x86_64-linux-gnu/libc.so.6(+0x2724a) [0x7fcd28cc924a]
#11 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7fcd28cc9305]
#12 /usr/sbin/smbd(_start+0x21) [0x55de509f5ab1]
[2024/12/23 19:49:10.934101, 0] ../../source3/lib/dumpcore.c:317(dump_core)
coredump is handled by helper binary specified at /proc/sys/kernel/core_pattern