AIFeed

Advent of Sysadmin 2026

Summary

Maybe it is a way to train the mind and rely less on AI Comments

Original text(via Lobsters)

Advent of Sysadmin is for Linux sysadmins, DevOps/SRE engineers, developers, and anyone who wants a hands-on troubleshooting challenge right here in the browser. Each day (at 00:01 UTC) unlocks a new lab - from Easy to Hard - so you can learn something new while having fun. They are free for the duration of the event (there are some limitations on the number of runs per day for free users).

New here? Start with an Easy challenge and check the FAQ.

Scenarios

DateNameLevelTimeType
2026-12-01"Los Algodones": App container cannot reach Redis docker redisEasy15 mFix"Los Algodones": App container cannot reach Redis Scenario: "Los Algodones": App container cannot reach Redis Level: Easy Type: Fix Access: Public Description: Two Docker containers are running: a small web app ( app ) on port :80 and a Redis cache ( redis ). The app is supposed to use Redis, but the page shows it cannot connect. curl -s http://127.0.0.1/ returns: Error: cannot connect to Redis Redis itself is running. The app configures its Redis connection with the REDIS_HOST environment variable (see /home/admin/algodones ). Root (sudo) Access: True Test: curl -s http://127.0.0.1/ returns OK . From inside the app container, Redis is reachable by the hostname redis . The "Check My Solution" button runs the script /home/admin/agent/check.sh , which you can see and execute. Time to Solve: 15 minutes.
2026-12-02"Tromso": The pipeline keeps dying linux-otherHard20 mFix"Tromso": The pipeline keeps dying Scenario: "Tromso": The pipeline keeps dying Level: Hard Type: Fix Access: Public Description: Your CI job on this host is /home/admin/pipeline/run-pipeline . It should print pipeline completed and leave /home/admin/pipeline/out/DONE . Instead it is terminated before it finishes. Something on the box is sending it a fatal signal. There are many maintenance helpers and watchdogs running; most of them look guilty. Find the real culprit, stop it permanently (survive reboot), and make the pipeline succeed. NOTE: Do not replace or patch run-pipeline itself — the checker verifies its checksum. You can run more than one shell session at the same time by clicking again the "Open the Server Terminal in a New Window" button. Root (sudo) Access: True Test: /home/admin/pipeline/run-pipeline prints pipeline completed and creates /home/admin/pipeline/out/DONE . The binary checksum is unchanged. The fix still works after reboot. The "Check My Solution" button runs the script /home/admin/agent/check.sh , which you can see and execute. Time to Solve: 20 minutes.
2026-12-03"Helsinki": Fix the AWS VPC public subnet internet path aws cliMedium20 mFix"Helsinki": Fix the AWS VPC public subnet internet path Scenario: "Helsinki": Fix the AWS VPC public subnet internet path Level: Medium Type: Fix Access: Public Description: The AWS VPC helsinki-app has a public subnet and an internet gateway, but instances in that subnet still have no path to the Internet. The IGW was never attached , and the public route table has no 0.0.0.0/0 route. Attach the existing internet gateway to the VPC and add a default route on route table helsinki-public-rt that targets that IGW. Do not recreate the VPC or subnet. The AWS CLI is already configured against the local endpoint. Start with: aws ec2 describe-internet-gateways NOTE: this scenario uses Floci, a local AWS emulator; there are no real AWS resources. Root (sudo) Access: True Test: IGW tagged for this scenario is attached to VPC helsinki-app , and route table helsinki-public-rt has 0.0.0.0/0 → that IGW. The "Check My Solution" button runs the script /home/admin/agent/check.sh , which you can see and execute. Time to Solve: 20 minutes.
2026-12-04"Basel": The waitlist that never landed - db migration mysql postgresMedium20 mFix"Basel": The waitlist that never landed - db migration Scenario: "Basel": The waitlist that never landed - db migration Level: Medium Type: Fix Access: Public Description: The Basel Events catalog API on port :5000 should list events and serve a waitlist for event 1. Last night's 2.4 deploy added that waitlist; /events still works, but /events/1/waitlist does not. Prod is MariaDB on :3306 . Staging Postgres on :5432 uses the same migration versions. There is a short handover note in /home/admin/HANDOVER.txt . Do not drop the catalog databases. Root (sudo) Access: True Test: curl -s http://127.0.0.1:5000/events/1/waitlist returns JSON containing the fields email and notified . The waitlist table exists with a notified column in both the MariaDB and Postgres catalog databases. The "Check My Solution" button runs the script /home/admin/agent/check.sh , which you can see and execute. Time to Solve: 20 minutes.
2026-12-05"Valletta": SSL Certs expiring within 30 days sslEasy20 mDo"Valletta": SSL Certs expiring within 30 days Scenario: "Valletta": SSL Certs expiring within 30 days Level: Easy Type: Do Access: Public Description: Your TLS inventory lives in /home/admin/certs/ (PEM files and a few non-cert decoys). List every certificate that is already expired or will expire within the next 30 days . Write one name per line to /home/admin/expiring.txt (just the name). A name may be the file basename (with or without .pem ), or the certificate CN. Order does not matter; blank lines and extra spaces are fine. Root (sudo) Access: True Test: /home/admin/expiring.txt names exactly the certs in /home/admin/certs/ that fail a 30-day validity window (expired or expiring soon). Basename or CN accepted; order ignored. The "Check My Solution" button runs the script /home/admin/agent/check.sh , which you can see and execute. Time to Solve: 20 minutes.
2026-12-06"Ljubljana": Broken Bash join bashMedium20 mFix"Ljubljana": Broken Bash join Scenario: "Ljubljana": Broken Bash join Level: Medium Type: Fix Access: Public Description: The nightly customer merge is wrong. /home/admin/bin/merge-report.sh joins CRM keys in /home/admin/data/keys.txt with warehouse rows in /home/admin/data/details.txt into /home/admin/report.txt . After a run, many keys are missing from the report even though they exist in both inputs. Fix the merge so every key from keys.txt appears in report.txt with its matching detail fields from details.txt . You can edit the script and re-run it, or produce a correct report.txt another way. Root (sudo) Access: True Test: /home/admin/report.txt has one line per key in keys.txt , each joined with the correct fields from details.txt (order of lines does not matter). The "Check My Solution" button runs the script /home/admin/agent/check.sh , which you can see and execute. Time to Solve: 20 minutes.
2026-12-07"Bratislava": PostgreSQL won't accept connections postgresEasy20 mFix"Bratislava": PostgreSQL won't accept connections Scenario: "Bratislava": PostgreSQL won't accept connections Level: Easy Type: Fix Access: Public Description: After last night's crash, PostgreSQL (systemd unit bratislava-db ) should be serving database bratislava on localhost, but clients cannot connect. When the database is healthy, this returns ahoj : sudo -u postgres psql -d bratislava -tAc "SELECT message FROM greeting" Make that work again. Root (sudo) Access: True Test: sudo -u postgres psql -d bratislava -tAc "SELECT message FROM greeting" returns ahoj . The "Check My Solution" button runs the script /home/admin/agent/check.sh , which you can see and execute. Time to Solve: 20 minutes.
2026-12-08"Sofia": Status file stuck on maintenance systemdEasy20 mFix"Sofia": Status file stuck on maintenance Scenario: "Sofia": Status file stuck on maintenance Level: Easy Type: Fix Access: Public Description: Ops runs a oneshot unit status-fetch that should copy the live status page at http://127.0.0.1/ into /home/admin/site-status.txt . The site itself looks fine, but the file still does not show the expected ALL SYSTEMS GO line. Fix the fetcher and re-run it so the file matches the page. Root (sudo) Access: True Test: /home/admin/site-status.txt contains ALL SYSTEMS GO . The "Check My Solution" button runs the script /home/admin/agent/check.sh , which you can see and execute. Time to Solve: 20 minutes.
2026-12-09"Split": SQLite locked under concurrent writes sqlite golangMedium20 mFix"Split": SQLite locked under concurrent writes Scenario: "Split": SQLite locked under concurrent writes Level: Medium Type: Fix Access: Public Description: A small Go ledger service stores rows in SQLite at /opt/ledger/ledger.db . Concurrent goroutine writers often fail with database lock errors. Probe: curl -s http://127.0.0.1:5001/stress?n=30 You want fail=0 (all inserts succeed). Source is /opt/ledger/main.go ; after editing, run /opt/ledger/rebuild.sh (or go build + systemctl restart ledger ). NOTE: the SQLite driver for Go used in the ledger code is modernc.org/sqlite> . To connect to a database, the code is db, err := sql.Open("sqlite", dsnURI) , where The dsnURI is a plain file name or a "file:" URI, either optionally followed by '?' and query parameters. This is used in line 23 of /opt/ledger/main.go . Root (sudo) Access: True Test: GET http://127.0.0.1:5001/stress?n=30 returns fail=0 and ok ≥ 25. The "Check My Solution" button runs the script /home/admin/agent/check.sh , which you can see and execute. Time to Solve: 20 minutes.
2026-12-10"Lima": Deduplicate identical files linux-otherEasy20 mDo"Lima": Deduplicate identical files Scenario: "Lima": Deduplicate identical files Level: Easy Type: Do Access: Public Description: Under /home/admin/data there are many byte-identical files left over from messy exports and archives (same content, different paths and names). They currently each have their own inode and waste space. Deduplicate the tree so identical files share storage via hard links , while keeping every existing path and its contents. Unique files must stay as they are. jdupes and fdupes are installed. Root (sudo) Access: True Test: Every file under /home/admin/data is unchanged in path and content, and identical contents share a single inode (hard-linked). The "Check My Solution" button runs the script /home/admin/agent/check.sh , which you can see and execute. Time to Solve: 20 minutes.
2026-12-11"Havana": Java JVM OOMs javaMedium20 mFix"Havana": Java JVM OOMs Scenario: "Havana": Java JVM OOMs Level: Medium Type: Fix Access: Public Description: The cacheapp service should answer http://127.0.0.1:9090/ with CACHE OK , but it dies on startup. Get the service healthy without removing that memory ceiling (the cacheapp systemd unit is left unchanged.) Root (sudo) Access: True Test: cacheapp is active, curl http://127.0.0.1:9090/ returns CACHE OK , and the cacheapp unit is left unchanged. The "Check My Solution" button runs the script /home/admin/agent/check.sh , which you can see and execute. Time to Solve: 20 minutes.
2026-12-12"Caracas": The warehouse volume went missing disk volumesMedium20 mFix"Caracas": The warehouse volume went missing Scenario: "Caracas": The warehouse volume went missing Level: Medium Type: Fix Access: Public Description: After last night's reboot the warehouse app data under /srv/appdata looks empty — inventory files that should be there are gone from the directory listing. Ops moved that tree onto a dedicated disk some time ago; the root filesystem itself still looks fine. Bring the application data back so it is readable again at /srv/appdata . The fix must still work after a reboot (you do not need to reboot to prove it). Root (sudo) Access: True Test: /srv/appdata is mounted from the data volume (not just an empty directory on root), and /srv/appdata/inventory/stock.dat contains the line caracas-stock-ok . Confirm with mount or findmnt /srv/appdata . The "Check My Solution" button runs the script /home/admin/agent/check.sh , which you can see and execute. Time to Solve: 20 minutes.

