Skip to content

Category: Servers

Diun – Docker Image Update Notifier

Diun keeps an eye on your Docker images and lets you know when updates are available, so you don’t have to check for new versions yourself.

It automatically checks your container images on a schedule and sends notifications through Discord, Telegram, Gotify, email, and more. It works with Docker, Kubernetes, Nomad, and other container platforms.

What it can do:

  • Checks your container images for updates automatically.
  • Lets you choose which images to monitor.
  • Sends update alerts to your favorite notification services.
  • Supports scheduled checks and detailed logging.
  • Runs as a Docker container or standalone application.

Diun is a simple way to stay on top of container updates without automatically installing them, giving you control over when to update your apps.

Notifications via the following are supported

Leave a Comment

Supergateway: Makes Self-Hosting MCP Servers Much Easier

I recently came across Supergateway and it solved a problem I was running into with MCP servers.

I was looking for a cleaner way to work with multiple MCP servers without having to install a ton of separate services, keep random background processes running, or execute npx commands all over the server every time I wanted to expose a tool. Supergateway acts as a bridge between stdio-based MCP servers and transports like SSE, WebSockets, and Streamable HTTP, which made things much easier to centralize and manage.

What I found especially useful was being able to take existing MCP servers that normally only run locally over stdio and expose them in a more flexible way for remote access, containers, or shared environments. It simplified the overall setup and made my MCP environment feel a lot more organized instead of having dozens of individually managed processes everywhere.

It also seems to be becoming a pretty common approach in the MCP ecosystem for bridging transports and simplifying deployments, especially in Docker and self-hosted environments.

https://github.com/supercorp-ai/supergateway

Example

 mcp-openweathermap:
    image: supercorp/supergateway:latest
    container_name: mcp-openweathermap
    command: >
        --stdio "npx -y @tristau/openweathermap-mcp --apikey myKey"
        --port 8000
        --outputTransport sse
    ports:
      - 8000:8000        
    restart: unless-stopped
1 Comment

playwright/mcp localhost error

I kept running into a playwright/mcp localhost access issue when trying to connect to the container from outside Docker. By default, the service only allowed connections to localhost:8931, which prevented external access from the host machine or other containers.

After a lot of troubleshooting, this Docker Compose configuration resolved the issue and allowed external connections successfully.

Notes

  • This example uses Chromium in headless mode.
  • Port 8931 is exposed to the host machine.
  • PLAYWRIGHT_MCP_NO_SANDBOX=true can help in certain containerized environments.
  • For production deployments, consider restricting --allowed-hosts instead of using "*".
  mcp-playwright:
    image: mcr.microsoft.com/playwright/mcp
    container_name: mcp-playwright
    entrypoint: ["node", "/app/cli.js"]
    command: 
      - "--host"
      - "0.0.0.0"
      - "--port"
      - "8931"
      - "--allowed-hosts"
      - "*"  # Allows connections from your host machine
      - "--browser"
      - "chromium"
      - "--headless"
    environment:
      - PLAYWRIGHT_MCP_NO_SANDBOX=true
    ports:
      - "8931:8931"
    restart: unless-stopped
Leave a Comment

IPs for Monitoring

Before I lose this list and this post again.

