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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:53:36+00:00 2026-05-30T09:53:36+00:00

I am trying to use MongoDB on Ubuntu 11.10 with CakePHP 1.3 using the

  • 0

I am trying to use MongoDB on Ubuntu 11.10 with CakePHP 1.3 using the cakephp-mongodb driver from ichikaway, but I am seeing persistent connection problems.

My model is very simple. I am attempting a connect and a read

    $this->loadModel('Mongo.Mpoint');
    $data = $this->Mpoint->find('first');

However the result is inconsistent. A significant amount of the time the server returns

Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection
without sending any data.

However issuing a refresh, or several refreshes in quick succession will eventually deliver the expected returned data. It feels like the server is going to sleep and needs to be woken up as repeatedly hitting return does not generate errors, but this is subjective. The crash occurs in the find, not the connection itself.

I have rockmongo installed on the server which never fails to connect. Also I see the same behaviour if I point the connection at a different sever (same version of mongo, but on centos) so I do not believe the issue is with mongodb itself.

I have attempted setting the connection to persistent and directly setting the timeout, all without success.

My colleague, who also has a copy of the app running directly on the centos server, says he saw this problem initially, but ‘it went away’.

From what I can see therefore the issue is most likely in the cakePHP layer as connections across different servers yields the same result and a direct connection in PHP is trouble-free, but placing diagnostics does not reveal anything of immediate use. It is rather odd to see a complete PHP crash with nothing useful returned from the server. Has anyone else seen this behaviour before and fixed it?

  • 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-30T09:53:37+00:00Added an answer on May 30, 2026 at 9:53 am

    Try updating the Mongodb php driver. I had the same problem and I just upgraded from 1.2.7 to 1.2.9 and It seems to have been solved.

    Just for reference
    I am using

    • Ubuntu 11.10 x86
    • Xampp(Lampp) 1.7.7 with php-mongo-driver 1.2.9
    • Mongodb 2.0.2
    • CakePHP 2.0.6
    • cakephp-mongodb driver from ichikaway (Branch:cake2.0)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was trying to use the count() Mongodb feature (db.collection_name.count({data:value}) using the Ruby Driver.
I'm trying to use MongoDB's Java driver to make two updates ($set and $push)
I'm thinking about trying MongoDB to use for storing our stats but have some
I'm trying to use the sort feature when querying my mongoDB, but it is
I've been trying to use Mongoid with Rails on Ubuntu. I have installed mongoDB
I am trying to use Properties file to parameterize connection to Mongodb. I have
I am trying use std::copy to copy from two different iterator. But during course
I'm trying to use a MongoDB Database from a Google App Engine service is
Using MongoDB I'm trying to copy a database from one server to another. My
I'm trying to use MongoDB to cache some data for me, but I can't

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.