title: General SOCKS server failure when switching identity using stem
body: <p>I have Tor running on a remote server (Ubuntu) on port 9150 with the control port on 9151. I've confirmed both are running via netstat -ant.</p>
  
  <p>Here is my code which is eliciting the <code>SOCKS5Error: 0x01: General SOCKS server failure</code> error.</p>
  
  <pre><code>import socks
  import socket
  socks.set_default_proxy(socks.SOCKS5, server_ip, 9150)
  socket.socket = socks.socksocket
  </code></pre>
  
  <p>I can make requests from any library and successfully get responses back with a tor ip address.</p>
  
  <p>However the following is what causes the error:</p>
  
  <pre><code>from stem import Signal
  from stem.control import Controller
  
  with Controller.from_port(port = 9151) as controller:
    controller.authenticate(password)
    controller.signal(Signal.NEWNYM)
  </code></pre>
  
  <p>If I run the above <strong>without</strong> setting up the proxy using socks (first snippet), I can issue signals with no trouble. </p>