trogdoro / xiki

A shell console with GUI features
http://xiki.org
Other
3.76k stars 207 forks source link

Timeout::Error when verifying if the shell command works #8

Open daniel opened 11 years ago

daniel commented 11 years ago

I followed the instructions for installation via github and then ran the shell command "xiki". The output I get is this:

> Summary
The 'xiki' shell command is mostly meant to be called by programs
that want to interface with Xiki.  But it is sometimes useful for
people to call it directly.  Example usages:

$ xiki ip
$ xiki docs/faq

> Setting up your editor
The most common way to use Xiki is from a text editor.  For
example, from in a text editor, typing "tables" on any blank line
and then double-clicking on it (or typing control-enter or
command-enter) to browse and update your mysql database.

See the README.markdown file in the Xiki dir for help setting up
your editor. You can view it by typing this command or going to
this url:

$ xiki readme

https://github.com/trogdoro/xiki

> Service
The 'xiki' shell command automatically runs a service in the
background to keep things fast.

% xiki status
% xiki stop
% xiki restart

> Interfaces
Xiki can be used from...
- A text editor
- The 'xiki' shell command
- The http://xiki/ url in your browser (experimental)

For more information type:

$ xiki docs

> Google Group and Twitter
Join the google group or follow @xiki on twitter for help with
installing and using, or just to chat or share your ideas:

http://groups.google.com/group/xiki/
http://twitter.com/xiki

> Troubleshooting
A couple commands to help you trouble-shoot:

% bundle install
% xiki readme

/Users/daniel/test/xiki/etc/command/xiki_command.rb:113:in `get_response': Timeout::Error (Timeout::Error)
    from /Users/daniel/test/xiki/etc/command/xiki_command.rb:102:in `run'
    from /Users/daniel/test/xiki/bin/xiki:30:in `<top (required)>'
    from /usr/local/bin/xiki:2:in `load'
    from /usr/local/bin/xiki:2:in `<main>'

I have tried the gem installation too, with a similar error.

assembler commented 11 years ago

+1

pvencill commented 11 years ago

I got that, then did xiki restart and it worked after that.

trogdoro commented 11 years ago

That's cool that "xiki restart" fixes it. What platform / ruby versions are you seeing it with?

daniel commented 11 years ago

It seems that I managed to start a xiki process but something's wrong...

> xiki restart
xiki_process.rb: trying to stop process with pid 84090...
xiki_process.rb: process with pid 84090 successfully stopped.

> xiki
ERROR: there is already one or more instance(s) of the program running

> ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]
gmena commented 11 years ago

I get the same Timeout::Error under Ubuntu 10.04

$ ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]

$ gem list xiki
*** LOCAL GEMS ***
xiki (0.6.3)

$ xiki start
/usr/lib/ruby/1.8/timeout.rb:60:in `get_response': execution expired (Timeout::Error)
    from /usr/lib/ruby/gems/1.8/gems/xiki-0.6.3/etc/command/xiki_command.rb:123:in `open'
    from /usr/lib/ruby/gems/1.8/gems/xiki-0.6.3/etc/command/xiki_command.rb:123:in `get_response'
    from /usr/lib/ruby/gems/1.8/gems/xiki-0.6.3/etc/command/xiki_command.rb:120:in `get_response'
    from /usr/lib/ruby/gems/1.8/gems/xiki-0.6.3/etc/command/xiki_command.rb:102:in `run'
    from /usr/lib/ruby/gems/1.8/gems/xiki-0.6.3/bin/xiki:30
    from /usr/bin/xiki:19:in `load'
    from /usr/bin/xiki:19

$ xiki restart
Warning: no instances running. Starting...

$ xiki status
xiki_process.rb: no instances running
gcstr commented 11 years ago

Yap. Exactly same error here. Tried several different rubies but could't find a way to run it.

The only difference is that in my case, the daemon seems to start, but when I start Emacs it says:

Error raised in Ruby

And the log:

-0300:Error: no such file to load -- xiki (LoadError)
hobotroid commented 11 years ago

+1. Same problem here, even when I do a xiki restart.

ch1c0t commented 11 years ago

Same error under 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]:

/home/ch1c0t/.rvm/gems/ruby-1.9.3-p194@sese0/gems/xiki-0.6.5/etc/command/xiki_command.rb:128:in `gets': execution expired (Timeout::Error)
    from /home/ch1c0t/.rvm/gems/ruby-1.9.3-p194@sese0/gems/xiki-0.6.5/etc/command/xiki_command.rb:128:in `block (2 levels) in get_response'
    from /home/ch1c0t/.rvm/gems/ruby-1.9.3-p194@sese0/gems/xiki-0.6.5/etc/command/xiki_command.rb:123:in `open'
    from /home/ch1c0t/.rvm/gems/ruby-1.9.3-p194@sese0/gems/xiki-0.6.5/etc/command/xiki_command.rb:123:in `block in get_response'
    from /home/ch1c0t/.rvm/gems/ruby-1.9.3-p194@sese0/gems/xiki-0.6.5/etc/command/xiki_command.rb:120:in `get_response'
    from /home/ch1c0t/.rvm/gems/ruby-1.9.3-p194@sese0/gems/xiki-0.6.5/etc/command/xiki_command.rb:102:in `run'
    from /home/ch1c0t/.rvm/gems/ruby-1.9.3-p194@sese0/gems/xiki-0.6.5/bin/xiki:30:in `<top (required)>'
    from /home/ch1c0t/.rvm/gems/ruby-1.9.3-p194@sese0/bin/xiki:19:in `load'
    from /home/ch1c0t/.rvm/gems/ruby-1.9.3-p194@sese0/bin/xiki:19:in `<main>'
    from /home/ch1c0t/.rvm/gems/ruby-1.9.3-p194@sese0/bin/ruby_noexec_wrapper:14:in `eval'
    from /home/ch1c0t/.rvm/gems/ruby-1.9.3-p194@sese0/bin/ruby_noexec_wrapper:14:in `<main>'

Nevertheless, xiki_process.rb runs.

wildsoul commented 11 years ago

+1 Same problem

rodyaj commented 11 years ago

Same on FreeBSD 9.1 Pre amd64. Tried the wiki instructions and also followed through the Google Groups thread titled 'Timeout::Error because xiki_process.rb is not running'