Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been using emacsclient successfully, however, recently, I needed to move to a different machine and on the new machine it fails with the error:

emacsclient: can't stat /tmp/esrv1140-hostname: Success

So errno is zero, hence the Success message at the end, but something has gone wrong.

Searching the web, I saw to make sure you have run server-start in Emacs, which I have, but perhaps it failed to stay up? How can I check that server-start was successful? What else might be causing the can't stat error?

share|improve this question
up vote 1 down vote accepted

You can confirm the server is running by checking the process list; on Unixy platforms, try ps aux | grep -i emacs, and on Windows, bring up Task Manager via Ctrl-Shift-Esc and check for an Emacs process.

The path cited in the error message suggests an Emacs server's default Unix socket location, but if it's always the same every time, you may have it hardcoded somewhere, possibly in a shell alias around emacsclient or a shell script by that name. If /usr/bin/emacsclient (or your local equivalent, in /usr/local/bin or wherever) works, but bare emacsclient doesn't, this is almost certainly the case; find that script or alias and remove it, and you should cease to see the problem.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .