Skip to content

minipot not working on recent FreeBSD installs. #47

Description

@cweimann

I tried this on both FreeBSD 14.0 and 13.2. I suspect the problem is the consul config (new version of consul) and nomad doesn't start because there is no consul running. The below run is from the FreeBSD 14.0 box.

root@hp800g3:/home/cweimann # pkg info | egrep "consul|nomad|traefik|minipot|pot"
consul-1.16.2                  Service discovery and configuration made easy
minipot-0.2.3                  Mono-server installation of pot, nomad and consul
nomad-1.6.2                    Cluster manager and scheduler
nomad-pot-driver-0.9.1         Nomad driver to support pot jails
pot-0.15.6                     Container framework for FreeBSD
potnet-0.4.4_34                Utility to help sysutils/pot to manage the internal network
traefik-2.10.5                 High availability reverse proxy and load balancer
root@hp800g3:/home/cweimann #
root@hp800g3:/home/cweimann # minipot-init
0
Creating a backup of your /etc/rc.conf
/etc/rc.conf -> /etc/rc.conf.bkp-pot
syslogd_flags: -b 127.0.0.1 -b 10.192.0.1 -a 10.192.0.0/10 -> -b 127.0.0.1 -b 10.192.0.1 -a 10.192.0.0/10
Creating a backup of your /etc/pf.conf
/etc/pf.conf -> /etc/pf.conf.bkp-pot
auto-magically editing your /etc/pf.conf
Please, check that your PF configuration file /etc/pf.conf is still valid!
nomad_user:  -> root
nomad_env:  -> PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/sbin:/bin
nomad_args:  -> -config=/usr/local/etc/nomad/minipot-server.hcl
consul_enable:  -> YES
nomad_enable:  -> YES
traefik_enable:  -> YES
traefik_conf:  -> /usr/local/etc/minipot-traefik.toml
root@hp800g3:/home/cweimann # minipot start
-sh: minipot: not found
root@hp800g3:/home/cweimann # minipot-start
Stopping syslogd.
Waiting for PIDS: 1167.
Starting syslogd.
Stopping cron.
Waiting for PIDS: 1455.
Starting cron.
Starting consul.
Starting nomad.
Starting traefik.
root@hp800g3:/home/cweimann #
root@hp800g3:/home/cweimann # sockstat -4l
USER     COMMAND    PID   FD  PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
traefik  traefik    12974 7   tcp46  *:8080                *:*
traefik  traefik    12974 8   tcp46  *:9002                *:*
root     syslogd    12909 6   udp4   127.0.0.1:514         *:*
root     syslogd    12909 7   udp4   10.192.0.1:514        *:*
root     sshd        1451 4   tcp4   *:22                  *:*
root@hp800g3:/home/cweimann #

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