Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Just had the same issue. MongoDB <strong>shell version: 1.8.2</strong> on <strong>Ubuntu</strong> (EC2)</p> <blockquote> <p>> db.tweets.find();</p> <p>error:non ascii character detected</p> </blockquote> <p>Consensus is that upgrading to the latest version of MongoDB will solve the issue.</p> <p>Checked which version of MongoDB I was running by issuing the command:</p> <blockquote> <p>$ mongod --version</p> <p>db version <strong>v1.8.2</strong>, pdfile version 4.5 - Wed Oct 24 15:43:13 git version: nogitversion</p> </blockquote> <p><em>Confirm</em> if mongo is currently running:</p> <blockquote> <p>$ ps -deaf | grep <strong>mongod</strong></p> <p><strong>mongodb 15408</strong> 1 0 Jun06 ? 13:50:00 /usr/bin/mongod --config /etc/mongodb.conf</p> </blockquote> <p>To <a href="http://www.mongodb.org/display/DOCS/Starting+and+Stopping+Mongo" rel="nofollow">Shutdown MongoDB</a></p> <blockquote> <p>$ ./mongo</p> <p>> use admin</p> <p>> db.shutdownServer()</p> <p>server should be down...</p> </blockquote> <p>Then upgraded following these instructions: <a href="http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/" rel="nofollow">How to Install MongoDB on Ubuntu</a></p> <p>Add the 10 Gen (creators of MongoDB) public key to apt-get so you trust their package:</p> <blockquote> <p>$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10</p> <p>$ echo "deb <a href="http://downloads-distro.mongodb.org/repo/ubuntu-upstart" rel="nofollow">http://downloads-distro.mongodb.org/repo/ubuntu-upstart</a> dist 10gen" >> /etc/apt/sources.list.d/10gen.list</p> </blockquote> <p>Update your packages: </p> <blockquote> <p>$ sudo apt-get update</p> </blockquote> <p>install 10gen's MongoDB Debian/Ubuntu package:</p> <blockquote> <p>$ sudo apt-get install mongodb-10gen</p> <p>The following packages will be <strong>REMOVED</strong>: <strong>mongodb</strong></p> <p>The following <strong>NEW</strong> packages will be installed: <strong>mongodb-10gen</strong></p> </blockquote> <p><em>If you get an error</em>, try:</p> <blockquote> <p>$ apt-get autoremove</p> </blockquote> <p>Confirm that the <strong>mongodb</strong> user/group has permission to write to the data directory:</p> <blockquote> <p>$ sudo chown -R mongodb:mongodb /var/lib/mongodb/.</p> </blockquote> <p>Restart MongoDB with the command:</p> <blockquote> <p>$ mongod --fork --dbpath /var/lib/mongodb/ --smallfiles --logpath /var/log/mongodb.log --logappend</p> </blockquote> <p>Once you have the new version of MongoDB the "non ascii" character issue should be gone. :-)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload