last day (16 days later) » 

7:58 PM
hi
 
Hi!
thanks for the chat
 
so, what you have executed from your Ubuntu terminal?
np
if you dont want post credentials, just replace them with *
 
no its ok I will change them later
 
col
cool
 
so this is my last command
 
8:00 PM
post here mongodb+srv://username:password@vessel-tracker-cluster-x2lpw.mongodb.net/scows
with credentials
i will check for you
I have windows
 
mongoexport --uri="mongodb+srv://eraggi:Ballando010@vessel-tracker-cluster-x2lpw.mongodb.net/test" --collection users --out /tmp/test.json
 
but in terms of export, it's the same
you are pointing test database
while your database is scows
 
yes I was trying another database
that is a valid entry too
 
I'm trying
 
ok, you should find one entry
 
8:02 PM
2020-02-13T21:02:09.347+0100 connected to: mongodb+srv://[**REDACTED**]@vessel-tracker-cluster-x2lpw.mongodb.net/test
2020-02-13T21:02:09.804+0100 exported 1 record
 
so that is connected?
 
{"_id":{"$oid":"5e41ac27fc66b15d201c79ae"},"name":"Emanuele","email":"eraggi@jaycashman.com","password":"$2a$10$TiBrJcwonCtf8dV7diDqheVcFm03Xm0jscxcoQpK1ci/vw8jvEivi","date":{"$date":"2020-02-10T19:16:55.813Z"},"__v":0}
yes
 
correct that is me
 
what is your mongoexport version?
 
I don't understand why is not connecting on mine
 
8:03 PM
mongoexport --version
 
I did the same exact procedure
 
mongoexport version: r4.2.2
git version: a0bbbff6ada159e19298d37946ac8dc4b497eadf
Go version: go1.12.13
os: windows
arch: amd64
compiler: gc
 
-- mongoexport version: built-without-version-string
git version: built-without-git-spec
Go version: go1.10.1
os: linux
arch: amd64
compiler: gc
OpenSSL version: OpenSSL 1.1.0g 2 Nov 2017
 
hmmm strange
you have downloaded from official site?
or compilled ?
 
I don't remember it was a while ago, but I needed to clean up some data and for the first time I had to understand how to export (basically to save) all the data before deleting
 
8:06 PM
can you login into your mongo?
and run
db.version()
 
mongodb atlas
one sec
 
wait: where do you execute mongoexport? from your local machine or remote server?
 
from my machine
ctrl+alt+t open termina
and execute command
mongoexport --uri=etc etc etc
 
can you run please:
mongo
db.version()
seems you have mongodb 3.4 or 3.6
 
this is from command mongo
emanuele@system76-pc:~$ mongo
MongoDB shell version v3.6.3
connecting to: mongodb://127.0.0.1:27017
2020-02-13T15:10:13.464-0500 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
2020-02-13T15:10:13.465-0500 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:251:13
@(connect):1:6
exception: connect failed
 
8:12 PM
hmm
 
wait...that is failing the connection?
 
because mongo tries to connecto to your local db
 
why is that? I didn't even notice
 
exporting by mongodb+srv since version 3.6
so something strange
 
Ok I am building the story in my head.....a colleague of mine sent me an invitation to some projects in mongodb a while ago, those invitation arrived via email
I clicked, accepted and created an account using MongoDB Atlas
so now that I think about the story I didnt compile anything from source
and I am not sure I had to install anything
 
8:15 PM
no, the link is fine
 
I installed for sure MongoDB Compass to handle the data. I did that this morning
 
i could export correctly
post please output
 
Yes I saw from the message you posted
 
mongoexport --uri="mongodb+srv://eraggi:Ballando010@vessel-tracker-cluster-x2lpw.mongodb.net/test" --collection users --out /tmp/test.json
 
sorry what should I do?
 
8:17 PM
run it and post what mongodb says
 
is this what you wanted me to post?
 
yes
mongodb connects to localhost
strange
can you pos pls
mongoexport --help
maybe it's silly thing
 
let's see
emanuele@system76-pc:~$ mongoexport --help
Usage:
mongoexport <options>

Export data from MongoDB in CSV or JSON format.

See http://docs.mongodb.org/manual/reference/program/mongoexport/ for more information.

general options:
--help print usage
--version print the tool version and exit

verbosity options:
-v, --verbose=<level> more detailed log output (include multiple times for more verbosity, e.g. -vvvvv, or specify a numeric value, e.g. --verbose=N)
sorry it is too messy, let me post a print screen
Ok I posted the complete output
 
hmmm jeez, don't see anything strange
:)
 
Ok I was in the meantime checking the story of the command I gave couple of hours ago, could this be helpful
emanuele@system76-pc:~$ mongoexport --host=127.0.0.1 --db scows --collection tasks --out tasts.json
I was trying many different combinations
maybe that is why is trying to connect to localhost?
 
8:25 PM
seems mongodb ignores --uri parameter
a bit tedious
but try to type letter by letter all commands please
maybe some character is converted into illegible and mongodb ignores it
 
Ok I am doing it now, one sec
Nothing, still connecting to localhost
this I did before writing to StackOverflow
emanuele@system76-pc:~$ mongoexport --host=127.0.0.1 --db scows --collection tasks --out tasts.json
is it useful?
 
nope
 
ok
 
mongodb atlas is cluster
while --host is for standalone
 
ok
 
8:34 PM
can you install mongodb 4.2 ?
or you don't want?
 
Let me try that
from source or normal installation
?
 
download from mongodb
 
ok
 
ok thanks
4.2.3 is the last release
 
8:38 PM
ok
 
For package is it ok server
or something else?
 
ok so not from the mongodb.com/download-center/…
 
ok
 
