Created attachment 9832 [details]
4.1 patch cherry-picked from master
For users running Samba 4.1, a change to the pysmbd python wrapper after 4.0 means that running provision twice fails, whereas it used to just wipe the database and start again.
This causes confusion particularly because it blames the POSIX ACL code.
+1, though it would be nice to cherry-pick the version that catches OSError rather than Exception.
Created attachment 9833 [details]
4.1 patch cherry-picked from master (additional #1)
As requested, the patch that catches the narrower exceptions
Created attachment 9834 [details]
4.1 patch cherry-picked from master (additional #2)
Fixed in Samba 4.2 with a89060a0217f8740798d1dac4466222301a4d81b
This never got into 4.1 while this was still being maintained.