Contactez nous

Migration: mongoexport not found

Question about WAPT Server / Requêtes et aides autour du serveur Wapt
Règles du forum

* Questions can be asked in English or in French. If the thread is started in English, stick to English, if it is started in French, stick to French.
* Vous pouvez poser vos questions en Français ou en Anglais. Si un sujet est commencé en français, merci de répondre en français. Si un sujet est commencé en anglais, merci de répondre en anglais.

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
Problème résolu en installant mongo-tools