Tsaif won't load a smdrd[4158]: Internal error while loading module tsaif

  • 7005879
  • 30-Apr-2010
  • 27-Apr-2012

Environment

Novell iFolder 2.1
Novell Open Enterprise Server 2 (OES 2) Linux Support Pack 2
Tsaif
Apache Web Server

Situation

The tsaif module for ifolder would fail to load with the /opt/novell/sms/bin/./smsconfig -l tsaif command. Ifolder itself was working fine. Tsafs, the sms module for the filesystems, would load fine. Activating the debug code inside the tsaif module, yielded the following information:

F738C6B0:BuildInitialResourceList : Start
F738C6B0:BuildInitialResourceList [353  ]:stat /dev/zapi ccode : 2
F738C6B0:IF_FS_VFS_GetCollectionSt: Start
F738C6B0:IF_FS_VFS_GetConfigFilePa: Start
F738C6B0:IF_WS_GetSimiasDataPath  : Start
F738C6B0:IF_WS_GetSimiasDataPath  [416  ]:Apache error 20, errnum 111 - wait 10 secs
F738C6B0:IF_WS_GetSimiasDataPath  [416  ]:Apache error 20, errnum 111 - wait 20 secs
F738C6B0:IF_WS_GetSimiasDataPath  [416  ]:Apache error 20, errnum 111 - wait 30 secs
F738C6B0:IF_WS_GetSimiasDataPath  [416  ]:Apache error 20, errnum 111 - wait 40 secs
F738C6B0:IF_WS_GetSimiasDataPath  [416  ]:Apache error 20, errnum 111 - wait 50 secs
F738C6B0:IF_WS_GetSimiasDataPath  [416  ]:Apache error 20, errnum 111 - wait 60 secs
F738C6B0:IF_WS_GetSimiasDataPath  [416  ]:Apache error 20, errnum 111 - wait 70 secs
F738C6B0:IF_WS_GetSimiasDataPath  [416  ]:Apache error 20, errnum 111 - wait 80 secs
F738C6B0:IF_WS_GetSimiasDataPath  [416  ]:Apache error 20, errnum 111 - wait 90 secs
F738C6B0:IF_WS_GetSimiasDataPath  [416  ]:Apache error 20, errnum 111 - wait 100 secs
F738C6B0:IF_WS_GetSimiasDataPath  [416  ]:Apache error 20, errnum 111 - wait 110 secs
F738C6B0:IF_WS_GetSimiasDataPath  [416  ]:Apache error 20, errnum 111 - wait 120 secs
F738C6B0:IF_WS_SoapError          [105  ]:soap->error = 20, SOAP FAULT: SOAP-ENV:Client
"Connection refused"
F738C6B0:IF_WS_SoapError          [106  ]:status = 1003, error = 20, errmode = 0 errnum = 111
F738C6B0:IF_WS_SoapError          [109  ]:SOAP FAULT DETAIL: TCP connect failed in tcp_connect()
F738C6B0:IF_WS_SoapError          = fffdffb1
F738C6B0:IF_WS_GetSimiasDataPath  = fffdffb1
F738C6B0:IF_FS_VFS_GetConfigFilePa= fffdffb1
F738C6B0:IF_FS_VFS_GetCollectionSt= fffdffb1
F738C6B0:BuildInitialResourceList = fffdffb1
F738C6B0:TSAResourceInit          [143  ]:Internal Error
F738C6B0:ShutDownTSAConnectionServ: Start
F738C6B0:DeRegisterWithSMDR       : Start

The debug code can be activated thus:
In a command terminal run the following:
rcnovell-smdrd stop
/opt/novell/sms/bin/smdrd --smsdebug=fffffffc --smsdebug2=fffffffc
In another command terminal run the following
/opt/novell/sms/bin/smsconfig -l tsaif --smsdebug=fffffffc --smsdebug2=fffffffc

This will enable debug logging for both smdrd and tsaif. The debug logs are created in:  /var/opt/novell/sms/log.
The debug log indicated a problem with Apache. The fffdffb1 error is returned from tsaif indicating the internal error.


Resolution

When tsaif loads it attempts to connect to the local host, 127.0.0.1:80 so that it can communicate with the ifolder server. This is done so that tsaif can determine the iFolder path and get the password for the backup. Since the Ifolder server is actually an Apache module, any communication by tsaif to the Ifolder server must go through Apache. The problem was that Apache was not allowing any connections to the local host. We had to add a line in the listen.conf file:

listen localhost:80 or 127.0.0.1:80

Then restart Apache. Apache should allow local host connections by default, but adding this line to the listen.conf file resolved the issue.