Need someone to lead product management at your software company? I create software for people that create software 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 16 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/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

Too Big To Fail (Apr 9)
When a company piles resources on a new product idea, it doesn't have room to fail. That keeps it from succeeding.
Go small (Apr 4)
The strengths of a large organization are the opposite of what makes innovation work. Starting something new requires that you start with a small team.
Start with a Belief (Apr 1)
You can't use data to build products unless you start with a hypothesis.
Mastery doesn’t come from perfect planning (Dec 21)
In a ceramics class, one group focused on a single perfect dish, while another made many with no quality focus. The result? A lesson in the value of practice over perfection.
The Dark Side of Input Metrics (Nov 27)
Using input metrics in the wrong way can cause unexpected behaviors, stifled creativity, and micromanagement.
Reframe How You Think About Users of your Internal Platform (Nov 13)
Changing from "Customers" to "Partners" will give you a better perspective on internal product development.
Measuring Feature success (Oct 17)
You're building features to solve problems. If you don't know what success looks like, how did you decide on that feature at all?
How I use OKRs (Oct 13)
A description of how I use OKRs to guide a team, written so I can send to future teams.

Older...

What I'm Reading

Contact

Adam Kalsey

+1 916 600 2497

Resume

Public Key

© 1999-2024 Adam Kalsey.