Scenario: "Los Algodones": App container cannot reach Redis

Access: Public

Description: Two Docker containers are running: a small web app (app) on port :80 and a Redis cache (redis). The app is supposed to use Redis, but the page shows it cannot connect. curl -s http://127.0.0.1/ returns: Error: cannot connect to Redis Redis itself is running. The app configures its Redis connection with the REDIS_HOST environment variable (see /home/admin/algodones).

Root (sudo) Access: True

Test: curl -s http://127.0.0.1/ returns OK. From inside the app container, Redis is reachable by the hostname redis. The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.

Time to Solve: 15 minutes.

Scenario: "Tromso": The pipeline keeps dying

Access: Public

Description: Your CI job on this host is /home/admin/pipeline/run-pipeline. It should print pipeline completed and leave /home/admin/pipeline/out/DONE. Instead it is terminated before it finishes. Something on the box is sending it a fatal signal. There are many maintenance helpers and watchdogs running; most of them look guilty. Find the real culprit, stop it permanently (survive reboot), and make the pipeline succeed. NOTE: Do not replace or patch run-pipeline itself — the checker verifies its checksum. You can run more than one shell session at the same time by clicking again the "Open the Server Terminal in a New Window" button.

Root (sudo) Access: True

Test: /home/admin/pipeline/run-pipeline prints pipeline completed and creates /home/admin/pipeline/out/DONE. The binary checksum is unchanged. The fix still works after reboot. The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.

