Migrated to v11 staging + python3.
Ran bench --site site1.local migrate and all related commands.
Everything seemed fine until I wanted to use LDAP login. It didn’t work. Apart from this non-issue I ran into problem that now when trying to log in “StartTLS is not supported” error is shown. Exception message is following: 'LDAPSettings' object has no attribute 'ssl_tls_mode' (see here, here). After little investigation found out that /doctype/ldap_settings/ldap_settings.jsongot new fields, but when I open “LDAP Settings” via erpnext i see old set of fields (missing the new ones).
Checked again apps/frappe/frappe/integrations/doctype/ldap_settings/ldap_settings.json to confirm it has new fields. But LDAP Settings editing new fields do not show up.
Adding missing fields to ldap_settings doctype via ErpNext DocType editor according to ldap_settings.json file changes. Fixed the issue.
After saving doctype and validating that ldap works, reverted code changes.
Apparently for some reason DocType wasn’t updating in database.
Marking as solved, but haven’t figured out what was the reason for problem to appear in the first place.
UPDATE
Was thinking that somehow during all uapdes migrations and so on I’ve put system into state that it wasn’t able to peroperly migrate. But after clean install py2 master production and migrating to staging py3 resulted in the same issue, wich indicated that migration process isn’t robust.