Bonsoir,
J'ai fais des tests de migrations d'un serveur sous debian et j'ai un soucis :
sudo -u wapt /usr/bin/python /opt/wapt/waptserver/waptserver_upgrade.py upgrade2postgres Upgrading from mongodb to postgres
[options] ##########mongodb_port=27017 ##########mongodb_ip=127.0.0.1 #wapt_folder=/var/www/wapt/ #waptwua_folder=/var/www/waptwua #waptserver_port=8080 wapt_user=admin wapt_password=20159058655678cf35c2c7653229d80fd21ab2 wapt_folder = /var/www/wapt server_uuid = bd968efa-ac1f-11e6-b9d5-000c2991021a secret_key = 0pGxrUaTXqHXJ3OXu8fmNasofOofxLdwvUBvFruHzcDQARKr30foxClWEkfZln1h use_kerberos = False allow_unauthenticated_registration = True #loglevel=warning
#client_tasks_timeout=0.3#client_tasks_timeout=0.3 #client_connect_timeout=1 #client_read_timeout=10
could not change directory to "/root": Permission non accordée dumping mongodb data 2018-02-17T20:24:16.926+0100 error parsing command line options: --dbpath and related flags are not supported in 3.0 tools. See http://dochub.mongodb.org/core/tools-dbpath-deprecated for more information 2018-02-17T20:24:16.926+0100 try 'mongoexport --help' for more information Traceback (most recent call last): File "/opt/wapt/waptserver/waptserver_upgrade.py", line 198, in <module> upgrade2postgres() File "/opt/wapt/waptserver/waptserver_upgrade.py", line 156, in upgrade2postgres jsondata = create_import_data() File "/opt/wapt/waptserver/waptserver_upgrade.py", line 77, in create_import_data data = subprocess.check_output('mongoexport -d wapt -c hosts --jsonArray --dbpath=%s' % mongo_datadir,shell=True) File "/usr/lib/python2.7/subprocess.py", line 219, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command 'mongoexport -d wapt -c hosts --jsonArray --dbpath=/var/lib/mongodb/' returned non-zero exit status 3
J'ai tester depuis une debian 8 puis j'ai fais la même chose depuis une debian 9 .... même punition ....
mongoexport -d wapt -c hosts --jsonArray --dbpath=/var/lib/mongodb
Cette commande semble deprecated ...