GithubHelp home page GithubHelp logo

mongo3's Introduction

Mongo3

Rule your mongoDB clusters!
A Sinatra based admin console for mongoDB

DESCRIPTION:

Mongo3 allows you to manage your mongoDB clusters using a web based admin console.
The console provides for getting an overview of your mongo landscape and drilldown to
see various information about your databases. You will be able to manage your clusters
by performing common database admin tasks directly from the web console.

The initial release of Mongo3 will be a read only shallow mode. Further development
still needs to take place to build up the functionality from the existing code base.

PROJECT INFORMATION

FEATURES:

  • Easily administer your mongo cluster information

  • Get a real time snapshot of what your configuration looks like

  • Drill down on clusters, databases, collections and indexes

  • Manage all mongo artifacts from a single web interface

ROAD MAP:

  • Collection rename

  • Database creation

  • Manage logs

  • Support for shards and replication

  • Add support for drilling down array and embedded documents [done]

DEPENDENCIES

  • mongo + mongo_ext

  • agnostic-will_paginate

  • memcache-client

  • sinatra

  • mongo_rack

  • main

INSTALL:

gem install mongo3

USAGE:

Configure It!

You will need to give mongo3 some information about your mongo configuration. 
In order to do so create a .mongo3 directory in your home directory and create 
a file landscape.yml. You will need to specify the envs, host and ports specific
to your configuration, but here is a sample.

landscape.yml  
  development:
    host: localhost
    port: 27017

  beta:
    host:     beta_host_name
    port:     27017
    user:     bobo
    password: secret

Launch It!

Launch it. Fires up sinatra and opens up the console
NOTE!!: The gem now leverages mongo_rack ( a mongoDB based session store ).
By default, this assumes a mongoDB instance is running on localhost and on default port!

> mongo3

Alternatively you can use a different mongo instance to store mongo3 session information
or use memcache by specifying the --pool options as follows:

To use the mongo session store on localhost at port 27030 with db name 'mongo3' and collection named 'sessions' 

> mongo3 --pool "mongo://localhost:27030/mongo3/sessions" 

To use memcache session store on localhost at port 11233 with namespace 'mongo3'

> mongo3 --pool "memcache://localhost:11233/mongo3"

The pool options assumes the following format:

--pool {mongo|memcache}://{host}:{port}/{db_name|namespace}/{cltn_name}

LICENSE:

Copyright 2013 LiquidRail LLC

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

mongo3's People

Contributors

derailed avatar elisehuard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mongo3's Issues

error "uninitialized constant BSON::ObjectID" when trying delete record

On the collection page, clicking the delete record button and confirming don't do nothing. On sinatra output, it shows the error:

RuntimeError - MongoDB connection failed for `"localhost":27017 with uninitialized constant BSON::ObjectID

Gems bson and bson_ext already installed.

Sorry any engrish.

Can't click on node images only on node label

Hi Derailed,

Just trying out mongo3... awesome!

It did take me a while to work out how to browse to the individual databases within a node. It seems that only the node names are clickable, not the nodes themselves. Is it possible to make the nodes clickable as well?

Can't get it to compile in ubuntu 9.10

Hello,

I'm just trying this and I got the following error.

$ sudo gem install mongo3
Building native extensions. This could take a while...
ERROR: Error installing mongo3:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1

Gem files will remain installed in /var/lib/gems/1.8/gems/mongo_ext-0.18.3 for inspection.
Results logged to /var/lib/gems/1.8/gems/mongo_ext-0.18.3/ext/cbson/gem_make.out

That is with
$ gem1.8 --version
1.3.5

any pointers as to why the bson module failed?

mongo3 cannot start (fattr 2.1.0 error)

gem install mongo3

Successfully installed mongo3-0.1.3
1 gem installed
Installing ri documentation for mongo3-0.1.3...
Installing RDoc documentation for mongo3-0.1.3...

cat ~/.mongo3/landscape.yml

development:
host: localhost
port: 27017

mongo3

/usr/local/rvm/gems/ruby-1.9.2-head/gems/fattr-2.1.0/lib/fattr.rb:85:in block (2 levels) in fattrs': wrong number of arguments (1 for 0) (ArgumentError) from /usr/local/rvm/gems/ruby-1.9.2-head/gems/fattr-2.1.0/lib/fattr.rb:90:ininstance_eval'
from /usr/local/rvm/gems/ruby-1.9.2-head/gems/fattr-2.1.0/lib/fattr.rb:90:in call' from /usr/local/rvm/gems/ruby-1.9.2-head/gems/fattr-2.1.0/lib/fattr.rb:90:inblock (2 levels) in fattrs'
from (eval):3:in call' from (eval):3:inarity!'
from (eval):4:in arity' from /usr/local/rvm/gems/ruby-1.9.2-head/gems/main-4.2.0/lib/main/parameter.rb:105:insanity_check!'
from /usr/local/rvm/gems/ruby-1.9.2-head/gems/main-4.2.0/lib/main/parameter.rb:101:in initialize' from /usr/local/rvm/gems/ruby-1.9.2-head/gems/main-4.2.0/lib/main/parameter.rb:53:inblock in create'
from /usr/local/rvm/gems/ruby-1.9.2-head/gems/main-4.2.0/lib/main/parameter.rb:53:in instance_eval' from /usr/local/rvm/gems/ruby-1.9.2-head/gems/main-4.2.0/lib/main/parameter.rb:53:increate'
from /usr/local/rvm/gems/ruby-1.9.2-head/gems/main-4.2.0/lib/main/program/class_methods.rb:193:in option' from /usr/local/rvm/gems/ruby-1.9.2-head/gems/mongo3-0.1.3/bin/mongo3:8:inblock in <top (required)>'
from /usr/local/rvm/gems/ruby-1.9.2-head/gems/main-4.2.0/lib/main/program/class_methods.rb:61:in module_eval' from /usr/local/rvm/gems/ruby-1.9.2-head/gems/main-4.2.0/lib/main/program/class_methods.rb:61:inbuild'
from /usr/local/rvm/gems/ruby-1.9.2-head/gems/main-4.2.0/lib/main/factories.rb:16:in run' from /usr/local/rvm/gems/ruby-1.9.2-head/gems/main-4.2.0/lib/main/factories.rb:25:inMain'
from /usr/local/rvm/gems/ruby-1.9.2-head/gems/mongo3-0.1.3/bin/mongo3:7:in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.2-head/bin/mongo3:19:inload'
from /usr/local/rvm/gems/ruby-1.9.2-head/bin/mongo3:19:in `