Time to Solve: 20 minutes.

Scenario: "Helsinki": Fix the AWS VPC public subnet internet path

Level: Medium

Access: Public

Description: The AWS VPC helsinki-app has a public subnet and an internet gateway, but instances in that subnet still have no path to the Internet. The IGW was never attached, and the public route table has no 0.0.0.0/0 route. Attach the existing internet gateway to the VPC and add a default route on route table helsinki-public-rt that targets that IGW. Do not recreate the VPC or subnet. The AWS CLI is already configured against the local endpoint. Start with: aws ec2 describe-internet-gateways NOTE: this scenario uses Floci, a local AWS emulator; there are no real AWS resources.

Root (sudo) Access: True

Test: IGW tagged for this scenario is attached to VPC helsinki-app, and route table helsinki-public-rt has 0.0.0.0/0 → that IGW. The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.

Time to Solve: 20 minutes.

Scenario: "Basel": The waitlist that never landed - db migration

Level: Medium

Access: Public

Description: The Basel Events catalog API on port :5000 should list events and serve a waitlist for event 1. Last night's 2.4 deploy added that waitlist; /events still works, but /events/1/waitlist does not. Prod is MariaDB on :3306. Staging Postgres on :5432 uses the same migration versions. There is a short handover note in /home/admin/HANDOVER.txt. Do not drop the catalog databases.

