FreeBSD

Running pkgbasify on a FreeBSD 15.0 jail

It’s time. All my hosts are on 15.0 and on pkgbase. Next, let’s move a jail to pkgbase. In this post: FreeBSD 15.0 the jail is named empty I’m following instructions based on the official docs and copying from a previous post: Running pkgbasify on FreeBSD 15.0 snapshot, not bectl Because it’a jail, I’m doing this for the filesystem of the jail. The commands are run on the jail host. data01/jails/empty 18.3G 7.08T […]

Running pkgbasify on a FreeBSD 15.0 jail Read More »

after pkgbasify – not finding all the repos?

If, after moving to pkgbase (for me, that was via pkgbasify), you discover you can’t find the package in question, you might, like me, run this command: % pkg repos -e [18:25 r720-02 dvl ~] % pkg repos -e local: { url : “https://fedex.example.org/packages/FreeBSD:15:amd64/”, enabled : yes, priority : 0, signature_type : “PUBKEY”, pubkey : “/etc/ssl/slocum.unixathome.org.cert” } Not to worry, that’s my local repo. What’s missing there is pkgbase. When I compare this

after pkgbasify – not finding all the repos? Read More »

pkgbasify: Authentication error

In this post: FreeBSD 15.0 If you’re running pkgbasify, and you hit this message: [15:02 zuul dvl ~/tmp] % fetch https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua fetch: https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua: Authentication error … my “fix” was: [15:04 zuul dvl ~/tmp] % fetch –no-verify-peer https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua fetch: https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua: Authentication error [15:04 zuul dvl ~/tmp] % fetch –no-verify-peer https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua fetch: https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua: Authentication error [15:04 zuul dvl ~/tmp] % fetch –no-verify-peer https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua pkgbasify.lua 21 kB 25 MBps 00s [15:04 zuul dvl ~/tmp] % As

pkgbasify: Authentication error Read More »

pkgbasify: /var/empty is a readonly zfs filesystem.

After my initial success yesterday with pkgbasify, today, I hit a block. This was my fourth host conversion. In this post: FreeBSD 15.0 The block There I was, minding my own business, when this jumped up and hit me. [root@tallboy:~] # sudo bectl create before-pkgbasify [root@tallboy:~] # uname -a FreeBSD tallboy.unixathome.org 15.0-RELEASE-p10 FreeBSD 15.0-RELEASE-p10 GENERIC amd64 [root@tallboy:~] # fetch https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua pkgbasify.lua 21 kB 1910 kBps 00s [root@tallboy:~] # chmod +x ./pkgbasify.lua [root@tallboy:~] #

pkgbasify: /var/empty is a readonly zfs filesystem. Read More »

Did VictoriaLogs miss any logs during the reboot?

Yesterday, I modified r730-01 by Running pkgbasify on FreeBSD 15.0 – as a consequence, my log collecting jail was offline. Did it miss any logs? Let’s find out. In this post: FreeBSD 15.0 syslog-ng-4.11.0_2 (sending logs from FreshPorts production) victoria-logs-1.50.0_2 (receiving logs in the logs jail The period in question Looking at /var/log/messages, I see: With syslogd now stopped, there are no further logs until: NOTE: I had not set the logs jail

Did VictoriaLogs miss any logs during the reboot? Read More »

Running pkgbasify on FreeBSD 15.0

At BSDCan 2026, I attended the pkgbase in Production: A Practical Overview talk. What impressed me was the ease with which one could upgrade from 15.0 to 15.1 etc. Included in the demonstration was pkgbasify (“Automatically convert a FreeBSD system to use pkgbase”). In this post: the host being modified is running FreeBSD 15.0 Today, I took the plunge on my r730-01 host. Following the instructions at https://github.com/FreeBSDFoundation/pkgbasify I did the following. I

Running pkgbasify on FreeBSD 15.0 Read More »

Adding syslog-ng to a host to extract Nginx logs

This replaces and combines two earlier posts: Replacing syslogd with syslog-ng (sysutils/syslog-ng) on FreeBSD. Getting Nginx logs into Victoria-Logs I just got Victoria Logs running. Now I want to get logs into it. For starters, I want to get the logs on the host itself into Victoria Logs. I figure this is a log-risk experiment. In this post: FreeBSD 15.0 victoria-logs-1.50.0_2 syslog-ng-4.11.0_2 I’m installing syslog-ng on a host (x8dtu) The nginx logs reside

Adding syslog-ng to a host to extract Nginx logs Read More »

Getting Nginx logs into Victoria-Logs – v2

VictoriaLogs is feature rich, which means at this point, I know very little about it. However, this post has been deprecated by a newer post which covers more material. I do know that the original syslog-ng configuration I supplied in Getting Nginx logs into Victoria-Logs is now less complicated. With the help of duck.ai, I managed to reduce it. Now it’s sending the json without running it through a parser. In this post:

Getting Nginx logs into Victoria-Logs – v2 Read More »

VictoriaLogs: Adding syslog-ng to a host and ingesting nginx log from jails

This post is more self-documentation than anything else. The links in this post might be useful than the content. However, this post has been deprecated by a newer post which covers more material. Today I’ll start pulling production FreshPorts nginx logs into VictoriaLogs. Over the past few days, I’ve configured a proof-of-concept and now I’m ready to try this in prod. In this post: FreeBSD 15.0 (installed on the host aws-1) nginx-1.30.2_2,3 (running

VictoriaLogs: Adding syslog-ng to a host and ingesting nginx log from jails Read More »

Getting Nginx logs into Victoria-Logs

My goal today: get nginx logs into Victoria-Logs. I’ve already gotten Victoria-Logs running on FreeBSD and replaced syslog with syslog-ng to get TLS NOTE: This post was originally only about Nginx. I’ve since added general syslog messages to the configuration. However, this post has been deprecated by a newer post which covers more material. Also, the Adding an nginx proxy in front of Victoria-Labs post might be helpful before proceeding here. Over the

Getting Nginx logs into Victoria-Logs Read More »

Scroll to Top