When running the forecast command on the command line, we received the following Sybase error.
We use kerberos authentication to logon to Sybase.
I am able to logon to Sybase manually using the ID I am logged on as.
$ forecast -J job123 -F"2021-02-26 00:00" -T"2021-02-26 23:57"
csd_krbdyn_load: Error loading /kerberos/PROJ/mitkrb5/1.16-lib-prod/lib/libgssapi_krb5.so: /kerberos/PROJ/mitkrb5/1.16-lib-prod/lib/libgssapi_krb5.so: wrong ELF class: ELFCLASS64
CAUAJM_E_18032 ct_con_props(CS_SEC_NETWORKAUTH) failed with appname of ''.
CAUAJM_E_18015 Client message: Message number: layer (7), Origin (9), text (ct_con_props(SET): security service layer: internal security control layer error: error string not available), SEVERITY = (5), NUMBER = (12)
CAUAJM_E_10649 Server AUTOSYS:autosys was not available during connection operation.
csd_krbdyn_load: Error loading /kerberos/PROJ/mitkrb5/1.16-lib-prod/lib/libgssapi_krb5.so: /kerberos/PROJ/mitkrb5/1.16-lib-prod/lib/libgssapi_krb5.so: wrong ELF class: ELFCLASS64
CAUAJM_E_18032 ct_con_props(CS_SEC_NETWORKAUTH) failed with appname of ''.
CAUAJM_E_18015 Client message: Message number: layer (7), Origin (9), text (ct_con_props(SET): security service layer: internal security control layer error: error string not available), SEVERITY = (5), NUMBER = (12)
CAUAJM_E_10649 Server AUTOSYS:autosys was not available during connection operation.
csd_krbdyn_load: Error loading /kerberos/PROJ/mitkrb5/1.16-lib-prod/lib/libgssapi_krb5.so: /kerberos/PROJ/mitkrb5/1.16-lib-prod/lib/libgssapi_krb5.so: wrong ELF class: ELFCLASS64
CAUAJM_E_18032 ct_con_props(CS_SEC_NETWORKAUTH) failed with appname of ''.
CAUAJM_E_18015 Client message: Message number: layer (7), Origin (9), text (ct_con_props(SET): security service layer: internal security control layer error: error string not available), SEVERITY = (5), NUMBER = (12)
CAUAJM_E_10649 Server AUTOSYS:autosys was not available during connection operation.
CAUAJM_E_50033 Error initializing tx subsystem: CAUAJM_E_10014 Error establishing a database connection.
AutoSys 11.3.6
The forecast command is a FAT client/command, meaning it bypasses the as_server and connects directly to the database.
The errors "wrong ELF class" are typically a result of trying to use a 32bit exe with 64bit libraries or vice versa, 64bit exe with 32bit libraries.
Please run "file" against the library in your error message
Example: file /kerberos/PROJ/mitkrb5/1.16-lib-prod/lib/libgssapi_krb5.so
Confirm its bit level and confirm the version of the Sybase client and server involved along with the AutoSys version and bit levels.
NOTE - AutoSys 12.0 is 64bit, all lower versions are 32bit.