Forum Announcement: what are we doing
I sort of got it to work, I altered the server template to enable jailkit on new users and hit the same error, but I did go to virtualmin → domain-name → manage virtual server → edit owner limits → Environment limitations
and found that jailkit was switched off I enabled jailkit and saved the the changes. On one occasion it failed with the same error however going back to the previous screen (via the button at the bottom of the error screen) and saved it again, on another test it worked perfectly so it does look like a bug perhaps @staff can help with this if it is a bug in virtualmin but it could be a bug in jailkit which virtualmin staff have no control over