Page 1 sur 1

Migration: mongoexport not found

Publié : 30 mars 2018 - 16:33
par Floflobel
Bonjour,
J'ai un problème lorsque je tente d'upgrade wapt vers la dernière release. J'arrive au moment de migrer la base de donnée et la il me retourne ce message d'erreur:

Code : Tout sélectionner

mongodb process running, need to migrate                                                                                                                                                                           
could not change directory to "/root": Permission denied
/bin/sh: 1: mongoexport: not found
Traceback (most recent call last):
  File "/opt/wapt/waptserver/waptserver_upgrade.py", line 191, in <module>
    upgrade2postgres()
  File "/opt/wapt/waptserver/waptserver_upgrade.py", line 152, in upgrade2postgres
    jsondata = create_import_data()
  File "/opt/wapt/waptserver/waptserver_upgrade.py", line 70, in create_import_data
    if 'dbpath' in subprocess.check_output('mongoexport --help',shell=True):
  File "/usr/lib/python2.7/subprocess.py", line 219, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command 'mongoexport --help' returned non-zero exit status 127
Traceback (most recent call last):
  File "/opt/wapt/waptserver/scripts/postconf.py", line 486, in <module>
    main()
  File "/opt/wapt/waptserver/scripts/postconf.py", line 473, in main
    upgrade2postgres(options.configfile)
  File "/opt/wapt/waptserver/scripts/postconf.py", line 236, in upgrade2postgres
    run_verbose('sudo -u wapt PYTHONPATH=/opt/wapt PYTHONHOME=/opt/wapt /opt/wapt/bin/python /opt/wapt/waptserver/waptserver_upgrade.py upgrade2postgres -c "%s"' % configfilename)
  File "/opt/wapt/waptserver/scripts/postconf.py", line 66, in run_verbose
    output = subprocess.check_output(*args, shell=True, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 219, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command 'sudo -u wapt PYTHONPATH=/opt/wapt PYTHONHOME=/opt/wapt /opt/wapt/bin/python /opt/wapt/waptserver/waptserver_upgrade.py upgrade2postgres -c "/opt/wapt/conf/waptserver.ini"' returned non-zero exit status 1

Re: Migration: mongoexport not found

Publié : 30 mars 2018 - 16:43
par Floflobel
Problème résolu en installant mongo-tools