Skip to content

Jail does not start at boot -> vncport use on 2nd start / after reboot #2

@n-connect

Description

@n-connect

Hi @olevole

There's some hickups over xigmajail created jails. At first they do start & run plus provide the web based terminal via ttyd with the -c parameter.

After a reboot they won't start, it seems the reason beding the vnc_port file got lost (?) and a second file created as `vnc_port2

Listed in the other issue already, the cbsd jcounstruct-tui fails to run due to missing binary, you can check it in #1

I guess, there were some key changes with the release 13.3.05 :)

xigmanas: ~# cbsd jls
JNAME  JID  IP4_ADDR  HOST_HOSTNAME    PATH                    STATUS
jail1  0    10.0.0.2  jail1.my.domain  /data/cbsd/jails/jail1  Off
xigmanas: ~# cbsd jstart
List of offline jail
 0 .. CANCEL
 a .. jail1 on local

Default NIC automatically selected: re0
set resource limit: [ vmemoryuse:deny=256 ]
jail renice: 1
Starting jail: jail1, parallel timeout=5
jail1: created
ld-elf.so.1: morepages: cannot mmap anonymous memory: Cannot allocate memory
ld-elf.so.1: morepages: cannot mmap anonymous memory: Cannot allocate memory
Out of memory
jail: jail1: /bin/sh /etc/rc: failed
jail1: removed
Execute master script: expose.sh
 :: /data/cbsd/jails-system/jail1/master_poststart.d/expose.sh
head: /data/cbsd/jails-system/jail1/vnc_port: No such file or directory
CBSD Expose for jail1: 3000 -> 22 (tcp)
CBSD: Enable IP forwarding for NAT service
pfctl: pf already enabled
CBSD Expose for jail1: 3000 -> 22 (tcp)
CBSD: Enable IP forwarding for NAT service
pfctl: pf already enabled
CBSD Expose for jail1: 3000 -> 22 (tcp)
CBSD: Enable IP forwarding for NAT service
pfctl: pf already enabled
CBSD Expose for jail1: 3000 -> 22 (tcp)
CBSD: Enable IP forwarding for NAT service
pfctl: pf already enabled
jstart done in 9 seconds
xigmanas: ~# ls -la /data/cbsd/j
jails-data/   jails-fstab/  jails-rcconf/ jails-system/ jails/
xigmanas: ~# ls -la /data/cbsd/jails-system/jail1/
total 43
drwxrwxr-x  5 root  cbsd     21 May 20 09:29 .
drwxrwxr-x  3 root  cbsd      4 May 20 09:00 ..
drwxrwxr-x  3 root  cbsd      4 May 20 09:00 etcupdate
-rw-rw----  1 cbsd  cbsd   8192 May 20 09:29 expose.sqlite
-rw-rw----  1 cbsd  cbsd  32768 May 20 09:29 expose.sqlite-shm
-rw-rw----  1 cbsd  cbsd      0 May 20 09:29 expose.sqlite-wal
drwxrwxr-x  2 root  cbsd      5 May 20 09:00 helpers
-rw-r--r--  1 root  cbsd     20 May 20 09:29 jail.limits
-rw-r--r--  1 root  cbsd     74 May 20 09:00 jail.limits.extra
-rw-rw----  1 cbsd  cbsd  16384 May 20 09:00 local.sqlite
-rw-rw----  1 cbsd  cbsd  16384 May 20 09:00 local.sqlite-20240520090528.bkp
-rw-rw----  1 cbsd  cbsd  32768 May 20 09:29 local.sqlite-shm
-rw-rw----  1 cbsd  cbsd      0 May 20 09:05 local.sqlite-wal
drwxr-xr-x  2 cbsd  cbsd      3 May 20 08:54 master_poststart.d
-rw-rw-r--  1 root  cbsd      0 May 20 09:00 media.sql
-rw-rw-r--  1 root  cbsd    535 May 20 09:00 rc.conf_jail1
lrwxrwxr-x  1 root  cbsd     46 May 20 09:29 stats.conf -> /data/cbsd/jails-system/jail1/stats.conf.15082
-rw-rw-r--  1 cbsd  cbsd    504 May 20 09:29 stats.conf.15082
lrwxrwxr-x  1 root  cbsd     46 May 20 09:29 stats.json -> /data/cbsd/jails-system/jail1/stats.json.15082
-rw-rw-r--  1 cbsd  cbsd    500 May 20 09:29 stats.json.15082
-rw-rw-r--  1 root  cbsd     23 May 20 09:29 vnc_port2
xigmanas: ~# cbsd jstop
List of online jail
No jail specified

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions