A systemd service may fail to start with the error:
Main process exited, code=exited, status=217/USER
The status=217/USER indicates that the user that is configured to run the service could not be found.
This could happen if there is a typo in a username or you have copied a service file from another machine and it contains the user that doesn’t exists on your system.
This also could happen if the user that should run the service is not the local one but comes from some external authentication provider, like LDAP or Active Directory.
This short note shows how to fix the “Main process exited, code=exited, status=217/USER” error for such external user. (more…)