I believe you are actually encountering two separate issues. The first issue ("You must have write permission for the Module Database to perform this function") implies that you do not have sufficient privileges to register the interface instance with the PI server. Could you please confirm that the interface machine, and specifically ICU (pi-icu.exe) have sufficient privileges to make edits to the Module Database? This would be configured using a trust or mapping.

The second error has to do with MDB to AF synchronization. We can tackle that problem after resolving this one, or you could open a new thread for that error.

The %OSI* modules and sub-modules are excluded from MDB to AF sync, and should never throw this error regardless of the sync status. Is this the original %OSI? Or did you rename another module to %OSI or create a new one? Do you see %OSI appearing in your sync database on the AF Server? If you do, there is definitely a problem with your MDB/AF sync that we should look at more closely.

Does the mapping have privileges to make edits to the MDB? Also, we should verify that the connection from PI ICU to the PI Server is using that mapping. You can check this by using the Network Manager Statistics plugin in PI System Management Tools. Find your connection and scroll over to Identity and OSUser. These should match the settings from your mapping.