Need someone to lead product or development at your software company? I lead product and engineering teams and I'm looking for my next opportunity. Check out my resume and get in touch.

ejabberd Import errors

Freshness Warning
This blog post is over 12 years old. It's possible that the information you read below isn't current and the links no longer work.

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/ won’t work. You need ejabberdctl import-dir /full/path/to/myspool/ 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

Principles of Developer Experience: An Introduction (Sep 15)
You can create a great developer experience for everything you build. Introducing the six principles of developer experience.
The KPI that measures Product-Market Fit (Sep 9)
If you ask this question to a different small group of your users every week, you can measure trends over time to determine if you're moving toward product-market fit.
Don't use NPS to measure user happiness for enterprise software (Sep 7)
Measuring the satisfaction and enjoyment of end users is a key to unlocking product-led growth. Net Promoter Score is the wrong tool for this.
Ask One Question To Help You Reach Product-Market Fit (Sep 3)
Learn what adjacent problems you need to solve to become twice as valuable to your customers.
How to scale your product team from one product manager to an entire organization (Aug 25)
As your product management team scales, you'll have issues around redundancy, communication, and consistency. Here's now you might solve those.
Software engineering manager interview questions (Aug 6)
Here are some questions I like to use to get a sense of who an engineering manager is and how they work.
A framework for onboarding new employees (May 15)
There’s no single good way to onboard an employee that works for every role. Here's a framework for creating a process that you can adapt to each situation.
TV hosts as a guide for software managers (May 10)
Software managers can learn a lot from journalists or late night TV hosts and how they interview people.


What I'm Reading


Adam Kalsey

+1 916 600 2497


Public Key

© 1999-2020 Adam Kalsey.