Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Dec 2013 11:19:15 -0600
From:      Matthew Pherigo <hybrid120@gmail.com>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Jails fail to start under ezjail
Message-ID:  <6AAEFB10-7580-4B87-B654-0DFFAD6516A7@gmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
Hi,

When starting a jail under ezjail, the program gives this message and then q=
uits:

[root@Chiyochan-FreeBSD /home/matt]# ezjail-admin start smokeping
Configuring jails:.
Starting jails: cannot start jail "smokeping":=20
.
Error: Could not start smokeping.
  You need to start it by hand.

It fails in the same way with onestart as well. I assumed "start by hand" me=
ans using jail(8), but there isn't an /etc/jail.conf file for it to read, so=
 it doesn't start. I haven't heard anything about ezjail needing this file t=
hough, I assume that ezjail handles configuration separately.

I'm running 9.2-RELEASE. I installed ezjail from PkgNG. This problem is occu=
rring even after reinstalling FreeBSD. My drive is formatted UFS.

Here's the verbose output, although it doesn't seem to hold any clues:

[root@Chiyochan-FreeBSD /home/matt]# /bin/sh -x /usr/local/bin/ezjail-admin s=
tart smokeping                                          [123/396]+ ezjail_pr=
efix=3D/usr/local
+ basename -- /usr/local/bin/ezjail-admin
+ ezjail_admin=3Dezjail-admin
+ ezjail_etc=3D/usr/local/etc
+ ezjail_share=3D/usr/local/share/ezjail
+ ezjail_examples=3D/usr/local/share/examples/ezjail
+ ezjail_jailcfgs=3D/usr/local/etc/ezjail
+ [ -f /usr/local/etc/ezjail.conf ]
+ . /usr/local/etc/ezjail.conf
+ : /usr/jails
+ : /usr/jails/newjail
+ : /usr/jails/basejail
+ : /usr/jails/fulljail
+ : /usr/jails/ezjailtemp
+ : /usr/jails/flavours
+ : /usr/jails/ezjail_archives
+ : /usr/src
+ : YES
+ : /usr/bin/login -f root
+ : YES
+ : YES
+ : devfsrules_jail
+ : YES
+ : YES
+ : /bin/sh /etc/rc
+ : NO                                                                      =
                                                          [97/396]+ :
+ :
+ ezjail_dirlist=3D'bin boot lib libexec rescue sbin usr/bin usr/include usr=
/lib usr/libdata usr/libexec usr/sbin usr/src usr/share'
+ ezjail_basesystem=3Dbase
+ uname -p
+ ezjail_usage_ezjailadmin=3D'ezjail-admin v3.3\nUsage: ezjail-admin [archiv=
e|config|console|create|delete|install|list|restore|update] {params}'
+ ezjail_usage_install=3D'Usage: ezjail-admin install [-mMpPsS] [-h host] [-=
r release]'
+ ezjail_usage_create=3D'Usage: ezjail-admin create [-xbi] [-f flavour] [-r j=
ailroot] [-s size] [-c bde|eli|zfs] [-C args] [-a archive] [-z parentzfs] ja=
ilname jailip'
+ ezjail_usage_delete=3D'Usage: ezjail-admin delete [-wf] jailname'
+ ezjail_usage_update=3D'Usage: ezjail-admin update [-s sourcetree|sourceosv=
ersion] [-p] (-b|-i|-u|-U|-P)'
+ ezjail_usage_config=3D'Usage: ezjail-admin config [-r run|norun] [-n newna=
me] [-c cpuset] [-z zfs-datasets] [-f fib] [-i attach|detach|fsck] jailname'=

+ ezjail_usage_console=3D'Usage: ezjail-admin console [-f] [-e command] jail=
name'
+ ezjail_usage_archive=3D'Usage: ezjail-admin archive [-Af] [-a archive] [-d=
 archivedir] jailname [jailname...]'
+ ezjail_usage_restore=3D'Usage: ezjail-admin restore [-f] [-d archivedir] (=
archive|jailname)...'
+ ezjail_usage_list=3D'Usage: ezjail-admin list'
+ [ 2 -gt 0 ]
+ start_stop_jail_by_script start smokeping
+ ezjail_action=3Dstart
+ ezjail_success_check=3D-n
+ [ -x /usr/local/etc/rc.d/ezjail ]
+ /usr/local/etc/rc.d/ezjail start smokeping
Configuring jails:.
Starting jails: cannot start jail "smokeping":                              =
                                                          [71/396].
