Closed akluthe closed 11 years ago
I have not tested mosql on Windows at all, but yes, it looks like the problem is that SIGUSR2 is not supported there. If you remove USR2
from the list on cli.rb:27
, does that solve the problem? There is no requirement for USR2 -- we just trap it as part of how our production environment works.
Not sure if I am getting a related error now or not.
C:/Ruby193/lib/ruby/1.9.1/psych.rb:203:in parse': (<unknown>): found character that cannot start any token while scanning for the next token at line 2 column 1 (Psych::SyntaxError) from C:/Ruby193/lib/ruby/1.9.1/psych.rb:203:in
parse_stream'
from C:/Ruby193/lib/ruby/1.9.1/psych.rb:151:in parse' from C:/Ruby193/lib/ruby/1.9.1/psych.rb:127:in
load'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mosql-0.1.0/lib/mosql/cli.rb:12
0:in load_collections' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mosql-0.1.0/lib/mosql/cli.rb:12 6:in
run'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mosql-0.1.0/lib/mosql/cli.rb:16
:in run' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mosql-0.1.0/bin/mosql:7:in
<to
p (required)>'
from C:/Ruby193/bin/mosql:23:in load' from C:/Ruby193/bin/mosql:23:in
That looks like a syntax error in your collections.yaml. Opened #7 to have a better error message here.
From what I have seen trying to fix this issue on my end, SIGUSR2 is not supported on windows platform, or am I having some other noob related problem?
ruby 1.9.3p385 (2013-02-06) [i386-mingw32]
C:/Ruby193/lib/ruby/gems/1.9.1/gems/mosql-0.1.0/lib/mosql/cli.rb:28:in trap': u nsupported signal SIGUSR2 (ArgumentError) from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mosql-0.1.0/lib/mosql/cli.rb:28 :inblock in setup_signal_handlers' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mosql-0.1.0/lib/mosql/cli.rb:27 :in each' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mosql-0.1.0/lib/mosql/cli.rb:27 :insetup_signal_handlers' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mosql-0.1.0/lib/mosql/cli.rb:23 :in initialize' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mosql-0.1.0/lib/mosql/cli.rb:15 :innew' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mosql-0.1.0/lib/mosql/cli.rb:15 :in run' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mosql-0.1.0/bin/mosql:7:in p (required)>' from C:/Ruby193/bin/mosql:23:in load' from C:/Ruby193/bin/mosql:23:in