'

sinatra-1.2.2 is not supported by mongo3 or connection configuration is not correct?

Command line for start mongo3 and "mongo://192.168.1.105:50000/mongo3/sessions" is connected.

mongo3 --pool "mongo://192.168.1.105:50000/mongo3/sessions" --environment=master

Environment settings in landscapge.yml:

master:
  host: 192.168.1.105
  port: 50000

Do request "http://192.168.91.128:6663/" from browser.

Errors occured like the following:

RuntimeError - MongoDB connection failed for `"host":"port" with Failed to connect to a master node at host:0:
 /var/lib/gems/1.8/gems/mongo3-0.1.3/lib/mongo3/connection.rb:431:in `connect_for'
 /var/lib/gems/1.8/gems/mongo3-0.1.3/lib/mongo3/connection.rb:250:in `slave?'
 /var/lib/gems/1.8/gems/mongo3-0.1.3/lib/mongo3/connection.rb:227:in `build_tree'
 /var/lib/gems/1.8/gems/mongo3-0.1.3/lib/mongo3/connection.rb:219:in `each_pair'
 /var/lib/gems/1.8/gems/mongo3-0.1.3/lib/mongo3/connection.rb:219:in `build_tree'
 /var/lib/gems/1.8/gems/mongo3-0.1.3/lib/controllers/explore.rb:22:in `GET /'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:1162:in `call'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:1162:in `compile!'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:736:in `instance_eval'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:736:in `route_eval'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:720:in `route!'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:770:in `process_route'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:767:in `catch'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:767:in `process_route'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:719:in `route!'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:718:in `each'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:718:in `route!'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:855:in `dispatch!'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:646:in `call!'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:820:in `instance_eval'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:820:in `invoke'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:820:in `catch'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:820:in `invoke'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:646:in `call!'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:631:in `call'
 /var/lib/gems/1.8/gems/rack-1.2.1/lib/rack/session/abstract/id.rb:63:in `context'
 /var/lib/gems/1.8/gems/rack-1.2.1/lib/rack/session/abstract/id.rb:58:in `call'
 /var/lib/gems/1.8/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in `call'
 /var/lib/gems/1.8/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in `call'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:1282:in `call'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:1313:in `synchronize'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:1282:in `call'
 /var/lib/gems/1.8/gems/rack-1.2.1/lib/rack/content_length.rb:13:in `call'
 /var/lib/gems/1.8/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in `service'
 /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
 /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
 /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
 /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
 /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
 /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
 /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
 /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
 /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
 /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
 /var/lib/gems/1.8/gems/rack-1.2.1/lib/rack/handler/webrick.rb:13:in `run'
 /var/lib/gems/1.8/gems/sinatra-1.2.2/lib/sinatra/base.rb:1245:in `run!'
 /var/lib/gems/1.8/gems/mongo3-0.1.3/bin/mongo3:45:in `run!'
 /var/lib/gems/1.8/gems/main-4.4.0/lib/main/program/class_methods.rb:155:in `run'
 /var/lib/gems/1.8/gems/main-4.4.0/lib/main/program/class_methods.rb:144:in `catch'
 /var/lib/gems/1.8/gems/main-4.4.0/lib/main/program/class_methods.rb:144:in `run'
 /var/lib/gems/1.8/gems/main-4.4.0/lib/main/factories.rb:18:in `run'
 /var/lib/gems/1.8/gems/main-4.4.0/lib/main/factories.rb:25:in `Main'
 /var/lib/gems/1.8/gems/mongo3-0.1.3/bin/mongo3:7
 /var/lib/gems/1.8/bin/mongo3:19:in `load'
 /var/lib/gems/1.8/bin/mongo3:19

How to configure the "host":"port" parameter in the first line of these error messages.

Deploy on the cloud ?

Hi, is there a way to deploy Mongo3 on Heroku ?
... on other clouds ?

Thanks
Luca G. Soave

unable to find server

I get this error while accessing /collections/id:

#<Mongo::OperationFailure: unauthorized>
NoMethodError - private method `split' called for nil:NilClass:
 /usr/bin/mongo3:19:in `load'
 /usr/bin/mongo3:19#<Rack::Session::Mongo:0x2b02c67519a0> is unable to find server.

authentication not working

Hi,

I have install mongo3 and created the landscape.yml file.
Content looks like this.

test:
host: mongo1.company.com
port: 27017
username: "user"
password: "pass"

When I start it with "mongo3 --environment=test" that there is nothing running on localhost:27017.
Even if I rename the file it doesn't yell about it. Looks like it's not reading the file at all.

If I start it with "mongo3 --pool "mongo://mongo1.company.com:27017/db1/collection1" --environment=test" I get always the following error.
unauthorized db:db1 lock type: -1 client:10.10.1.10

The creds work when I connect with the command line tool to the server.
Am I doing something wrong?

Marco

Ruby 1.9 case Statements

It looks like mongo3 runs perfectly under ruby 1.9, but won't parse out-of-the-box. A few case statements in the collection, database, explore, and paths helpers are using the deprecated colon syntax, as in:

case( value.to_i )
  when Mongo::ASCENDING  : "asc"
  when Mongo::DESCENDING : "desc"
  else                     "n/a" 
end

In 1.9, the colon has been eliminated, but the then keyword still works:

case( value.to_i )
  when Mongo::ASCENDING  then "asc"
  when Mongo::DESCENDING then "desc"
  else                     "n/a"
end

I would fork or submit a patch, but I'm brand new to git and github and will need some time to learn how to use them. Thanks for the awesome work!

Can not start mongo3

Running Ubuntu 12.10 server

When I start, I get this:

/var/lib/gems/1.9.1/gems/mongo3-0.1.5/bin/mongo3:18: warning: class variable access from toplevel
/var/lib/gems/1.9.1/gems/mongo3-0.1.5/bin/mongo3:24: warning: class variable access from toplevel
----------------------------------------------------------------------------------------------------
Initializing mongo3 -- Version 0.1.5
----------------------------------------------------------------------------------------------------


>>> Waiting for Franky to warm up...


F, [2013-04-16T06:24:02.150194 #782] FATAL -- : undefined method `helpers' for CollectionHelper:Module (NoMethodError)
/var/lib/gems/1.9.1/gems/mongo3-0.1.5/lib/helpers/collection_helper.rb:15:in `<module:CollectionHelper>'
/var/lib/gems/1.9.1/gems/mongo3-0.1.5/lib/helpers/collection_helper.rb:14:in `<top (required)>'
/var/lib/gems/1.9.1/gems/mongo3-0.1.5/lib/mongo3.rb:49:in `load'
/var/lib/gems/1.9.1/gems/mongo3-0.1.5/lib/mongo3.rb:49:in `block in load_all_libs_relative_to'
/var/lib/gems/1.9.1/gems/mongo3-0.1.5/lib/mongo3.rb:49:in `each'
/var/lib/gems/1.9.1/gems/mongo3-0.1.5/lib/mongo3.rb:49:in `load_all_libs_relative_to'
/var/lib/gems/1.9.1/gems/mongo3-0.1.5/lib/app.rb:21:in `block in <top (required)>'
/var/lib/gems/1.9.1/gems/sinatra-1.4.2/lib/sinatra/base.rb:1546:in `configure'
/var/lib/gems/1.9.1/gems/sinatra-1.4.2/lib/sinatra/base.rb:1915:in `block (2 levels) in delegate'
/var/lib/gems/1.9.1/gems/mongo3-0.1.5/lib/app.rb:20:in `<top (required)>'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/var/lib/gems/1.9.1/gems/mongo3-0.1.5/bin/mongo3:44:in `run'
/var/lib/gems/1.9.1/gems/main-5.2.0/lib/main/program/class_methods.rb:155:in `block in run'
/var/lib/gems/1.9.1/gems/main-5.2.0/lib/main/program/class_methods.rb:144:in `catch'
/var/lib/gems/1.9.1/gems/main-5.2.0/lib/main/program/class_methods.rb:144:in `run'
/var/lib/gems/1.9.1/gems/main-5.2.0/lib/main/factories.rb:18:in `run'
/var/lib/gems/1.9.1/gems/main-5.2.0/lib/main/factories.rb:25:in `Main'
/var/lib/gems/1.9.1/gems/mongo3-0.1.5/bin/mongo3:7:in `<top (required)>'
/usr/local/bin/mongo3:23:in `load'
/usr/local/bin/mongo3:23:in `<main>'

