Skip to content

Popen : wrong number of arguments #362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DasRoteSkelett opened this issue Feb 23, 2015 · 9 comments
Closed

Popen : wrong number of arguments #362

DasRoteSkelett opened this issue Feb 23, 2015 · 9 comments
Assignees

Comments

@DasRoteSkelett
Copy link

While redmine (2.6.1) runs and I can have a look at the repos from the website, it is impossible to clone or push or even click on a Username (Internal Server Error). I am using thin(1.6.3) /nginx.

Here is the dump:
Corrected Dump...

Listening on /tmp/thin.0.sock, CTRL+C to stop
Unexpected error while processing request: wrong number of arguments (3 for 1..2)
        /usr/local/lib64/ruby/gems/1.9.1/bundler/gems/grack-971b468103ac/lib/grack/server.rb:78:in `popen'
        /usr/local/lib64/ruby/gems/1.9.1/bundler/gems/grack-971b468103ac/lib/grack/server.rb:78:in `block in service_rpc'
        /usr/lib64/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/response.rb:89:in `call'
        /usr/lib64/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/response.rb:89:in `each'
        /usr/lib64/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/body_proxy.rb:31:in `each'
        /usr/local/lib64/ruby/gems/1.9.1/gems/activerecord-3.2.21/lib/active_record/query_cache.rb:46:in `each'
        /usr/local/lib64/ruby/gems/1.9.1/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb:460:in `each'
        /usr/lib64/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/body_proxy.rb:31:in `each'
        /usr/lib64/ruby/gems/1.9.1/gems/thin-1.6.3/lib/thin/response.rb:96:in `each'
        /usr/lib64/ruby/gems/1.9.1/gems/thin-1.6.3/lib/thin/connection.rb:114:in `post_process'
        /usr/lib64/ruby/gems/1.9.1/gems/thin-1.6.3/lib/thin/connection.rb:53:in `process'
        /usr/lib64/ruby/gems/1.9.1/gems/thin-1.6.3/lib/thin/connection.rb:39:in `receive_data'
        /usr/local/lib64/ruby/gems/1.9.1/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'
        /usr/local/lib64/ruby/gems/1.9.1/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'
        /usr/lib64/ruby/gems/1.9.1/gems/thin-1.6.3/lib/thin/backends/base.rb:73:in `start'
        /usr/lib64/ruby/gems/1.9.1/gems/thin-1.6.3/lib/thin/server.rb:162:in `start'
        /usr/lib64/ruby/gems/1.9.1/gems/thin-1.6.3/lib/thin/controllers/controller.rb:87:in `start'
        /usr/lib64/ruby/gems/1.9.1/gems/thin-1.6.3/lib/thin/runner.rb:200:in `run_command'
        /usr/lib64/ruby/gems/1.9.1/gems/thin-1.6.3/lib/thin/runner.rb:156:in `run!'
        /usr/lib64/ruby/gems/1.9.1/gems/thin-1.6.3/bin/thin:6:in `<top (required)>'
        /usr/bin/thin:9:in `load'
        /usr/bin/thin:9:in `<main>'

I am thankful to any hint, I am not familiar with ruby...

@DasRoteSkelett
Copy link
Author

I changed line 78 in /usr/local/lib64/ruby/gems/1.9.1/bundler/gems/grack-971b468103ac/lib/grack/server.rb

to

IO.popen(command, File::RDWR) do |pipe|

which seems to work?? I have to check on possible side effects...

@n-rodriguez n-rodriguez self-assigned this Feb 23, 2015
@n-rodriguez
Copy link
Contributor

which seems to work?? I have to check on possible side effects...

You must not do that. Actually this class is overriden by the plugin (in redmine_git_hosting/lib/grack/server.rb) and your issue looks like #345

@n-rodriguez
Copy link
Contributor

Which version of Ruby are you using?

@n-rodriguez n-rodriguez changed the title After upgrading to 1.0.0, every git clone/push or clicking on User does not work Popen : wrong number of arguments Feb 25, 2015
@n-rodriguez
Copy link
Contributor