+ shift
+ fetchjailinfo smokeping
+ ezjail_name=3Dsmokeping
+ unset ezjail_config ezjail_running ezjail_hostname ezjail_rootdir ezjail_i=
mage ezjail_imagetype ezjail_imagedevice ezjail_devicelink ezjail_ips ezjail=
_id ezjail_attached ezjail_device ezjail_device_geom ezjail_exec_start ezjai=
l_exec_stop ezjail_mount_enable ezjail_devfs_enable ezjail_devfs_ruleset ezj=
ail_procfs_enable ezjail_fdescfs_enable
+ echo -n smokeping
+ tr -c '[:alnum:]' _
+ ezjail_safename=3Dsmokeping
+ [ -z '' ]
+ [ -e /usr/local/etc/ezjail/smokeping ]
+ ezjail_config=3D/usr/local/etc/ezjail/smokeping
+ [ -e /usr/local/etc/ezjail/smokeping.norun ]
+ [ /usr/local/etc/ezjail/smokeping ]
+ . /usr/local/etc/ezjail/smokeping
+ export jail_smokeping_hostname=3Dsmokeping
+ export jail_smokeping_ip=3Dre0@192.168.2.2
+ export jail_smokeping_rootdir=3D/usr/jails/smokeping
+ export 'jail_smokeping_exec_start=3D/bin/sh /etc/rc'
+ export jail_smokeping_exec_stop=3D
+ export jail_smokeping_mount_enable=3DYES
+ export jail_smokeping_devfs_enable=3DYES
+ export jail_smokeping_devfs_ruleset=3Ddevfsrules_jail
+ export jail_smokeping_procfs_enable=3DYES
+ export jail_smokeping_fdescfs_enable=3DYES                                =
                                                            [45/396]+ export=
 jail_smokeping_image=3D
+ export jail_smokeping_imagetype=3D
+ export jail_smokeping_attachparams=3D
+ export jail_smokeping_attachblocking=3D
+ export jail_smokeping_forceblocking=3D
+ export jail_smokeping_zfs_datasets=3D
+ export jail_smokeping_cpuset=3D
+ export jail_smokeping_fib=3D
+ export jail_smokeping_parentzfs=3D
+ export jail_smokeping_parameters=3D
+ export jail_smokeping_post_start_script=3D
+ eval 'ezjail_hostname=3D"$jail_smokeping_hostname"'
+ ezjail_hostname=3Dsmokeping
+ eval 'ezjail_ips=3D"$jail_smokeping_ip"'
+ ezjail_ips=3Dre0@192.168.2.2
+ eval 'ezjail_rootdir=3D"$jail_smokeping_rootdir"'
+ ezjail_rootdir=3D/usr/jails/smokeping
+ eval 'ezjail_exec_start=3D"$jail_smokeping_exec_start"'
+ ezjail_exec_start=3D'/bin/sh /etc/rc'
+ eval 'ezjail_exec_stop=3D"$jail_smokeping_exec_stop"'
+ ezjail_exec_stop=3D''
+ eval 'ezjail_exec=3D"$jail_smokeping_exec"'
+ ezjail_exec=3D''
+ [ '' -a -z '/bin/sh /etc/rc' ]
+ eval 'ezjail_mount_enable=3D"$jail_smokeping_mount_enable"'
+ ezjail_mount_enable=3DYES                                                 =
                                                            [19/396]+ eval '=
ezjail_devfs_enable=3D"$jail_smokeping_devfs_enable"'
+ ezjail_devfs_enable=3DYES
+ eval 'ezjail_devfs_ruleset=3D"$jail_smokeping_devfs_ruleset"'
+ ezjail_devfs_ruleset=3Ddevfsrules_jail
+ eval 'ezjail_procfs_enable=3D"$jail_smokeping_procfs_enable"'
+ ezjail_procfs_enable=3DYES
+ eval 'ezjail_fdescfs_enable=3D"$jail_smokeping_fdescfs_enable"'
+ ezjail_fdescfs_enable=3DYES
+ eval 'ezjail_image=3D"$jail_smokeping_image"'
+ ezjail_image=3D''
+ eval 'ezjail_imagetype=3D"$jail_smokeping_imagetype"'
+ ezjail_imagetype=3D''
+ eval 'ezjail_attachparams=3D"$jail_smokeping_attachparams"'
+ ezjail_attachparams=3D''
+ eval 'ezjail_attachblocking=3D"$jail_smokeping_attachblocking"'
+ ezjail_attachblocking=3D''
+ eval 'ezjail_forceblocking=3D"$jail_smokeping_forceblocking"'
+ ezjail_forceblocking=3D''
+ eval 'ezjail_zfs_datasets=3D"$jail_smokeping_zfs_datasets"'
+ ezjail_zfs_datasets=3D''
+ eval 'ezjail_cpuset=3D"$jail_smokeping_cpuset"'
+ ezjail_cpuset=3D''
+ eval 'ezjail_fib=3D"$jail_smokeping_fib"'
+ ezjail_fib=3D''
+ eval 'ezjail_parentzfs=3D"$jail_smokeping_parentzfs"'
+ ezjail_parentzfs=3D''
+ eval 'ezjail_parameters=3D"$jail_smokeping_parameters"'
+ ezjail_parameters=3D''
+ eval 'ezjail_post_start_script=3D"$jail_smokeping_post_start_script"'
+ ezjail_post_start_script=3D''
+ :
+ basename -- /usr/jails/smokeping
+ ezjail_softlink=3D/usr/jails/smokeping
+ ezjail_devicelink=3D/usr/jails/smokeping.device
+ [ '' -a -L /usr/jails/smokeping.device ]
+ [ -f /var/run/jail_smokeping.id ]
+ return
+ [ -n '' ]
+ exerr 'Error: Could not start smokeping.\n  You need to start it by hand.'=

+ echo -e 'Error: Could not start smokeping.\n  You need to start it by hand=
.'
Error: Could not start smokeping.
  You need to start it by hand.
+ exit 1


If anyone can tell me what's going on, I'd really appreciate it. I'm a newbi=
e to FreeBSD and I'm loving it so far.

Thanks!
--Matt=



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?6AAEFB10-7580-4B87-B654-0DFFAD6516A7>