Missing nodes/macro's in backend after switching to Live environment
Hello,
We have 2 seperate environments running: a staging environment and a live environment, each with their own MS SQL Server instance.
After making changes to the staging-environment, we promoted our umbraco website from staging to live, by copying the database to the live instance and copying the files from the staging webserver to the live webserver (the web.config file contains the correct connectionstring on the live environment).
The latter worked without any problems. The new xslt and usercontrol files are correctly recognized in the Umbraco backend. However, the new content nodes and macro's don't appear in the list in the backend. The url's we used for the new nodes, are accessible and do display an empty page (the actual content is generated by the missing macro's).
We are unsure what went wrong here. Refreshing the content tree in the backend does not make the missing nodes appear, same problem with the macro list. Our first guess was a caching problem, however, we cannot seem to resolve this.
Is not because the macroes have been created afterwards the initial deploy?
Otherwise you should perhaps try to use fiddler on the live environment to see what is going on, when assets are being requested. Perhaps some of them return error 404, which can be related to a lack of sufficient permissions perhaps?
I think I would double check everything to see if permissions are allright and that all the macroes are in fact created and have not been lost during the deploy process for instance.
Sadly, fiddler is not showing anything out of the ordinary. The TreeDataService.ashx webservice succesfully completes with a 200 status code and returns the JSON object of the macro's that are visible. There is no mention of the missing macro's or any errors related to them.
The thing that riddles us the most is that our missing content nodes are actually reachable trough the url, but they still dont appear in the content tree. This makes us suspect that the database has been succesfully copied, but that something might be going wrong in Umbraco itself. Is it possible that the tree is built up based on data, cached by Umbraco, and that this cache is not correctly getting updated to represent the new data in the database? If Umbraco uses cache on the file system however, this should have been copied from the staging environment aswell...
I will make sure the permissions get checked, although these should be identical for the staging and live environments.
In the end, we fixed this issue by promoting the site again to the live environment and asking the hosting company to check the permissions. We never received feedback if the permissions where actually in place, so we'll have to assume that was the culprit :-)
Thanks for putting us on the right track, Jan, +1 :-)
Missing nodes/macro's in backend after switching to Live environment
Hello,
We have 2 seperate environments running: a staging environment and a live environment, each with their own MS SQL Server instance.
After making changes to the staging-environment, we promoted our umbraco website from staging to live, by copying the database to the live instance and copying the files from the staging webserver to the live webserver (the web.config file contains the correct connectionstring on the live environment).
The latter worked without any problems. The new xslt and usercontrol files are correctly recognized in the Umbraco backend. However, the new content nodes and macro's don't appear in the list in the backend. The url's we used for the new nodes, are accessible and do display an empty page (the actual content is generated by the missing macro's).
We are unsure what went wrong here. Refreshing the content tree in the backend does not make the missing nodes appear, same problem with the macro list. Our first guess was a caching problem, however, we cannot seem to resolve this.
Any ideas? :-)
Kind Regards,
-Matthias
Hi Matthias
That's really weird...
Is not because the macroes have been created afterwards the initial deploy?
Otherwise you should perhaps try to use fiddler on the live environment to see what is going on, when assets are being requested. Perhaps some of them return error 404, which can be related to a lack of sufficient permissions perhaps?
I think I would double check everything to see if permissions are allright and that all the macroes are in fact created and have not been lost during the deploy process for instance.
Hope these input helps a bit.
/Jan
Hello Jan,
Thanks for your reply!
Sadly, fiddler is not showing anything out of the ordinary. The TreeDataService.ashx webservice succesfully completes with a 200 status code and returns the JSON object of the macro's that are visible. There is no mention of the missing macro's or any errors related to them.
The thing that riddles us the most is that our missing content nodes are actually reachable trough the url, but they still dont appear in the content tree. This makes us suspect that the database has been succesfully copied, but that something might be going wrong in Umbraco itself. Is it possible that the tree is built up based on data, cached by Umbraco, and that this cache is not correctly getting updated to represent the new data in the database? If Umbraco uses cache on the file system however, this should have been copied from the staging environment aswell...
I will make sure the permissions get checked, although these should be identical for the staging and live environments.
Thanks,
-Matthias
In the end, we fixed this issue by promoting the site again to the live environment and asking the hosting company to check the permissions. We never received feedback if the permissions where actually in place, so we'll have to assume that was the culprit :-)
Thanks for putting us on the right track, Jan, +1 :-)
Hi Matthias
Yes sounds like it could very well be the classical permissions issue - I'm happy my suggestions where helpfull to you.
Happy Umbracoing :)
/Jan
is working on a reply...