Latest posts

Browse topics

How I Upgraded XTRF on Ubuntu with PostgreSQL 14 (and Fixed Every Broken Dependency)

Upgrading an XTRF instance—especially one that has aged alongside older OS and database stacks—is never a walk in the park. In this article, I’ll walk you through the real-world path I took, upgrading from Ubuntu 18.04 all the way to 22.04, aligning PostgreSQL to a supported version, and overcoming the nuanced issues involved in deploying XTRF on Jboss. Most importantly, I’ll highlight how AI—specifically ChatGPT—helped me tackle the hard problems, including log file analysis and patching .war deployments.

XTRF is a popular Translation management system we use at our Translation company in Tbilisi

Our system was running on Ubuntu 18.04 LTS with PostgreSQL 11, which shipped by default with that version. This setup had served us well in the past, but it was becoming increasingly clear that support was fading and incompatibilities with newer XTRF versions were stacking up. I had already encountered an unsuccessful upgrade attempt in the past, so this time I decided to take a much more structured and cautious approach.

Now, if you already have system all up and running, you could simply run:

sudo apt-get install xtrf10-full

Incremental  Ubuntu Upgrades: 18.04 ➝ 20.04 ➝ 22.04

Rather than jumping directly to Ubuntu 22.04, I chose to perform the upgrade in stages:

  • First from Ubuntu 18.04 to 20.04
  • Then from Ubuntu 20.04 to 22.04

This stepwise upgrade reduced the risk of system-level incompatibilities and ensured all transitional versions of packages (like systemd, OpenJDK, and networking services) were properly adjusted.

The upgrade path:

sudo do-release-upgrade 

After each upgrade, verify your PostgreSQL version:

psql --version

Ubuntu 22.04 ships with PostgreSQL 14

The PostgreSQL Puzzle

XTRF requires a newer version of PostgreSQL than version 11. I anticipated this and planned to upgrade to PostgreSQL 14, which ships natively with Ubuntu 22.04. Here, I faced issues with port mismatches (5433 vs. 5436) and authentication errors related to SCRAM secrets. But by carefully reviewing pg_hba.conf and adjusting user credentials, I was able to resolve connection problems.

Key steps included:

  • Ensuring PostgreSQL was listening on the correct ports (127.0.0.1:5436)
  • Creating proper users with SCRAM secrets
  • Restarting services to apply changes
  • Updating database URL references in XTRF’s deployment descriptors

Ensure correct port (5436) is used if migrating side-by-side:

Update the PostgreSQL config:

bash

CopyEdit

sudo nano /etc/postgresql/14/main/postgresql.conf # Change: # port = 5436 

Update authentication method:

Ensure your pg_hba.conf matches your XTRF expectations:

sudo nano /etc/postgresql/14/main/pg_hba.conf

Reload PostgreSQL:

sudo systemctl restart postgresql@14-main

5. Create the user and database (if needed):

sudo -u postgres psql # Inside psql shell: CREATE USER xtrf WITH PASSWORD 'yourpassword'; CREATE DATABASE xtrf OWNER xtrf; \q

📦 Where to Find XTRF Configuration Files

Knowing the XTRF configuration structure saved hours of guessing. Key files include:

1. Jboss/XTRF Deployment Directory:

/usr/local/jboss-xtrf/standalone/deployments/xtrf.ear/

This contains all XTRF modules as .war sub-units. You can modify or patch these individually.

2. Data source configuration (PostgreSQL JDBC):

/usr/local/jboss-xtrf/standalone/configuration/standalone.xml

Look for <datasource> definitions referencing the JDBC URL:

<connection-url>jdbc:postgresql://127.0.0.1:5436/xtrf</connection-url>

3. JVM Options / Startup Config:

/usr/local/jboss-xtrf/bin/standalone.conf

Use this to set memory limits, GC options, or debug flags.

How ChatGPT Saved the Day

The real MVP during this upgrade was ChatGPT, which helped me:

  • Analyze Jboss logs showing BeanCreationException, UnsatisfiedDependencyException, and DataSourceCreationException
  • Interpret PostgreSQL FATAL: SCRAM authentication failures
  • Identify missing .war modules inside xtrf.ear
  • Suggest edits to pg_hba.conf and JDBC config
  • Guide through safe systemctl restarts and daemon troubleshooting

