plamoni / SiriProxy

A (tampering) proxy server for Apple's Siri
GNU General Public License v3.0
2.12k stars 343 forks source link

Help please #471

Closed matthewwatson70 closed 11 years ago

matthewwatson70 commented 11 years ago

rvmsudo siriproxy server /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/lib/siriproxy/plugin_manager.rb:23:in const_get': wrong constant name computer (NameError) from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/lib/siriproxy/plugin_manager.rb:23:inblock in load_plugins' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/lib/siriproxy/plugin_manager.rb:14:in each' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/lib/siriproxy/plugin_manager.rb:14:inload_plugins' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/lib/siriproxy/plugin_manager.rb:8:in initialize' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/lib/siriproxy/command_line.rb:207:innew' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/lib/siriproxy/command_line.rb:207:in init_plugins' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/lib/siriproxy/command_line.rb:88:inrun_server' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/lib/siriproxy/command_line.rb:39:in initialize' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/bin/siriproxy:6:innew' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/bin/siriproxy:6:in <top (required)>' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/siriproxy:19:inload' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/siriproxy:19:in <main>' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:ineval' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in `

'

plamoni commented 11 years ago

Looks like a problem with your config.yml. Can you post your config.yml as a gist?

matthewwatson70 commented 11 years ago
listen: 0.0.0.0
port: 443
log_level: 1
plugins:
    # NOTE: run bundle after changing plugin configurations to update required gems

    - name: 'Example'
      path: './plugins/siriproxy-example' 

    - name: 'computer'
      git: 'git://github.com/IMcD23/siriproxy-computer.git'

         # - name: 'Thermostat'
    #   git: 'git://github.com/plamoni/SiriProxy-Thermostat.git'
    #   host: '192.168.2.71' 

    # - name: 'Twitter'
    #   path: './plugins/siriproxy-twitter' # path works just like specifing in gemfile 
    #   consumer_key: "YOUR_KEY" 
    #   consumer_secret: "YOUR_SECRET"
    #   oauth_token: "YOUR_TOKEN" 
    #   oauth_token_secret: "YOUR_TOKEN_SECRET"

    # Note: Eliza should not be run with other plugins
    # - name: 'Eliza'
    #   path: './plugins/siriproxy-eliza' # path works just like specifing in gemfile 

    # Below are not actual plugins, just further example of config options

    # - SimplePlugin # simple syntax for plugins that are in rubygems and have no config 

    # - name: 'AnotherPlugin'
    #   git: 'git://github.com/netpro2k/SiriProxy-AnotherPlugin.git' # git works just like specifying in Gemfile
Raggyx commented 11 years ago

Hey You have to capitalize the plugin class name "Computer" (case sensitive)

matthewwatson70 commented 11 years ago

Is anything wrong with this config.yml

listen: 0.0.0.0
port: 443
log_level: 1
plugins:
    # NOTE: run bundle after changing plugin configurations to update required gems

    - name: 'Example'
      path: './plugins/siriproxy-example' 

    - name: 'Computer'
      git: 'git://github.com/IMcD23/siriproxy-computer.git'
Raggyx commented 11 years ago

now it looks like everything is correct

matthewwatson70 commented 11 years ago

i get errors when starting

Starting SiriProxy on 0.0.0.0:443..
/Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:526:in `start_tcp_server': no acceptor (port is in use or requires root privileges) (RuntimeError)
    from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:526:in `start_server'
    from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/lib/siriproxy.rb:20:in `block in initialize'
    from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `call'
    from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
    from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
    from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/lib/siriproxy.rb:16:in `initialize'
    from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/lib/siriproxy/command_line.rb:100:in `new'
    from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/lib/siriproxy/command_line.rb:100:in `start_server'
    from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/lib/siriproxy/command_line.rb:89:in `run_server'
    from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/lib/siriproxy/command_line.rb:39:in `initialize'
    from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/bin/siriproxy:6:in `new'
    from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.4.4/bin/siriproxy:6:in `<top (required)>'
    from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/siriproxy:19:in `load'
    from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/siriproxy:19:in `<main>'
    from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in `eval'
    from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in `<main>'
Raggyx commented 11 years ago

this is because you didnt set the ip (listen: 0.0.0.0) you could install the siriproxy from jimmykane https://github.com/jimmykane/The-Three-Little-Pigs-Siri-Proxy which is more recent

plamoni commented 11 years ago

Actually, it's because you're not running as root. Do the following:

Update SiriProxy:

siriproxy update

Then run SiriProxy like so:

rvmsudo siriproxy server -u nobody

You can alternatively add user: nobody to the top of your config.yml and just run rvmsudo siriproxy server

matthewwatson70 commented 11 years ago

