Failed to get machine PTY: No such file or directory

The bug has now its fix! Those who hit it (@fasttech, @JeffBales, @flatspin, @GG_jr, …) and the whole @quality_team: do you want to test it?

To reproduce the bug after installing nethserver-dc:

  • Close any ssh session

To install the fix:

 yum --enablerepo=nethserver-testing update nethserver-dc-1.0.2-1.13.gd587784.ns7

To properly cover the code changes, re-test the following use cases:

  • user creation/modification/deletion
  • group creation/modification/deletion
  • user password policy change
  • domain password policy change
  • admin-todo reminder on Dashboard for Administrator’s password
2 Likes

Come on guys, let’s test it and get back to us! Free bee offered :beers:

1 Like

:bee:?? for free?? what an offer! :smile:

Tests are in progress.

user creation/mofdification/deletion so far no errors

group creation/mofdification/deletion so far no errors

user password policy change no errors, but no changes noticeable.
If I change policy I still have to give 1 upper char, 1 number, 1 special char, 1 lower char and 7 in sum.
what’s the difference between strong and non strong. I thought that non strong is tha only 7 char must be set, no matter if upper lower special or what ever. Do I have to reboot ?

admin-todo remember on dash board worked I think. I set the password and than it disappeared

last: how to change domain password policy? :blush:

so far so good.

2 Likes

Ahahah :grinning: touchè! Thanks for answering my call friend!

By “domain password policy” I meant “Password policies” page!

By “user password policy” I meant the “Enable password expiration” checkbox under “User > Edit” form.

o.k. thanks for clarifiing.

domain password policy: as mentioned above, no change noticable…

user password: I get an error when changing exparation, when the user is a member of a group.

Sep 9 12:18:03 newns7 esmith::event[8160]: Event: password-policy-update
Sep 9 12:18:03 newns7 esmith::event[8160]: Action: /etc/e-smith/events/password-policy-update/S10nethserver-sssd-clear-cache SUCCESS [0.076623]
Sep 9 12:18:03 newns7 esmith::event[8160]: Password complexity activated!
Sep 9 12:18:03 newns7 esmith::event[8160]: Password history length changed!
Sep 9 12:18:03 newns7 esmith::event[8160]: Minimum password age changed!
Sep 9 12:18:03 newns7 esmith::event[8160]: Maximum password age changed!
Sep 9 12:18:03 newns7 esmith::event[8160]: All changes applied successfully!
Sep 9 12:18:03 newns7 esmith::event[8160]: Action: /etc/e-smith/events/password-policy-update/S30nethserver-dc-password-policy SUCCESS [0.492689]
Sep 9 12:18:03 newns7 esmith::event[8160]: Event: password-policy-update SUCCESS
Sep 9 12:18:17 newns7 esmith::event[8238]: Event: user-modify user1@jeckel.lan Testuser 1 /bin/bash
Sep 9 12:18:17 newns7 esmith::event[8238]: Action: /etc/e-smith/events/user-modify/S40nethserver-dc-user-modify SUCCESS [0.18315]
Sep 9 12:18:17 newns7 esmith::event[8238]: Action: /etc/e-smith/events/user-modify/S90nethserver-sssd-clear-cache SUCCESS [0.083343]
Sep 9 12:18:17 newns7 esmith::event[8238]: Event: user-modify SUCCESS
Sep 9 12:18:18 newns7 esmith::event[8260]: Event: group-modify netusers@jeckel.lan user2 user1 domain users s-1-5-4 s-1-5-11
Sep 9 12:18:18 newns7 esmith::event[8260]: ERROR(exception): Failed to remove members “S-1-5-4,S-1-5-11,Domain,Users” from group “netusers” - Unable to find “Domain”. Operation cancelled.
Sep 9 12:18:18 newns7 esmith::event[8260]: File “/usr/lib64/python2.7/site-packages/samba/netcmd/group.py”, line 278, in run
Sep 9 12:18:18 newns7 esmith::event[8260]: add_members_operation=False)
Sep 9 12:18:18 newns7 esmith::event[8260]: File “/usr/lib64/python2.7/site-packages/samba/samdb.py”, line 274, in add_remove_group_members
Sep 9 12:18:18 newns7 esmith::event[8260]: raise Exception(‘Unable to find “%s”. Operation cancelled.’ % member)
Sep 9 12:18:19 newns7 esmith::event[8260]: Added members to group netusers
Sep 9 12:18:19 newns7 esmith::event[8260]: [ERROR] Failed to update the members list of group netusers at /etc/e-smith/events/group-modify/S40nethserver-dc-group-modify line 80.
Sep 9 12:18:19 newns7 esmith::event[8260]: Action: /etc/e-smith/events/group-modify/S40nethserver-dc-group-modify FAILED: 1 [1.135775]
Sep 9 12:18:19 newns7 esmith::event[8260]: Action: /etc/e-smith/events/group-modify/S90nethserver-sssd-clear-cache SUCCESS [0.173449]
Sep 9 12:18:19 newns7 esmith::event[8260]: Event: group-modify FAILED
Sep 9 12:18:19 newns7 esmith::event[8311]: Event: password-policy-update user1@jeckel.lan yes
Sep 9 12:18:19 newns7 esmith::event[8311]: Action: /etc/e-smith/events/password-policy-update/S10nethserver-sssd-clear-cache SUCCESS [0.299921]
Sep 9 12:18:20 newns7 esmith::event[8311]: Expiry for user ‘user1’ set to 180 days.
Sep 9 12:18:20 newns7 esmith::event[8311]: Action: /etc/e-smith/events/password-policy-update/S30nethserver-dc-password-policy SUCCESS [0.486807]
Sep 9 12:18:20 newns7 esmith::event[8311]: Event: password-policy-update SUCCESS
Event: password-policy-update SUCCESS

