Disclosure up front: FygoOS gave me a lifetime license as part of their developer program, and this post has an affiliate link at the bottom. Nobody at FygoOS reviewed or approved this post. The bugs are all in here.


A few weeks ago I got an email I did not expect.

FygoOS, a NAS operating system, had come across my GitHub and my personal sites. The homelab repos. The observability stack. The NOC dashboard. They called out my work with Docker, Docker Compose, app packaging and self-hosted deployments, and said it could be a great fit.

They offered a lifetime license so I could test the whole system, and asked if I wanted to join their developer program and build apps for their App Center.

I said yes before I finished reading the email.

Then I had to figure out what I was actually going to build.


Picking the First App

That part took about four seconds.

If you read my NOC dashboard post, you know monitoring is my thing. And a NAS is the one box in your house that you really want to know about before it has a bad day.

So the first app is Fygo Monitor: Prometheus and Grafana, packaged so you install it from the App Center, open it from the desktop, and a NAS dashboard is already there. CPU, memory, volumes, disk I/O, network, ZFS, and Docker containers if you want them.

No YAML. No “now go add a data source”. Install, set a password, done.

The Fygo Monitor NAS Overview dashboard running on my FygoOS test VM

The real thing, running on my FygoOS test VM.


How a FygoOS App Is Put Together

A FygoOS app is a folder that gets packed into a single .fpk file. Here is what is in mine:

PieceWhat it does
manifestName, version, port, description
app/docker/docker-compose.yamlThe containers
app/ui/configThe desktop icon and the window that opens
cmd/Lifecycle scripts: install, upgrade, config, uninstall
config/privilegeWhich user the app runs as
config/resourceTells FygoOS “this app is a Compose project”
wizard/JSON files that draw the install, settings and uninstall forms

The flow is simple on paper. The user fills in a wizard. FygoOS hands the answers to your scripts as environment variables. Your scripts write config. FygoOS runs your Compose file.

You build the package with their CLI:

fygopack build --directory monitor

And you get fygo-monitor.fpk.

On paper. Hold that thought.


Design Decisions

A monitoring app on a NAS is a guest in somebody’s house. It sits next to their family photos. So I set some rules before writing anything.

One open port. Grafana on 3300. Prometheus and the exporters are not reachable from your network at all.

Nothing runs privileged. My first draft had privileged: true on cAdvisor and pid: host on node-exporter, because that is what every tutorial copy pastes. I tested without them. Same metrics. Gone.

Container metrics are opt in. cAdvisor needs the Docker socket, and access to the Docker socket is basically root on the box. So it stays asleep unless you flip the switch in the wizard.

Pinned image versions. No latest. An app that changes under you on a random Tuesday is not an app, it is a surprise.

Fygo Monitor architecture: four containers, one open port

Everything written down. The repo has a PERMISSIONS.md that lists every mount, why it is there, and what I tried in order to remove it. If I am asking for access to your NAS you should be able to read exactly what and why.


Then I Tested It on a Real FygoOS VM

I built a test VM on Tupac, one of my Proxmox nodes. 4 cores, 4 GB of RAM, a boot disk and three small data disks in RAID 5.

Everything up to this point had been tested on my laptop. It all worked on my laptop.

You already know where this is going.

1. It would not install. At all.

First install, instant rollback. Error code 10266 and nothing else.

I had assumed my install script runs first and then FygoOS starts the containers. It is the other way around. FygoOS creates the containers before your script ever runs. My Compose file pointed at a settings file that did not exist yet.

The install order I assumed versus what FygoOS really does

2. My quick fix opened the front door

So I made that file optional. The install went through. Grafana came up.

With the default login. admin / admin. On a NAS.

The password from the wizard never made it into the container, because the container was created before the wizard answers were saved. That is the kind of bug that works perfectly in a demo.

3. My scripts were not allowed to touch Docker

My plan B was to fix things up from my own scripts after install. FygoOS runs app scripts as a locked down app user with no Docker access.

Honestly? Good. That is the right call for a NAS. It just meant plan B was dead too.

The real fix: stop passing settings in at creation time. Every container now reads its settings from a small file when it starts. Password, retention, the container metrics switch. Change a setting, restart the app, done.

4. cAdvisor saw zero containers

On my laptop Docker keeps its data in /var/lib/docker. On FygoOS it lives on whatever storage volume you picked. cAdvisor looked in the usual place, found nothing, and reported nothing.

Now it looks up the real location when it starts.

5. Reinstalling kept the old password

Uninstall and keep your data. Reinstall with a new password. Log in with the new password.

Nope.

Grafana only reads the admin password the very first time it creates its database. Now the app applies the saved password on every start.

6. “Delete my data” did not delete my data

The uninstall form had a switch for deleting stored data. I turned it on. My script received “off”. Four times in a row.

I swapped the switch for a dropdown with two plain choices. Works every time. I reported the switch behavior to FygoOS.

7. A panel that said “No data”

“Load per core” was dividing two numbers that Prometheus refused to match up. One word fixed it. It still took me longer to notice than everything else on this list.

Seven things that broke on a real FygoOS VM, all fixed


What Passed

After the fixes, on the VM:

  • Install, with container metrics off and on
  • Changing settings
  • Upgrading over an installed version, data intact
  • Uninstall keeping data, and uninstall deleting it
  • A full reboot
  • Adding a storage pool after install. It showed up on the dashboard by itself.

One honest note: the package is not signed yet, and it is not in the App Center yet. The developer console for certificates and submissions was not open when I wrote this. I will update this post when it is.


What I Took Away From This

“Works on my machine” is not a test. Seven bugs. Zero of them showed up on my laptop.

Test the boring paths. Nobody demos uninstall. Uninstall is where I found two of the seven.

Ask for less. Every permission I removed was one less thing to explain to a reviewer and one less thing to worry about on your NAS.

Write down what the platform really does. Half of this was learning the order FygoOS does things in. That is all in the repo now, so the next person does not have to find out the hard way.


The Code

Everything is open: the app, the build pipeline, the permissions write up, and the full test log with every failure.

github.com/ced4568/fygoos-apps

If you build a FygoOS app and get stuck on something I hit, open an issue. I probably broke it first.


Get FygoOS

FygoOS has a free tier, so you can try these apps without paying anything.

If you go for Plus or Lifetime, code 9AATEV gives 10% off: fygonas.com/pricing

Affiliate disclosure: that is an affiliate link. I earn a commission if you buy through it, at no extra cost to you.