Actually, I am running Tor 0.4.6.9 (recommended) and I get `tor: Add onion failed; error code 513`.
If you read whole thread, @NotATether said error code 513 refer to "syntax error in configuration values". You'll need to check your tor configuration (usually on
/etc/tor/torrc) to see any typo.
What was the solution?
OP never update this thread, so we don't know whether the problem is solved or how he managed to solved the problem.