Create User Task completed with errors


(Tobias Arvedal) #1

Can´t create user getting this error all the time.

Task completed with errors

(exit status )

/var/log/messages
Jul 16 07:31:30 dc1 esmith::event[490]: Event: ibay-create profiles
Jul 16 07:31:30 dc1 esmith::event[490]: expanding /etc/samba/smb.conf
Jul 16 07:31:30 dc1 dbus[675]: [system] Activating via systemd: service name=‘org.freedesktop.timedate1’ unit=‘dbus-org.freedesktop.timedate1.service’
Jul 16 07:31:30 dc1 systemd: Starting Time & Date Service…
Jul 16 07:31:30 dc1 dbus[675]: [system] Successfully activated service ‘org.freedesktop.timedate1’
Jul 16 07:31:30 dc1 systemd: Started Time & Date Service.
Jul 16 07:31:31 dc1 esmith::event[490]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [0.626074]
Jul 16 07:31:31 dc1 esmith::event[490]: Action: /etc/e-smith/events/ibay-create/S15nethserver-ibays-ibay-create SUCCESS [0.007668]
Jul 16 07:31:31 dc1 esmith::event[490]: [NOTICE] set POSIX ACLs on /var/lib/nethserver/ibay/profiles: g:share@ralex.local:rwX,d:g:share@ralex.local:rwX,g:domain admins@ralex.local:rwX,d:g:domain admins@ralex.local:rwX
Jul 16 07:31:31 dc1 esmith::event[490]: Action: /etc/e-smith/events/ibay-create/S20nethserver-ibays-set-permissions SUCCESS [0.342633]
Jul 16 07:31:31 dc1 systemd: Reloading.
Jul 16 07:31:31 dc1 esmith::event[490]: [INFO] service smb reload
Jul 16 07:31:31 dc1 systemd: Reloaded Samba SMB Daemon.
Jul 16 07:31:31 dc1 esmith::event[490]: Action: /etc/e-smith/events/actions/adjust-services SUCCESS [0.454839]
Jul 16 07:31:31 dc1 esmith::event[490]: Event: ibay-create SUCCESS
Jul 16 07:31:41 dc1 systemd: Created slice User Slice of helen@ralex.local.
Jul 16 07:31:41 dc1 systemd: Starting User Slice of helen@ralex.local.
Jul 16 07:31:41 dc1 systemd: Started Session c2 of user helen@ralex.local.
Jul 16 07:31:41 dc1 systemd: Starting Session c2 of user helen@ralex.local.
Jul 16 07:31:41 dc1 systemd-logind: New session c2 of user helen@ralex.local.
Jul 16 07:32:50 dc1 esmith::event[666]: Event: user-modify helen@ralex.local Helen Alexandersson /usr/libexec/openssh/sftp-server
Jul 16 07:32:51 dc1 esmith::event[666]: Failed to get machine PTY: No such file or directory
Jul 16 07:32:51 dc1 esmith::event[666]: [ERROR] User helen shell modification failed
Jul 16 07:32:51 dc1 esmith::event[666]: Action: /etc/e-smith/events/user-modify/S40nethserver-dc-user-modify FAILED: 3 [0.874008]
Jul 16 07:32:51 dc1 esmith::event[666]: [NOTICE] clearing sssd cache for user helen@ralex.local
Jul 16 07:32:52 dc1 esmith::event[666]: Action: /etc/e-smith/events/user-modify/S90nethserver-sssd-clear-cache SUCCESS [0.363983]
Jul 16 07:32:52 dc1 esmith::event[666]: Event: user-modify FAILED
Jul 16 07:32:53 dc1 esmith::event[730]: Event: group-modify domain admins admin administrator mikael ronny helen
Jul 16 07:32:54 dc1 esmith::event[730]: Removed members from group domain admins
Jul 16 07:32:55 dc1 esmith::event[730]: Added members to group domain admins
Jul 16 07:32:55 dc1 esmith::event[730]: Action: /etc/e-smith/events/group-modify/S40nethserver-dc-group-modify SUCCESS [1.95051]
Jul 16 07:32:55 dc1 esmith::event[730]: [NOTICE] clearing sssd cache for group domain admins@ralex.local
Jul 16 07:32:55 dc1 esmith::event[730]: [NOTICE] group members changed: clear users cache
Jul 16 07:32:55 dc1 esmith::event[730]: Action: /etc/e-smith/events/group-modify/S90nethserver-sssd-clear-cache SUCCESS [0.677165]
Jul 16 07:32:55 dc1 esmith::event[730]: Event: group-modify SUCCESS
Jul 16 07:32:56 dc1 esmith::event[780]: Event: password-policy-update helen@ralex.local no
Jul 16 07:32:56 dc1 esmith::event[780]: [NOTICE] clearing sssd cache for user helen@ralex.local
Jul 16 07:32:56 dc1 esmith::event[780]: Action: /etc/e-smith/events/password-policy-update/S10nethserver-sssd-clear-cache SUCCESS [0.288929]
Jul 16 07:32:57 dc1 esmith::event[780]: Expiry for user ‘helen’ disabled.
Jul 16 07:32:57 dc1 esmith::event[780]: Action: /etc/e-smith/events/password-policy-update/S30nethserver-dc-password-policy SUCCESS [0.958365]
Jul 16 07:32:57 dc1 esmith::event[780]: Event: password-policy-update SUCCESS
Jul 16 07:33:47 dc1 systemd-logind: Removed session c2.
Jul 16 07:33:47 dc1 systemd: Removed slice User Slice of helen@ralex.local.
Jul 16 07:33:47 dc1 systemd: Stopping User Slice of helen@ralex.local.
Jul 16 07:35:01 dc1 dbus[675]: [system] Activating via systemd: service name=‘org.freedesktop.timedate1’ unit=‘dbus-org.freedesktop.timedate1.service’
Jul 16 07:35:01 dc1 systemd: Starting Time & Date Service…
Jul 16 07:35:01 dc1 dbus[675]: [system] Successfully activated service ‘org.freedesktop.timedate1’
Jul 16 07:35:01 dc1 systemd: Started Time & Date Service.

/Tobbe


(Davide Principi) #2

Hi Tobias,

This error often occurs when some hanging process wasn’t closed during SSH sessions logout (for instance tail commands…). It seems to be related to how systemd-run allocates terminals.

A reboot could resolve it. If not possible the following command can help to list, search (and kill) hanging sessions manually

loginctl

We had similar issues in the past:

https://community.nethserver.org/search?q="Failed%20to%20get%20machine%20PTY"

Here is @giacomo’s reply to a similar one: