-
Notifications
You must be signed in to change notification settings - Fork 194
Description
Code snippet
LPAD init -u worked just fine with 2.0.3 fireworks.
We ungraded fireworks to 2.0.5 and now:
./create-MongoUser-DB.sh
Note 1: You are in URI format mode. This means that all database parameters (username, password, host, port, database name, etc.) must be present in the URI. See: https://docs.mongodb.com/manual/reference/connection-string/ for details.
(Enter your connection URI through the 'host' parameter)
Please supply the following configuration values
(press Enter if you want to accept the defaults)
Enter host parameter. (default=None). Example: mongodb+srv://USER:PASSWORD@CLUSTERNAME.mongodb.net/fireworks:
mongodb+srv:://XXXX:XXXXX@mongo.XXXX.XXXXX.XX.XXX/fireworks-test
Enter ssl_ca_file parameter. (default=None). Path to any client certificate to be used for mongodb connection:
Enter authsource parameter. (default=None). Database used for authentication, if not connection db. e.g., for MongoDB Atlas this is sometimes 'admin'.:
Traceback (most recent call last):
File "/cube/api/py-3.10.8/bin/lpad", line 7, in <module>
sys.exit(lpad())
File "/cube/api/py-3.10.8/lib/python3.10/site-packages/fireworks/scripts/lpad_run.py", line 1567, in lpad
args.func(args)
File "/cube/api/py-3.10.8/lib/python3.10/site-packages/fireworks/scripts/lpad_run.py", line 185, in init_yaml
lp = LaunchPad.from_dict(doc)
File "/cube/api/py-3.10.8/lib/python3.10/site-packages/fireworks/core/launchpad.py", line 285, in from_dict
return LaunchPad(
File "/cube/api/py-3.10.8/lib/python3.10/site-packages/fireworks/core/launchpad.py", line 204, in __init__
raise ValueError("Must specify a database name when using a MongoDB URI string.")
ValueError: Must specify a database name when using a MongoDB URI string.
./lpad --version
lpad v2.0.5 located in /XXX/XXX/py-3.10.8/lib/python3.10/site-packages
Could someone confirm this and let us know if this is python DNS lookup issue, query changed or some mongo or pymongo issue...
Mongo is mongodb-8.0.10
Regards,What happened?
LPAD init -u worked just fine with 2.0.3 fireworks.
We ungraded fireworks to 2.0.5 and now:
./create-MongoUser-DB.sh
Note 1: You are in URI format mode. This means that all database parameters (username, password, host, port, database name, etc.) must be present in the URI. See: https://docs.mongodb.com/manual/reference/connection-string/ for details.
(Enter your connection URI through the 'host' parameter)
Please supply the following configuration values
(press Enter if you want to accept the defaults)
Enter host parameter. (default=None). Example: mongodb+srv://USER:PASSWORD@CLUSTERNAME.mongodb.net/fireworks:
mongodb+srv:://XXXX:XXXXX@mongo.XXXX.XXXXX.XX.XXX/fireworks-test
Enter ssl_ca_file parameter. (default=None). Path to any client certificate to be used for mongodb connection:
Enter authsource parameter. (default=None). Database used for authentication, if not connection db. e.g., for MongoDB Atlas this is sometimes 'admin'.:
Traceback (most recent call last):
File "/cube/api/py-3.10.8/bin/lpad", line 7, in
sys.exit(lpad())
File "/cube/api/py-3.10.8/lib/python3.10/site-packages/fireworks/scripts/lpad_run.py", line 1567, in lpad
args.func(args)
File "/cube/api/py-3.10.8/lib/python3.10/site-packages/fireworks/scripts/lpad_run.py", line 185, in init_yaml
lp = LaunchPad.from_dict(doc)
File "/cube/api/py-3.10.8/lib/python3.10/site-packages/fireworks/core/launchpad.py", line 285, in from_dict
return LaunchPad(
File "/cube/api/py-3.10.8/lib/python3.10/site-packages/fireworks/core/launchpad.py", line 204, in init
raise ValueError("Must specify a database name when using a MongoDB URI string.")
ValueError: Must specify a database name when using a MongoDB URI string.
./lpad --version
lpad v2.0.5 located in /XXX/XXX/py-3.10.8/lib/python3.10/site-packages
Could someone confirm this and let us know if this is python DNS lookup issue, query changed or some mongo or pymongo issue...
Mongo is mongodb-8.0.10
Regards,
Version
2.0.5
Which OS?
- MacOS
- Windows
- Linux
Log output
Traceback (most recent call last):
File "/cube/api/py-3.10.8/bin/lpad", line 7, in <module>
sys.exit(lpad())
File "/cube/api/py-3.10.8/lib/python3.10/site-packages/fireworks/scripts/lpad_run.py", line 1567, in lpad
args.func(args)
File "/cube/api/py-3.10.8/lib/python3.10/site-packages/fireworks/scripts/lpad_run.py", line 185, in init_yaml
lp = LaunchPad.from_dict(doc)
File "/cube/api/py-3.10.8/lib/python3.10/site-packages/fireworks/core/launchpad.py", line 285, in from_dict
return LaunchPad(
File "/cube/api/py-3.10.8/lib/python3.10/site-packages/fireworks/core/launchpad.py", line 204, in __init__
raise ValueError("Must specify a database name when using a MongoDB URI string.")
ValueError: Must specify a database name when using a MongoDB URI string.
[root@azcldatte-twev1.englab (eastus2) LPAD]#