Btw, there is a new release 1.0.1 which fixes the bug on User view.

@n-rodriguez
Copy link
Contributor

Support of Ruby 1.9.x has ended so I highly recommend you to upgrade to Ruby 2.1 or 2.0.0.

@DasRoteSkelett
Copy link
Author

Fine. I reverted, switched to ruby2, and on git clone I get:

Unexpected error while processing request: wrong number of arguments (3 for 1..2)
    /var/lib/redmine/.gem/ruby/1.9.1/bundler/gems/grack-971b468103ac/lib/grack/server.rb:78:in `popen'
    /var/lib/redmine/.gem/ruby/1.9.1/bundler/gems/grack-971b468103ac/lib/grack/server.rb:78:in `block in service_rpc'
    /var/lib/redmine/.gem/ruby/1.9.1/gems/rack-1.4.5/lib/rack/response.rb:89:in `call'
    /var/lib/redmine/.gem/ruby/1.9.1/gems/rack-1.4.5/lib/rack/response.rb:89:in `each'
    /var/lib/redmine/.gem/ruby/1.9.1/gems/rack-1.4.5/lib/rack/body_proxy.rb:31:in `each'
    /var/lib/redmine/.gem/ruby/1.9.1/gems/activerecord-3.2.21/lib/active_record/query_cache.rb:46:in `each'
    /var/lib/redmine/.gem/ruby/1.9.1/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb:460:in `each'
    /var/lib/redmine/.gem/ruby/1.9.1/gems/rack-1.4.5/lib/rack/body_proxy.rb:31:in `each'
    /var/lib/redmine/.gem/ruby/1.9.1/gems/thin-1.6.3/lib/thin/response.rb:96:in `each'
    /var/lib/redmine/.gem/ruby/1.9.1/gems/thin-1.6.3/lib/thin/connection.rb:114:in `post_process'
    /var/lib/redmine/.gem/ruby/1.9.1/gems/thin-1.6.3/lib/thin/connection.rb:53:in `process'
    /var/lib/redmine/.gem/ruby/1.9.1/gems/thin-1.6.3/lib/thin/connection.rb:39:in `receive_data'
    /var/lib/redmine/.gem/ruby/1.9.1/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'
    /var/lib/redmine/.gem/ruby/1.9.1/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'
    /var/lib/redmine/.gem/ruby/1.9.1/gems/thin-1.6.3/lib/thin/backends/base.rb:73:in `start'
    /var/lib/redmine/.gem/ruby/1.9.1/gems/thin-1.6.3/lib/thin/server.rb:162:in `start'
    /var/lib/redmine/.gem/ruby/1.9.1/gems/thin-1.6.3/lib/thin/controllers/controller.rb:87:in `start'
    /var/lib/redmine/.gem/ruby/1.9.1/gems/thin-1.6.3/lib/thin/runner.rb:200:in `run_command'
    /var/lib/redmine/.gem/ruby/1.9.1/gems/thin-1.6.3/lib/thin/runner.rb:156:in `run!'
    /var/lib/redmine/.gem/ruby/1.9.1/gems/thin-1.6.3/bin/thin:6:in `<top (required)>'
    /usr/local/bin/thin:23:in `load'
    /usr/local/bin/thin:23:in `<main>'

So, well, if i must not do this, what do I have to do to get this to work???

git error message:
Cloning into 'rcs-ng'...
error: RPC failed; result=22, HTTP code = 502
fatal: The remote end hung up unexpectedly

@n-rodriguez
Copy link
Contributor

Are you sure you're using Ruby2? :

/var/lib/redmine/.gem/ruby/1.9.1/bundler/gems/grack-971b468103ac/lib/grack/server.rb:78:in popen'`

@DasRoteSkelett
Copy link
Author

@n-rodriguez : Thanks, turns out, eselect set ruby20 does not seal the deal ;) so now I am running ruby20, redmine_git_hosting 1.0.1 and issue seems to be fixed for me! Thank you once again

@n-rodriguez
Copy link
Contributor

You're welcome ;)

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

No branches or pull requests

2 participants