Hey @Irfan_Krijestorac 
The thread contains a lot of messages, so I’ll sum it up just to be sure I fully understand the issue.
You frequently encounter the × Failed to push branch: Source and destination environments must have the same schema. Please check your environments code is synchronized.
Running forest schema:apply triggers another error: Cannot properly read the “.forestadmin-schema.json” file: “orm_version” is required.
Running forest schema:apply is not recommanded in the development workflow context, and should only be used in a few use-case.
As stated from @Alban_Bertolini, the last .forestadmin-schema.json received on our end on the QA environment is from the 05/24 and is different from your development environment, which either means that:
- The
.forestadmin-schema.json on the QA server did not change since the 05/24?
- Even if the file changed, your server was not restarted?
On our end, we do not have any log for your QA (nor Production) environment indicating a failure on saving this schema.
In order to solve this, could you confirm that:
- Both your QA and Production have the
NODE_ENV=production variable set (Especially useful as this prevent the server to re-generate the .forestadmin-schema.json and force the server to use the one versioned in the repository)
- That all your dev either don’t have
NODE_ENV=production set, or that the NODE_ENV variable is equal to anything else than production
The last resort manupilation to fix this kind of issue would be:
- On your development environment, drop
.forestadmin-schema.json, and restart your server
- A new one should be generated. Handle your versionning as you usually do
- Once done, deploy the new code on your QA server
- In development, run
forest schema:apply, and force-apply this schema on your QA
- At that point, both schema should be the same and push should work as excepted.
Once everything is correct, forest deploy to should be available and work as expected.
FYI
× Failed to push branch: Source and destination environments must have the same schema. Please check your environments code is synchronized.
is related to the schema already available in forest. If this error is raised but both of your schema are the same locally, this could indicate another issue (Failure to send the schema, falsy network settings, etc), and these kind of issues should be visible in your backend logs.
Let me know if that helps 