Shellinabox upgrade from 2.21~ynh3 to v2.21~ynh4 failing - script cannot delete app's user

I had the same problem and I resolved it reinstalling shellainabox and following Shell In A Box No Tile in SSO not working at all