Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8946673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:34:43+00:00 2026-06-15T12:34:43+00:00

I’ve got a legacy Rails 2.3.2 application which has some functionality that allows a

  • 0

I’ve got a legacy Rails 2.3.2 application which has some functionality that allows a user to access some of the rake tasks via the browser. Just recently, the application stopped showing the list of available tasks (which it gets by running a shell command) in the browser.

On my development machine it works perfectly. It also works perfectly for a bunch of other production servers. However, any new production server I create this stops working.

Now here is the frustrating part. If I test the code in the console, it works perfectly even on the problematic production servers. I’ve even tested it by making calls via app.get in the console and it always works. I’ve tested this on both development and production environments in the console. Again, it only seems to fail in the browser.

Can anybody please suggest any strategies for figuring this thing out? Why would the response via the browser and via the console be any different?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:34:43+00:00Added an answer on June 15, 2026 at 12:34 pm

    It took a bit of digging but I figured this out so I thought I’d share what I found in case anybody else runs across a similar problem.

    The answer lies in two aspects of the setup of our production server.

    1. We use Phusion Passenger on our production servers (excellent system btw!) and as part of the config of Passenger it runs under a different user to the one I was accessing via the console. Normally, this is not an issue as the two users (the server user and the console user) have virtually the same permissions.

    2. During the setup of the production server a mistake was made and one of the gems (in my case a fairly important one – i18n) was installed in the wrong location. Basically, when it was installed the sudo was missed at the start of the command. Thus, this one gem was installed in the console user’s home folder instead of the system gems folder.

    Normally this particular situation is not an issue as all of the application runs normally. Its only when you try to run a shell command that requires access to that gem that it gives you grief.

    Incidentally, this did not trigger an exception in the log even when I tried to access execute the rake tasks. It gave me the usual 500 internal server error but nothing was written to the log (which strikes me as kind of odd)

    If you need to check something like this out, they way I eventually figured it out was to log in to the console as the server user and then try to run the shell command. As soon as I did it gave me an error saying it couldn’t find the required gem. I then checked the location of the gem using gem which command and saw that it had been installed in the wrong location.

    I hope that someone finds this helpful and that it saves them time as I spent several days trying to figure this out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have an array which has BIG numbers and small numbers in it. I
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.