ChatGPT even pinpointed which .war files were failing due to unmet dependencies and why the Spring context wasn’t initializing.

Lessons & Best Practices

  • Upgrade incrementally: Don't skip Ubuntu versions.
  • Use fresh PostgreSQL: Version 11 is too old for modern XTRF deployments.
  • Backup WARs & DB: Always snapshot before touching app or schema.
  • Read logs: And use ChatGPT to make sense of them!
  • Patch early: Customized .war files will likely need manual attention.

Conclusion

This upgrade—from Ubuntu 18.04 and PostgreSQL 11 to a modern stack with Ubuntu 22.04 and PostgreSQL 14—wasn’t easy. But it was absolutely doable with a structured approach, solid logging, and the right tooling.

Thanks to ChatGPT, I turned cryptic logs and failed services into solvable tasks—and brought XTRF back online stronger than before.

David Baazov Museum of History of the Jews of Georgia and Georgian-Jewish Relations

Tbilisi is a city full of hidden corners, rich history, and quiet treasures, one of which I recently discovered: the David Baazov Museum of History of the Jews of Georgia and Georgian-Jewish Relations.

Over the years, I've gradually learned that Georgia has a deeply rooted Jewish presence. There's even a Jewish Quarter in Tbilisi, which I came across during my many walks through the city's charming old streets. Historically, Jewish communities have lived in Georgia for centuries — a fact that, at first, surprised me. My curiosity about this history grew even stronger after meeting a Georgian Jew during a visit to Israel, a moment that further highlighted the global and interconnected nature of this community.

Although Tbilisi has several synagogues, I must admit that I haven’t visited any of them yet. They are on my list, of course. Wandering around Tbilisi one afternoon, I happened to notice a modest-looking building tucked into the urban landscape — the Jewish Museum. On a whim, I decided to pay a visit.

The David Baazov Museum is not large, but it is rich in spirit. It offers a compact yet powerful exposition showcasing the best of the best of Georgian-Jewish history and culture. You can feel the depth and the pride in every display, from ancient artifacts and documents to personal stories and cultural items that span centuries.

Interestingly, the museum does not seem particularly popular with tourists or even locals. During my visit, it was quiet, with only us wandering the small halls. A security guard stationed at the entrance added a slight air of formality and preservation — a reminder that the treasures within, though perhaps overlooked by the broader public, are valuable pieces of Georgia’s multicultural identity.

In the end, visiting the David Baazov Museum turned out to be one of those small but significant experiences — a reminder of the diversity and resilience of communities that have made Tbilisi and Georgia their home over the centuries. I walked away with a deeper appreciation of the Georgian-Jewish bond and a promise to myself to continue exploring this fascinating chapter of the country’s history.

Week 4 / NVDA Covered Call Strategy: Earning $83 This Week To Pay of Margin Debt

As of May 2, 2025, our covered call stock portfolio was valued at $6,722, reflecting another strong 4.85% week-over-week gain. However, we still remain down -11.61% year-to-date. 

Our covered call portfolio at the moment is centered around NVDA stock exclusively. 

As of today our covered call position was in the money and, I decided to roll forward this position, 

Here is the trade setup:

  • Bought back the May 2 $107 call for $7.75
  • Sold the May 9 $107 call for $8.59
  • Premium collected: $0.83 per share
  • Break-even: $104.29

I initially wanted to roll this position up and away, but since it was already deep in the money, doing so would have required either choosing a different expiry or paying down debt. I preferred not to do the latter, as we’re using margin to finance the NVDA trade. One of our main goals is to reduce margin exposure as quickly as possible. That’s why I decided to stick with the same strike and simply collect premium instead.

Week after week we are improving our cash balance from collecting solid premium. It also incrementally moved me toward my target of owning shares outright, funded by option income.

Currently, most of these shares are financed using margin, with a total margin debit of -$6,322. The objective is straightforward—generate enough options income over the next 12 months to fully own the NVDA position debt-free.

Assuming an average weekly premium of $83, it would take approximately 76 weeks to eliminate the margin debt (excluding margin interest), We might be debt free around October 16, 2026.  Encouragingly, our debt-to-cash ratio continues to improve week over week.

Subscribe to the Covered Calls newsletter to stay updated on each step of the journey!

