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

Can not ceck /etc/sudoers for secure path! #394

Closed
grausof opened this issue Dec 20, 2012 · 14 comments
Closed

Can not ceck /etc/sudoers for secure path! #394

grausof opened this issue Dec 20, 2012 · 14 comments

Comments

@grausof
Copy link

grausof commented Dec 20, 2012

Hi, I've installed SiriProxy on Ubuntu 12.10. Everything went well, but when I go to give the command "rvmsudo siriproxy server", I get this error message: "Can not ceck /etc/sudoers for secure path..." I leave attached the screenshot. Can you help me solve this problem? For the installation I have followed this guide: http://www.idownloadblog.com/2011/12/09/how-to-install-siri-proxy-tutorial-video/

Thanks for the HELP!

screenshot

@gavros
Copy link

gavros commented Dec 20, 2012

Did you do what the warning asked? At the prompt type>
export rvmsudo_secure_ath=1

@grausof
Copy link
Author

grausof commented Dec 20, 2012

OK with this command, the error no longer appears. But the proxy still does not work! After calling SIRI from iPhone, the proxy stops, returning a set of values ​​that I leave attached.
end

@gavros
Copy link

gavros commented Dec 21, 2012

Yeah thats not going to help. Look at the beginning (when you issued the siriproxy server command)
If you see this:
SiriProxy up and running.

If you see this somehwere:
/rbBinaryCFPropertyList.rb:217:in encode': "\xAB" on UTF-8 (Encoding::InvalidByteSequenceError)

Then look back at issue #389 for the fix. I have this problem however, the fix did not work for me :(

Good luck

@grausof
Copy link
Author

grausof commented Dec 21, 2012

OK, my problem is the same as yours. I've try the issue #389 for the fix but doesn't work!

@gavros
Copy link

gavros commented Dec 22, 2012

Ok I think I figured it out. This is what I did.
Follow the instructions mentioned in #389

  • Change into the SiriProxy directory
  • run: "sudo vi siriproxy.gemspec"
  • Replace the line approx 4 from bottom which contains "CFPropertyList" with the below: s.add_runtime_dependency('CFPropertyList', '2.1.2')
  • stop the server
  • run > siriproxy update
  • after that do a > rake install
  • start the server

@grausof
Copy link
Author

grausof commented Dec 22, 2012

