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

Already on GitHub? Sign in to your account

Error 400 on pusing gem on local server #105

Closed
kasargee opened this Issue Mar 20, 2013 · 14 comments

Comments

Projects
None yet
7 participants

I have installed geminabox latest version and ran the config.ru file and started the server.
server is running on http://localhost:9292. When i am hitting http://localhost:9292 in IE, it is updating on command prompt where server is running with 200 code.

But when i try to use command-
C:\MyGems\rica-master>gem inabox ./rica-0.0.1.gem
Pushing rica-0.0.1.gem to http://localhost:9292/...
ERROR: Error (400 received)

I am using "USe automatic configuration script" and HTTP_PROXY variable is set to company provided address.
Please help me with solution.

kasargee commented Apr 1, 2013

Please help me in this.

Unset HTTP_PROXY variable when executing "gem inabox ..." command. Hope that helps

kasargee commented Apr 4, 2013

This did not helped. I chnaged localhost to IP address of virtual maschine on which i am working.
I am getting message on server- 162.103.156.35 - - [04/Apr/2013 13:14:10] "POST /upload HTTP/1.1" 400 18 0.0313

Or else suggest me any idea for creating shared object repository

kasargee commented Apr 9, 2013

Any help? Error on pushing gem on local server.

Owner

tomlea commented Apr 10, 2013

Hey, do you have any error output from the server side? The only way it should serve up a 400 error is if the uploaded file is not present (https://github.com/cwninja/geminabox/blob/master/lib/geminabox.rb#L85).

What web server are you hosting the app on?

Alternatively, it could be the client not pushing a file. I can't think of a simple way to test which.

Either way, it's probably a windows issue, and I don't have any windows. If you can get to the bottom of it, pull request it up ;)

I am pushing on local server. Yes i am doing it on windows. Is this gem is not supporting windows?

@kasargee did you have any luck with this? I'm running into the same issue.

I did verify that pushing to a Mac server that is hosting geminabox works when the client is Windows. Just not when using windows to host it. I get the 400 on the server-side as well. I even set the ./data directory on the server to allow Everyone to no avail.

kasargee commented May 8, 2013

No, i did not. I gave up this solution. I am using require_all gem for object repository.

@ghost

ghost commented Jul 12, 2013

Simple solution, don't push .gemspec file to geminabox server. First you must build your gem, and after that you can push .gem file to server without 400 error :)

machzqcq commented Aug 1, 2014

So nobody found a solution when windows is hosting geminabox and uploading a gem is resulting in 400 error ?

My solution was to throw it on an Ubuntu vm :)
On Aug 1, 2014 4:52 PM, "Pradeep" notifications@github.com wrote:

So nobody found a solution when windows is hosting geminabox and uploading
a gem is resulting in 400 error ?


Reply to this email directly or view it on GitHub
#105 (comment).

BenNG commented Apr 7, 2015

I also have the problem on linux debian jessie

Pushing Gemfile to http://0.0.0.0:3000/...
400Cannot process gem

@tomlea tomlea added the Stale label Feb 15, 2016

@tomlea tomlea closed this Feb 15, 2016

Create a folder in the root directory of whatever drive is running geminabox called "tmp." If you're running Windows, it's "C:\tmp". Most *nix machines won't have this issue since the tmp directory is created when the operating system is installed.

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