Problem Troubleshooting self-service "Either username or password is incorrect or you are not allowed to use this service"

Problem:

According to this self-service debugging article:

there is an other kind of traceback:
Selection_004-1

If you find this Traceback on your master server:

20.06.19 14:43:41.318  MODULE      ( PROCESS ) : Either username or password is incorrect or you are not allowed to use this service.
20.06.19 14:53:41.408  MAIN        ( WARN    ) : Shutting down all open connections
Traceback (most recent call last):
  File "/usr/lib/univention-self-service-master/univention-self-service-invitation", line 124, in <module>
    inv = Invitation()
  File "/usr/lib/univention-self-service-master/univention-self-service-invitation", line 81, in __init__
    self.umc_client.authenticate_with_machine_account()
  File "/usr/lib/python2.7/dist-packages/univention/lib/umc.py", line 420, in authenticate_with_machine_account
    self.authenticate(username, password)
  File "/usr/lib/python2.7/dist-packages/univention/lib/umc.py", line 375, in authenticate
    return self.umc_auth(username, password)
  File "/usr/lib/python2.7/dist-packages/univention/lib/umc.py", line 485, in umc_auth
    return self.request('POST', 'auth', data)
  File "/usr/lib/python2.7/dist-packages/univention/lib/umc.py", line 515, in request
    return self.send(request)
  File "/usr/lib/python2.7/dist-packages/univention/lib/umc.py", line 540, in send
    raise ConnectionError('Could not send request.', reason=exc)
univention.lib.umc.ConnectionError: ('Could not send request.', error(111, 'Connection refused'))

You should restart the following services on the master:

systemctl restart apache2.service
systemctl restart univention-management-console-server.service
systemctl restart univention-management-console-web-server.service
Mastodon