tried, but the problem persists! :(

@pilliq
Copy link

pilliq commented Dec 24, 2012

@grausof could you paste the entire stack trace of the error you're getting?

@grausof
Copy link
Author

grausof commented Dec 24, 2012

This is a part of message:
[Info - iPhone] Received Object: SpeechPacket
[Info - iPhone] Received Object: SpeechPacket
[Info - iPhone] Received Object: SpeechPacket
[Info - iPhone] Received Object: SpeechPacket
[Info - iPhone] Received Object: SpeechPacket
[Info - iPhone] Received Object: SpeechPacket
[Info - iPhone] Received Object: SpeechPacket
[Info - iPhone] Received Object: SpeechPacket
[Info - iPhone] Received Object: SpeechPacket
[Info - iPhone] Received Object: SpeechPacket
[Info - iPhone] Received Object: FinishSpeech
[Info - iPhone] Received Object: LoadAssistant
[Info - iPhone] Received Object: SetRestrictions
[Info - iPhone] Received Object: ClearContext
[Info - iPhone] Received Object: SetSessionObjects
[Info - iPhone] Received Object: StartSpeechRequest
Create server for iPhone connection
start conn #<SiriProxy::Connection::Iphone:0x9c41d9c @Signature=970, @processed_headers=false, @output_buffer="", @input_buffer="", @unzipped_input="", @unzipped_output="", @unzip_stream=#Zlib::Inflate:0x9c41bbc, @zip_stream=#Zlib::Deflate:0x9c41b58, @consumed_ace=false, @name="iPhone", @ssled=false>
[Info - Plugin Manager] Plugins laoded: [#<SiriProxy::Plugin::Example:0x9b47450 @manager=#<SiriProxy::PluginManager:0x9c41630 @plugins=[...]>>]
Create server for iPhone connection
start conn #<SiriProxy::Connection::Iphone:0x9b472ac @Signature=971, @processed_headers=false, @output_buffer="", @input_buffer="", @unzipped_input="", @unzipped_output="", @unzip_stream=#Zlib::Inflate:0x9b47018, @zip_stream=#Zlib::Deflate:0x9b46fc8, @consumed_ace=false, @name="iPhone", @ssled=false>
[Info - Plugin Manager] Plugins laoded: [#<SiriProxy::Plugin::Example:0x9b463e8 @manager=#<SiriProxy::PluginManager:0x9b469b0 @plugins=[...]>>]
[Info - iPhone] Received Object: LoadAssistant
[Info - iPhone] Received Object: SetRestrictions
[Info - iPhone] Received Object: ClearContext
[Info - iPhone] Received Object: SetSessionObjects
[Info - iPhone] Received Object: StartSpeechRequest
[Info - iPhone] Received Object: SetRequestOrigin

and this:
Create server for iPhone connection
3073128072:error:02001018:system library:fopen:Too many open files:bss_file.c:398:fopen('/home/francesco/.siriproxy/server.passless.key','r')
3073128072:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:
3073128072:error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib:ssl_rsa.c:648:
ruby: ssl.cpp:166: SslContext_t::SslContext_t(bool, const string&, const string&): Assertion `e > 0' failed.

@pilliq
Copy link

pilliq commented Dec 24, 2012

hmm, too many open files? Not exactly sure what the error is, but for now you can increase the max open files for the entire system by editing /etc/sysctl.conf and appending:

fs.file-max = 100000

then running:

sysctl -p

and verifying that your settings took effect:

cat /proc/sys/fs/file-max

(should output 100000)

then run siriproxy again and see if this resolves the problem.

@grausof
Copy link
Author

grausof commented Dec 24, 2012

The problem persist. The first time that i run siriproxy server, appear many messages that I pasted above. But, if i run siriproxy server the second time, notting happens and siri responds as if there were no proxy. When i stop SiriProxy i get this message:
Starting SiriProxy on port 443..
SiriProxy up and running.
^C/home/francesco/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in run_machine': Interrupt from /home/francesco/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:inrun'
from /home/francesco/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/siriproxy-0.3.2/lib/siriproxy.rb:16:in initialize' from /home/francesco/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/siriproxy-0.3.2/lib/siriproxy/command_line.rb:96:innew'
from /home/francesco/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/siriproxy-0.3.2/lib/siriproxy/command_line.rb:96:in start_server' from /home/francesco/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/siriproxy-0.3.2/lib/siriproxy/command_line.rb:85:inrun_server'
from /home/francesco/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/siriproxy-0.3.2/lib/siriproxy/command_line.rb:37:in initialize' from /home/francesco/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/siriproxy-0.3.2/bin/siriproxy:6:innew'
from /home/francesco/.rvm/gems/ruby-1.9.3-p327@SiriProxy/gems/siriproxy-0.3.2/bin/siriproxy:6:in <top (required)>' from /home/francesco/.rvm/gems/ruby-1.9.3-p327@SiriProxy/bin/siriproxy:23:inload'
from /home/francesco/.rvm/gems/ruby-1.9.3-p327@SiriProxy/bin/siriproxy:23:in `

'
I've also reinstalled ubuntu but I've not solved! Which OS you use, and which version of RVM?

@pilliq
Copy link

pilliq commented Dec 24, 2012

I'm using raspbian wheezy for raspberry pi with ruby 1.9.3.

Looks like siriproxy is running fine on your machine, but requests from the iphone are not getting to your machine. Are you sure you edited /etc/dnsmasq.conf to include this line:

address=/guzzoni.apple.com/(your_machine's_ip_address)

and that the ip address is the ip address of your ubuntu machine?

Also make sure your iphone is connected to your local network and that your machine is accessible from your iphone.

@grausof
Copy link
Author

grausof commented Dec 24, 2012

Ok, I solved the problem. :) Was not due to a misconfiguration, but in the file etc/resolv.conf there was no a DNS server IP, but there was the IP of my PC. Fix: #56 👍 Thanks for your patience.

@pilliq
Copy link

pilliq commented Dec 24, 2012

glad to help, and glad you solved it.

@grausof grausof closed this as completed Dec 24, 2012
@JoshuaCarroll
Copy link

For future readers, please note the typo in the command given to fix the "Can not ceck /etc/sudoers for secure path..." problem. The correct command (and what I'm sure @gavros meant to type) is:

export rvmsudo_secure_path=1

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

No branches or pull requests

4 participants