something wrong with cn=domain or something like this?

If the user is no member of a group, no error apears.

If a empty group is created, message: “Task completed with errors” apears. But I think this is ment to this way (or better: this would be logical :vulcan:)

3 Likes

Seems like a space is not preserved :thinking:

BTW, @flatspin: do you have a GitHub account? Could you set the issue #5103 assigned to you?

You must have one! As brand new quality team member! :imp:

ehhhh, nope. how to?

www.github.com -> signup :slight_smile:

@alefattorini: that wasn’t the problem: nsflatspin.
flatspin was occupied :rage: So I choose nsflatspin with ns for Nethserver. :slight_smile:

If I red right, someone has to give me rights to the nethserver project to assign this issue?
correct?

2 Likes

It’s up to @davidep

I think I did it.
I’m new to github and all this stuff.
What’s the reason to assign this issue to me?

Because of this: QA/Testing Team basic HOWTO
we need to adapt this doc for github
@dz00te can you get right on that?

You are testing the bug fix. If you think the package from nethserver-testing solves the problem you should add the verified label (and remove the testing label).

More info:
http://docs.nethserver.org/projects/nethserver-devel/en/v7b/development_process.html#qa-team-member-testing

@alefattorini and @davidep thanks for explaining to a noob.
My weekend lecture will be github basics and the docs of your links.
Cheers. :beers:

3 Likes

hi @flatspin and welcome aboard
the link with the basic howto is for 6.x, i need to adapt to 7 (ok starting now) no more redmine account but github is required…
link to dev manual v7 (posted from davidep) is more updated
let me know how we can improve the basic howto for new members… tnx

2 Likes

o.k. will read it carefully and let you know.
thx for your welcome.

could you check/test :slight_smile: the HowTo adapted for GitHub? tnx

1 Like

@davidep

I had a few minutes so I started up the ns7b problem vm I had off for the last few days. I tried to delete a user and create a user, both actions failed with the machine pty msg in the logs. I applied your new nethserver-dc, I then successfully deleted a user I had attempted to delete before, I then rebooted the vm, I then successfully created a user, I rebooted the vm again and successfully deleted the new user, there are no longer machine pty messages in the log.

Sep 9 10:17:45 server7c esmith::event[2087]: Event: password-modify joe@ad.test.lab.local /tmp/ng-M56VeX Sep 9 10:17:45 server7c esmith::event[2087]: Action: /etc/e-smith/events/password-modify/S25password-set SUCCESS [0.00585] Sep 9 10:17:45 server7c esmith::event[2087]: spawn /usr/bin/systemd-run -M nsdc -q -t /usr/bin/samba-tool user setpassword joe Sep 9 10:17:45 server7c esmith::event[2087]: New Password: Sep 9 10:17:46 server7c esmith::event[2087]: Changed password OK Sep 9 10:17:46 server7c esmith::event[2087]: Action: /etc/e-smith/events/password-modify/S30nethserver-dc-password-set SUCCESS [1.123449] Sep 9 10:17:46 server7c esmith::event[2087]: Enabled user 'joe' Sep 9 10:17:46 server7c esmith::event[2087]: Action: /etc/e-smith/events/password-modify/S40nethserver-dc-user-unlock SUCCESS [0.440965] Sep 9 10:17:46 server7c esmith::event[2087]: Action: /etc/e-smith/events/password-modify/S90password-cleanup SUCCESS [0.145256] Sep 9 10:17:46 server7c esmith::event[2087]: Event: password-modify SUCCESS Sep 9 10:18:35 server7c esmith::event[2162]: Event: user-delete joe@ad.test.lab.local Sep 9 10:18:36 server7c esmith::event[2162]: Deleted user joe Sep 9 10:18:36 server7c esmith::event[2162]: Action: /etc/e-smith/events/user-delete/S40nethserver-dc-user-delete SUCCESS [0.587061] Sep 9 10:18:36 server7c esmith::event[2162]: Action: /etc/e-smith/events/user-delete/S90nethserver-sssd-clear-cache SUCCESS [0.269645] Sep 9 10:18:36 server7c esmith::event[2162]: Event: user-delete SUCCESS

6 Likes