Fix the 400 Error with Geminabox

TLDR: Create a folder called "tmp" in the root directory of the drive that runs geminabox (e.g. "C:\tmp" if you're using a standard Windows install).

I ran into a strange error when I set up geminabox on my Windows server tonight. Whenever I tried to upload a gem (it was my first gem on a fresh install), I receive a 400 error saying "/tmp/geminabox.lockfile" could not be found.

After spending an hour or so dealing with permissions, I noticed the error had a leading forward slash in the path. Since I exhausted just about everything I could, I figured I'd try creating a tmp folder in the root directory of the drive. I reuploaded the gem and it worked.

I didn't run into the issue prior to that because I already created a folder called tmp for a different purpose on my previous install (and a /temp folder for a similar reason). Since I left the folder around when I set up geminabox before, I didn't have any problems.

Github had an issue for people that had the same issue (#105 in the geminabox project), but since it was closed without resolution, I wanted to mention it here.

References
Did you like what you just read?

Get updates sent directly to your inbox.

Corey Docken

Corey Docken

Corey is a designer and developer with over 10 years of experience building websites. He currently lives in southeastern Minnesota in a small town outside of Winona, MN.

Published on Sunday, May 29th, 2016 at 1:47 AM.
Last updated on Sunday, May 29th, 2016 at 1:58 AM.