The rhevm-reports-setup command fails with error "Return Code is not zero".

Solution Unverified - Updated -

Issue

  • The rhevm-reports-setup command fails with error Return Code is not zero.
  • Error while running rhevm-reports-setup command:
# rhevm-reports-setup
Welcome to rhevm-reports setup utility
In order to proceed the installer must stop the ovirt-engine service
Would you like to stop the ovirt-engine service (yes|no): yes
Stopping ovirt-engine...                              [ DONE ]
Editing XML files...                                  [ DONE ]
Setting DB connectivity...                            [ DONE ]
Please choose a password for the reports admin user(s) (rhevm-admin and superuser):
Retype password:
Deploying Server...                                   [ DONE ]
Updating Redirect Servlet...                          [ DONE ]
Importing reports...                                  [ DONE ]
Customizing Server...                                 [ DONE ]
Return Code is not zero
Error encountered while installing rhevm-reports, please consult the log file: /var/log/ovirt-engine/ovirt-engine-reports-setup-2014_02_03_14_24_00.log
  • Error in log file:
2014-02-03 14:28:14::DEBUG::common_utils::1074::root:: stderr = Traceback (most recent call last):
  File "/usr/share/ovirt-engine-reports/ssl2jkstrust.py", line 116, in <module>
    main()
  File "/usr/share/ovirt-engine-reports/ssl2jkstrust.py", line 114, in main
    os.rename(tmp, options.keystore)
OSError: [Errno 2] No such file or directory

2014-02-03 14:28:14::DEBUG::common_utils::1075::root:: retcode = 1
2014-02-03 14:28:14::ERROR::rhevm-reports-setup::1280::root:: Failed to complete the setup of the reports package!
2014-02-03 14:28:14::DEBUG::rhevm-reports-setup::1281::root:: Traceback (most recent call last):
  File "/usr/bin/rhevm-reports-setup", line 1255, in main
    updateApplicationSecurity()
  File "/usr/bin/rhevm-reports-setup", line 930, in updateApplicationSecurity
    failOnError=True,
  File "/usr/share/ovirt-engine-reports/common_utils.py", line 1078, in execCmd
    raise Exception(msg)
Exception: Return Code is not zero

Environment

  • Red Hat Enterprise Virtualization 3.3
  • Rhevm reports

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content