Seite 1 von 1

Migration: mongoexport nicht gefunden

Veröffentlicht: 30. März 2018 – 16:33 Uhr
von Floflobel
Guten Morgen,
Ich habe ein Problem beim Aktualisieren von Wapt auf die neueste Version. Ich komme bis zum Punkt, an dem ich die Datenbank migrieren möchte, und erhalte dann folgende Fehlermeldung:

Code: Alle auswählen

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

Betreff: Migration: mongoexport nicht gefunden

Veröffentlicht: 30. März 2018 – 16:43 Uhr
von Floflobel
Problem durch Installation von mongo-tools gelöst