Error starting WebAdmin service "IOError: [Errno 2] No such file or directory: '/var/log/datasync/webadmin/server.log'"

  • 7004484
  • 16-Apr-2012
  • 10-Dec-2013

Environment

Novell Data Synchronizer Mobility Pack 1.2.2

Situation

Can't access WebAdmin since upgrading to 1.2.2 Build 794.
WebAdmin fails to start.
The following is seen when starting DataSync:
"Starting DataSync Web AdminTraceback (most recent call last):
  File "webadmin/sbin/webadminServer.py", line 387, in <module>
  File "webadmin/sbin/webadminServer.py", line 295, in main
  File "webadmin/lib/webadmin/server.py", line 103, in createLogger
  File "/usr/lib64/python2.6/logging/handlers.py", line 366, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib64/python2.6/logging/__init__.py", line 790, in __init__
    stream = self._open()
  File "/usr/lib64/python2.6/logging/__init__.py", line 810, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: '/var/log/datasync/webadmin/server.log'
                                                                failed".

Resolution

Perform the following steps:
  1. Create a directory called loop
  2. Make sure the 1.2.2 794 iso is in the same directory along side the loop directory, so you have the novell-data-synchronizer-mobility-pack-x86_64-794.iso and loop directory side by side.
  3. Type the following command: mount -t iso9660 -o loop novell-data-synchronizer-mobility-pack-x86_64-794.iso loop.
  4. Then type the following command: rpm -Uvh `find -name "datasync*"` --force  or try  rpm -ivh `find -name "datasync*"` --force
  5. Restart Datasync.

This should force the re-installation of any corrupt rpms that may have been installed.

Cause

The DataSynchronizer had not been fully upgraded, leaving some modules still on much older code, and performing an over the top installation with the whole mobility pack did not correct everything, leaving some rpms not fully upgraded.  Forcing the upgraded correct the situation and allowed the WebAdmin to be correctly upgraded and ran as expected.

Additional Information

Looking in the /var/log/datasync/ directory showed that the webadmin directory was missing, and datasync was not able to create that directory or write to it for some reason.