Something similar happened to us a few days ago. We have created a new instance of IRIS Health 2025.1 on a new Windows server. We had an Installer that creates Namespace, DB and FHIR repository, and when we were trying to install everything, we get this error:
Unable to copy file 'C:\InterSystems\IRISHealth\iris_cpf_828' to 'C:\InterSystems\IRISHealth\iris.cpf'
It was really weird. We tried it several times without success. This worked on docker container without problems... So we decided to create it manually. The user that executes IRIS instance has permissions on the server. I still don't know what could happened...
Finally we found a solution for this. My colleage @Miguelio resolved it. He has documented it in Spanish community. I put here the link: https://es.community.intersystems.com/post/persistencia-de-sesi%C3%B3n-o...


I found this article: https://community.intersystems.com/post/no-access-control-allow-origin-h...
This is what's happening to me from my web application (excluding the webgateway error, which I think simply the description isn't correct).
Checking the CSPSystem user, I've assigned it the role of the database where the FHIR repository is located, and it still doesn't work. However, if I assign it the %All role, it works. So, I'm missing some permission for this user; I can't figure out which one...