Alright lads, a quick update on my efforts (for those still hanging on! :)).
I carried out a fresh install of FreeNAS and updated using a backup file. I then went systematically through the How-To. All went very well and so i ran
JLS outside the jail which confimed it was running fine. I ssh'd into the Jail and ran PS which again confirmed that both Serviio and Java were running. But then after a short while, i got odd results.
I discovered that the admin user created earlier was non-existent. Fine i thought, simply create it within the jail and then restart it. Only, i got the error: -
Starting jails: cannot start jail "serviio":
Hmm. So investigating i noticed that the mount point of
/mnt/tank/_MEDIA to
/mnt/tank/Serviio_Jail/Serviio_root/usr/local/serviio-0.6.0.1/MEDIA was broken. Checking the logs,
/Serviio_Jail/Serviio_root/var/log contained: -
Nov 27 20:23:49 serviio newsyslog[11421]: logfile first created
Nov 27 20:23:49 serviio syslogd: kernel boot file is /boot/kernel/kernel
Nov 27 20:23:51 serviio root: /etc/rc: WARNING: failed to start sshd
Nov 27 20:23:51 serviio /usr/sbin/cron[11595]: _secure_path: /etc/login.conf is world writable
Nov 27 20:23:51 serviio /usr/sbin/cron[11595]: login_getclass: unknown class 'daemon'
Nov 27 20:23:51 serviio /usr/sbin/cron[11595]: _secure_path: /etc/login.conf is world writable
Nov 27 20:23:51 serviio /usr/sbin/cron[11595]: login_getclass: unknown class 'daemon'
Nov 27 20:23:51 serviio /usr/sbin/cron[11595]: _secure_path: /etc/login.conf is world writable
Nov 27 20:23:51 serviio /usr/sbin/cron[11595]: login_getclass: unknown class 'daemon'
Nov 27 20:23:51 serviio /usr/sbin/cron[11595]: _secure_path: /etc/login.conf is world writable
Nov 27 20:23:51 serviio /usr/sbin/cron[11595]: login_getclass: unknown class 'daemon'
Nov 27 20:23:51 serviio /usr/sbin/cron[11595]: _secure_path: /etc/login.conf is world writable
Nov 27 20:23:51 serviio /usr/sbin/cron[11595]: login_getclass: unknown class 'daemon'
Nov 27 20:23:51 serviio /usr/sbin/cron[11595]: _secure_path: /etc/login.conf is world writable
Nov 27 20:23:51 serviio /usr/sbin/cron[11595]: login_getclass: unknown class 'daemon'
Nov 27 20:23:51 serviio /usr/sbin/cron[11595]: _secure_path: /etc/login.conf is world writable
Nov 27 20:23:51 serviio /usr/sbin/cron[11595]: login_getclass: unknown class 'daemon'
Nov 27 20:25:00 serviio cron[11710]: _secure_path: /etc/login.conf is world writable
Nov 27 20:25:00 serviio cron[11710]: login_getclass: unknown class 'daemon'
Nov 27 20:25:00 serviio cron[11710]: _secure_path: /etc/login.conf is world writable
Nov 27 20:29:03 serviio syslogd: exiting on signal 15
Not sure what signal 15 meant but i suspect its similar to a windows fatal error which terminates the process. The log outside the Jail contained little other evidence. Looking at the log file
jail_serviio_console.log i find: -
Setting hostname: serviio.
Generating host.conf.
Creating and/or trimming log files.
ln: /dev/log: Operation not permitted
Starting syslogd.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib
32-bit compatibility ldconfig path:
Clearing /tmp (X related).
Starting local daemons:.
Updating motd:.
Generating public/private rsa1 key pair.
Your identification has been saved in /etc/ssh/ssh_host_key.
Your public key has been saved in /etc/ssh/ssh_host_key.pub.
The key fingerprint is:
02:d9:63:cd:a8:70:e0:8f:0c:09:0b:b6:cf:a0:ba:87 root@serviio
The key's randomart image is:
+--[RSA1 1024]----+
|o.. |
|++.. o + |
|+oo + = o |
|.o+= + . |
|. ooo . S |
|. . |
|.. |
|E.. |
|.. |
+-----------------+
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
13:e9:4d:a5:c0:e3:84:e8:72:f4:00:44:de:cf:f3:c0 root@serviio
The key's randomart image is:
+--[ DSA 1024]----+
| o+. . o. . |
| . .+ . +o o |
| .o.o oo.o |
| . o+...+ |
| o E S . |
| + . |
| . |
| |
| |
+-----------------+
Generating public/private rsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub.
The key fingerprint is:
5d:3f:d0:22:40:f8:24:3a:1f:8f:f5:6e:07:4c:c1:b6 root@serviio
The key's randomart image is:
+--[ RSA 2048]----+
| oo. |
| o ..+ . |
| . + ..o+ . |
| o . o.Eo + |
| o =S+. o |
| o . + . |
| . . |
| o . |
| . . |
+-----------------+
Starting sshd.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@^M
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @^M
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@^M
Permissions 0777 for '/etc/ssh/ssh_host_rsa_key' are too open.^M
It is recommended that your private key files are NOT accessible by others.^M
This private key will be ignored.^M
bad permissions: ignore key: /etc/ssh/ssh_host_rsa_key^M
Could not load host key: /etc/ssh/ssh_host_rsa_key^M
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@^M
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @^M
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@^M
Permissions 0777 for '/etc/ssh/ssh_host_dsa_key' are too open.^M
It is recommended that your private key files are NOT accessible by others.^M
This private key will be ignored.^M
bad permissions: ignore key: /etc/ssh/ssh_host_dsa_key^M
Could not load host key: /etc/ssh/ssh_host_dsa_key^M
Disabling protocol version 2. Could not load host key^M
sshd: no hostkeys available -- exiting.^M
/etc/rc: WARNING: failed to start sshd
Starting cron.
Sun Nov 27 20:23:51 GMT 2011
Stopping cron.
.
Terminated
Again, those last few lines seem rather ominous. Is it a matter of locking down the files? If this is the reason why it all shuts down, how do i go about fixing it?
I am still investigating the log files if there is anything that would shed further light on the hiccup.
Cheers
Pops
ETA - Ok, i went to where those files where and discovered that if i chmod 600 both
/etc/ssh/ssh_host_rsa_key and
/etc/ssh/ssh_host_dsa_key i no longer get the terminated processes and no complaints on the key's being open. :D