8:45 PM
btw: i can export for you scows collection and share in google drive :)
take your time, i go to have some dinner, will respond later
:-)
 
installation in progress... :)
 
9:14 PM
installed but I have a new error now:
emanuele@system76-pc:~/Downloads$ mongoexport --uri="mongodb+srv://eraggi:Ballando010@vessel-tracker-cluster-x2lpw.mongodb.net/test" --collection users --out /tmp/test.json
2020-02-13T16:08:35.741-0500 error parsing command line options: error parsing uri (mongodb+srv://eraggi:Ballando010@vessel-tracker-cluster-x2lpw.mongodb.net/test): lookup vessel-tracker-cluster-x2lpw.mongodb.net on 127.0.0.53:53: cannot unmarshal DNS message
 
almost...
 
....cannot unmarshal DNS message.....I don't know what that is
 
it means your local machine doesn't know what us mongodb atlas IP
 
oooo....so...almost...
 
2
Q: Can't connect to Mongo Cloud mongodb Database in Golang on Ubuntu

Tobi696I have this Go Code to connect to my Mongo Cloud Database: func connectToDataBase() { ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second) defer cancel() client, err := mongo.Connect(ctx, options.Client().ApplyURI(dbURL)) if err != nil { log.Fatal("Err...

 
9:18 PM
I see...but that file is a read only file on my machine
 
sudo
sudo vim /etc/resolv.conf
 
that's right...one sec
 
w8
25
Q: What overwrites /etc/resolv.conf on every boot?

MinixI was given the files for a mini linux, that boots directly into firefox. It works for all it should be doing, only that I do not get an internet connection. We have 3 DNS servers in the network, which all work. I can ping them, too. But when trying to ping google.de or wget google.de I get a ba...

works?
 
I am reading this last post you sent and it is not a good idea to manually change resolv.conf
 
make backup for resolv.conf
sudo cp /etc/esolv.conf /etc/esolv.conf.bck
 
9:27 PM
Yes I was thinking to do a back un just in case
Ok I just made a back up copy and will change with the public address now
 
w8
 
ok changed the address wiht 1.1.1.1
 
It seems from that last post I should not change it manually but using that procedure
mmmmm
 
9:36 PM
You think that should I give it a try to make sure it works and than follow the other procedure?
 
try to clear your DNS cache
 
Ok I tried and the good news is that the db is connected
and 1 record was exported
which is right
 
Horahhhh!!!
gogogoogog
export now huge collection
 
jeez
w8 a sec. can u install robo3T?
let's see if you have connection to MongoDB atlas
 
9:40 PM
the weird thing is that it still seems to ceonnect to a localhost
 
ye :(
please install robo3t
 
but the record is correct
so I am sure the connection withAtlas is there
otherwise I would not be able to see the file
what is robo3t?
 
GUI to connect mongodb
 
ooooo cool...ok one sec
ok downloading .... :)
one second
 
take your time
 
9:52 PM
ok this is what I have so far downloaded and extracted
 
37
Q: How to install Robomongo from tar.gz file as a program in Ubuntu 15.10

Praveen GeorgeNowadays robomongo developers releasing the new versions of robomongo as tar.gz not in .deb packages that was easy for double click installations. But that option is no longer available. So how to install it as a program in ubuntu. I have tried extracting the package and install but failed. admi...

 
interesting...look:
emanuele@system76-pc:~/Downloads/robo3t$ ./studio-3t-linux-x64.sh
bash: ./studio-3t-linux-x64.sh: Permission denied
 
sudo
sudo chmod u+x studio-3t-linux-x64.sh
sudo chmod u+x ./studio-3t-linux-x64.sh
 
perfect I am following the setup wizard
one sec
ok ready
 
File - connect
 
10:00 PM
 
and follow my picture
now
connect
 
from uri
 
which will be:
--uri="mongodb+srv://eraggi:Ballando010@vessel-tracker-cluster-x2lpw.mongodb.net/test" --collection users --out /tmp/test.json
 
mongodb+srv://eraggi:Ballando010@vessel-tracker-cluster-x2lpw.mongodb.net/test
 
10:03 PM
ok now I will test the connection
?
 
y
 
that means in shell you have some DNS issue
 
Because I changed the address in the resolv.config?
 
post your resolv.config
let me see
 
10:06 PM
this is the changed version:
 
one sec
because I think I am connected despite that warning n/a
look:
I don't see my name on the table though
 
click right button users
you are watching users index
 
right click on the tree on the left opens a big menu
 
view documents?
 
10:16 PM
 
nooo
on users
right click on users :)
oh
w8
 
oooo sorry ok right click on users on the tree menu on the left
 
what do you think?
I don't know why I can't see your same format though
 
You have installed 3t studio
it's trial
install robot 3t
it's free
 
10:26 PM
I am sorry I just noticed that there was the option for download
one sec
 
from srv
test
save
 
i see
you need to open new ticket in stackoverflow with tag ubuntu-18.04
I0m not expert ubuntu :(
can't help..
make sure once you get DNS working, everything will work fine
*be
 
I guess I will try to reset to original ip and try again?
 
yeah
try it
 
10:38 PM
ok one sec
 
and / or open new ticket
need to go...
nice to meet you
good luck!!!
 
ok thank you very much for your time and help! Will try again and will let you know how it goes
nice to meet you too
 
11:35 PM
Ok the good news is that via command line I was able to save ALL the 2GB of the scows!!!! :) :)
However it works if on the resolv.config I change into a public address 1.1.1.1 but still connects to the localhost instead to the number of the database
Do you advice to write to SO or opening a ticket to MongoDB?
Anyway, victory!!!! I can clean all the data from MongoDB now that I have the backup!!!
If you wold like to connect with me via linkedin here is my address:
Thanks again for your help
 

  last day (16 days later) »