[DUAS] Unable to send out email with attachment using non-administrator user

Document ID : KB000100745
Last Modified Date : 05/09/2018
Show Technical Document Details
Issue:
Unable to send out an email with attachment if using non-administrator user to submit job.
DUAS can send email normally with Administrator user.

When it fails to send email, we see below messages in universe.log:
| 2018-08-14 16:09:51 |ERROR|X|IO |pid=27755.140471684802304| u_send_mail | ERROR: Cannot open attachment /u02/app/orsyp/DUAS/UNIPSC_SCGDC2SVAPP03/temp/XS000000001U000000018_0004242.txt
| 2018-08-14 16:09:51 |ERROR|X|IO |pid=27755.140471684802304| NOTIFY_SMTP | [SCGDC2SVAPP03] NOTIFICATION_EMAIL [SEND ERROR 11] / Dollar Univer$e: [Aborted] [SY_TEST_ERR_T] [] [SY_TEST_ERR_U] [SCGDC2SVAPP03] [0004294] [0004242] [] [X]


 
Resolution:

The message [SEND ERROR 11] indicates the file to be attached cannot be found or cannot be accessed.

Please make sure that the Dollar Universe Administrator(ex. univa) is part of the system group of the user who run the job, so that it will have access to the temporary job log in the temp directory.

If you are not sure which user and group are mentioned, please open the /temp folder, you will find the job log file, for example:
/u02/app/orsyp/DUAS/UNIPSC_SCGDC2SVAPP03/temp/XS000000001U000000018_0004242.txt

Check the user and group owner of the file, then add the Dollar Universe Administrator user to this group. It will fix the issue.