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 9184637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:06:11+00:00 2026-06-17T19:06:11+00:00

We have different database IP addresses for our development and production environments. Our development

  • 0

We have different database IP addresses for our development and production environments. Our development environment is running locally on our developer machines and pointed to a single development database server on our local network. Our production environment uses a database hosted at RackSpace and is hosted on their local network. Somehow, it appears that our development IP address has been cached on production. Here’s what I have done so far:

  • Verified that the IP address in app/etc/local.xml on production is correct.
  • Deleted the contents of var/cache/* and var/full_page_cache/*
  • Restarted our memcached servers to clear any strange caches there
  • grepped our entire codebase for the dev IP address
  • Dumped the mysql database and grepped the dump for the dev IP (we were desperate)
  • Deleted the contents of /tmp
  • Disabled custom modules

This has been working for weeks without a problem. It was when I disabled the config cache that problem started. I know what you’re thinking, that it just now finally picked up a config change that someone made since the last time the cache was cleared. That makes sense. What doesn’t make sense is that I’ve cleared every cache mentioned above, enabled the config cache using MageTool and everything works like a charm.

  • 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-17T19:06:12+00:00Added an answer on June 17, 2026 at 7:06 pm

    As it turns out, fixing this whole thing was a two step process.

    Because our production and development environments require different IPs app/etc/local.xml is untracked and instead we track app/etc/local-example.xml so that all of our developers can quickly and easily copy it over to app/etc/local.xml and be up and running. This has become a bit of a company standard and we use it across all of our other projects. Thankfully, one of my coworkers discovered that Magento loads all the xml files in app/etc/.

    So, no, our development IP wasn’t magically cached in some crazy obscure location, we were just inadvertently loading it. After renaming that file to app/etc/local.xml.example it stopped referencing our development IP. Yay!

    Now, this isn’t directly related to the question, but because the solution introduced a new bug I want to mention it. Once we renamed the xml file and cleared all of the caches we started seeing a new error.

    PHP Fatal error: Call to a member function setQueryHook() on a non-object in app/code/core/Mage/Core/Model/Resource/Setup.php on line 347

    In our example file we were defining our database resource inside a single <default_setup /> node. For our production environment we actually have a triple-m setup with separate IPs for read and write queries so for production instead of a single <default_setup /> node we had <default_read /> and <default_write /> nodes. I have never been able to find documentation on exactly what is allowed and required in resources, but the read / write split was setup per the instructions in another StackOverflow post on the topic and, up until today, worked great.

    On a hunch, I renamed the <default_write /> node to <default_setup /> and everything magically began working again. I’m not yet sure if the reads and write are correctly splitting, but I’ll update this answer once I confirm everything is working.

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

Sidebar

Related Questions

We have multiple environments (development, test, Production, etc). Using Oracle 10g. All values are
I've 3 different database tables that have the same 5 fields but those does
I have two classes that represent two different database entities. Their relationship is 1:m
I have different php output in jQuery-based tabs. This output is formed from database
I have a Play Framework (1.2.4) project with PlayMorphia that has two different database
I've seen the information about locating a SQLite database, but I have a different
I have a database table with parent child relationships between different rows. 1 parent
I have an existing database with users and administrators in different tables. I am
I have a resource database where resources can belong to different locations. Users and
I have a MySQL database that I am keeping temperature readings from several different

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.