10 to 20 safe high performance IP addresses that can be pinged for monitoring?
byu/ylluminate insysadmin

  • Lumen / Level 3 / Verizon: 4.2.2.2
  • Lumen / Level 3 / Verizon: 4.2.2.3
  • Lumen / Level 3 / Verizon: 4.2.2.4
  • Lumen / Level 3 / Verizon: 4.2.2.5
  • Lumen / Level 3 / Verizon: 4.2.2.6
  • Lumen / Level 3 / Verizon – California: 209.244.0.3
  • UltraDNS: 64.6.64.6 (2620:74:1b::1:1)
  • UltraDNS: 64.6.65.6 (2620:74:1c::2:2)
  • UltraDNS Virginia: 156.154.70.1
  • Dotcom-Monitor/Dallas: 69.162.81.155 (2607:ff68:105::3)
  • Dotcom-Monitor/Denver: 192.199.248.75 (2607:fc88:100:2b::2)
  • Dotcom-Monitor/Miami: 162.254.206.227 (2604:bc80:8001:1064::2)
  • Dotcom-Monitor/Chicago: 209.142.68.29 (2602:fea7:d00::25)
  • Dotcom-Monitor/Minneapolis: 207.250.234.100 (2001:4870:200e:100::2)
  • Dotcom-Monitor/Montreal: 184.107.126.165
  • Dotcom-Monitor/New York: 206.71.50.230 (2604:eb80:1:6::10)
  • Dotcom-Monitor/San Francisco: 65.49.22.66 (2001:470:1:1ab::2)
  • Dotcom-Monitor/Seattle: 23.81.0.59 (2607:f5b2:1:a00b:5::2)
  • Dotcom-Monitor/Washington DC: 207.228.238.7 (2605:4a00:121:f003::2)
  • Google DNS: 8.8.8.8
  • Google DNS: 8.8.4.4
  • Cisco Umbrella/OpenDNS (anycast routing): 208.67.222.222
  • Cisco Umbrella/OpenDNS (anycast routing): 208.67.220.220
  • CloudFlare: 1.1.1.1
  • CloudFlare: 1.0.0.1
  • Norton Connectsafe: 198.153.192.1
  • Norton Connectsafe: 198.153.194.2
  • DNSResolvers.com: 205.210.42.205
  • DNSResolvers.com: 64.68.200.200
  • Quad9: 9.9.9.9 (2620:fe::9)
  • Quad9: 149.112.112.112 (2620:fe::fe)
Leave a Comment

Installing swagger-codegen in Linux and Windows Subsystem for Linux (WSL)

https://docs.brew.sh/Installation

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
test -d ~/.linuxbrew && eval "$(~/.linuxbrew/bin/brew shellenv)"
test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >> ~/.bashrc
brew install swagger-codegen 
swagger-codegen generate -i /mnt/c/Projects/something\ -\ API/swagger.yaml -l csharp -o /mnt/c/swagger
Leave a Comment

What is my ip address?

Another “what is my ip address” app.

So far I have 2 apps for telling you your IP address.

One can be found here, https://yourip.sh. This is using GO and was forked from ifconfig.io. I wanted to learn GO so I forked that project and made modifications to it.

Such as…

  • Added MaxMind databases
  • Added dark mode
  • Added the ability to add other HTML elements
  • Added integration with plausible analytics

https://github.com/xavier-hernandez/yourip.sh

My other, older, app can be found here https://whatismyip.biz . This app is built in .NET, Blazor client side, running on a Linux server. This is totally custom built.

Both apps above a are docker images that I’ve created as well.

Leave a Comment

cronicle-x-plus

GitHub: https://github.com/xavier-hernandez/cronicle-x-plus

Docker Image: https://hub.docker.com/r/xavierh/cronicle-x-plus

This docker is based on https://github.com/soulteary/docker-cronicle with some updates. Look there for settings and more info. This was more of a personal repo/image but since it worked and appears to be stable I thought of making it public.

Cronicle was missing a bunch of tools that I wanted. So I added them to the docker image.

Why, because I wanted to 🙂 I tried using different docker containers and calling them from the Cronicle container but it was a headache.

  • updated the docker image to use node:lts-alpine3.22
  • added the following packages
    • bash
    • borgbackup
    • borgmatic
    • mc
    • nano
    • openssh
    • ripgrep
    • rsync
    • wget
Leave a Comment

Adding Packages to Unraid

Adding packages to Unraid is a bit more challenging now that NerdTools is not integrated with Unraid. However, there are few options to add packages to Unraid.

THE DISCLAIMER FIRST

Manually copying .txz into /boot/extra can work, but it’s risky: versions can mismatch, deps may be broken, and recovery requires familiarity with mounting and editing your USB. If you must continue, backup first, verify package contents, and keep a recovery plan ready.

Possible Backup and Recovery Steps

Backup your USB flash
Always make a copy of /config (your flash’s config share) before tinkering. That way, if Unraid refuses to boot after you drop in a bad .txz, you can restore the previous working state.

Have a recovery plan
If your server won’t boot, use Unraid’s Tech-Support Mode or mount the flash on another machine to delete the offending file in /config/extra.


blah blah blah, ok, finally…

