JobServer cannot run the Task and fails with 'User set to start job contains unexpected characters' error

Talend Version 7.0.1

Summary

Task fails to run because the username contains unexpected characters.
Additional Versions All versions
Key words JobServer, Task, Run Job as OS user, Studio
Product  
Component  
Article Type  
Problem Description

A Job Conductor Task with the Run Job as OS user parameter set to a username that contains a dot, fails with the following error:

Execution failed : org.talend.remote.commons.exception.ClientServerException: Remote server has encountered an error:
, messageType=SERVER_ERROR, idRequestResponsePair=null, message=User set to start job contains unexpected characters 'my.user'
[Remote server has encountered an error:
, messageType=SERVER_ERROR, idRequestResponsePair=null, message=User set to start job contains unexpected characters 'my.user']
Problem root cause  
Solution or Workaround

Edit the JOBSERVER-DIR/agent/conf/TalendJobServer.properties file and modify the regular expression:

org.talend.remote.jobserver.server.TalendJobServer.RUN_AS_USER_VALIDATION_REGEXP=^[a-z][-a-z0-9]*\$

To allow a username that contains a dot "." character, as shown below:

org.talend.remote.jobserver.server.TalendJobServer.RUN_AS_USER_VALIDATION_REGEXP=^[a-z][-a-z.0-9]*\$

Save and restart JobServer.

Version history
Revision #:
8 of 8
Last update:
‎04-18-2019 02:49 AM
Updated by: