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

  • SEARCH
  • Home
  • 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 6963339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:46:37+00:00 2026-05-27T15:46:37+00:00

$ rake assets:precompile rake aborted! could not connect to server: Network is unreachable Is

  • 0
$ rake assets:precompile
rake aborted!
could not connect to server: Network is unreachable
    Is the server running on host "192.168.163.70" and accepting
    TCP/IP connections on port 5432?

(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [/usr/local/Cellar/ruby/1.9.3-p0/bin/ruby /...]

So I’m trying to precompile assets on my development box. For some reason it tries to connect to the production database (192.168.163.70) and when it fails to do so, it aborts.

Why does it do that and how can I solve the problem?

  • 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-05-27T15:46:38+00:00Added an answer on May 27, 2026 at 3:46 pm

    I had the following line in one of my Rake task files

    require File.expand_path(File.join(File.dirname(__FILE__), '../..', 'config', 'environment'))
    

    Removing it solved the problem.

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

Sidebar

Related Questions

I'm getting this error when I push to Heroku: Running: rake assets:precompile rake aborted!
When running: rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets Everything precompiles but not my /app/assets/images/* I even
Precompiling assests with RAILS_ENV=production rake assets:precompile gave error such as: rake aborted! undefined method
The command rake assets:precompile works very slow for me. Especially on my Amazon EC2
Setup error.sass is under app/assets/stylesheets I ran bundle exec rake assets:precompile error.css is in
Could somebody explain to me what the command rake assets:clean really does? Unfortunately the
Running rake db:setup on server, how to change to production mode? I am SSH'd
I am trying to precompile assets ( rake assets:precompile or bundle exec rake assets:precompile
I'm unable to get rake precompile tasks running with Rails 3.1.3. I get the
Here is the whole error from rake assets:precompile --trace ** Invoke assets:precompile (first_time) **

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.