No data when clicking zones

I can't get any information to display. I see a list of zones with a single zone, "console", as I should. However, when clicking the zone, I get an empty box with no data. Here's what I see in the logs:

[2013-09-07 10:23:03] ERROR bad URI `/explore/info/home|console/home|console'.
localhost - - [07/Sep/2013:10:23:03 UTC] "GET /explore/info/home|console/home|console HTTP/1.1" 400 310
http://domain/ -> /explore/info/home|console/home|console

Here's my landscape.yml file:

console:
  host: localhost
  port: 27017

Authentication is disabled, and I have no trouble connecting to the database manually. I am proxying through nginx, if that makes a difference.

ruby version error / readme incorrect

The readme says "At this time mongo3 only is supported on ruby 1.8 and sinatra 0.9.4" but installing mongo3 onto ruby1.8 causes the error "mongo3 requires Ruby version >= 1.9.2." ... the readme should be updated (assuming this is what is wrong)

mongo3 doesn't work for me

I'm running and receiving only !! Unexpected error while processing request: Invalid server description messages in console on every request.

Environment: Ubuntu Natty, mongodb from repository, ruby 1.8.7 installed by rvm 1.6.5.

$ mongo3 -p mongo://127.0.0.1:27017/local #starting it
----------------------------------------------------------------------------------------------------
Initializing mongo3 -- Version 0.1.3
----------------------------------------------------------------------------------------------------


>>> Waiting for Franky to warm up...


== Sinatra/1.2.6 has taken the stage on 6663 for production with backup from Thin
>> Thin web server (v1.2.11 codename Bat-Shit Crazy)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:6663, CTRL+C to stop


>>> Opening console...



(firefox-bin:18940): LIBDBUSMENU-GTK-CRITICAL **: dbusmenu_menuitem_property_set_shortcut: assertion `gtk_accelerator_valid(key, modifier)' failed
!! Unexpected error while processing request: Invalid server description
!! Unexpected error while processing request: Invalid server description
!! Unexpected error while processing request: Invalid server description
^C>> Stopping ...

