host: mongodb+srv://cluster0-b05rv.mongodb.net/test
port: 27017
name: test
username: admin
password: <<PASSWORD>>
logdir: null
ssl: false
strm_lvl: INFO
user_indices: []
wf_user_indices: []
ValueError: FireWorks was not able to connect to MongoDB. Is the server running? The database file specified was /n/home02/zzhu/atomate/config/my_launchpad.yaml.
It only connects if I change the fire /fireworks/core/.launchpad.py around line 149 to the following:
# get connection
#self.connection = MongoClient(host, port, ssl=self.ssl,
# username=username,password=password,
# ssl_ca_certs=self.ssl_ca_certs, ssl_certfile=self.ssl_certfile,
# ssl_keyfile=self.ssl_keyfile, ssl_pem_passphrase=self.ssl_pem_passphrase,
# socketTimeoutMS=MONGO_SOCKET_TIMEOUT_MS, connect=False)
#self.db = self.connection[name]
#if username:
# self.db.authenticate(username, password, source=self.authsource)
self.connection = MongoClient(host, port, username=username, password=password)
self.db = self.connection[name]
pymongo.errors.ServerSelectionTimeoutError: connection closed,connection closed,connection closed
____________________________________
Ziyan (Zoe) Zhu
Ph.D. Candidate
Department of Physics, Harvard University
Hi Zoe,Based on talking to some colleagues, it seems the db.authenticate() function in pymongo is deprecated. In FWS v1.8.5 (just released now) we changed the authentication code. Let us know if it works for you.
--
You received this message because you are subscribed to the Google Groups "fireworkflows" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fireworkflow...@googlegroups.com.
To post to this group, send email to firewo...@googlegroups.com.
Visit this group at https://groups.google.com/group/fireworkflows.
For more options, visit https://groups.google.com/d/optout.
--Best,
Anubhav
Traceback (most recent call last):
File "/n/home02/zzhu/.conda/envs/atomate_env/bin/lpad", line 11, in <module>
load_entry_point('FireWorks==1.8.5', 'console_scripts', 'lpad')()
File "/n/home02/zzhu/.conda/envs/atomate_env/lib/python3.6/site-packages/fireworks/scripts/lpad_run.py", line 1147, in lpad
args.func(args)
File "/n/home02/zzhu/.conda/envs/atomate_env/lib/python3.6/site-packages/fireworks/scripts/lpad_run.py", line 148, in reset
lp.workflows.count()))[0].upper() == 'Y':
File "/n/home02/zzhu/.conda/envs/atomate_env/lib/python3.6/site-packages/pymongo/collection.py", line 1766, in count
return self._count(cmd, collation, session)
File "/n/home02/zzhu/.conda/envs/atomate_env/lib/python3.6/site-packages/pymongo/collection.py", line 1563, in _count
with self._socket_for_reads(session) as (sock_info, slave_ok):
File "/n/home02/zzhu/.conda/envs/atomate_env/lib/python3.6/contextlib.py", line 81, in __enter__
return next(self.gen)
File "/n/home02/zzhu/.conda/envs/atomate_env/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1099, in _socket_for_reads
server = topology.select_server(read_preference)
File "/n/home02/zzhu/.conda/envs/atomate_env/lib/python3.6/site-packages/pymongo/topology.py", line 224, in select_server
address))
File "/n/home02/zzhu/.conda/envs/atomate_env/lib/python3.6/site-packages/pymongo/topology.py", line 183, in select_servers
selector, server_timeout, address)
File "/n/home02/zzhu/.conda/envs/atomate_env/lib/python3.6/site-packages/pymongo/topology.py", line 199, in _select_servers_loop
self._error_message(selector))
pymongo.errors.ServerSelectionTimeoutError: connection closed,connection closed,connection closed
Thanks,
Zoe
____________________________________
Ziyan (Zoe) Zhu
Ph.D. Candidate
Department of Physics, Harvard University
____________________________________
Ziyan (Zoe) Zhu
Ph.D. Candidate
Department of Physics, Harvard University
--
You received this message because you are subscribed to the Google Groups "fireworkflows" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fireworkflow...@googlegroups.com.
To post to this group, send email to firewo...@googlegroups.com.
Visit this group at https://groups.google.com/group/fireworkflows.
For more options, visit https://groups.google.com/d/optout.
Traceback (most recent call last):
File "/n/home02/zzhu/.conda/envs/atomate_env/bin/lpad", line 11, in <module>
load_entry_point('FireWorks==1.8.6', 'console_scripts', 'lpad')()
File "/n/home02/zzhu/.conda/envs/atomate_env/lib/python3.6/site-packages/fireworks/scripts/lpad_run.py", line 1147, in lpad
args.func(args)
File "/n/home02/zzhu/.conda/envs/atomate_env/lib/python3.6/site-packages/fireworks/scripts/lpad_run.py", line 148, in reset
lp.workflows.count()))[0].upper() == 'Y':
File "/n/home02/zzhu/.conda/envs/atomate_env/lib/python3.6/site-packages/pymongo/collection.py", line 1766, in count
return self._count(cmd, collation, session)
File "/n/home02/zzhu/.conda/envs/atomate_env/lib/python3.6/site-packages/pymongo/collection.py", line 1563, in _count
with self._socket_for_reads(session) as (sock_info, slave_ok):
File "/n/home02/zzhu/.conda/envs/atomate_env/lib/python3.6/contextlib.py", line 81, in __enter__
return next(self.gen)
File "/n/home02/zzhu/.conda/envs/atomate_env/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1099, in _socket_for_reads
server = topology.select_server(read_preference)
File "/n/home02/zzhu/.conda/envs/atomate_env/lib/python3.6/site-packages/pymongo/topology.py", line 224, in select_server
address))
File "/n/home02/zzhu/.conda/envs/atomate_env/lib/python3.6/site-packages/pymongo/topology.py", line 183, in select_servers
selector, server_timeout, address)
File "/n/home02/zzhu/.conda/envs/atomate_env/lib/python3.6/site-packages/pymongo/topology.py", line 199, in _select_servers_loop
self._error_message(selector))
pymongo.errors.ServerSelectionTimeoutError: connection closed,connection closed,connection closed
____________________________________
Ziyan (Zoe) Zhu
Ph.D. Candidate
Department of Physics, Harvard University
Hello everyone,I am testing the connection to a remote server as explained in the tutorial and I get the a similar error.I have tried either the "my_launchpad_testing.yaml" as given at the bottom of https://materialsproject.github.io/fireworks/installation.html,as well as to change username and password to my system my_username and my_password, and finally to create a user in my local mongodb.In all cases I get a "pymongo.errors.ServerSelectionTimeoutError: ds049170.mongolab.com:49170: timed out"followed by a "ValueError: FireWorks was not able to connect to MongoDB. Is the server running? The database file specified was my_launchpad_test ing.yaml. "My mongo looks like this for the moment (with a couple of Warning message which I am trying to figure out):$mongo
MongoDB shell version v4.0.3
connecting to: mongodb://127.0.0.1:27017
WARNING: No implicit session: Logical Sessions are only supported on server versions 3.6 and greater.
Implicit session: dummy session
MongoDB server version: 2.6.10
WARNING: shell and server versions do not match
>
> show dbs
admin 0.078GB
fireworks 0.078GB
test (empty)
> use fireworks
switched to db fireworks
> show collections
fireworks
fw_id_assigner
launches
system.indexes
workflows
> show users{
"_id" : "fireworks.mdi0316",
"user" : "mdi0316",
"db" : "fireworks",
"roles" : [
{
"role" : "readWrite",
"db" : "accounts"
}
]
}
>
>$I attach the whole error message as a text file.Thank you in advance.Best RegardsMarco Di Gennaro
--
You received this message because you are subscribed to the Google Groups "fireworkflows" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fireworkflow...@googlegroups.com.
To post to this group, send email to firewo...@googlegroups.com.
Visit this group at https://groups.google.com/group/fireworkflows.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "fireworkflows" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fireworkflow...@googlegroups.com.
To post to this group, send email to firewo...@googlegroups.com.
Visit this group at https://groups.google.com/group/fireworkflows.
For more options, visit https://groups.google.com/d/optout.