Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Postinit script didn't start today; /var/log/messages with no more logs

Status
Not open for further replies.

merlinuwe

Junior Member
Joined
Sep 14, 2013
Messages
14
Hi dear helpers,

I have two issues with my FreeNAS.

On my FreeNAS I start a script /mnt/NAS1GB/btsync/btsync as type "Post init". Today this script didn't start automatically. I restarted the PC and it run. (Why doesn't the system work reliable? Do I have to control everything after every reboot?)

The logfile var/log/message doesn't include any messages since April 15th. Is that normal? Here is the last content:

Apr 15 13:29:54 freenas INADYN[2374]: Tue Apr 15 13:29:54 2014: W:INADYN: DYNDNS Server response: HTTP/1.1 200 OK^M Date: Tue, 15 Apr 2014 11:29:54 GMT^M Server: Apache/2^M Content-Location: update.php^M Vary: negotiate^M TCN: choice^M Content-Length: 17^M Connection: close^M Content-Type: text/plain; charset=UTF-8^M ^M good 92.205.46.45
Apr 15 17:59:29 freenas notifier: shutdown: [pid 27048]
Apr 15 17:59:29 freenas notifier: Shutdown NOW!
Apr 15 17:59:29 freenas shutdown: reboot by root:
Apr 15 17:59:31 freenas notifier: Shutdown NOW!
Apr 15 17:59:31 freenas notifier: ^M
Apr 15 17:59:31 freenas notifier: System shutdown time has arrived^G^G^M
Apr 15 17:59:39 freenas kernel: .
Apr 15 17:59:41 freenas mDNSResponder: mDNSResponder (Engineering Build) (Mar 21 2014 04:21:44) stopping
Apr 15 17:59:41 freenas mDNSResponder: mDNS_FinalExit failed to send goodbye for: 0000000800CBC580 01 25 _ssh._tcp.local. PTR freenas._ssh._tcp.local.
Apr 15 17:59:41 freenas mDNSResponder: mDNS_FinalExit failed to send goodbye for: 0000000800CBDD80 01 30 _sftp-ssh._tcp.local. PTR freenas._sftp-ssh._tcp.local.
Apr 15 17:59:41 freenas mDNSResponder: mDNS_FinalExit failed to send goodbye for: 0000000800CBF580 01 26 _http._tcp.local. PTR freenas._http._tcp.local.
Apr 15 17:59:41 freenas mDNSResponder: mDNS_FinalExit failed to send goodbye for: 0000000800CC0D80 01 25 _smb._tcp.local. PTR freenas._smb._tcp.local.
Apr 15 17:59:41 freenas smbd[2107]: dnssd_clientstub DNSServiceProcessResult called with DNSServiceRef with no ProcessReply function
Apr 15 17:59:43 freenas kernel: .
Apr 15 17:59:45 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
Apr 15 17:59:45 freenas last message repeated 2 times
Apr 15 17:59:45 freenas kernel: .
Apr 15 17:59:46 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
Apr 15 17:59:46 freenas last message repeated 2 times
Apr 15 17:59:47 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
Apr 15 17:59:47 freenas last message repeated 2 times
Apr 15 17:59:48 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:4 Err:-1 Errno:61 Connection refused
Apr 15 17:59:48 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:7 Err:-1 Errno:61 Connection refused
Apr 15 17:59:48 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:8 Err:-1 Errno:61 Connection refused
Apr 15 17:59:51 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
Apr 15 17:59:51 freenas last message repeated 2 times
Apr 15 17:59:52 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
Apr 15 17:59:52 freenas last message repeated 2 times
Apr 15 17:59:53 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
Apr 15 17:59:53 freenas last message repeated 2 times
Apr 15 17:59:54 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:4 Err:-1 Errno:61 Connection refused
Apr 15 17:59:54 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:8 Err:-1 Errno:61 Connection refused
Apr 15 17:59:54 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:7 Err:-1 Errno:61 Connection refused
Apr 15 17:59:57 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
Apr 15 17:59:57 freenas last message repeated 2 times
Apr 15 17:59:58 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
Apr 15 17:59:58 freenas last message repeated 2 times
Apr 15 17:59:59 freenas winbindd[2110]: [2014/04/15 17:59:59.581498, 0] ../source3/winbindd/winbindd.c:234(winbindd_sig_term_handler)
Apr 15 17:59:59 freenas winbindd[2110]: Got sig[15] terminate (is_parent=1)
Apr 15 17:59:59 freenas winbindd[2114]: [2014/04/15 17:59:59.603708, 0] ../source3/winbindd/winbindd.c:234(winbindd_sig_term_handler)
Apr 15 17:59:59 freenas winbindd[3085]: [2014/04/15 17:59:59.603838, 0] ../source3/winbindd/winbindd.c:234(winbindd_sig_term_handler)
Apr 15 17:59:59 freenas winbindd[3085]: Got sig[15] terminate (is_parent=0)
Apr 15 17:59:59 freenas winbindd[3086]: [2014/04/15 17:59:59.604250, 0] ../source3/winbindd/winbindd.c:234(winbindd_sig_term_handler)
Apr 15 17:59:59 freenas winbindd[2114]: Got sig[15] terminate (is_parent=0)
Apr 15 17:59:59 freenas winbindd[3086]: Got sig[15] terminate (is_parent=0)
Apr 15 17:59:59 freenas kernel: .
Apr 15 17:59:59 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
Apr 15 17:59:59 freenas last message repeated 2 times
Apr 15 18:00:00 freenas nmbd[2104]: [2014/04/15 18:00:00.095085, 0] ../source3/nmbd/nmbd.c:57(terminate)
Apr 15 18:00:00 freenas nmbd[2104]: Got SIGTERM: going down...
Apr 15 18:00:00 freenas nmbd[2104]: [2014/04/15 18:00:00.105179, 0] ../source3/libsmb/nmblib.c:873(send_udp)
Apr 15 18:00:00 freenas nmbd[2104]: Packet send failed to 192.168.178.255(138) ERRNO=Network is down
Apr 15 18:00:00 freenas nmbd[2104]: [2014/04/15 18:00:00.105638, 0] ../source3/libsmb/nmblib.c:873(send_udp)
Apr 15 18:00:00 freenas nmbd[2104]: Packet send failed to 192.168.178.255(138) ERRNO=Network is down
Apr 15 18:00:00 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:7 Err:-1 Errno:61 Connection refused
Apr 15 18:00:00 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:4 Err:-1 Errno:61 Connection refused
Apr 15 18:00:01 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:8 Err:-1 Errno:61 Connection refused
Apr 15 18:00:02 freenas ntpd[1855]: ntpd exiting on signal 15
Apr 15 18:00:05 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
Apr 15 18:00:06 freenas last message repeated 2 times
Apr 15 18:00:06 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
Apr 15 18:00:07 freenas last message repeated 2 times
Apr 15 18:00:07 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
Apr 15 18:00:08 freenas last message repeated 2 times
Apr 15 18:00:08 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:4 Err:-1 Errno:61 Connection refused
Apr 15 18:00:09 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:7 Err:-1 Errno:61 Connection refused
Apr 15 18:00:09 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:8 Err:-1 Errno:61 Connection refused
Apr 15 18:00:13 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
Apr 15 18:00:13 freenas last message repeated 2 times
Apr 15 18:00:14 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
Apr 15 18:00:14 freenas last message repeated 2 times
Apr 15 18:00:15 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
Apr 15 18:00:15 freenas last message repeated 2 times
Apr 15 18:00:16 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:4 Err:-1 Errno:61 Connection refused
Apr 15 18:00:16 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:7 Err:-1 Errno:61 Connection refused
Apr 15 18:00:16 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:8 Err:-1 Errno:61 Connection refused
Apr 15 18:00:21 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
Apr 15 18:00:21 freenas last message repeated 2 times
Apr 15 18:00:22 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
Apr 15 18:00:22 freenas last message repeated 2 times
Apr 15 18:00:23 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
Apr 15 18:00:23 freenas last message repeated 2 times
Apr 15 18:00:24 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:4 Err:-1 Errno:61 Connection refused
Apr 15 18:00:24 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:7 Err:-1 Errno:61 Connection refused
Apr 15 18:00:24 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:8 Err:-1 Errno:61 Connection refused
Apr 15 18:00:28 freenas kernel: .
Apr 15 18:00:28 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
Apr 15 18:00:28 freenas last message repeated 2 times
Apr 15 18:00:29 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
Apr 15 18:00:29 freenas last message repeated 2 times
Apr 15 18:00:30 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
Apr 15 18:00:30 freenas last message repeated 2 times
Apr 15 18:00:31 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:7 Err:-1 Errno:61 Connection refused
Apr 15 18:00:31 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:4 Err:-1 Errno:61 Connection refused
Apr 15 18:00:31 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:8 Err:-1 Errno:61 Connection refused
Apr 15 18:00:33 freenas kernel: , 1323
Apr 15 18:00:33 freenas kernel: .
Apr 15 18:00:34 freenas kernel: .
Apr 15 18:00:35 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
Apr 15 18:00:35 freenas last message repeated 2 times
Apr 15 18:00:36 freenas syslogd: exiting on signal 15


