cancel
Showing results for 
Search instead for 
Did you mean: 

Error previewing file in WCM workflow

xmaniac
Champ in-the-making
Champ in-the-making
When a reviewer tries to preview some content submitted in a web project he always gets a 404 error. I've checked the URL and is something like:

workflow-c1b6e96c-8b87-40ad-9c34-d09293df394a2.<webproject>.www-sandbox.<my_wcm_server>:8180/xxx.html

While that URL fails this one works fine:

admin.<webproject>.www-sandbox.<my_wcm_server>:8180/xxx.html

The only difference lies in the first chunk (user vs workflow id). Alfresco version is 3.2r2. Is this a known bug or some misconfiguration on my side? Any ideas?
3 REPLIES 3

xmaniac
Champ in-the-making
Champ in-the-making
I've just checked and stopping and restarting the virtual preview server fixes the error. Of course, that's not a solution as I cannot stop and restart the server each time  a user submits some files. Any ideas?

atroutt
Champ in-the-making
Champ in-the-making
I had this same issue and then I learned from this guy http://www.devcomments.com/Alfresco-Virtualization-Server-Not-Responding-8211-Unable-to-Preview-Site... that you shouldn't start the virtual server too soon after starting the alfresco server, so we wrote a script that puts a 60 second wait between starting up alfresco and starting the virtual server. That way we don't have to restart the virtual server later to get it to work.

This is called both.sh and it can take either stop or start as a parameter (i.e. command line> both.sh start)

./alfresco.sh $1
echo 'waiting …… (60?)'
sleep 60 #the main server needs to be up before we start up the virtual server
./alfresco-virtual.sh $1

hiphop
Champ in-the-making
Champ in-the-making
Thank you for replying. The strange thing is that when I copy a webpage document from another publishing database into my publishing database I can preview that document. But I cannot preview any document I create newly.
If you a copying a file from another Publishing database then the fields on that document will be preserved (and are probably correct). Sounds like you have a configuration setting incorrect.

For the page that renders correctly, what is it's URL? Compare this with the one that is failing (DNS Error) - there should be a difference which is probably coming from the System Settings.