I/O error occurred while writing...

lupinlicious

Dabbler
Joined
Jan 13, 2020
Messages
25
Dear all,

I started to notice that my Plex Server disappears from the webGUI overnight and having problems to reconnect, and I don't know if there is something related with this line:

Code:
Jan  4 00:00:00 freenas syslog-ng[1546]: Configuration reload request received, reloading configuration;
Jan  4 00:00:00 freenas syslog-ng[1546]: Configuration reload finished;
Jan  5 00:00:00 freenas syslog-ng[1546]: Configuration reload request received, reloading configuration;
Jan  5 00:00:00 freenas syslog-ng[1546]: Configuration reload finished;


If I running the following command I can see
Code:
root@freenas[/usr/local/etc/rc.d]# egrep -i 'syslog-ng.*(error|fatal)' /var/log/messages
Jan  3 08:42:22 freenas syslog-ng[1541]: I/O error occurred while writing; fd='30', error='Input/output error (5)'
Jan  3 08:42:22 freenas syslog-ng[1541]: Suspending write operation because of an I/O error; fd='30', time_reopen='60'


When I try to stop or restart the Jail from the TrueNAS GUI I get this error
Code:
Error: [EFAULT] + Stopping services FAILED ERROR: jexec: execvp: /bin/sh: No such file or directory Please use --force flag to force stop jail


Running from the CLI, and I'll get this error:
Code:
root@freenas[/usr/local/etc/rc.d]# iocage stop pms
* Stopping pms
  + Executing prestop OK
  + Stopping services FAILED
ERROR:
jexec: execvp: /bin/sh: No such file or directory


The syslog-ng itself seems to be located here: /usr/local/etc/rc.d and it contains

Code:
#!/bin/sh
#
# $FreeBSD: head/sysutils/syslog-ng/files/syslog-ng.in 340872 2014-01-24 00:14:0                                                                                                           7Z mat $
#

# PROVIDE: syslogd
# REQUIRE: mountcritremote cleanvar ldconfig
# BEFORE:  SERVERS

#
# Add the following line to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
#syslog_ng_enable="YES"
#syslog_ng_config="-u daemon"
#syslog_ng_pid="/var/run/syslog-ng.pid"
#

syslog_ng_purgeklog=${syslog_ng_purgeklog-"NO"}

. /etc/rc.subr

name=syslog_ng
rcvar=syslog_ng_enable

command=/usr/local/sbin/syslog-ng
required_files=/usr/local/etc/syslog-ng.conf
extra_commands=reload

if checkyesno syslog_ng_purgeklog; then
        start_precmd="echo \"Purging klog(9)\" && sysctl -w kern.msgbuf_clear=1                                                                                                            $start_precmd";
fi

stop_postcmd=stop_postcmd

load_rc_config $name

: ${syslog_ng_enable:="NO"}
pidfile=${syslog_ng_pid:-"/var/run/syslog.pid"}
command_args="-p ${pidfile} ${syslog_ng_config}"

stop_postcmd() {
  rm -f $pidfile
}

run_rc_command "$1"


If I reboot the server everything will work as it should and no other reports about a failing drive or similar.

Anyone who is familiar with this issue?

I'm currently running TrueNAS-12.0 with iocage 12.2 Release
I can see there is a update 12.0-U1 but I read about smb issue and should be fixed in the next upcoming release.

It also telling me "This is not a production release, and should only be used for testing. "

Please help :)

Best regards
Lupinlicious
 
Last edited:

lupinlicious

Dabbler
Joined
Jan 13, 2020
Messages
25
After a reboot I can see this in the logs:

Code:
Jan  5 19:11:16 freenas vgapci0[1546]: Last message 'child drmn0 requeste' repeated 1 times, suppressed by syslog-ng on freenas.local
Jan  5 19:11:16 freenas kernel: [drm] Unable to create a private tmpfs mount, hugepage support will be disabled(-19).
Jan  5 19:11:16 freenas kernel[1546]: Last message '[drm] Unable to crea' repeated 1 times, suppressed by syslog-ng on freenas.local
Jan  5 19:11:16 freenas kernel: Failed to add WC MTRR for [0xc0000000-0xcfffffff]: -22; performance may suffer
Jan  5 19:11:16 freenas kernel[1546]: Last message 'Failed to add WC MTR' repeated 1 times, suppressed by syslog-ng on freenas.local

Jan  5 19:11:09 freenas 1 2021-01-05T19:11:09.946260+01:00 freenas.local daemon 1721 - - 2021-01-05 19:11:09,946:wsdd ERROR(pid 1722): error while sending packet on igb2: [Errno 50] Network is down
Jan  5 19:11:10 freenas 1 2021-01-05T19:11:10.184780+01:00 freenas.local daemon 1721 - - 2021-01-05 19:11:10,184:wsdd ERROR(pid 1722): error while sending packet on igb2: [Errno 50] Network is down
Jan  5 19:11:10 freenas 1 2021-01-05T19:11:10.646205+01:00 freenas.local daemon 1721 - - 2021-01-05 19:11:10,646:wsdd ERROR(pid 1722): error while sending packet on igb2: [Errno 50] Network is down
Jan  5 19:11:11 freenas 1 2021-01-05T19:11:11.148571+01:00 freenas.local daemon 1721 - - 2021-01-05 19:11:11,148:wsdd ERROR(pid 1722): error while sending packet on igb2: [Errno 50] Network is down

 

lupinlicious

Dabbler
Joined
Jan 13, 2020
Messages
25
I just noticed something interesting.
Recently I have experienced some stuttering in my playbacks, but if I close my network shares the stuttering goes away and I have a smooth playback.
 
Top