Stop refresh
Are these issues bugs?

I'm using this release:
Version FreeNAS-9.2.1.3-RELEASE-x64 (dc0c46b)
Plattform AMD Athlon(tm) 64 X2 Dual Core Processor 4800+


Speicher

2010MB



Greetings

merlinuwe
 
D

dlavigne

Guest
On my FreeNAS I start a script /mnt/NAS1GB/btsync/btsync as type "Post init". Today this script didn't start automatically. I restarted the PC and it run. (Why doesn't the system work reliable? Do I have to control everything after every reboot?)
You are misunderstanding the function of a post-init script. It is meant to only run when the system boots. If you want to run a script regulary, create a cron job instead.

The logfile var/log/message doesn't include any messages since April 15th. Is that normal?
Apr 15 18:00:36 freenas syslogd: exiting on signal 15


Seeing that syslogd died on April 15, that makes sense.
Stop refresh
 

merlinuwe

Junior Member
Joined
Sep 14, 2013
Messages
14
Hi dlavigne,

thanks for your immediately response.

After a reboot, the /mnt/NAS1GB/btsync/btsync (Bittorrent sync) runs without problems. If I start it, it should run all the time the server is up (like always before). The problem occured after the new installation of 9.2.1.3. (What is the difference of starting a script once or starting a binary once?)

