Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

Gencerts not working correctly on new release? #479

Open
abartley1 opened this issue Mar 14, 2013 · 43 comments
Open

Gencerts not working correctly on new release? #479

abartley1 opened this issue Mar 14, 2013 · 43 comments

Comments

@abartley1
Copy link

I may be doing this incorrectly, but when I start siriproxy I get an error about 'block in start_tls". It looks like siriproxy is looking for the certs in /root/, but I thought siriproxy should be installed in the non-root-user home directory.

Is this working properly? If so, is there a work around for it? Thanks in advance. Output below:

rvmsudo siriproxy server -d 192.168.2.26 -u pi -L 192.168.2.26
WARN: Unresolved specs during Gem::Specification.reset:
rake (>= 0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
[Notice - Configuration] ==================== Important Configuration Notice ==========================
[Notice - Configuration] '/root/.siriproxy/config.yml' not found. Using '/home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/config.example.yml'
[Notice - Configuration]
[Notice - Configuration] Remove this message by copying '/home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/config.example.yml' into '~/.siriproxy/'
[Notice - Configuration] ==============================================================================
[Info - Configuration] Loading plugins -- If any fail to load, run siriproxy bundle (not bundle install) to resolve.
[Info - Server] Starting SiriProxy on 192.168.2.26:443...
[Info - Server] DNS server is not running yet, waiting 1 second...
[Info - Server] DNS Server started, tainting 'guzzoni.apple.com' with 192.168.2.26
[Info - Server] SiriProxy up and running.

/home/pi/.rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:411:in block in start_tls': Could not find /root/.siriproxy/server.passless.key for start_tls (EventMachine::FileNotFoundException)
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:409:ineach'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:409:in start_tls'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/connection/iphone.rb:15:inpost_init'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:58:in block in new'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:49:ininstance_eval'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:49:in new'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/eventmachine.rb:1467:inevent_callback'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in run_machine'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:inrun'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy.rb:17:in initialize'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:106:innew'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:106:in start_server'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:90:inrun_server'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:39:in initialize'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/bin/siriproxy:6:innew'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/bin/siriproxy:6:in <top (required)>'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/bin/siriproxy:23:inload'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/bin/siriproxy:23:in

'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:ineval'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `'

@elvisimprsntr
Copy link
Collaborator

Did you generate the certificates?

@abartley1
Copy link
Author

Hi Elvis,

Thanks for the response. Yes, I ran "siriproxy gencerts" in my pi home directory and then installed it on my phone (along with changing the phone's DNS to be my pi's IP. I noticed that there was an error: "Could not find /root/.siriproxy/server.passless.key for start_tls (EventMachine::FileNotFoundException)"

I never manually created /root/.siriproxy/, and it doesn't currently exist. I created /home/pi/.siriproxy/; in this directory you can find the certs that siriproxy is looking for (this is where I grabbed ca.pem and sent it to my phone).

From my perspective, it looks like siriproxy is looking for a directory and some files that either A) weren't automatically created, or B) there might need to be a new couple lines in the install instructions for this version.

Any other thoughts?

@elvisimprsntr
Copy link
Collaborator

I grabbed this from the old SiriProxy instructions. Give it a try and we can ask Pete to add it to the new instructions. From the error messages, you may have to point the symbolic link the other way around, i.e. while in /root ln -s /home/pi/.siriproxy .siriproxy You also might have to sudo the command to write to the root directory depending on which account you are logged in as. You can test to see if it works by cd /root/.siriproxy and ls and see if it lists the files.

From old instructions:

Note: on some machines, rvmsudo changes "~" to "/root/". This means that you may need to symlink your ".siriproxy" directory to "/root/" in order to get the application to work:

sudo ln -s ~/.siriproxy /root/.siriproxy

@elvisimprsntr
Copy link
Collaborator

I confirmed this problem. I don't get the same problem when I run SP as root.

root@raspberrypi:~# siriproxy server -d 192.168.68.97 -u nobody WARN: Unresolved specs during Gem::Specification.reset: rake (>= 0) WARN: Clearing out unresolved specs. Please report a bug if this causes problems. [Info - Configuration] Loading plugins -- If any fail to load, runsiriproxy bundle(notbundle install) to resolve. {"redeye"=>"living room", "room"=>"living room", "device"=>"tv", "feed"=>"antenna"} Error reading picturejokes.yml file. [Error] Failed to load plugin: PictureJokes [Info - Server] Starting SiriProxy on 0.0.0.0:443... [Info - Server] DNS server is not running yet, waiting 1 second... [Info - Server] DNS Server started, tainting 'guzzoni.apple.com' with 192.168.68.97 [Info - Server] SiriProxy up and running. /usr/local/rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:411:inblock in start_tls': Could not find /root/.siriproxy/server.passless.key for start_tls (EventMachine::FileNotFoundException)
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:409:in each' from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:409:instart_tls'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/connection/iphone.rb:15:in post_init' from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:58:inblock in new'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:49:in instance_eval' from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:49:innew'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/eventmachine.rb:1467:in event_callback' from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:inrun_machine'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in run' from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy.rb:17:ininitialize'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:106:in new' from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:106:instart_server'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:90:in run_server' from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:39:ininitialize'
from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/bin/siriproxy:6:in new' from /usr/local/rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/bin/siriproxy:6:in<top (required)>'
from /usr/local/rvm/gems/ruby-2.0.0-p0/bin/siriproxy:23:in load' from /usr/local/rvm/gems/ruby-2.0.0-p0/bin/siriproxy:23:in

'
from /usr/local/rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in eval' from /usr/local/rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in'`

@plamoni
Copy link
Owner

plamoni commented Mar 15, 2013

I think as long as you do rvmsudo it should preserve the correct location.
But in reality I think it would be best to offer an override option for the
location of config.yml and the certs. I have been considering using a
SQLite DB for storing config options. Could maybe store the certs in there,
too.

-Pete

On Mar 14, 2013, at 6:52 PM, Elvis notifications@github.com wrote:

I confirmed this problem

root@raspberrypi:~# siriproxy server -d 192.168.68.97 -u nobody
WARN: Unresolved specs during Gem::Specification.reset:
rake (>= 0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
[Info - Configuration] Loading plugins -- If any fail to load, runsiriproxy
bundle(notbundle install) to resolve.
{"redeye"=>"living room", "room"=>"living room", "device"=>"tv",
"feed"=>"antenna"}
Error reading picturejokes.yml file.
[Error] Failed to load plugin: PictureJokes
[Info - Server] Starting SiriProxy on 0.0.0.0:443...
[Info - Server] DNS server is not running yet, waiting 1 second...
[Info - Server] DNS Server started, tainting 'guzzoni.apple.com' with
192.168.68.97
[Info - Server] SiriProxy up and running.
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:411:inblock
in start_tls': Could not find /root/.siriproxy/server.passless.key for
start_tls (EventMachine::FileNotFoundException)
from
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:409:in
each'
from
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:409:in
start_tls'
from
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/connection/iphone.rb:15:in
post_init'
from
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:58:inblock
in new'
from
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:49:in
instance_eval'
from
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:49:in
new'
from
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/eventmachine.rb:1467:in
event_callback'
from
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in
run_machine'
from
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in
run'
from
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy.rb:17:in
initialize'
from
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:106:in
new'
from
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:106:in
start_server'
from
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:90:in
run_server'
from
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:39:in
initialize'
from
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/bin/siriproxy:6:in
new'
from
/usr/local/rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/bin/siriproxy:6:in'
from /usr/local/rvm/gems/ruby-2.0.0-p0/bin/siriproxy:23:in load'
from /usr/local/rvm/gems/ruby-2.0.0-p0/bin/siriproxy:23:in'
from /usr/local/rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in eval'
from /usr/local/rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in'`


Reply to this email directly or view it on
GitHubhttps://github.com//issues/479#issuecomment-14939954
.

@abartley1
Copy link
Author

So I tried the sym link, but that didn't seem to work. Even when using absolute paths it seemed to get mad. On the bright side, it seems to be a different error now :)

root@raspberrypi:# pwd
/root
root@raspberrypi:
# /home/pi/.rvm/bin/rvmsudo /home/pi/.rvm/gems/ruby-2.0.0-p0/bin/siriproxy server -d 192.168.2.26 -u nobody -l 192.128.2.26
Warning: secure_path found in /etc/sudoers, falling back to call via /usr/bin/env, this breaks rules from /etc/sudoers. export rvmsudo_secure_path=1 to avoid the warning./usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:296:in to_specs': Could not find 'siriproxy' (>= 0) among 12 total gem(s) (Gem::LoadError) from /usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:307:into_spec'
from /usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in gem' from /home/pi/.rvm/gems/ruby-2.0.0-p0/bin/siriproxy:22:in

'
from /usr/local/rvm/gems/ruby-2.0.0-p0@global/bin/ruby_noexec_wrapper:14:in eval' from /usr/local/rvm/gems/ruby-2.0.0-p0@global/bin/ruby_noexec_wrapper:14:in'
root@raspberrypi:~#

@elvisimprsntr
Copy link
Collaborator

That's a different problem.

Warning: secure_path found in /etc/sudoers, falling back to call via /usr/bin/env, this breaks rules from /etc/sudoers. export rvmsudo_secure_path=1 to avoid the warning./usr/local/rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:296:in

Since you are logged in as root you don't need include rvmsudo, but if you insist type the following command.

export rvmsudo_secure_path=1

@abartley1
Copy link
Author

Good call. Getting back to non-root, it's still giving the tls error:

pi@raspberrypi:$ rvmsudo siriproxy server -d 192.168.2.26 -u pi -L 192.168.2.26
Warning: can not check /etc/sudoers for secure_path, falling back to call via /usr/bin/env, this breaks rules from /etc/sudoers. export rvmsudo_secure_path=1 to avoid the warning.WARN: Unresolved specs during Gem::Specification.reset:
rake (>= 0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
[Notice - Configuration] ==================== Important Configuration Notice ==========================
[Notice - Configuration] '/root/.siriproxy/config.yml' not found. Using '/home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/config.example.yml'
[Notice - Configuration]
[Notice - Configuration] Remove this message by copying '/home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/config.example.yml' into '
/.siriproxy/'
[Notice - Configuration] ==============================================================================
[Info - Configuration] Loading plugins -- If any fail to load, run siriproxy bundle (not bundle install) to resolve.
[Info - Server] DNS Server started, tainting 'guzzoni.apple.com' with 192.168.2.26
[Info - Server] Starting SiriProxy on 192.168.2.26:443...
[Info - Server] SiriProxy up and running.
/home/pi/.rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:411:in block in start_tls': Could not find /root/.siriproxy/server.passless.key for start_tls (EventMachine::FileNotFoundException) from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:409:ineach'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:409:in start_tls' from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/connection/iphone.rb:15:inpost_init'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:58:in block in new' from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:49:ininstance_eval'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/em/connection.rb:49:in new' from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/eventmachine.rb:1467:inevent_callback'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in run_machine' from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:inrun'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy.rb:17:in initialize' from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:106:innew'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:106:in start_server' from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:90:inrun_server'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/lib/siriproxy/command_line.rb:39:in initialize' from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/bin/siriproxy:6:innew'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/gems/siriproxy-0.5.2/bin/siriproxy:6:in <top (required)>' from /home/pi/.rvm/gems/ruby-2.0.0-p0/bin/siriproxy:23:inload'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/bin/siriproxy:23:in <main>' from /home/pi/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:ineval'
from /home/pi/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `

'
pi@raspberrypi:~$

@elvisimprsntr
Copy link
Collaborator

Are you using my SD card image or did you install it yourself?

@abartley1
Copy link
Author

I installed this myself

@plamoni
Copy link
Owner

plamoni commented Mar 19, 2013

It seems on some operating systems, using rvmsudo causes ~ to become /root/. I can toss together a new command line option to allow you to override. Give me a few mins.

@plamoni
Copy link
Owner

plamoni commented Mar 19, 2013

This turned out to be really tough because of how the configuration is currently managed... Hopefully will get a fix in in a day or two.

@abartley1
Copy link
Author

Cool - thanks Pete!

@abomb99
Copy link

abomb99 commented Mar 24, 2013

Having the same problem and am beating my head against the wall trying to figure it out. Looking forward to any help you might give.

Running from root, transparent dns redirect via dd-wrt, created the symlinks, generated and loaded the certs (over and over). Cant wait to start playing with this!

@regcs
Copy link

regcs commented Mar 29, 2013

Hi,

I'm having the same problem too, when running siriproxy with the -u flag. Any progress on this? :)

@cnase
Copy link

cnase commented Apr 12, 2013

same problem here!

@iJ0bs
Copy link

iJ0bs commented May 4, 2013

any solutions for the problem on RasPi ?? i have the same issue :(

"Could not find /root/.siriproxy/server.passless.key"

@elvisimprsntr
Copy link
Collaborator

Yes. Drop the -u option

@iJ0bs
Copy link

iJ0bs commented May 5, 2013

rvmsudo siriproxy server -d XXX.XXX.XXX.XXX -u pi
doesn´t work :(

what does the -L option mean ??

@elvisimprsntr
Copy link
Collaborator

Are you using my Siriproxy SD card image? If so log in a root, drop the rvmsudo and -u option

@iJ0bs
Copy link

iJ0bs commented May 5, 2013

No, i installed it a day ago myself. the problem is as plamoni sayed here:

It seems on some operating systems, using rvmsudo causes ~ to become /root/. I can toss together a new command line option to allow you to override. Give me a few mins.

i could fix it by changing the ~ with /home/pi/ but that´s not the best way ;)

@elvisimprsntr
Copy link
Collaborator

I agree there needs to be a more robust way. Not sure what the correct answer is but look at #519 for temporary solutions. I use the file expand dir home method in some of my plugins but not sure if it would solve all cases for SiriProxy.

@elvisimprsntr
Copy link
Collaborator

@elvisimprsntr
Copy link
Collaborator

What ever solution that is suggested it needs to meet the following:

  1. Ruby and SiriProxy installed as user or root
  2. Launched as user or root
  3. Launched with and without the -u option

@lanky8804
Copy link

Just installed elvisimprsntr SD image and running SiriProxy on RasPi, getting the same error is there a solution to this yet?

SiriProxy looks like it loads correctly, then it freezes for several minutes before all the "from /usr" text appears.

root@raspberrypi:# siriproxy server -d 192.168.1.200
WARN: Unresolved specs during Gem::Specification.reset:
rake (>= 0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
[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...
[Info - Server] DNS server is not running yet, waiting 1 second...
[Info - Server] DNS Server started, tainting 'guzzoni.apple.com' with 192.168.1.200
[Info - Server] SiriProxy up and running.
[Info - Plugin Manager] Plugins loaded: Example
/usr/local/rvm/gems/ruby-2.0.0-p195/gems/eventmachine-1.0.3/lib/eventmachine.rb:664:in connect_server': no implicit conversion of nil into String (TypeError) from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/eventmachine-1.0.3/lib/eventmachine.rb:664:inbind_connect'
from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/eventmachine-1.0.3/lib/eventmachine.rb:640:in connect' from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/siriproxy-0.5.4/lib/siriproxy/connection/iphone.rb:38:inssl_handshake_completed'
from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in run_machine' from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:inrun'
from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/siriproxy-0.5.4/lib/siriproxy.rb:17:in initialize' from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/siriproxy-0.5.4/lib/siriproxy/command_line.rb:106:innew'
from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/siriproxy-0.5.4/lib/siriproxy/command_line.rb:106:in start_server' from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/siriproxy-0.5.4/lib/siriproxy/command_line.rb:90:inrun_server'
from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/siriproxy-0.5.4/lib/siriproxy/command_line.rb:39:in initialize' from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/siriproxy-0.5.4/bin/siriproxy:6:innew'
from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/siriproxy-0.5.4/bin/siriproxy:6:in <top (required)>' from /usr/local/rvm/gems/ruby-2.0.0-p195/bin/siriproxy:23:inload'
from /usr/local/rvm/gems/ruby-2.0.0-p195/bin/siriproxy:23:in <main>' from /usr/local/rvm/gems/ruby-2.0.0-p195/bin/ruby_noexec_wrapper:14:ineval'
from /usr/local/rvm/gems/ruby-2.0.0-p195/bin/ruby_noexec_wrapper:14:in `

'
root@raspberrypi:#

@elvisimprsntr
Copy link
Collaborator

I tested the my SD card image and did not have any problems running as root from the /root directory. Did you run any other commands or change any files?

@lanky8804
Copy link

What do you mean when you say from the /root directory??

I ssh using root into my Pi when i cd to root directory and ls it it is empty is this normal / correct?

root@raspberrypi:/# ls
bin boot boot.bak dev etc home lib lost+found media mnt opt proc root run sbin selinux srv sys tmp usr var
root@raspberrypi:/# cd root
root@raspberrypi:# ls
root@raspberrypi:
#

Only things that i have changed are that I SSH into my RasPi using a static eth0. I change the DNS on my iPhone to match my Pi IP. Also added some plugins to siriproxy config.yml

@elvisimprsntr
Copy link
Collaborator

  1. Launch SiriProxy from the default directory for the root account. Do not CD to any other directory.
  2. Did test SiriProxy BEFORE adding plugins?

@lanky8804
Copy link

I launch siriproxy from default directory after i log in as root using the following command

siriproxy server –d 192.168.1.200

The error code i posted first was before i had added any plugins to the config.yml

@elvisimprsntr
Copy link
Collaborator

I assume you installed the certificate on your iOS device. Try generating new certs

@elvisimprsntr
Copy link
Collaborator

And install the new cert on the iOS device.

@elvisimprsntr
Copy link
Collaborator

And delete the old one

@lanky8804
Copy link

Generated new Cert. Removed all old ones from my iOS and added new one. Then changed DNS in wifi settings to match RasPi IP.

SiriProxy starts ok but siri on my phone just spins round and round and does nothing at all, no messages appearing on SiriProxy.

When i press ctrl+c to exit SiriProxy the 'from /usr ...' error messages then appear.

@elvisimprsntr
Copy link
Collaborator

Error message after you use ctrl-c to stop SiriProxy are expected because you interrupted the process.

Try turning off cellular data, toggle airplane mode off for 5 seconds, confirm the DNS entry is still set to the RPi. Then launch SiriProxy and activate Siri on your iOS device. It might take one or two tries to get Siri to connect to SiriProxy the first time.

@elvisimprsntr
Copy link
Collaborator

Also what iOS and model iPhone are you using and is it jailbroken?

@lanky8804
Copy link

Just tried what you recommended still not response from SiriProxy. I tried numerous times with Siri.

I am running iPhone 5 - iOS 6.1.2 - Not Jailbroken

@elvisimprsntr
Copy link
Collaborator

Try using Siri without SiriProxy on your local WiFi to confirm that Apple is not blocking your ISP IP/UUID

@Rtaxerxes
Copy link

I managed to solve by linking my ~/.siriproxy to /root/.siriproxy, then don't use -u on command line or user:XXXX in config.yml.

That way I can run with rvmsudo.

@elvisimprsntr
Copy link
Collaborator

I wonder of it might be better to use the $HOME environment variable instead of the ~ symbol in SiriProxy code to resolve this problem.

@lanky8804
Copy link

Ended up installing a fresh image but i then install dnsmasq and it all works fine now?!?

Thank you for your support :)

@abartley1
Copy link
Author

Thanks for all the help everyone! Should I leave this as an open issue or close it out?

@elvisimprsntr
Copy link
Collaborator

leave open for now.

@simonpfrank
Copy link

It's working for me. I did struggle with this error and a few other issues with DNS. I am a few weeks into Pi, Linux and 2 days into ruby so I don't know whether the below is useful....

I chose to go the hard route of doing the install myself as i have been building up my system and incrementally backing up.
I am not running as root or pi, I am also running dnsmasq as I couldn't get the internal dns to work. I was also concerned that I didn't know if the build included IOS 6 support - but knew that the dnsmasq solution had the re-routing to kryten.apple.com I am finding that :
rvmsudo siriproxy server
seems to work for running it, I did try the -u option a while ago but haven't for while.
I had the block in start_tls problem and found the "sudo ln -s ~/.siriproxy /root/.siriproxy" solution from Elvis works.

If it helps I had 3 goes at this I first tried the python port and couldn't get that working (didn't want to learn ruby, as I am only just into python). Tried Elvis' instructions https://gist.github.com/elvisimprsntr/4409751 (thank you by the way) but did something wrong, did it again but this time used sudo apt-get for any of the installs supported by it (e.g. wired [I think can't remember now]) as I saw some errors first time around. I also tried easy_install for siriproxy but didn't have much luck.

Overjoyed it's working - thank you, it's awesome. Backing up furiously as I really wouldn't want to go through the rvm install again ;-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

10 participants