cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with WCM ASR Deployment to localhost

jack_jin
Champ in-the-making
Champ in-the-making
Hello,

While configure a web project on Alfresco 3.0 final this morning, I got my web project in a bad place after trying to deploy its own instance.  I was able to reproduce this error on a fresh installation of alfresco 3.0 final on a VM.

————————————
Steps to reproduce it -

1. Create a new web project with the following settings -
No templates
    Create an ASR deployment server, enter in the following settings
    Set host to "localhost"
    Set display name to "localhost"
    Set username to "admin"
    Set password to admin's password
No workflows
Added admin as the content manager

2. Once the web project is created, add in a piece of content in the admin user sandbox, and promote it to the staging sandbox, everything is so far so good.

3. Expand the staging sandbox, and deploy the new piece of content to localhost.  This will create an AVM store called <webproject>live locally, since we pointed the deployment to localhost.

After doing that though, I received the following error when I tried to view all sandboxes in that web project-

Error received
org.alfresco.error.AlfrescoRuntimeException: Must have at least one store

At this point I will receive that error message when I try to delete my web cabinet, remove user from the web cabinet, and adding other users to the web cabinet.  I've read http://wiki.alfresco.com/wiki/WCM_Deployment_Features#Alfresco_Deployment_To_File_Server_Receiver_.2..., and it seems that you should be able to deploy to localhost.  I've deployed to localhost with Alfresco 3.0B for my past Alfresco projects with the same deployment configuration, but this time around with 3.0 final deploying to localhost seems to break my web project.

I was able to reproduce this issue on the linux development box and my local VM.  Any help would be greatly appreciated!

Jack
5 REPLIES 5

loic
Champ in-the-making
Champ in-the-making
Have you tried to deploy it to another computer than localhost ?

I succeeded in delopying my Web Project to another computer but I can't find it (the web project) on this second computer. The only thing i've found is avm://myWebProject in second computer's node browser.

Any clue ?

regards

jack_jin
Champ in-the-making
Champ in-the-making
Thanks for the reploy loic,

I haven't tried to deploy to another computer/instance of alfresco yet, but it's on my list of things to do.  When I deploy to localhost, avm:<webproject>live store gets created as well.  But by doing so in the 3.0 stable, it also seems to break the ability for the web project to get its sandboxes back.

I'll try deploying to another instance.

Jack

jack_jin
Champ in-the-making
Champ in-the-making
Here's what worked for me - Instead of using localhost as the host name, I used an arbitrary host name such as alfresco3d, then I mapped alfresco3d to my host file.  Deployment to my local instance went fine afterwords…

I'm still curious to why this is, and hopefully my findings here will help other people who have/will experience this.

mrogers
Star Contributor
Star Contributor
For an ASR deployment the store name on a remote server will be something like avm://myWebProject

Deploying to localhost is really for the convenience of developers (its not the primary use-case) and I think the store name is prepended wth "live" to separate it from the authoring environment.

jack_jin
Champ in-the-making
Champ in-the-making
Thanks for the reploy mrogers!

We've built a pretty rich application using alfresco's AVM system, and a decent chunk of the application depends on deploying to localhost and having the production store named avm://<websitename>live.  Realizing that 3.0 final currently does not support deploying to localhost (deploying to localhost would cause the sandboxes to detach from the webproject), we'll continue to use alfresco 3.0b/c.

Can we open up a jira ticket and have the deploying to localhost issue documented, reproduced, and possibly fixed for future features?

Thanks ahead of time

Edit: accidentally submitting it