PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 6th of August, 2017

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:44:23] <docmur> Hey guys, I'm trying to get a little PHP script to read from my MongoDB and print everything to the console. I can go into the mongo client on the command line and with db.users; db.collection.find(), print the data. My mongo config is listening on 27017 localhost 127.0.0.1, I'm using the Mongo driver from Composer MongoDB 1.1, but this script doesn't print anything :S, can anyone see a problem:
[00:44:29] <docmur> https://pastebin.com/1buUm6N0
[03:33:03] <MacWinner> Is the cursor timeout only set by a server side config? or can a client somehow set the default timeout for specific queries?
[09:37:25] <qswz> I saved a 2.6 db with mongodump --gzip --archive=gravit.io -h ...
[09:38:15] <qswz> now I tried restoring it locally on 3.2 with: mongorestore --gzip --archive=gravit.io
[09:38:19] <qswz> but it fails
[09:38:37] <qswz> silently fails, the worst of fails
[09:40:22] <Derick> maybe the command line options changed...
[09:48:03] <qswz> https://docs.mongodb.com/v3.2/reference/program/mongorestore/ I'm checking this
[09:48:59] <qswz> mongorestore --gzip --archive=test.20150715.gz --db test
[09:49:05] <qswz> is their example
[09:54:16] <Derick> you missed the --db param in your call
[09:55:26] <qswz> I added it --db gravit
[09:55:39] <qswz> then I do mongo and use gravit
[09:55:43] <qswz> but nothing
[09:55:47] <Derick> can you show me the full call and output in a pastebin ?
[09:56:03] <qswz> ok
[09:58:09] <qswz> http://dpaste.com/3E8N7MJ
[09:59:04] <qswz> I should probably not run mongod as sudo
[09:59:12] <qswz> let me fix that first
[09:59:15] <Derick> can you do an "ls -l gravit.io.20170802.gz" ?
[10:00:02] <qswz> ls -l gravit.io.20170802.gz
[10:00:02] <qswz> -rw-rw-r-- 1 caub caub 478667514 août 2 01:52 gravit.io.20170802.gz
[10:00:10] <Derick> ok, so it's not empty :-)
[10:01:10] <qswz> about 500M compressed yea
[10:01:18] <Derick> what about "file gravit.io.20170802.gz"
[10:01:26] <Derick> (warning: I do have to leave in ~5 mins)
[10:01:39] <qswz> gravit.io.20170802.gz: gzip compressed data
[10:01:54] <qswz> it' fine, nothing urgent thx
[10:02:19] <qswz> (wanted to make sure this dump is valid)
[10:02:28] <qswz> (as it's the first time I do that)
[10:05:07] <Derick> hmm, I'm baffled - I can't see why it shouldn't work. Is the name of the database for dump and restore the same?
[10:05:33] <Derick> i'd try the restore with --dryRun -v9
[10:05:37] <Derick> and see what it says
[10:05:37] <qswz> I ran mongod without sudo now, still same
[10:05:46] <qswz> the mongorestore last 20s, and do nothing
[10:05:53] <qswz> ah ok doing it
[10:05:57] <Derick> yeah, that's not the problem... it's like mongorestore doesn't see anything to restore or something
[10:06:03] <qswz> ok
[10:06:10] <qswz> ah good point
[10:07:14] <qswz> no the dumped db had a weird name, good point I'll try
[10:09:09] <qswz> good it does more
[10:09:19] <Derick> it probably tells you what it does
[10:09:20] <qswz> thanks
[10:09:29] <qswz> yes logs everything
[10:09:45] <qswz> it took one hour to dump, sO I expetc something similar
[10:09:53] <Derick> I got to go now though, breakfast time.
[10:09:59] <Derick> yes, that sounds about right
[10:10:01] <qswz> thanks a lot
[10:10:12] <Derick> I'll be back later
[10:27:24] <Dro_> hello, how to sort collection with date field in this format Day-Month-Year ?
[12:11:24] <Derick> Dro_: you can't just yet. Need to wait for 3.6
[12:11:40] <Derick> but it won't be an indexed sort...
[12:14:44] <Dro_> Derick, ok thanks anyway :/ maybe i'll have to find a way to manage this in node.js
[15:46:53] <anom7> hello
[15:48:02] <anom7> anyone knows if the next version of MongoDB Spark Connector will support Spark Structured Streaming?
[15:50:04] <Derick> hmm, probably not the right place to ask for that
[15:50:04] <Derick> trying to figure out how to find out
[15:51:26] <Derick> anom7: is that known under other names?
[15:53:06] <anom7> yeah, this: https://spark.apache.org/docs/latest/structured-streaming-programming-guide.html
[15:53:31] <anom7> currently, MongoDB Spark Connector support spark streaming: https://spark.apache.org/docs/latest/streaming-programming-guide.html
[15:53:38] <Derick> yeah, I found that
[15:54:06] <anom7> structured streaming was beta since 11 July that spark 2.2.0 was out
[15:54:16] <Derick> anom7: I would file a ticket at https://jira.mongodb.org/projects/SPARK
[15:54:24] <Derick> asking for support for it
[15:55:16] <anom7> ok, I will do it
[15:55:22] <anom7> thanks very much Derick! :)
[15:58:09] <Derick> np