== Sinatra has ended his set (crowd applauds)

Cannot get mongo3 running

Hello, trying to get mongo3 running on a server (is this supported, or should you run it on your local workstation only?). Anyway, when I browse to the app, I get:

RuntimeError - Unable to grok yaml landscape file. syntax error on line 1, col 6: ` host: int-mongodb-pch.staging.boost.pch.com':

Here is my landscape.yml file (I took out all the real hostnames, usernames, and password).

boost_staging:
host: int-mongodb-pch.staging.boost.pch.com
user: aaaaaaaa
password: bbbbbbbbbb

boost_production:
host: int-mongodb-pch.boost.pch.com
user: bbbbbbbb
password: aaaaaaaaa

What am I doing wrong? Any help would be greatly appreciated!

Unable to start mongo3: no such file to load -- mongo/util/ordered_hash

Installed mongo3 with rvm (v.0.1.2) and using Ruby 1.8.7 ... I get this when I try to start mongo3, even without a landscape.yml file:

% mongo3
F, [2010-05-31T10:29:08.886560 #14607] FATAL -- : no such file to load -- mongo/util/ordered_hash (LoadError)
/home/misaka/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/home/misaka/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/misaka/.rvm/gems/ruby-1.8.7-p249@mongo3/gems/mongo3-0.1.2/lib/mongo3/node.rb:2
/home/misaka/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/home/misaka/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/misaka/.rvm/gems/ruby-1.8.7-p249@mongo3/gems/mongo3-0.1.2/lib/mongo3.rb:41:in `require_all_libs_relative_to'
/home/misaka/.rvm/gems/ruby-1.8.7-p249@mongo3/gems/mongo3-0.1.2/lib/mongo3.rb:41:in `each'
/home/misaka/.rvm/gems/ruby-1.8.7-p249@mongo3/gems/mongo3-0.1.2/lib/mongo3.rb:41:in `require_all_libs_relative_to'
/home/misaka/.rvm/gems/ruby-1.8.7-p249@mongo3/gems/mongo3-0.1.2/lib/mongo3.rb:53
/home/misaka/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/home/misaka/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/misaka/.rvm/gems/ruby-1.8.7-p249@mongo3/gems/mongo3-0.1.2/bin/mongo3:20:in `run!'
/home/misaka/.rvm/gems/ruby-1.8.7-p249@mongo3/gems/main-4.2.0/lib/main/program/class_methods.rb:147:in `run'
/home/misaka/.rvm/gems/ruby-1.8.7-p249@mongo3/gems/main-4.2.0/lib/main/program/class_methods.rb:136:in `catch'
/home/misaka/.rvm/gems/ruby-1.8.7-p249@mongo3/gems/main-4.2.0/lib/main/program/class_methods.rb:136:in `run'
/home/misaka/.rvm/gems/ruby-1.8.7-p249@mongo3/gems/main-4.2.0/lib/main/factories.rb:18:in `run'
/home/misaka/.rvm/gems/ruby-1.8.7-p249@mongo3/gems/main-4.2.0/lib/main/factories.rb:25:in `Main'
/home/misaka/.rvm/gems/ruby-1.8.7-p249@mongo3/gems/mongo3-0.1.2/bin/mongo3:7
/home/misaka/.rvm/gems/ruby-1.8.7-p249@mongo3/bin/mongo3:19:in `load'
/home/misaka/.rvm/gems/ruby-1.8.7-p249@mongo3/bin/mongo3:19

Looking at the mongo gem that's installed (v1.0.1) I only see these files in lib/mongo/util:

lib/mongo/util/conversions.rb
lib/mongo/util/core_ext.rb
lib/mongo/util/server_version.rb
lib/mongo/util/support.rb

strange behavior with memcache

hy derailed!! great work!! could you help-me? Are there a painless way to store this sessions? without external requirements... is that, just some users that gonna use the mongo3... How do we can run mongo3 as a daemon on the server without use passenger?

root@tests:~# mongo3 --pool "memcache://localhost:11211/mongo3"

!! Unexpected error while processing request: illegal character in key "BAh7CDoJbmFtZSILdGVzdGV4OgdpZG86FE1vbmdvOjpPYmplY3RJRAY6CkBk\nYXRhWxFpUGl7aV9pJ2kBtmkfaXJpKGlkaQBpAGkGOgtsb2NhbGUiB3B0\n--86339a26fa81e7e75d855aedb2c4ca86aa4e681b"

How do we insert the credentials for the inner dbs with auth?

Thanks in advance!

BSON dependencies collide with mongodb

I realized there is a problem running mongo3 when mongodb has been installed as follows on Ubuntu 10.10.

sudo apt-get install mongodb

I did not manage to compile mongodb from the sources as stated here. Therefore, the installation of mongodb depends on bson 1.5.2. However, mongo3 seems to require bson >= 1.6.0. When I start the application the following error is printed to the console.

$ mongo3                            
/home/USER/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:774:in 
    `block in activate_dependencies': can't satisfy 'bson (>= 1.6.0)', 
    already activated 'bson-1.5.2' (Gem::LoadError)
[...]

Can you describe a way to encapsulate the bson gems for mongodb and mongo3?

Error running Mongo3

I ran 'sudo gem install mongo3' and then ran 'mongo3' and I get this error:

NoMethodError - private method public' called for Sinatra::Application:Class: /Library/Ruby/Gems/1.8/gems/mongo3-0.1.3/lib/helpers/main_helper.rb:21:inv_styles'
/Library/Ruby/Gems/1.8/gems/mongo3-0.1.3/lib/helpers/main_helper.rb:7:in stylesheets' /Library/Ruby/Gems/1.8/gems/mongo3-0.1.3/lib/helpers/main_helper.rb:6:ineach'
/Library/Ruby/Gems/1.8/gems/mongo3-0.1.3/lib/helpers/main_helper.rb:6:in stylesheets' /Library/Ruby/Gems/1.8/gems/mongo3-0.1.3/bin/../lib/views/layout.erb:8:inevaluate_source'
/Library/Ruby/Gems/1.8/gems/tilt-1.3.3/lib/tilt/template.rb:144:in cached_evaluate' /Library/Ruby/Gems/1.8/gems/tilt-1.3.3/lib/tilt/template.rb:127:inevaluate'
/Library/Ruby/Gems/1.8/gems/tilt-1.3.3/lib/tilt/template.rb:76:in render' /Library/Ruby/Gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:636:inrender'
/Library/Ruby/Gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:644:in render' /Library/Ruby/Gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:644:incatch'
/Library/Ruby/Gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:644:in render' /Library/Ruby/Gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:522:inerb'
/Library/Ruby/Gems/1.8/gems/mongo3-0.1.3/lib/controllers/explore.rb:29:in GET /' /Library/Ruby/Gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:incall'
/Library/Ruby/Gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in compile!' /Library/Ruby/Gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in[]'
/Library/Ruby/Gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in route!' /Library/Ruby/Gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:inroute_eval'
.
.
.

Internal Server Error - No such file or directory error

Okay, so I've followed all the directions as given in the readme file of the Github repo. But, when I run the gem, it shows the following error

Errno::ENOENT - No such file or directory - /home/dwarak/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/../lib/public/stylesheets/mongo3.css:

Here goes my RVM info

ruby-1.9.3-p547:

  system:
    uname:       "Linux dwarak-sdet 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux"
    system:      "mint/17/x86_64"
    bash:        "/bin/bash => GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)"
    zsh:         " => not installed"

  rvm:
    version:      "rvm 1.25.32 (master) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]"
    updated:      "1 hour 22 minutes 22 seconds ago"
    path:         "/home/dwarak/.rvm"

  ruby:
    interpreter:  "ruby"
    version:      "1.9.3p547"
    date:         "2014-05-14"
    platform:     "x86_64-linux"
    patchlevel:   "2014-05-14 revision 45962"
    full_version: "ruby 1.9.3p547 (2014-05-14 revision 45962) [x86_64-linux]"

  homes:
    gem:          "/home/dwarak/.rvm/gems/ruby-1.9.3-p547"
    ruby:         "/home/dwarak/.rvm/rubies/ruby-1.9.3-p547"

  binaries:
    ruby:         "/home/dwarak/.rvm/rubies/ruby-1.9.3-p547/bin/ruby"
    irb:          "/home/dwarak/.rvm/rubies/ruby-1.9.3-p547/bin/irb"
    gem:          "/home/dwarak/.rvm/rubies/ruby-1.9.3-p547/bin/gem"
    rake:         "/home/dwarak/.rvm/rubies/ruby-1.9.3-p547/bin/rake"

  environment:
    PATH:         "/home/dwarak/.rvm/gems/ruby-1.9.3-p547/bin:/home/dwarak/.rvm/gems/ruby-1.9.3-p547@global/bin:/home/dwarak/.rvm/rubies/ruby-1.9.3-p547/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/dwarak/.rvm/bin"
    GEM_HOME:     "/home/dwarak/.rvm/gems/ruby-1.9.3-p547"
    GEM_PATH:     "/home/dwarak/.rvm/gems/ruby-1.9.3-p547:/home/dwarak/.rvm/gems/ruby-1.9.3-p547@global"
    MY_RUBY_HOME: "/home/dwarak/.rvm/rubies/ruby-1.9.3-p547"
    IRBRC:        "/home/dwarak/.rvm/rubies/ruby-1.9.3-p547/.irbrc"
    RUBYOPT:      ""
    gemset:       ""

