Discussion:
Jails fail to start under ezjail
Matthew Pherigo
2013-12-06 17:19:15 UTC
Permalink
Hi,

When starting a jail under ezjail, the program gives this message and then quits:

[***@Chiyochan-FreeBSD /home/matt]# ezjail-admin start smokeping
Configuring jails:.
Starting jails: cannot start jail "smokeping":
.
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" means 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 though, I assume that ezjail handles configuration separately.

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

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

[***@Chiyochan-FreeBSD /home/matt]# /bin/sh -x /usr/local/bin/ezjail-admin start smokeping [123/396]+ ezjail_prefix=/usr/local
+ basename -- /usr/local/bin/ezjail-admin
+ ezjail_admin=ezjail-admin
+ ezjail_etc=/usr/local/etc
+ ezjail_share=/usr/local/share/ezjail
+ ezjail_examples=/usr/local/share/examples/ezjail
+ ezjail_jailcfgs=/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='bin boot lib libexec rescue sbin usr/bin usr/include usr/lib usr/libdata usr/libexec usr/sbin usr/src usr/share'
+ ezjail_basesystem=base
+ uname -p
+ ezjail_usage_ezjailadmin='ezjail-admin v3.3\nUsage: ezjail-admin [archive|config|console|create|delete|install|list|restore|update] {params}'
+ ezjail_usage_install='Usage: ezjail-admin install [-mMpPsS] [-h host] [-r release]'
+ ezjail_usage_create='Usage: ezjail-admin create [-xbi] [-f flavour] [-r jailroot] [-s size] [-c bde|eli|zfs] [-C args] [-a archive] [-z parentzfs] jailname jailip'
+ ezjail_usage_delete='Usage: ezjail-admin delete [-wf] jailname'
+ ezjail_usage_update='Usage: ezjail-admin update [-s sourcetree|sourceosversion] [-p] (-b|-i|-u|-U|-P)'
+ ezjail_usage_config='Usage: ezjail-admin config [-r run|norun] [-n newname] [-c cpuset] [-z zfs-datasets] [-f fib] [-i attach|detach|fsck] jailname'
+ ezjail_usage_console='Usage: ezjail-admin console [-f] [-e command] jailname'
+ ezjail_usage_archive='Usage: ezjail-admin archive [-Af] [-a archive] [-d archivedir] jailname [jailname...]'
+ ezjail_usage_restore='Usage: ezjail-admin restore [-f] [-d archivedir] (archive|jailname)...'
+ ezjail_usage_list='Usage: ezjail-admin list'
+ [ 2 -gt 0 ]
+ start_stop_jail_by_script start smokeping
+ ezjail_action=start
+ ezjail_success_check=-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=smokeping
+ unset ezjail_config ezjail_running ezjail_hostname ezjail_rootdir ezjail_image ezjail_imagetype ezjail_imagedevice ezjail_devicelink ezjail_ips ezjail_id ezjail_attached ezjail_device ezjail_device_geom ezjail_exec_start ezjail_exec_stop ezjail_mount_enable ezjail_devfs_enable ezjail_devfs_ruleset ezjail_procfs_enable ezjail_fdescfs_enable
+ echo -n smokeping
+ tr -c '[:alnum:]' _
+ ezjail_safename=smokeping
+ [ -z '' ]
+ [ -e /usr/local/etc/ezjail/smokeping ]
+ ezjail_config=/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=smokeping
+ export jail_smokeping_ip=***@192.168.2.2
+ export jail_smokeping_rootdir=/usr/jails/smokeping
+ export 'jail_smokeping_exec_start=/bin/sh /etc/rc'
+ export jail_smokeping_exec_stop=
+ export jail_smokeping_mount_enable=YES
+ export jail_smokeping_devfs_enable=YES
+ export jail_smokeping_devfs_ruleset=devfsrules_jail
+ export jail_smokeping_procfs_enable=YES
+ export jail_smokeping_fdescfs_enable=YES [45/396]+ export jail_smokeping_image=
+ export jail_smokeping_imagetype=
+ export jail_smokeping_attachparams=
+ export jail_smokeping_attachblocking=
+ export jail_smokeping_forceblocking=
+ export jail_smokeping_zfs_datasets=
+ export jail_smokeping_cpuset=
+ export jail_smokeping_fib=
+ export jail_smokeping_parentzfs=
+ export jail_smokeping_parameters=
+ export jail_smokeping_post_start_script=
+ eval 'ezjail_hostname="$jail_smokeping_hostname"'
+ ezjail_hostname=smokeping
+ eval 'ezjail_ips="$jail_smokeping_ip"'
+ ezjail_ips=***@192.168.2.2
+ eval 'ezjail_rootdir="$jail_smokeping_rootdir"'
+ ezjail_rootdir=/usr/jails/smokeping
+ eval 'ezjail_exec_start="$jail_smokeping_exec_start"'
+ ezjail_exec_start='/bin/sh /etc/rc'
+ eval 'ezjail_exec_stop="$jail_smokeping_exec_stop"'
+ ezjail_exec_stop=''
+ eval 'ezjail_exec="$jail_smokeping_exec"'
+ ezjail_exec=''
+ [ '' -a -z '/bin/sh /etc/rc' ]
+ eval 'ezjail_mount_enable="$jail_smokeping_mount_enable"'
+ ezjail_mount_enable=YES [19/396]+ eval 'ezjail_devfs_enable="$jail_smokeping_devfs_enable"'
+ ezjail_devfs_enable=YES
+ eval 'ezjail_devfs_ruleset="$jail_smokeping_devfs_ruleset"'
+ ezjail_devfs_ruleset=devfsrules_jail
+ eval 'ezjail_procfs_enable="$jail_smokeping_procfs_enable"'
+ ezjail_procfs_enable=YES
+ eval 'ezjail_fdescfs_enable="$jail_smokeping_fdescfs_enable"'
+ ezjail_fdescfs_enable=YES
+ eval 'ezjail_image="$jail_smokeping_image"'
+ ezjail_image=''
+ eval 'ezjail_imagetype="$jail_smokeping_imagetype"'
+ ezjail_imagetype=''
+ eval 'ezjail_attachparams="$jail_smokeping_attachparams"'
+ ezjail_attachparams=''
+ eval 'ezjail_attachblocking="$jail_smokeping_attachblocking"'
+ ezjail_attachblocking=''
+ eval 'ezjail_forceblocking="$jail_smokeping_forceblocking"'
+ ezjail_forceblocking=''
+ eval 'ezjail_zfs_datasets="$jail_smokeping_zfs_datasets"'
+ ezjail_zfs_datasets=''
+ eval 'ezjail_cpuset="$jail_smokeping_cpuset"'
+ ezjail_cpuset=''
+ eval 'ezjail_fib="$jail_smokeping_fib"'
+ ezjail_fib=''
+ eval 'ezjail_parentzfs="$jail_smokeping_parentzfs"'
+ ezjail_parentzfs=''
+ eval 'ezjail_parameters="$jail_smokeping_parameters"'
+ ezjail_parameters=''
+ eval 'ezjail_post_start_script="$jail_smokeping_post_start_script"'
+ ezjail_post_start_script=''
+ :
+ basename -- /usr/jails/smokeping
+ ezjail_softlink=/usr/jails/smokeping
+ ezjail_devicelink=/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 newbie to FreeBSD and I'm loving it so far.