Is there a better way to run such a piece of software? (I saw, that BTSync is one of the Plugins, but this release isn't up to date.)

I looked after the process syslogd. For my surprise, it runs:

ps aux|grep syslogd
root 1663 0.0 0.1 12044 1736 ?? Ss 3:04PM 0:00.02 /usr/sbin/syslogd -s -C
root 3904 0.0 0.1 16272 1868 1 S+ 3:14PM 0:00.00 grep syslogd
Nonetheless, there are no new messages in /var/log/messages since April, 15th.

What can I do to solve these issues?

Greetings

merlinuwe
 

merlinuwe

Junior Member
Joined
Sep 14, 2013
Messages
14
Hi, merlinuwe,

you can try to restart the syslogd manually:

# /etc/rc.d/syslogd restart

but the only message you will get in /var/log/messages will be

Apr 27 21:54:25 freenas syslogd: exiting on signal 15
Apr 27 22:04:57 freenas syslogd: kernel boot file is /boot/kernel/kernel


Greetings

merlinuwe
 

merlinuwe

Junior Member
Joined
Sep 14, 2013
Messages
14
@merlinuwe
Wouldn't it be better to start the process with a script (show below)? Then you can use the "post init" as intended with a script.

#!/bin/bash
#syslogd Startup Script

echo "Starting syslogd, because FreeNAS 9.2.1.3 isn't able to do it by itself ..."
/etc/rc.d/syslogd restart

The same trick is also possible with btsync:

#!/bin/bash
#BitTorrent Sync Startup Script

echo "Starting BitTorrent Sync Service..."
/mnt/NAS1GB/btsync/btsync --config /mnt/NAS1GB/btsync/sync.conf

Aren't these great solutions?

Greetings

merlinuwe
 

merlinuwe

Junior Member
Joined
Sep 14, 2013
Messages
14
@merlinuwe

Oh yeah! This solution is really great - but only for the problem with btsync.

Wouldn't it be more fantastic, if FreeNAS could start syslogd reliable by itself?

Greetings

merlinuwe
 

merlinuwe

Junior Member
Joined
Sep 14, 2013
Messages
14
@merlinuwe

Hm, I thought to be very smart, when I install the actual release FreeNAS-9.2.1.5-RELEASE-x64 (80c1d35). I hoped, that the problem with syslogd is solved or so ... So I deleted my init script call for syslogd, rebooted the NAS and what do you think happened? I'll show you the last line:
May 7 17:33:01 freenas syslogd: exiting on signal 15
The syslogd is still not running after reboot.

After setting up the init script call again, I rebooted some times. There are many other new lines. Exiting. Informative. (But not for me.)

There must be a snake trapped in my NAS because of the pythonmessages.

May 7 18:00:00 freenas newsyslog[3581]: logfile turned over due to size>100K
May 7 18:00:01 freenas alert.py: [py.warnings:3068] /usr/local/www/freenasUI/middleware/notifier.py:3068: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead. if not provider:
May 7 18:05:00 freenas alert.py: [py.warnings:3068] /usr/local/www/freenasUI/middleware/notifier.py:3068: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead. if not provider:
May 7 18:07:35 freenas notifier: shutdown: [pid 3926]
May 7 18:07:35 freenas notifier: Shutdown NOW!
May 7 18:07:35 freenas shutdown: reboot by root:
May 7 18:07:37 freenas notifier: Shutdown NOW!
May 7 18:07:37 freenas notifier: ^M
May 7 18:07:37 freenas notifier: System shutdown time has arrived^G^G^M
May 7 18:07:42 freenas kernel: .
May 7 18:07:42 freenas mDNSResponder: mDNSResponder (Engineering Build) (Apr 23 2014 17:17:29) stopping
May 7 18:07:42 freenas mDNSResponder: mDNS_FinalExit failed to send goodbye for: 0000000800CBC580 01 25 _ssh._tcp.local. PTR freenas._ssh._tcp.local.
May 7 18:07:42 freenas mDNSResponder: mDNS_FinalExit failed to send goodbye for: 0000000800CBDD80 01 30 _sftp-ssh._tcp.local. PTR freenas._sftp-ssh._tcp.local.
May 7 18:07:42 freenas mDNSResponder: mDNS_FinalExit failed to send goodbye for: 0000000800CBF580 01 26 _http._tcp.local. PTR freenas._http._tcp.local.
May 7 18:07:42 freenas mDNSResponder: mDNS_FinalExit failed to send goodbye for: 0000000800CC0D80 01 25 _smb._tcp.local. PTR freenas._smb._tcp.local.
May 7 18:07:43 freenas kernel: , 2363.
May 7 18:07:44 freenas kernel: .
May 7 18:07:44 freenas winbindd[2125]: Got sig[15] terminate (is_parent=1)
May 7 18:07:44 freenas winbindd[3384]: Got sig[15] terminate (is_parent=0)
May 7 18:07:44 freenas winbindd[3385]: Got sig[15] terminate (is_parent=0)
May 7 18:07:44 freenas winbindd[2129]: Got sig[15] terminate (is_parent=0)
May 7 18:07:44 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
May 7 18:07:44 freenas last message repeated 2 times
May 7 18:07:45 freenas kernel: , 2119.
May 7 18:07:45 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
May 7 18:07:45 freenas last message repeated 2 times
May 7 18:07:46 freenas kernel: , 2066.
May 7 18:07:46 freenas ntpd[1863]: ntpd exiting on signal 15
May 7 18:07:46 freenas kernel: .
May 7 18:07:46 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
May 7 18:07:46 freenas last message repeated 2 times
May 7 18:07:47 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:4 Err:-1 Errno:61 Connection refused
May 7 18:07:47 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:8 Err:-1 Errno:61 Connection refused
May 7 18:07:47 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:7 Err:-1 Errno:61 Connection refused
May 7 18:07:50 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
May 7 18:07:50 freenas last message repeated 2 times
May 7 18:07:51 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
May 7 18:07:51 freenas last message repeated 2 times
May 7 18:07:52 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
May 7 18:07:52 freenas last message repeated 2 times
May 7 18:07:53 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:4 Err:-1 Errno:61 Connection refused
May 7 18:07:53 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:7 Err:-1 Errno:61 Connection refused
May 7 18:07:53 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:8 Err:-1 Errno:61 Connection refused
May 7 18:07:55 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
May 7 18:07:55 freenas last message repeated 2 times
May 7 18:07:56 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
May 7 18:07:56 freenas last message repeated 2 times
May 7 18:07:57 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
May 7 18:07:57 freenas last message repeated 2 times
May 7 18:07:58 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:4 Err:-1 Errno:61 Connection refused
May 7 18:07:58 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:7 Err:-1 Errno:61 Connection refused
May 7 18:07:58 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:8 Err:-1 Errno:61 Connection refused
May 7 18:08:01 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
May 7 18:08:01 freenas last message repeated 2 times
May 7 18:08:01 freenas kernel: .
May 7 18:08:02 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
May 7 18:08:02 freenas last message repeated 2 times
May 7 18:08:02 freenas kernel: , 1331.
May 7 18:08:02 freenas syslogd: exiting on signal 15
May 7 18:10:00 freenas syslogd: kernel boot file is /boot/kernel/kernel
May 7 18:10:02 freenas notifier.py: [py.warnings:90] /usr/local/www/freenasUI/storage/models.py:90: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead. if prov else []
May 7 18:10:02 freenas manage.py: [py.warnings:3068] /usr/local/www/freenasUI/../freenasUI/middleware/notifier.py:3068: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead. if not provider:
May 7 18:10:05 freenas kernel:

Fortunately, the devolopers seem to work at this issue.

An other reboot after setting the nameserver to 8.8.8.8 (instead of the ip of my router):

May 7 18:15:47 freenas notifier: shutdown: [pid 3553]
May 7 18:15:47 freenas notifier: Shutdown NOW!
May 7 18:15:47 freenas shutdown: reboot by root:
May 7 18:15:49 freenas notifier: Shutdown NOW!
May 7 18:15:49 freenas notifier: ^M
May 7 18:15:49 freenas notifier: System shutdown time has arrived^G^G^M
May 7 18:15:55 freenas mDNSResponder: mDNSResponder (Engineering Build) (Apr 23 2014 17:17:29) stopping
May 7 18:15:55 freenas kernel: .
May 7 18:15:55 freenas mDNSResponder: mDNS_FinalExit failed to send goodbye for: 0000000800CBC580 01 25 _ssh._tcp.local. PTR freenas._ssh._tcp.local.
May 7 18:15:55 freenas mDNSResponder: mDNS_FinalExit failed to send goodbye for: 0000000800CBDD80 01 30 _sftp-ssh._tcp.local. PTR freenas._sftp-ssh._tcp.local.
May 7 18:15:55 freenas mDNSResponder: mDNS_FinalExit failed to send goodbye for: 0000000800CBF580 01 26 _http._tcp.local. PTR freenas._http._tcp.local.
May 7 18:15:55 freenas mDNSResponder: mDNS_FinalExit failed to send goodbye for: 0000000800CC0D80 01 25 _smb._tcp.local. PTR freenas._smb._tcp.local.
May 7 18:15:55 freenas kernel: .
May 7 18:15:55 freenas winbindd[2125]: Got sig[15] terminate (is_parent=1)
May 7 18:15:55 freenas winbindd[3311]: Got sig[15] terminate (is_parent=0)
May 7 18:15:55 freenas winbindd[3312]: Got sig[15] terminate (is_parent=0)
May 7 18:15:55 freenas winbindd[2129]: Got sig[15] terminate (is_parent=0)
May 7 18:15:56 freenas kernel: , 2119.
May 7 18:15:56 freenas kernel: .
May 7 18:15:56 freenas ntpd[1863]: ntpd exiting on signal 15
May 7 18:15:57 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
May 7 18:15:57 freenas last message repeated 2 times
May 7 18:15:58 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
May 7 18:15:58 freenas last message repeated 2 times
May 7 18:15:59 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
May 7 18:15:59 freenas last message repeated 2 times
May 7 18:16:00 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:4 Err:-1 Errno:61 Connection refused
May 7 18:16:00 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:7 Err:-1 Errno:61 Connection refused
May 7 18:16:00 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:8 Err:-1 Errno:61 Connection refused
May 7 18:16:02 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
May 7 18:16:02 freenas last message repeated 2 times
May 7 18:16:03 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
May 7 18:16:03 freenas last message repeated 2 times
May 7 18:16:04 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
May 7 18:16:04 freenas last message repeated 2 times
May 7 18:16:05 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:4 Err:-1 Errno:61 Connection refused
May 7 18:16:05 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:7 Err:-1 Errno:61 Connection refused
May 7 18:16:05 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:8 Err:-1 Errno:61 Connection refused
May 7 18:16:08 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
May 7 18:16:08 freenas last message repeated 2 times
May 7 18:16:09 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
May 7 18:16:09 freenas last message repeated 2 times
May 7 18:16:10 freenas python: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
May 7 18:16:10 freenas last message repeated 2 times
May 7 18:16:11 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:4 Err:-1 Errno:61 Connection refused
May 7 18:16:11 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:7 Err:-1 Errno:61 Connection refused
May 7 18:16:11 freenas python: dnssd_clientstub ConnectToServer: connect() failed Socket:8 Err:-1 Errno:61 Connection refused
May 7 18:16:11 freenas kernel: .
May 7 18:16:11 freenas syslogd: exiting on signal 15
May 7 18:18:06 freenas syslogd: kernel boot file is /boot/kernel/kernel
May 7 18:18:07 freenas notifier.py: [py.warnings:90] /usr/local/www/freenasUI/storage/models.py:90: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead. if prov else []
May 7 18:18:14 freenas manage.py: [py.warnings:3068] /usr/local/www/freenasUI/../freenasUI/middleware/notifier.py:3068: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead. if not provider:
May 7 18:20:01 freenas alert.py: [py.warnings:3068] /usr/local/www/freenasUI/middleware/notifier.py:3068: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead. if not provider:

I set the ip of the nameserver back to the one of my router.

I'll go to sleep.

Greetings

merlinuwe


 

merlinuwe

Junior Member
Joined
Sep 14, 2013
Messages
14
@merlinuwe

Oh, well slept. I had a dream. What, if I'd use a better script called by cron (user: root), that starts syslogd only, when it doesn't run and gives me feedback about what happened?

Here it is:

Code:
#!/bin/bash
# syslogd Startup Script
 
# Version FreeNAS auslesen
datei=/etc/version
versionsnr=`head -n 1 $datei`
 
# Wenn der Prozess syslogd läuft ...
if pgrep syslogd; then
  echo "Der Prozess syslogd läuft bereits (Prozess-ID: $(pgrep syslogd)), kein Neustart erforderlich."
  logger -i -t syslogstart.sh -- "syslogd läuft bereits (Prozess-ID: $(pgrep syslogd)), kein Neustart erforderlich."
# ... und wenn er nicht läuft:
else
  echo "Der Prozess syslogd läuft NICHT (Prozess-ID: $(pgrep syslogd))"
  echo "Starte den Prozess syslogd, weil FreeNAS 9.2.1.5 das immer noch nicht selber kann ..."
    /etc/rc.d/syslogd restart
    logger -i -t syslogstart.sh -- "Starte syslogd, weil" $versionsnr "das immer noch nicht selber kann ..."
fi
 
exit 0


I could't resist to start cron every minute ...

Code:
May  9 18:33:02 freenas syslogd: exiting on signal 15
May  9 18:39:00 freenas syslogd: kernel boot file is /boot/kernel/kernel
May  9 18:39:00 freenas syslogstart.sh[38646]: Starte syslogd, weil FreeNAS-9.2.1.5-RELEASE-x64 (80c1d35) das immer noch nicht selber kann ...
May  9 18:40:00 freenas syslogstart.sh[38699]: syslogd läuft bereits (Prozess-ID: 38645), kein Neustart erforderlich.
May  9 18:40:01 freenas alert.py: [py.warnings:3068] /usr/local/www/freenasUI/middleware/notifier.py:3068: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.  if not provider:
May  9 18:41:00 freenas syslogstart.sh[38774]: syslogd läuft bereits (Prozess-ID: 38645), kein Neustart erforderlich.
May  9 18:42:00 freenas syslogstart.sh[38849]: syslogd läuft bereits (Prozess-ID: 38645), kein Neustart erforderlich.


As you see, it runs.

Oh, I love this forum. It really helps to solve problems.

Greetings to all helpers, especially @merlinuwe.

merlinuwe
 

merlinuwe

Junior Member
Joined
Sep 14, 2013
Messages
14
Hi dear developers,

I didn't saw in the buglist to release 9.2.1.6 that the problem "/var/log/messages with no more logs" is listed till now, so I think it's priority is less than ZZZ. Am I right?

So many clicks on this issue and no response for the syslogd problem exect that of my big friend merlinuwe ... ;-)

Greetings,

merlinuwe
 
Status
Not open for further replies.
Top