Postcards from Marseille

It’s been nearly two years since our last trip to Marseille, a sun-drenched jewel on France’s southern coast that left an indelible mark on our memories. That summer of 2023, we set out to explore the city’s vibrant beaches and winding old town, arriving and departing through the bustling hub of Marseille St. Charles train station. 

As I sit down to write this, the sights, sounds, and scents of that journey come flooding back—postcards from a city that effortlessly blends grit, charm, and Mediterranean allure.

Our adventure began at Marseille St. Charles, a grand station perched atop a hill, its wide steps offering a sweeping view of the city sprawling toward the sea. The station itself was a whirlwind of activity—travelers hauling suitcases, the hum of announcements in French, and the faint aroma of espresso from the nearby cafés. Stepping off the train, we felt the warm summer air wrap around us, a promise of the days ahead. From there, we descended into the heart of Marseille, eager to uncover its treasures.

The beaches were our first stop. Marseille’s coastline is a patchwork of rocky coves and sandy stretches, each with its own personality. We spent lazy afternoons at Plage des Catalans, a local favorite just a short walk from the city center. The water was a brilliant turquoise, cool against the heat of the Provençal sun, and we watched as families picnicked and kids splashed in the shallows. The sea was the star of the show, its waves whispering stories of the Mediterranean’s ancient past.

But Marseille is more than its beaches—it’s a city with soul, and nowhere did we feel that more than in the Old Town, Le Panier. Wandering its narrow, colorful streets felt like stepping into a living postcard. Laundry hung from balconies, the scent of garlic and herbs drifted from open windows, and weathered walls bore the patina of centuries. We ducked into tiny bistros for bouillabaisse, the city’s famed fish stew, served with crusty bread and a dollop of rouille. Each bite was a taste of Marseille’s maritime heart. The neighborhood’s history whispered through its squares—once a rough-and-tumble quarter for immigrants, now a maze of art galleries, boutiques, and murals splashed across peeling plaster.

One afternoon, we climbed up to Notre-Dame de la Garde, the basilica that crowns Marseille’s highest hill. The trek was steep, but the reward was a panorama that stretched from the port’s cranes to the Frioul Islands shimmering in the distance. The golden statue of the Virgin Mary atop the church glinted in the sunlight, a beacon for sailors and a symbol of the city’s resilience. Down below, the Vieux Port buzzed with life—fishermen unloading their catch, vendors hawking olives and lavender soap, and the clink of pastis glasses at waterside cafés.

As our trip drew to a close, we found ourselves back at Marseille St. Charles, suitcases a little heavier with souvenirs—handmade soaps, a bottle of rosé, and a stack of postcards we’d picked up along the way. The station’s grand clock ticked on, indifferent to our reluctance to leave. Boarding the train, we stole one last glance at the city through the window, its rooftops glowing in the late summer light.

That was Marseille in the summer of 2023—a place of raw beauty, where the sea meets the streets, and every corner tells a story. Looking back, it feels like a dream we’re itching to revisit. Maybe it’s time to book another ticket.

Fish Market near Gori

This Fish Market is located about 2 kilometers outside Gori, right off the Tbilisi highway, that we hit up at the end of March 2025. Me and a few friends drove over from Kabitskhevi because someone swore the smoked fish there was worth it. Spoiler: they weren’t wrong.

The place isn’t hard to spot—just a little setup with a fish farm, a small shop, and a restaurant tucked in there too. We didn’t wander in by accident; we came straight for it. The shop was packed with good stuff: smoked fish that smelled amazing, jars of salmon caviar, some local nuts, and—get this—frozen octopus. I don’t even know where they got that, but we bought it anyway.

The smoked fish was the main draw. Tasted fresh, smoky, perfect. The caviar was a bonus—bright orange, salty little pops that I’m still thinking about. We grabbed some almonds and peanuts too, because why not? The octopus was a wild card; it’s still in my freezer waiting for me to figure out what to do with it.

There’s a restaurant there too,  but we didn’t eat there. Instead, we took our haul back to Gori and went to Erisoni Restaurant. That place never lets me down.

Honestly, that little market’s a gem. It’s not fancy or anything, just solid stuff straight from the farm. We drove from Kavtiskhevi for the smoked fish, and I’d do it again. Next time, maybe I’ll try the restaurant too.