Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Geddy 0.5 & MongoDB
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mistermojo  
View profile  
 More options Oct 28 2012, 11:40 am
From: mistermojo <d...@arcanesystems.net>
Date: Sun, 28 Oct 2012 08:40:38 -0700 (PDT)
Local: Sun, Oct 28 2012 11:40 am
Subject: Re: [geddyjs:158] Geddy 0.5 & MongoDB

Hi all,

I'm afraid I can confirm this problem. This is what I did (no editing of
generated stuff except config):
1. upgraded to geddy 0.5.5
2. created a new geddy app
3. created a scaffold (called todoItem) with 3 properties
4. ran the geddy app

With geddy using the memory adapter it all works fine. Listing, viewing,
creating, editing, deleting works fine. No errors.

When I changed config in development.js to mongo
"""
/*
, model: {
    defaultAdapter: 'memory'
    }
*/

, model: {
    defaultAdapter: 'mongo'
    }
, db: {
    mongo: {
      dbname: 'anothertodo'
    }
  }
"""

0. npm installed a fresh mongodb-wrapper

1. listing works
2. creating an item kills the worker
"""
/home/dev/GeddyJS/anothertest/node_modules/mongodb-wrapper/node_modules/mon godb/lib/mongodb/connection/server.js:359
        throw err;
              ^
ReferenceError: model is not defined
"""

but curiously the item is created and can be verified with a geddy restart

3. viewing the edit page for the item works.
4. removing the item works (without errors)
5. editing and saving kills the worker with error:
"""
/usr/lib/node_modules/geddy/node_modules/model/lib/adapters/mongo/index.js: 240
          if (data instanceof model.ModelBase) {
                              ^
ReferenceError: model is not defined
"""
6. restarting geddy shows that actually, the save works.

I am afraid I don't know geddy well enough to pin-point the problem.
Creating and updating items in with mongo kills the worker and the app
hangs but apparently, *after* doing the writing to db. Very curious. Did
not have this problem before when I was still using 0.5.2 (and possibly
older mongodb-wrapper)

Could it be some weird incompatibility with a new mongodb-wrapper? I don't
know what version I had before, though.

Sorry for the long post. Thanks for your time.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.