I have an Umbraco installation which is set up on my local server on my computer, on a staging server, and on a live server. Recently our client accidentally unpublished about 100 nodes on the live server and they wanted to quickly republish all of the nodes again.
Here is the problem; when you right click on a node and click 'Publish', and click 'Publish' on the popup (even without checking any checkboxes), the node is never published. It just says "Publishing in progress - please wait..." and even after an hour of waiting, nothing will have happened. This happens on all three servers. It does not matter if the node has any children, or if we have checked either of the checkboxes, it always hangs when we try publishing this way. Publishing the normal way works fine. There are no errors in the error log when I try right click publishing.
I think it's worth mentioning that this server uses CmsImport to automatically import data from a database to populate Umbraco once per day.
I have tried deleting the umbraco.config found under /App_Data/ but that did not solve anything.
Apparently this error has been around a while with this installation, and my colleague reports that he has experienced it with other Umbraco installations.
This server is running on Umbraco v6.1.5 (Assembly version: 1.0.4993.19246), we're considering upgrading this instlaltion to the latest stable build of Umbraco 6.x which is currently 6.2.4, does anyone have any idea if this would help fix the problem?
Any help on this issue would be useful, especially if anyone can find any other posts about it (as I had no luck). Thanks for reading this post.
I just had a quick glance but it does not seem anything has been reported about such issue as mentioned above as far as I can tell.
Have you checked the /app_data/logs file to see if it reveals anything marked with ERROR or WARNING related to the issue? And have you had a look in the browser console log too to see if it reveals anything?
Thanks for your quick reply Jan. I wasn't aware of issues.umbraco.org so I just had a check, I couldn't find any issues related to my problem either.
There's nothing at all being reported in the /app_data/logs when I try publishing. For the first time I took a look at the browser console and nothing was reported in there either when I published, however this was in Firefox.
I figured I needed to also test in Chrome to see if the same endless publishing loop occurs in it, and it's the same problem. Except in the browser console, this message pops up:
Ok, so have you checked to see if the file is missing from the folder on your disk? It must be for some reason. Don't know if it's due to some .gitignore issue if you're using GIT/Mercurial repositories?
If you go to /umbraco/RestServices/ and the file is not there it should be a matter of downloading Umbraco 6.1.5 and find the file and add it to your solution from your download.
We only recently received this website after another company worked on it, so there's no telling what files they didn't commit to the repo.
Also there isnt a folder under /umbraco/RestServices/, even in a freshly downloaded version. However I agree that some file must be missing if I'm getting a 404. I'll have a look around to see if there are any files missing.
Thanks for the help, I'll post a solution if I find one.
FYI, anything under RestServices would likely be a REST web service, and so probably wouldn't have a file on the file system. Rather, it would be a virtual path created with an MVC route.
I would expect that a GET would fail (notice the action method is marked as HttpPost, which means it will only respond to POST requests and not GET requests). Not sure what is trying to perform a GET at that URL, but I would expect it to fail.
Just an update to this issue, upgrading to version 6.2.5 does not fix bulk publishing problem. I have a feeling that the problem may lie in one of the packages which the installation uses, the installed plugins are:
CmsImport
CultivSearchEngineSitemap
FamFamFam Icon Package
Locator Razor style
uComponents
uDateFoldersy
Umbraco Contour
Url Tracker
XSLTsearch
If I ever find the answer to this, I will post here.
I figured it out! I noticed that the UrlRewriting.config file in the Config folder had a rewrite which adds a trailing slash to all URLs. This messed up all of Umbracos Rest Services as the application was always being redirected to the wrong place, here's the code that was used:
Right click and publish never stops publishing
I have an Umbraco installation which is set up on my local server on my computer, on a staging server, and on a live server. Recently our client accidentally unpublished about 100 nodes on the live server and they wanted to quickly republish all of the nodes again.
Here is the problem; when you right click on a node and click 'Publish', and click 'Publish' on the popup (even without checking any checkboxes), the node is never published. It just says "Publishing in progress - please wait..." and even after an hour of waiting, nothing will have happened. This happens on all three servers. It does not matter if the node has any children, or if we have checked either of the checkboxes, it always hangs when we try publishing this way. Publishing the normal way works fine. There are no errors in the error log when I try right click publishing.
I think it's worth mentioning that this server uses CmsImport to automatically import data from a database to populate Umbraco once per day.
I have tried deleting the umbraco.config found under /App_Data/ but that did not solve anything.
Apparently this error has been around a while with this installation, and my colleague reports that he has experienced it with other Umbraco installations.
This server is running on Umbraco v6.1.5 (Assembly version: 1.0.4993.19246), we're considering upgrading this instlaltion to the latest stable build of Umbraco 6.x which is currently 6.2.4, does anyone have any idea if this would help fix the problem?
Any help on this issue would be useful, especially if anyone can find any other posts about it (as I had no luck). Thanks for reading this post.
Hi Harvey and welcome to our :)
Have you consulted the issue tracker in order to see if anything has been reported about such issue on Umbraco 6.1.5? http://issues.umbraco.org/issues?q=%236.1.5&p=0&f=false
I just had a quick glance but it does not seem anything has been reported about such issue as mentioned above as far as I can tell.
Have you checked the /app_data/logs file to see if it reveals anything marked with ERROR or WARNING related to the issue? And have you had a look in the browser console log too to see if it reveals anything?
/Jan
Thanks for your quick reply Jan. I wasn't aware of issues.umbraco.org so I just had a check, I couldn't find any issues related to my problem either.
There's nothing at all being reported in the /app_data/logs when I try publishing. For the first time I took a look at the browser console and nothing was reported in there either when I published, however this was in Firefox.
I figured I needed to also test in Chrome to see if the same endless publishing loop occurs in it, and it's the same problem. Except in the browser console, this message pops up:
GET http://domain.local/umbraco/RestServices/BulkPublish/PublishDocument/ 404 (Not Found)
It turns out that I had the NET option in FF unticked so no NET information was being shown in the console. FF also told me that this URL had a 301 redirect from http://domain.local/umbraco/RestServices/BulkPublish/PublishDocument to http://domain.local/umbraco/RestServices/BulkPublish/PublishDocument/ where it was then 404ing.
A Google of that error gave this URL where someone was getting a similar error:
http://our.umbraco.org/forum/ourumb-dev-forum/bugs/46585-Rest-BulkPublish-PublishDocument-500-error
But I don't think that this error is related.
It appears that I'm missing a file, but Googling around hasn't helped.
Hi Harvey
Ok, so have you checked to see if the file is missing from the folder on your disk? It must be for some reason. Don't know if it's due to some .gitignore issue if you're using GIT/Mercurial repositories?
If you go to /umbraco/RestServices/ and the file is not there it should be a matter of downloading Umbraco 6.1.5 and find the file and add it to your solution from your download.
Hope this helps.
/Jan
Hey again Jan.
We only recently received this website after another company worked on it, so there's no telling what files they didn't commit to the repo.
Also there isnt a folder under /umbraco/RestServices/, even in a freshly downloaded version. However I agree that some file must be missing if I'm getting a 404. I'll have a look around to see if there are any files missing.
Thanks for the help, I'll post a solution if I find one.
FYI, anything under RestServices would likely be a REST web service, and so probably wouldn't have a file on the file system. Rather, it would be a virtual path created with an MVC route.
Based on this source code: https://github.com/umbraco/Umbraco-CMS/blob/3bb61294e9ab55eddb6f9c6202663e4a0184988b/src/Umbraco.Web/WebServices/BulkPublishController.cs
I would expect that a GET would fail (notice the action method is marked as HttpPost, which means it will only respond to POST requests and not GET requests). Not sure what is trying to perform a GET at that URL, but I would expect it to fail.
Just an update to this issue, upgrading to version 6.2.5 does not fix bulk publishing problem. I have a feeling that the problem may lie in one of the packages which the installation uses, the installed plugins are:
If I ever find the answer to this, I will post here.
I figured it out! I noticed that the UrlRewriting.config file in the Config folder had a rewrite which adds a trailing slash to all URLs. This messed up all of Umbracos Rest Services as the application was always being redirected to the wrong place, here's the code that was used:
Commenting out this code instantly fixed the bulk publishing problem.
I also found that trying to save a Template through Umbraco would not work because it was also going through a Rest Service.
Thanks for the help everyone.
I had the same problem with a rule in the web.config file using the IIS UrlRewrite module. The original rule was as follows:
Which I amended as follows to address the problem:
is working on a reply...