#1 Manual – copy the txz file to your /boot/extra directory. You may need to reboot for the changes to take effect. You can download files from https://slackonly.com/pub/packages/15.0-x86_64/ .

#2 Manual from NerdTools – the archive is still available, and the packages are still there. My understanding is that they should still work, https://github.com/UnRAIDES/unRAID-NerdTools/tree/main/packages/6.11 . Same deal as option #1, copy the txz file to your /boot/extra directory. You may need to reboot for the changes to take effect.

#3 un-get – Haven’t used it, but available. https://github.com/ich777/un-get . Install the plugin into Unraid, Plugins -> Install Plugin -> From Url -> https://github.com/ich777/un-get/blob/master/un-get.plg. More info: https://www.reddit.com/r/unRAID/comments/1kccok5/unget_update_script/

Leave a Comment

Unraid – Problem stopping array – Retry unmounting user share(s)

Sometimes, when trying to shut down or stop your array, you’ll get this error: “Problem stopping array—Retry unmounting user share(s).” It might be because something still has a connection to the server or share. You can try the following to kill the process that is causing the array not to stop.

ps -ef | grep /mnt/user

Find the process that is using the mount, then do

kill <PID>

Leave a Comment

The Windows Subsystem for Linux instance has terminated.

After putting my laptop into hibernation or sleep mode, Ubuntu running on my Windows 11 machine would become unresponsive. Attempting to restart it resulted in the error:

“The Windows Subsystem for Linux instance has terminated.”

After some troubleshooting, I found a way to relaunch it:

Steps to Restart WSL

Open a PowerShell prompt.

Check the status of your WSL instances by running:

wsl -l -v

Example output:

NAME                   STATE           VERSION
* Ubuntu-22.04           Running         2
  docker-desktop-data    Stopped         2


Shut down WSL completely with:

wsl --shutdown

Verify that WSL has stopped by running:

wsl -l -v

Example output:
NAME                   STATE           VERSION
* Ubuntu-22.04           Stopped         2
  docker-desktop-data    Stopped         2


Once WSL has been stopped, you can now reopen Ubuntu, and it should work as expected.

Leave a Comment

Delete backblaze bucket now, not later

So, I had a backup that went wrong, and I just wanted to delete the bucket altogether, but I kept getting errors via the web GUI.

I googled a bit and found that you can set expirations for your bucket. Maybe in 2 days, it’ll delete the files on its own, but I didn’t want to wait.

I downloaded the Windows CLI tool from https://www.backblaze.com/docs/cloud-storage-command-line-tools.

Open a command prompt and run the exe, b2-windows.exe. You’ll see a bunch of flags, etc.

Log in to your account by running this command

.\b2-windows.exe account authorize [applicationKeyId] [applicationKey]

Next, run this command

.\b2-windows.exe rm –versions –recursive “b2://bucket-name”

It’ll take time, depending on the number of files you have. You should see a counter as it reads through the bucket.

Leave a Comment

Unraid – can’t mount shares via NFS

Lately, I’ve had problems mounting shares on a different Unraid server. It seems that sometimes, when doing parity rebuilds or stopping and starting the array multiple times, NFS stops working. The web UI doesn’t let you know this is happening and doesn’t reflect on there.

So… I open up a terminal and enter this command to restart NFS.

 /usr/local/etc/rc.d/rc.nfsd restart
Leave a Comment

Plex + Unraid + AMD GPU Transcoding

While moving/upgrading stuff I temporarily had to use 2 GPUs on my server; however, I want to use the AMD GPU to transcode now that it’s somewhat supported.

Using the Plex template from lscr.io/linuxserver/plex

I added a device variable called

Config 1 – card0 is my AMD GPU

Name: /dev/dri

Value: /dev/dri/card0

Config 2 – /dev/dri/renderD128

Name: whatever, called it “AMD”

Value: /dev/dri/renderD128


I was able to put some load on it by watching Live TV.

Don’t forget to install Radeon-TOP.

Leave a Comment

How to shutdown a second or additional server from one Unraid machine

Found this interesting post that helped me set it up.

https://forums.unraid.net/topic/53944-how-to-shutdown-2-servers-on-1-ups

