Unable to start syncengine

  • 7008764
  • 05-Jun-2012
  • 10-Dec-2013

Environment

Novell Data Synchronizer Mobility Pack

Situation

Sync engine fails to start
Syncengine status shows dead
rcdatasync start fails to start syncengine
rcdatasync status shows syncengine as dead
Syncengine fails to start on reboot

/var/log/datasync/syncengine/engine.log:
  • Failed to connect to the server; connection failed for [server ip]
  • Database connection failed, attempt 1 of 60, sleeping for 2 seconds...
  • FATAL: password authentication failed for user "datasync_user"


Resolution

  1. Make sure Postgres is running fine.
    • Type rcpostgresql status and press Enter to make sure that postgres is running fine. If postgres is not runinng, please type rcpostgresql start.
    • Verify postgresql is in the server startup: chkconfig postgresql, if off please turn it on. chkconfig postgresql on
    • Type psql -U datasync_user mobility and press Enter to login.
      Enter in the database password. If the database password is not known, please check /etc/datasync/configengine/configengine.xml file as the password is stored in plaintext in the following format
      <db>datasync</db>
      <username>datasync_user</username>
      <password>novell</passord>
      If the above command gives an error about the pg_hba.conf file, please copy /var/lib/pgsql/data/pg_hba.conf from a working server to the problem server.

  2. Verify database credentials are correct:
    • Ensure /etc/datasync/configengine/configengine.xml and /etc/datasync/configengine/engines/default/engine.xml both have the correct credentials for the database.
    • Verify <hostname> is localhost for both the above xml files.

  3. Follow TID 7009730 to ensure proxy is correctly configured if desired. Otherwise, disable proxy and restart the server.

  4. Restart services:
    • Restart postgres by typing rcpostgresql restart.
    • Restart Datasync by typing rcdatasync restart.

Cause

pg_hba.conf file was corrupted.
Username/Password incorrect in configengine.xml and/or engine.xml
configengine.xml and/or engine.xml incorrect.
Proxy enabled or incorrectly configured.

Additional Information

Notes:
Error in /var/log/datasync/syncengine/engine.log
2012-06-06 02:18:45.850 INFO [MainThread] [outgoing:26] [userID:] [eventID:] [objectID:] [] Unable to contact Config Engine at https://localhost:8121/service.wsdl, attempt 9 of 1
0, sleeping for 2 seconds...
2012-06-06 02:18:47.853 INFO [MainThread] [outgoing:39] [userID:] [eventID:] [objectID:] [] Connecting to Config Engine at
https://localhost:8121/service.wsdl
2012-06-06 02:18:48.855 ERROR [MainThread] [outgoing:29] [userID:] [eventID:] [objectID:] [] Unable to contact Config Engine at https://localhost:8121/service.wsdl
2012-06-06 02:18:48.934 ERROR [MainThread] [util:253] [userID:] [eventID:] [objectID:] [] EXCEPTION: ********************
2012-06-06 02:18:48.934 ERROR [MainThread] [util:256] [userID:] [eventID:] [objectID:] [] EXCEPTION: Traceback (most recent call last):
2012-06-06 02:18:48.934 ERROR [MainThread] [util:256] [userID:] [eventID:] [objectID:] [] EXCEPTION:   File "syncengine/lib/syncengine/engine.py", line 309, in __init__
2012-06-06 02:18:48.934 ERROR [MainThread] [util:256] [userID:] [eventID:] [objectID:] [] EXCEPTION:   File "syncengine/lib/syncengine/config/outgoing.py", line 18, in __init__
2012-06-06 02:18:48.934 ERROR [MainThread] [util:256] [userID:] [eventID:] [objectID:] [] EXCEPTION:   File "syncengine/lib/syncengine/config/outgoing.py", line 43, in _getCE
2012-06-06 02:18:48.935 ERROR [MainThread] [util:256] [userID:] [eventID:] [objectID:] [] EXCEPTION:   File "common/lib/supersocket.py", line 208, in __init__
2012-06-06 02:18:48.935 ERROR [MainThread] [util:256] [userID:] [eventID:] [objectID:] [] EXCEPTION:   File "/opt/novell/datasync/common/lib/suds/client.py", line 109, in __init_
_
2012-06-06 02:18:48.935 ERROR [MainThread] [util:256] [userID:] [eventID:] [objectID:] [] EXCEPTION:     self.wsdl = Definitions(url, options)
2012-06-06 02:18:48.935 ERROR [MainThread] [util:256] [userID:] [eventID:] [objectID:] [] EXCEPTION:   File "/opt/novell/datasync/common/lib/suds/wsdl.py", line 172, in __init__