Thanks!
--Matt
Michael Ross
2013-12-06 20:18:05 UTC
Permalink
Post by Matthew Pherigo
Hi,
Configuring jails:.
.
Error: Could not start smokeping.
You need to start it by hand.
Hi,

a guess:
An IP address assigned to the jail is not configured anywhere on the
machine.

See /usr/local/etc/ezjail/smokeping ( "export jail_smokeping_ip=..." )


Michael
Post by Matthew Pherigo
It fails in the same way with onestart as well. I assumed "start by
hand" means 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 though, I assume that ezjail handles configuration
separately.
I'm running 9.2-RELEASE. I installed ezjail from PkgNG. This problem is
occurring even after reinstalling FreeBSD. My drive is formatted UFS.
/usr/local/bin/ezjail-admin start
smokeping [123/396]+
ezjail_prefix=/usr/local
+ basename -- /usr/local/bin/ezjail-admin
+ ezjail_admin=ezjail-admin
+ ezjail_etc=/usr/local/etc
+ ezjail_share=/usr/local/share/ezjail
+ ezjail_examples=/usr/local/share/examples/ezjail
+ ezjail_jailcfgs=/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
+ ezjail_dirlist='bin boot lib libexec rescue sbin usr/bin usr/include
usr/lib usr/libdata usr/libexec usr/sbin usr/src usr/share'
+ ezjail_basesystem=base
+ uname -p
+ ezjail_usage_ezjailadmin='ezjail-admin v3.3\nUsage: ezjail-admin
[archive|config|console|create|delete|install|list|restore|update]
{params}'
+ ezjail_usage_install='Usage: ezjail-admin install [-mMpPsS] [-h host] [-r release]'
+ ezjail_usage_create='Usage: ezjail-admin create [-xbi] [-f flavour]
[-r jailroot] [-s size] [-c bde|eli|zfs] [-C args] [-a archive] [-z
parentzfs] jailname jailip'
+ ezjail_usage_delete='Usage: ezjail-admin delete [-wf] jailname'
+ ezjail_usage_update='Usage: ezjail-admin update [-s
sourcetree|sourceosversion] [-p] (-b|-i|-u|-U|-P)'
+ ezjail_usage_config='Usage: ezjail-admin config [-r run|norun] [-n
newname] [-c cpuset] [-z zfs-datasets] [-f fib] [-i attach|detach|fsck]
jailname'
+ ezjail_usage_console='Usage: ezjail-admin console [-f] [-e command] jailname'
+ ezjail_usage_archive='Usage: ezjail-admin archive [-Af] [-a archive]
[-d archivedir] jailname [jailname...]'
+ ezjail_usage_restore='Usage: ezjail-admin restore [-f] [-d archivedir]
(archive|jailname)...'
+ ezjail_usage_list='Usage: ezjail-admin list'
+ [ 2 -gt 0 ]
+ start_stop_jail_by_script start smokeping
+ ezjail_action=start
+ ezjail_success_check=-n
+ [ -x /usr/local/etc/rc.d/ezjail ]
+ /usr/local/etc/rc.d/ezjail start smokeping
Configuring jails:.
Starting jails: cannot start jail
[71/396].
+ shift
+ fetchjailinfo smokeping
+ ezjail_name=smokeping
+ unset ezjail_config ezjail_running ezjail_hostname ezjail_rootdir
ezjail_image ezjail_imagetype ezjail_imagedevice ezjail_devicelink
ezjail_ips ezjail_id ezjail_attached ezjail_device ezjail_device_geom
ezjail_exec_start ezjail_exec_stop ezjail_mount_enable
ezjail_devfs_enable ezjail_devfs_ruleset ezjail_procfs_enable
ezjail_fdescfs_enable
+ echo -n smokeping
+ tr -c '[:alnum:]' _
+ ezjail_safename=smokeping
+ [ -z '' ]
+ [ -e /usr/local/etc/ezjail/smokeping ]
+ ezjail_config=/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=smokeping
+ export jail_smokeping_rootdir=/usr/jails/smokeping
+ export 'jail_smokeping_exec_start=/bin/sh /etc/rc'
+ export jail_smokeping_exec_stop=
+ export jail_smokeping_mount_enable=YES
+ export jail_smokeping_devfs_enable=YES
+ export jail_smokeping_devfs_ruleset=devfsrules_jail
+ export jail_smokeping_procfs_enable=YES
+ export
jail_smokeping_fdescfs_enable=YES
[45/396]+ export jail_smokeping_image=
+ export jail_smokeping_imagetype=
+ export jail_smokeping_attachparams=
+ export jail_smokeping_attachblocking=
+ export jail_smokeping_forceblocking=
+ export jail_smokeping_zfs_datasets=
+ export jail_smokeping_cpuset=
+ export jail_smokeping_fib=
+ export jail_smokeping_parentzfs=
+ export jail_smokeping_parameters=
+ export jail_smokeping_post_start_script=
+ eval 'ezjail_hostname="$jail_smokeping_hostname"'
+ ezjail_hostname=smokeping
+ eval 'ezjail_ips="$jail_smokeping_ip"'
+ eval 'ezjail_rootdir="$jail_smokeping_rootdir"'
+ ezjail_rootdir=/usr/jails/smokeping
+ eval 'ezjail_exec_start="$jail_smokeping_exec_start"'
+ ezjail_exec_start='/bin/sh /etc/rc'
+ eval 'ezjail_exec_stop="$jail_smokeping_exec_stop"'
+ ezjail_exec_stop=''
+ eval 'ezjail_exec="$jail_smokeping_exec"'
+ ezjail_exec=''
+ [ '' -a -z '/bin/sh /etc/rc' ]
+ eval 'ezjail_mount_enable="$jail_smokeping_mount_enable"'
+
ezjail_mount_enable=YES
[19/396]+ eval 'ezjail_devfs_enable="$jail_smokeping_devfs_enable"'
+ ezjail_devfs_enable=YES
+ eval 'ezjail_devfs_ruleset="$jail_smokeping_devfs_ruleset"'
+ ezjail_devfs_ruleset=devfsrules_jail
+ eval 'ezjail_procfs_enable="$jail_smokeping_procfs_enable"'
+ ezjail_procfs_enable=YES
+ eval 'ezjail_fdescfs_enable="$jail_smokeping_fdescfs_enable"'
+ ezjail_fdescfs_enable=YES
+ eval 'ezjail_image="$jail_smokeping_image"'
+ ezjail_image=''
+ eval 'ezjail_imagetype="$jail_smokeping_imagetype"'
+ ezjail_imagetype=''
+ eval 'ezjail_attachparams="$jail_smokeping_attachparams"'
+ ezjail_attachparams=''
+ eval 'ezjail_attachblocking="$jail_smokeping_attachblocking"'
+ ezjail_attachblocking=''
+ eval 'ezjail_forceblocking="$jail_smokeping_forceblocking"'
+ ezjail_forceblocking=''
+ eval 'ezjail_zfs_datasets="$jail_smokeping_zfs_datasets"'
+ ezjail_zfs_datasets=''
+ eval 'ezjail_cpuset="$jail_smokeping_cpuset"'
+ ezjail_cpuset=''
+ eval 'ezjail_fib="$jail_smokeping_fib"'
+ ezjail_fib=''
+ eval 'ezjail_parentzfs="$jail_smokeping_parentzfs"'
+ ezjail_parentzfs=''
+ eval 'ezjail_parameters="$jail_smokeping_parameters"'
+ ezjail_parameters=''
+ eval 'ezjail_post_start_script="$jail_smokeping_post_start_script"'
+ ezjail_post_start_script=''
+ basename -- /usr/jails/smokeping
+ ezjail_softlink=/usr/jails/smokeping
+ ezjail_devicelink=/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
newbie to FreeBSD and I'm loving it so far.
Thanks!
--Matt
_______________________________________________
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
--
Erstellt mit Operas E-Mail-Modul: http://www.opera.com/mail/
Adam Vande More
2013-12-07 02:54:10 UTC
Permalink
Post by Michael Ross
Hi,
Post by Matthew Pherigo
Configuring jails:.
.
Error: Could not start smokeping.
You need to start it by hand.
Hi,
An IP address assigned to the jail is not configured anywhere on the
machine.
See /usr/local/etc/ezjail/smokeping ( "export jail_smokeping_ip=..." )
Michael
It fails in the same way with onestart as well. I assumed "start by hand"
Post by Matthew Pherigo
means 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 though, I assume that ezjail handles configuration separately.
I'm running 9.2-RELEASE. I installed ezjail from PkgNG. This problem is
occurring even after reinstalling FreeBSD. My drive is formatted UFS.
/usr/local/bin/ezjail-admin start smokeping
[123/396]+ ezjail_prefix=/usr/local
+ basename -- /usr/local/bin/ezjail-admin
+ ezjail_admin=ezjail-admin
+ ezjail_etc=/usr/local/etc
+ ezjail_share=/usr/local/share/ezjail
+ ezjail_examples=/usr/local/share/examples/ezjail
+ ezjail_jailcfgs=/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
+ ezjail_dirlist='bin boot lib libexec rescue sbin usr/bin usr/include
usr/lib usr/libdata usr/libexec usr/sbin usr/src usr/share'
+ ezjail_basesystem=base
+ uname -p
+ ezjail_usage_ezjailadmin='ezjail-admin v3.3\nUsage: ezjail-admin
[archive|config|console|create|delete|install|list|restore|update]
{params}'
+ ezjail_usage_install='Usage: ezjail-admin install [-mMpPsS] [-h host] [-r release]'
+ ezjail_usage_create='Usage: ezjail-admin create [-xbi] [-f flavour] [-r
jailroot] [-s size] [-c bde|eli|zfs] [-C args] [-a archive] [-z parentzfs]
jailname jailip'
+ ezjail_usage_delete='Usage: ezjail-admin delete [-wf] jailname'
+ ezjail_usage_update='Usage: ezjail-admin update [-s
sourcetree|sourceosversion] [-p] (-b|-i|-u|-U|-P)'
+ ezjail_usage_config='Usage: ezjail-admin config [-r run|norun] [-n
newname] [-c cpuset] [-z zfs-datasets] [-f fib] [-i attach|detach|fsck]
jailname'
+ ezjail_usage_console='Usage: ezjail-admin console [-f] [-e command] jailname'
+ ezjail_usage_archive='Usage: ezjail-admin archive [-Af] [-a archive]
[-d archivedir] jailname [jailname...]'
+ ezjail_usage_restore='Usage: ezjail-admin restore [-f] [-d archivedir]
(archive|jailname)...'
+ ezjail_usage_list='Usage: ezjail-admin list'
+ [ 2 -gt 0 ]
+ start_stop_jail_by_script start smokeping
+ ezjail_action=start
+ ezjail_success_check=-n
+ [ -x /usr/local/etc/rc.d/ezjail ]
+ /usr/local/etc/rc.d/ezjail start smokeping
Configuring jails:.
[71/396].
+ shift
+ fetchjailinfo smokeping
+ ezjail_name=smokeping
+ unset ezjail_config ezjail_running ezjail_hostname ezjail_rootdir
ezjail_image ezjail_imagetype ezjail_imagedevice ezjail_devicelink
ezjail_ips ezjail_id ezjail_attached ezjail_device ezjail_device_geom
ezjail_exec_start ezjail_exec_stop ezjail_mount_enable ezjail_devfs_enable
ezjail_devfs_ruleset ezjail_procfs_enable ezjail_fdescfs_enable
+ echo -n smokeping
+ tr -c '[:alnum:]' _
+ ezjail_safename=smokeping
+ [ -z '' ]
+ [ -e /usr/local/etc/ezjail/smokeping ]
+ ezjail_config=/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=smokeping
Not that familiar with ezjail, but this looks wrong.
--
Adam
Loading...