And my current gem list is: (Note that I had downgraded Sinatra's version to 1.3.3 to get the gem running - as already mentioned in a Stackoverflow thread)

*** LOCAL GEMS ***

agnostic-will_paginate (3.0.0)
arrayfields (4.9.2)
bigdecimal (1.1.0)
bson (1.11.1)
bson_ext (1.11.1)
bundler (1.7.3)
bundler-unload (1.0.2)
chronic (0.10.2)
executable-hooks (1.3.2)
fattr (2.2.2)
gem-wrappers (1.2.5)
io-console (0.3)
json (1.5.5)
main (6.0.0)
map (6.5.5)
memcache-client (1.8.5)
minitest (2.5.1)
mongo (1.11.1)
mongo3 (0.1.5)
mongo_ext (0.19.3)
mongo_rack (0.0.5)
rack (1.6.0.beta)
rack-protection (1.5.3)
rake (0.9.2.2)
rdoc (3.9.5)
rubygems-bundler (1.4.4)
rvm (1.11.3.9)
sinatra (1.3.3)
tilt (1.4.1)

Complete Terminal Error Log

$ mongo3
/home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/mongo3-0.1.5/bin/mongo3:18: warning: class variable access from toplevel
/home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/mongo3-0.1.5/bin/mongo3:24: warning: class variable access from toplevel
----------------------------------------------------------------------------------------------------
Initializing mongo3 -- Version 0.1.5
----------------------------------------------------------------------------------------------------


>>> Waiting for Franky to warm up...


[2014-09-30 18:35:32] INFO  WEBrick 1.3.1
[2014-09-30 18:35:32] INFO  ruby 1.9.3 (2014-05-14) [x86_64-linux]
== Sinatra/1.3.3 has taken the stage on 6663 for production with backup from WEBrick
[2014-09-30 18:35:32] INFO  WEBrick::HTTPServer#start: pid=13987 port=6663


>>> Opening console...


[13997:13997:0930/183536:ERROR:content_settings_pref_provider.cc(520)] Invalid pattern strings: chrome-extension://mfgdmpfihlmdekaclngibpjhdebndhdj/,
[13997:13997:0930/183536:ERROR:content_settings_pref_provider.cc(402)] Invalid pattern strings: chrome-extension://mfgdmpfihlmdekaclngibpjhdebndhdj/,
[13997:13997:0930/183536:ERROR:desktop_window_tree_host_x11.cc(1497)] Not implemented reached in void views::DesktopWindowTreeHostX11::MapWindow(ui::WindowShowState)
ATTENTION: default value of option force_s3tc_enable overridden by environment.
The :timeout option has been deprecated and will be removed in the 2.0 release. Use :pool_timeout instead.
Sinatra::Base#options is deprecated and will be removed, use #settings instead.
Errno::ENOENT - No such file or directory - /home/dwarak/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/../lib/public/stylesheets/mongo3.css:
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/mongo3-0.1.5/lib/helpers/main_helper.rb:21:in `mtime'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/mongo3-0.1.5/lib/helpers/main_helper.rb:21:in `v_styles'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/mongo3-0.1.5/lib/helpers/main_helper.rb:7:in `block in stylesheets'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/mongo3-0.1.5/lib/helpers/main_helper.rb:6:in `each'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/mongo3-0.1.5/lib/helpers/main_helper.rb:6:in `stylesheets'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/mongo3-0.1.5/lib/views/layout.erb:8:in `block in singletonclass'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/mongo3-0.1.5/lib/views/layout.erb:65531:in `instance_eval'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/mongo3-0.1.5/lib/views/layout.erb:65531:in `singletonclass'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/mongo3-0.1.5/lib/views/layout.erb:65529:in `__tilt_12642100'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/tilt-1.4.1/lib/tilt/template.rb:170:in `call'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/tilt-1.4.1/lib/tilt/template.rb:170:in `evaluate'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:686:in `render'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:694:in `block in render'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:694:in `catch'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:694:in `render'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:572:in `erb'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/mongo3-0.1.5/lib/controllers/explore.rb:29:in `block in <module:Explore>'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:1265:in `call'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:1265:in `block in compile!'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in `[]'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in `block (3 levels) in route!'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:851:in `route_eval'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:835:in `block (2 levels) in route!'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:872:in `block in process_route'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:870:in `catch'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:870:in `process_route'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:834:in `block in route!'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:833:in `each'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:833:in `route!'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:936:in `dispatch!'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:769:in `block in call!'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:921:in `block in invoke'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:921:in `catch'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:921:in `invoke'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:769:in `call!'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:755:in `call'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.6.0.beta/lib/rack/session/abstract/id.rb:225:in `context'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.6.0.beta/lib/rack/session/abstract/id.rb:220:in `call'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.6.0.beta/lib/rack/nulllogger.rb:9:in `call'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.6.0.beta/lib/rack/head.rb:13:in `call'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.6.0.beta/lib/rack/methodoverride.rb:22:in `call'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:99:in `call'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:1389:in `block in call'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:1471:in `synchronize'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/sinatra-1.3.3/lib/sinatra/base.rb:1389:in `call'
    /home/dwarak/.rvm/gems/ruby-1.9.3-p547/gems/rack-1.6.0.beta/lib/rack/handler/webrick.rb:89:in `service'
    /home/dwarak/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
    /home/dwarak/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
    /home/dwarak/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
localhost - - [30/Sep/2014:18:35:36 IST] "GET / HTTP/1.1" 500 30
- -> /
localhost - - [30/Sep/2014:18:35:36 IST] "GET /favicon.ico HTTP/1.1" 404 18
- -> /favicon.ico

Hope I have given enough information. @derailed, can you please tell me what might have caused the problem?

Entire app behaves wonky after 1.5 million rows in one collection.

I was just evaluating the use of mongo3 for a production, and one of the key concerns when choosing our mongodb admin interface is how well it handles big amounts of data. The pagination works flawlessly in mongo3, but once I inserted a couple of million of rows, it started behaving unpredictably:

  • The collection with the large number of documents registers as having the correct amount of documents in the database view, but in the collection view, none of them are found. Oddly enough and most importantly; this affects all collection views, even unrelated ones.
  • Two unrelated collections in the same db that previously worked started yielding 500s. All others work but do not show any results.

To reproduce, just run: for(x=1; x<10000000 ; x++) { db.test_collection.insert({'key': x}) }; in mongo.

I used gem install to get 0.1.5.

generic "Internal Server Error" message

http://localhost:6663/ opens and displays generic "Internal Server Error" message. Also, there is a issue with my landscape file, but even without it the result is the same. The output of mongo3 is below, but I cannot find any obvious indication to what is wrong.

sean@sean-HP-Pavilion-dv7-Notebook-PC:~$ mongo3
----------------------------------------------------------------------------------------------------
Initializing mongo3 -- Version 0.1.3
----------------------------------------------------------------------------------------------------


>>> Waiting for Franky to warm up...


:public is no longer used to avoid overloading Module#public, use :public_folder instead
    from /usr/lib/ruby/gems/1.8/gems/mongo3-0.1.3/bin/../lib/app.rb:10
[2011-11-22 18:19:43] INFO  WEBrick 1.3.1
[2011-11-22 18:19:43] INFO  ruby 1.8.7 (2011-06-30) [x86_64-linux]


>>> Opening console...


== Sinatra/1.3.1 has taken the stage on 6663 for production with backup from WEBrick
[2011-11-22 18:19:48] INFO  WEBrick::HTTPServer#start: pid=17064 port=6663
The :timeout option has been deprecated and will be removed in the 2.0 release. Use :pool_timeout instead.
Sinatra::Base#options is deprecated and will be removed, use #settings instead.
RuntimeError - Unable to grok yaml landscape file. syntax error on line 1, col 6: ` host: localhost':
    /usr/lib/ruby/gems/1.8/gems/mongo3-0.1.3/lib/mongo3/connection.rb:492:in `config'
    /usr/lib/ruby/gems/1.8/gems/mongo3-0.1.3/lib/mongo3/connection.rb:219:in `build_tree'
    /usr/lib/ruby/gems/1.8/gems/mongo3-0.1.3/lib/controllers/explore.rb:22:in `GET /'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1211:in `call'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1211:in `compile!'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `[]'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `route!'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:788:in `route_eval'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `route!'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:821:in `process_route'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in `catch'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in `process_route'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:771:in `route!'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in `each'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in `route!'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:886:in `dispatch!'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `call!'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `catch'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `call!'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:692:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:195:in `context'
    /usr/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:190:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/path_traversal.rb:16:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/json_csrf.rb:17:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/nulllogger.rb:9:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/head.rb:9:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/methodoverride.rb:24:in `call'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1334:in `call'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1403:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1334:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/handler/webrick.rb:59:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
    /usr/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/handler/webrick.rb:13:in `run'
    /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.1/lib/sinatra/base.rb:1295:in `run!'
    /usr/lib/ruby/gems/1.8/gems/mongo3-0.1.3/bin/mongo3:45:in `run!'
    /usr/lib/ruby/gems/1.8/gems/main-4.8.0/lib/main/program/class_methods.rb:155:in `run'
    /usr/lib/ruby/gems/1.8/gems/main-4.8.0/lib/main/program/class_methods.rb:144:in `catch'
    /usr/lib/ruby/gems/1.8/gems/main-4.8.0/lib/main/program/class_methods.rb:144:in `run'
    /usr/lib/ruby/gems/1.8/gems/main-4.8.0/lib/main/factories.rb:18:in `run'
    /usr/lib/ruby/gems/1.8/gems/main-4.8.0/lib/main/factories.rb:25:in `Main'
    /usr/lib/ruby/gems/1.8/gems/mongo3-0.1.3/bin/mongo3:7
    /usr/local/bin/mongo3:19:in `load'
    /usr/local/bin/mongo3:19
localhost - - [22/Nov/2011:18:19:48 CST] "GET / HTTP/1.1" 500 30
- -> /

ERROR: While generating documentation for mongo3-0.1.3

george@gregentov:~$ gem install mongo3
WARNING: RubyGems 1.2+ index not found for:

RubyGems will revert to legacy indexes degrading performance.
Updating metadata for 1 gems from http://rubygems.org/
.
complete
Updating metadata for 1 gems from http://rubygems.org/
.
complete
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /var/lib/gems/1.8 directory.
george@gregentov:~$ sudo gem install mongo3
Building native extensions. This could take a while...
Building native extensions. This could take a while...
Building native extensions. This could take a while...
Successfully installed bson-1.2.0
Successfully installed mongo-1.2.0
Successfully installed bson_ext-1.2.0
Successfully installed agnostic-will_paginate-3.0.0
Successfully installed memcache-client-1.8.5
Successfully installed rack-1.2.1
Successfully installed mongo_ext-0.19.3
Successfully installed mongo_rack-0.0.5
Successfully installed fattr-2.2.0
Successfully installed arrayfields-4.7.4
Successfully installed main-4.4.0
Successfully installed json-1.5.1
Successfully installed tilt-1.2.2
Successfully installed sinatra-1.1.2
Successfully installed mongo3-0.1.3
15 gems installed
Installing ri documentation for bson-1.2.0...
Installing ri documentation for mongo-1.2.0...
Installing ri documentation for bson_ext-1.2.0...

No definition for method_serialize

No definition for method_deserialize

No definition for method_max_bson_size

No definition for method_update_max_bson_size
Installing ri documentation for agnostic-will_paginate-3.0.0...
Installing ri documentation for memcache-client-1.8.5...
Installing ri documentation for rack-1.2.1...
Installing ri documentation for mongo_ext-0.19.3...

No definition for method_serialize

No definition for method_deserialize

No definition for fast_pack
Installing ri documentation for mongo_rack-0.0.5...
Installing ri documentation for fattr-2.2.0...
Installing ri documentation for arrayfields-4.7.4...
Installing ri documentation for main-4.4.0...
Installing ri documentation for json-1.5.1...
Installing ri documentation for tilt-1.2.2...
Installing ri documentation for sinatra-1.1.2...
Installing ri documentation for mongo3-0.1.3...
Installing RDoc documentation for bson-1.2.0...
Installing RDoc documentation for mongo-1.2.0...
Installing RDoc documentation for bson_ext-1.2.0...

No definition for method_serialize

No definition for method_deserialize

No definition for method_max_bson_size

No definition for method_update_max_bson_size
Installing RDoc documentation for agnostic-will_paginate-3.0.0...
Installing RDoc documentation for memcache-client-1.8.5...
Installing RDoc documentation for rack-1.2.1...
Installing RDoc documentation for mongo_ext-0.19.3...

No definition for method_serialize

No definition for method_deserialize

No definition for fast_pack
Installing RDoc documentation for mongo_rack-0.0.5...
Installing RDoc documentation for fattr-2.2.0...
Installing RDoc documentation for arrayfields-4.7.4...
Installing RDoc documentation for main-4.4.0...
Installing RDoc documentation for json-1.5.1...
Installing RDoc documentation for tilt-1.2.2...
Installing RDoc documentation for sinatra-1.1.2...
Installing RDoc documentation for mongo3-0.1.3...
ERROR: While generating documentation for mongo3-0.1.3
... MESSAGE: Unhandled special: Special: type=17, text=""
... RDOC args: --op /var/lib/gems/1.8/doc/mongo3-0.1.3/rdoc --main README.rdoc --quiet lib lib/views/collections/_fields_form.erb lib/views/collections/_index_form.erb lib/views/collections/_index_rows.erb lib/views/collections/_indexes.erb lib/views/collections/_nodes.erb lib/views/collections/_results.erb lib/views/collections/_rows_table.erb lib/views/collections/_rows_tree.erb lib/views/collections/_search_form.erb lib/views/collections/all_done.js.erb lib/views/collections/list.erb lib/views/collections/results.js.erb lib/views/collections/update.js.erb lib/views/collections/update_indexes.js.erb lib/views/databases/_results.erb lib/views/databases/list.erb lib/views/databases/results.js.erb lib/views/explore/_crumbs.erb lib/views/explore/_dump_array.erb lib/views/explore/_dump_hash.erb lib/views/explore/_info.erb lib/views/explore/_node_info.erb lib/views/explore/center_js.erb lib/views/explore/explore.erb lib/views/explore/load_collection.js.erb lib/views/explore/load_database.js.erb lib/views/explore/more_data_js.erb lib/views/explore/update.js.erb lib/views/explore/update_crumb_js.erb lib/views/landscape.erb lib/views/layout.erb lib/views/shared/_flash.erb lib/views/shared/flash.js.erb lib/views/users/_new.erb lib/views/users/_results.erb lib/views/users/list.erb lib/views/users/results.js.erb --title mongo3-0.1.3 Documentation
(continuing with the rest of the installation)

george@gregentov:$ mongo
mongo mongod mongodump mongoexport mongofiles mongoimport mongorestore mongos mongostat
george@gregentov:
$ mongo3
Команда 'mongo3' не найдена, возможно вы имели в виду:
Команда 'mongo' из пакета 'mongodb-clients' (universe)
Команда 'mongod' из пакета 'mongodb-server' (universe)
Команда 'mongos' из пакета 'mongodb-server' (universe)
mongo3: команда не найдена
error localization: there is no mongo3 package, maybe you want mongo/mongod/mongos

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.