This is the blog of Adam Kalsey. Unusual depth and complexity. Rich, full body with a hint of nutty earthiness.

ejabberd Import errors

If you’re trying to import a Jabberd 1.x-style spool directory into ejabberd and you get an error that looks like...

RPC failed on the node ejabberd@localhost: {'EXIT', {{badmatch,{error,enoent}}, [{jd2ejd,import_dir,1}, {ejabberd_ctl,process,1}, {rpc,'-handle_call/3-fun-0-',5}]}}

... there’s a couple of things you can try.

First, make sure the directory and file are both readable by ejabberd. Heck, make them readable by everyone, just to make sure.

Second, make sure the XML file is valid. If you’ve got a spool full of bad XML, you can’t import it. Try xmllint yourspoolfile.xml and see if you get any errors.

Third, make sure you’re giving the full path to the spool directory and not just the relative path. ejabberdctl import-dir ./myspool/example.com won’t work. You need ejabberdctl import-dir /full/path/to/myspool/example.com instead.

Finally, try import-file instead of import-dir and make sure to use the full path to the file.

I just spent half the morning figuring all that out. Now the solution is on the intarwebs and in the search indexes, so maybe this will help someone else.

Recently Written

The Pumpkin Talks Back
Nov 6: I gave my flaming jack-o'-lantern a voice, a camera, and a personality, and let it insult trick-or-treaters for six hours.
A Skills Wheel for Product Designers
Oct 18: I love Petra Wille's PM Wheel for product managers. I couldn't find an equivalent for designers, so I built one.
Where Does Product Marketing Belong?
Mar 6: The debate about whether PMM reports to product or marketing has a simple answer once you ask the right question.
The Rise of Vertical Software
Feb 15: AI makes execution cheap. Deep industry knowledge becomes the real moat.
Using Chatbots as a Tutor
Feb 11: A prompt that turns your LLM chatbot into a custom tutor.
How to Interview Product Managers
Nov 9: Most people never learned to interview, so when thrust into hiring a product manager they ask bad questions. Here's how to ask better ones, with lots of examples of real questions.
AI as Your Strategic Thinking Partner
Oct 12: AI becomes a lens on your own logic. It doesn’t replace your judgment—it sharpens it. By asking questions you wouldn’t think to ask yourself, it turns private reasoning into something visible and testable.
Your OKR Cascade is Breaking Your Strategy
Aug 1: Most companies cascade OKRs down their org chart thinking it creates alignment. Instead, it fragments strategy and marginalizes supporting teams. Here's what works better than the waterfall approach.

Older...

What I'm Reading