i did that and i got this

    [Info - Configuration] Loading plugins -- If any fail to load, run `siriproxy bundle` (not `bundle install`) to resolve.
    [Info - Server] Starting SiriProxy on 0.0.0.0:443...
    /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:526:in `start_tcp_server': no acceptor (port is in use or requires root privileges) (RuntimeError)
        from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:526:in `start_server'
        from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/lib/siriproxy.rb:28:in `block in initialize'
        from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `call'
        from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
        from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
        from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/lib/siriproxy.rb:17:in `initialize'
        from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:106:in `new'
        from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:106:in `start_server'
        from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:90:in `run_server'
        from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:39:in `initialize'
        from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/bin/siriproxy:6:in `new'
        from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/bin/siriproxy:6:in `<top (required)>'
        from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/siriproxy:19:in `load'
        from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/siriproxy:19:in `<main>'
        from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in `eval'
        from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in `<main>'
matthewwatson70 commented 11 years ago

Here is my config.yml

https://gist.github.com/matthewwatson70/197d9130475905b71ffd

plamoni commented 11 years ago

If you're running using rvmsudo and still getting the no acceptor error, it's probably because something (Apache? maybe some other web server?) is using port 443.

If you're running on a Mac (which seems to be the case), make sure "Web Sharing" is off in the "Sharing" section of your System tools.

plamoni commented 11 years ago

You can also try switching to another port if you want to be sure it's a port conflict. Run rvmsudo siriproxy server -p 444 and see if it starts up properly. If so, then you need to disable whatever is using port 443. If that still fails, then there's something else at work, but I don't think it will fail.

matthewwatson70 commented 11 years ago

ok it starts how do i find out whats on port 443

plamoni commented 11 years ago

I think you can do it with sudo lsof -i, but I can't remember exactly how. My guess is that it's apache.

matthewwatson70 commented 11 years ago

ok i did that where do i look for the port

plamoni commented 11 years ago

Look for something that's listening on :https or :443. It's probably called httpd (which is Apache). As I said, if you're on a Mac and you're running Web Sharing, it might be using up port 443. So just disable Web Sharing.

matthewwatson70 commented 11 years ago

i used the sudo lsof -i :443 | grep LISTEN command and i got this.

ruby 1866 nobody 7u IPv4 0x51ac9090f24cba2d 0t0 TCP *:https (LISTEN)

Then i try sudo killall ruby and it says no matching processes were found

plamoni commented 11 years ago

You can sudo kill -9 1866... That will work...

matthewwatson70 commented 11 years ago

Thank you so much !!!

plamoni commented 11 years ago

Did that solve your issue?

matthewwatson70 commented 11 years ago

it worked one time then the second time i tried to start it i got

rvmsudo siriproxy server [Info - Configuration] Loading plugins -- If any fail to load, run siriproxy bundle (not bundle install) to resolve. [Notice - Server] ======================= WARNING: Running as root ============================= [Notice - Server] You should use -l or the config.yml to specify and non-root user to run under [Notice - Server] Running the server as root is dangerous. [Notice - Server] ============================================================================== [Info - Server] Starting SiriProxy on 0.0.0.0:443... /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:526:in start_tcp_server': no acceptor (port is in use or requires root privileges) (RuntimeError) from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:526:instart_server' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/lib/siriproxy.rb:28:in block in initialize' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:incall' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in run_machine' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:inrun' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/lib/siriproxy.rb:17:in initialize' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:106:innew' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:106:in start_server' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:90:inrun_server' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:39:in initialize' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/bin/siriproxy:6:innew' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/bin/siriproxy:6:in <top (required)>' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/siriproxy:19:inload' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/siriproxy:19:in <main>' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:ineval' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in `

'

i got the error again and i tried the lsof command and it said nothing was running on port 443. Is it safe to use ruby 2.0.0-po with siriproxy

plamoni commented 11 years ago

You're running two copies at once. You must kill the first before starting the second.

-Pete

On Mar 11, 2013, at 10:40 PM, matthewwatson70 notifications@github.com wrote:

it worked one time then the second time i tried to start it i got

rvmsudo siriproxy server [Info - Configuration] Loading plugins -- If any fail to load, run siriproxy bundle (not bundle install) to resolve.

[Notice - Server] ======================= WARNING: Running as root

[Notice - Server] You should use -l or the config.yml to specify and non-root user to run under [Notice - Server] Running the server as root is dangerous.

[Notice - Server]

[Info - Server] Starting SiriProxy on 0.0.0.0:443... /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:526:in start_tcp_server': no acceptor (port is in use or requires root privileges) (RuntimeError) from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:526:in start_server' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/lib/siriproxy.rb:28:in block in initialize' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in call' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in run_machine' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in run' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/lib/siriproxy.rb:17:in initialize' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:106:in new' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:106:in start_server' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:90:in run_server' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:39:in initialize' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/bin/siriproxy:6:in new' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/gems/siriproxy-0.5.2/bin/siriproxy:6:in <top (required)>' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/siriproxy:19:inload' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/siriproxy:19:in

' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in eval' from /Users/MatthewWatson/.rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in `' i got the error again and i tried the lsof command and it said nothing was running on port 443. Is it safe to use ruby 2.0.0-po with siriproxy — Reply to this email directly or view it on GitHubhttps://github.com/plamoni/SiriProxy/issues/471#issuecomment-14759484 .
matthewwatson70 commented 11 years ago

can you kill it by just closing the terminal and kill the process when it asks you

matthewwatson70 commented 11 years ago

nevermind i got it i did sudo killall siriproxy and it works. Is it safe to use ruby 2.0.0 with siriproxy

matthewwatson70 commented 11 years ago

can you give me instructions on how to vpn the server so i can use siriproxy on 3G

plamoni commented 11 years ago

1) I wouldn't count on that. Use Ctrl-C 2) That also kind of works 3) I'd rather not, I try not to encourage that sort of thing. If you can figure it out, go for it, but there are security implications you need to understand before opening things up to a wider area.

matthewwatson70 commented 11 years ago

ok thanks