cancel
Showing results for 
Search instead for 
Did you mean: 

Issues when using LinuxInstaller for community edition

forcev
Champ in-the-making
Champ in-the-making
I've installed Alfresco on a few distros using the LinuxInstallers, and all appeared to go well.  I can access alfresco without issue and can upload/edit and pretty much do all the document management that I want.  The problem comes when I want to do web content management.

As I said earlier I have installed on several distros - SLES10, SUSE10.1, openSUSE10.2, CentOS5 - and I get the same error on *all* systems.  Basically when I run al_start.sh I get:

# ./alf_start.sh
Using CATALINA_BASE:        /opt/Alfresco/tomcat
Using CATALINA_HOME:       /opt/Alfresco/tomcat
Using CATALINA_TMPDIR:    /opt/Alfresco/tomcat/temp
Using JRE_HOME:                /opt/Alfresco/java
sh: @@ALFRESCO_DIR@@/alfvirtual.sh: No such file or directory
Starting OpenOffice service…

If I try and run virtual_start.sh I get:

# ./virtual_start.sh
sh: @@ALFRESCO_DIR@@/alfvirtual.sh: No such file or directory

I have tried following the guide on how to set up a sample site but that borks, and I think it's down to the above error.  Any chance of some pointers, please?

P.S. One thing I noticed about the installer is that on CentOS5 it places a few icons on the desktop, but not on any of the SUSE distros.

Thanks
6 REPLIES 6

steve
Champ in-the-making
Champ in-the-making
Hello,

You could try running the 'alfvirtual.sh' file manually.

The error seems to indicate that you don't have the 'ALFRESCO_DIR' variable set, which by the info in your trace should be '/opt/Alfresco'

Hope this helps,

Steve

forcev
Champ in-the-making
Champ in-the-making
Steve,

Would I have missed a step if alfvirtual.sh doesn't exist in /opt/Alfresco or is it located in a different sub directory? (should have mentioned this earlier)

I installed the AlfrescoCommunity-2.0-Linux-x86-Install and I installed the AlfrescoWCMCommunity-2.0-Linux-x86-Install, which as a result provides the following scripts in /opt/Alfresco:

alfresco.sh
alf_start.sh
alf_stop.sh
start_oo.sh
uninstall
uninstall-wcm
virtual_alf.sh
virtual_start.sh
virtual_stop.sh

I have made no configuration changes other than using MySQL as the DB backend.

Thanks,

Andy

steve
Champ in-the-making
Champ in-the-making
Hi,

It looks like you might have found an issue with the WCM installer.

The file that should be run is 'virtual_alf.sh', not 'alfvirtual.sh' as your trace shows.

So, you could either:
run 'virtual_alf.sh start'
or run 'virtual_start.sh' (just does a call to 'virtual_alf.sh start')
or modify 'alf_start.sh' to point to the correct file.

I will raise a Jira bug about this.

Thanks,

Steve

forcev
Champ in-the-making
Champ in-the-making
Steve,

You may want to add the following to the bug - when I run virtual_alf.sh or either of it's linked scripts I get:

# ./virtual_alf.sh start
./virtual_alf.sh: line 5: cd: @@ALFRESCO_DIR@@: No such file or directory
./virtual_alf.sh: line 14: cd: @@ALFRESCO_DIR@@/virtual-tomcat/bin/startup.sh: No such file or directory

Thanks for confirming that I'm not totally inept at following instructions.

Andy

forcev
Champ in-the-making
Champ in-the-making
Solution is pretty simple for anyone that has this issue:

Edit virtual_alf.sh > on line 4 replace @@ALFRESCO_DIR@@ with your install path (in my case /opt/Alfresco).

Also edit virtual_start.sh and Virtual_stop.sh and do the same.

I think the script tells me to do that - # Set the following to where Tomcat is installed.

forcev
Champ in-the-making
Champ in-the-making
In virtual_start.sh and virtual_stop.sh you will need to replace alfvirtual.sh with virtual_alf.sh

(Something that also needs to be put in the bug report)