Root (sudo) Access: True

Test: curl -s http://127.0.0.1:5000/events/1/waitlist returns JSON containing the fields email and notified. The waitlist table exists with a notified column in both the MariaDB and Postgres catalog databases. The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.

Time to Solve: 20 minutes.

Scenario: "Valletta": SSL Certs expiring within 30 days

Access: Public

Description: Your TLS inventory lives in /home/admin/certs/ (PEM files and a few non-cert decoys). List every certificate that is already expired or will expire within the next 30 days. Write one name per line to /home/admin/expiring.txt (just the name). A name may be the file basename (with or without .pem), or the certificate CN. Order does not matter; blank lines and extra spaces are fine.

Root (sudo) Access: True

Test: /home/admin/expiring.txt names exactly the certs in /home/admin/certs/ that fail a 30-day validity window (expired or expiring soon). Basename or CN accepted; order ignored. The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.

Time to Solve: 20 minutes.

Scenario: "Ljubljana": Broken Bash join

Level: Medium

Access: Public

Description: The nightly customer merge is wrong. /home/admin/bin/merge-report.sh joins CRM keys in /home/admin/data/keys.txt with warehouse rows in /home/admin/data/details.txt into /home/admin/report.txt. After a run, many keys are missing from the report even though they exist in both inputs. Fix the merge so every key from keys.txt appears in report.txt with its matching detail fields from details.txt. You can edit the script and re-run it, or produce a correct report.txt another way.

Root (sudo) Access: True

