Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Where did my data go?  RSS feed

 
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm surprised to see that the data on my mongoDB database simply got lost for whatever reason. A week ago I inserted the data using the mongo javascript console. Today when I started my application I was surprised to see that the web page was empty. Then had a look at the mongoDB database. The Collection exists but it did not have any data in it. What could be the reason for this? Any idea?
 
ranger
Sheriff
Posts: 17314
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Joe Harry wrote:I'm surprised to see that the data on my mongoDB database simply got lost for whatever reason. A week ago I inserted the data using the mongo javascript console. Today when I started my application I was surprised to see that the web page was empty. Then had a look at the mongoDB database. The Collection exists but it did not have any data in it. What could be the reason for this? Any idea?



I know this sounds stupid or that I am joking. But this past week I had something "similar" happening, not with MongoDB but with my JavaScript code. And in the end for me it was that I wasn't looking at the right file. Meaning I had two copies of it and I was using the wrong one. So maybe you are looking at the wrong database? That you have two sets of database files?

Or, last week were you using all the data in MongoDB "in memory" and when you stopped the db it went away not actually persisted permanently. Not sure if MongoDB does that, but a guess on my part.

Good Luck.

Maybe the data decided to go out to see a movie or go shopping?

Mark
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!