Yes, if you are using the unraid stock ups software (apcupsd). On the slave server set the cable type to Ether, the ups type to Net, and the device to <master_server_name_or_ip>:3551

Make SURE that the conditions to shutdown are set to keep the master on long enough to allow the slave server to shutdown first.

Personally, I have the master machine set to shut down after 300 seconds on battery, and the slave after 270 seconds. If the power around here is off more than a minute, it’s going to be out a while.

BTW, this also works for VM’s. I have apcupsd set up in all my VM’s to initiate shutdown after 60 seconds of no power, so they have plenty of time to finish up what they are doing and shutdown cleanly before unraid pulls the rug out from under them

Leave a Comment

bash script to clean up directories

#!/bin/bash
# Define the directory to search (you can change this to the desired directory)
DIR="/temp"

# Array of file extensions to delete
EXTENSIONS=("*.txt" "*.srt" "*.nzb" "*.sup" "*.ac3" "*.dts" "*.sample.*" "*.srr")

# Counters for deleted files and directories
deleted_files=0
deleted_directories=0

# Loop through the array and delete the files, counting each deletion
for EXT in "${EXTENSIONS[@]}"; do
    count=$(find "$DIR" -type f -name "$EXT" -print -delete | wc -l)
    deleted_files=$((deleted_files + count))
done

# Find and delete empty directories, counting each deletion
count=$(find "$DIR" -type d -empty -print -delete | wc -l)
deleted_directories=$((deleted_directories + count))

# Output the counts
echo "Deleted $deleted_files files with extensions ${EXTENSIONS[*]}."
echo "Deleted $deleted_directories empty directories."

For the most up-to-date version, follow the links below.

https://snippets.cacher.io/snippet/b554e570d8ffc0431ad9

https://gist.github.com/xavier-hernandez/f4979b4ce174068ce5428a26ae08be32

Leave a Comment

Unraid BTRFS Issues

One of my BTRFS pools, which was RAID 1 corrupted and wouldn’t mount.

I want to say docker updates overloaded the size of the docker file.

I probably did this all wrong, but I got a lot of the data from it, so I provided some commands that might help others in the future.

Make sure to put Unraid into maintenance mode.

Below are just examples since I didn’t record exactly what I did.

To mount the degraded RAID configuration. Choose the primary partition/drive to mount somewhere.

#mount degraded RAID
mount -o degraded /dev/mapper/[partition] /mnt

# to unmount
umount /mnt

To check the filesystem and hopefully fix the filesystem issue.

#shows you the filesystem
btrfs fi show /dev/sdd

#starts the scrub process
btrfs scrub start /mnt

#checks the scrub process status
btrfs scrub status /mnt

You can also use this to monitor the status instead of running the last line above over and over again.

#this will check the status of the scrub every second

watch -n 1 btrfs scrub status /mnt

I was told not to use this since it might screw up the filesystem, but my filesystem was already screwed up 🙂 This checks and tries to repair the filesystem.

btrfs check --repair /dev/sdd
Leave a Comment

Unraid – Unmountable: Volume not encrypted

So I got this error on my Unraid server for a drive, “Unmountable: Volume not encrypted” for a drive I had used on another server. There was nothing on the drive I wanted so I just wanted to overwrite or format it.

Finally found a link to just overwrite the filesystem.

https://unix.stackexchange.com/questions/315063/mount-wrong-fs-type-bad-option-bad-superblock

mkfs.ext4 /dev/sXXX

Leave a Comment

All of my RAM is not showing up in Unraid

So I bought some RAM recently in one of those bins on clearance because it was opened, etc. I installed it with another two sticks I already had. All four sticks are DDR4, of course, but the old ones were 2x8GB 26666, and the new ones are 2×16 GB 3200. Unraid would only show 16GB usable rather than the 48GB. Unraid did notice them, but they were unable to be used.

After some googling which didn’t get me anywhere, I decided to remove all the sticks and just use the new ones in A2 and B2. Well, now Unraid shows 32GB of RAM usable. So next, I put in the other two sticks in A1 and B1. Boom!!! Now it can use all 48GB. I assume it has to do with a mismatch in either speed or capacity.

Motherboard: Asrock B450M Pro4

Leave a Comment