Test: /home/admin/report.txt has one line per key in keys.txt, each joined with the correct fields from details.txt (order of lines does not matter). The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.

Time to Solve: 20 minutes.

Scenario: "Bratislava": PostgreSQL won't accept connections

Access: Public

Description: After last night's crash, PostgreSQL (systemd unit bratislava-db) should be serving database bratislava on localhost, but clients cannot connect. When the database is healthy, this returns ahoj: sudo -u postgres psql -d bratislava -tAc "SELECT message FROM greeting" Make that work again.

Root (sudo) Access: True

Test: sudo -u postgres psql -d bratislava -tAc "SELECT message FROM greeting" returns ahoj. The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.

Time to Solve: 20 minutes.

Scenario: "Sofia": Status file stuck on maintenance

Access: Public

Description: Ops runs a oneshot unit status-fetch that should copy the live status page at http://127.0.0.1/ into /home/admin/site-status.txt. The site itself looks fine, but the file still does not show the expected ALL SYSTEMS GO line. Fix the fetcher and re-run it so the file matches the page.

Root (sudo) Access: True

Test: /home/admin/site-status.txt contains ALL SYSTEMS GO. The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.

Time to Solve: 20 minutes.

Scenario: "Split": SQLite locked under concurrent writes

Level: Medium

Access: Public

Description: A small Go ledger service stores rows in SQLite at /opt/ledger/ledger.db. Concurrent goroutine writers often fail with database lock errors. Probe: curl -s http://127.0.0.1:5001/stress?n=30 You want fail=0 (all inserts succeed). Source is /opt/ledger/main.go; after editing, run /opt/ledger/rebuild.sh (or go build + systemctl restart ledger). NOTE: the SQLite driver for Go used in the ledger code is modernc.org/sqlite> . To connect to a database, the code is db, err := sql.Open("sqlite", dsnURI), where The dsnURI is a plain file name or a "file:" URI, either optionally followed by '?' and query parameters. This is used in line 23 of /opt/ledger/main.go .

Root (sudo) Access: True

Test: GET http://127.0.0.1:5001/stress?n=30 returns fail=0 and ok ≥ 25. The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.

Time to Solve: 20 minutes.

Scenario: "Lima": Deduplicate identical files

Access: Public

Description: Under /home/admin/data there are many byte-identical files left over from messy exports and archives (same content, different paths and names). They currently each have their own inode and waste space. Deduplicate the tree so identical files share storage via hard links, while keeping every existing path and its contents. Unique files must stay as they are. jdupes and fdupes are installed.

Root (sudo) Access: True

Test: Every file under /home/admin/data is unchanged in path and content, and identical contents share a single inode (hard-linked). The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.

Time to Solve: 20 minutes.

Scenario: "Havana": Java JVM OOMs

Level: Medium

Access: Public

Description: The cacheapp service should answer http://127.0.0.1:9090/ with CACHE OK, but it dies on startup. Get the service healthy without removing that memory ceiling (the cacheapp systemd unit is left unchanged.)

Root (sudo) Access: True

Test: cacheapp is active, curl http://127.0.0.1:9090/ returns CACHE OK, and the cacheapp unit is left unchanged. The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.

Time to Solve: 20 minutes.

Scenario: "Caracas": The warehouse volume went missing

Level: Medium

Access: Public

Description: After last night's reboot the warehouse app data under /srv/appdata looks empty — inventory files that should be there are gone from the directory listing. Ops moved that tree onto a dedicated disk some time ago; the root filesystem itself still looks fine. Bring the application data back so it is readable again at /srv/appdata. The fix must still work after a reboot (you do not need to reboot to prove it).

Root (sudo) Access: True

Test: /srv/appdata is mounted from the data volume (not just an empty directory on root), and /srv/appdata/inventory/stock.dat contains the line caracas-stock-ok. Confirm with mount or findmnt /srv/appdata. The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.

Time to Solve: 20 minutes.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by Lobsters
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