cancel
Showing results for 
Search instead for 
Did you mean: 

Multiplce Instance of Alfresco and 2.0 version

camillo
Champ in-the-making
Champ in-the-making
Hi all,

I'd like install multiple instance of alfresco in a single server.
I read about Multi-tenancy but I have installed alfresco community 2.0 in my system.
Can I enable the multi-tenancy option in my alfresco?
If not, does exist a way that allows me to have multiple instance of alfresco?
Thank you so much in advance.
6 REPLIES 6

mrogers
Star Contributor
Star Contributor
You need a more recent version of Alfresco for multi-tenancy.

You should be able to configure multiple instances of Alfresco on a server.    You will just need to ensure that all resources that may overlap such as database account, database schemas and tcp port numbers are different for each instance of alfresco.

camillo
Champ in-the-making
Champ in-the-making
Can I avoid a new installation process using a newer version of alfresco?
I'm thinking to copy into the webapps directory of tomcat more than only one war file.
In this way, I have to modify the references to the db, to the dir.root and other similar references.
So, do you think this is a good solution to my problem?
Thank you very much for  your precious help.

mrogers
Star Contributor
Star Contributor
You could duplicate the alfresco web app.    But you will need to to take account of the fact that you need two instances of the tomcat/extensions folder for the two different sets of alfresco configuration files, in particular two different repository.properties files and any other custom configuration that each instance requires.

You could also consider having two separate instances of tomcat, the choice is yours.

camillo
Champ in-the-making
Champ in-the-making
So, I'll install Alfresco Labs 3d (stable) and i'll use the multi-tenancy option
I haven't many resources in order to execute more instances of tomcat.
So, I must have in my system only one instance of tomcat and, in the same time, multiple instance of alfresco
I don't want copying the tomcat/ext directory for each alfresco instance because I'm afraid this could give me problems abount maintenance.
Anyway, are  you agree with my decision?  :wink:
I apologize for this (stupid) question, but I'm a newbie and i'm looking for other opinions
Thank you!

camillo
Champ in-the-making
Champ in-the-making
Hi all,

I installed Alfresco 3 Labs and i enabled multy-tenancy.
It's a cool option but tenants share the same database.
Because I want one database for each alfresco instance, I'll copy war files in the webapps directory of tomcat and I'll setup  Alfresco configuration files.
Do you know a way that allows me using tenants ad one db for each tenant?
Thanks in advance

camillo
Champ in-the-making
Champ in-the-making
Hi,

as I wrote in my previous post, I have in my webapps diretory more than one war file as reguard as Alfresco.
I modified the repository.properties file to link correctly data and db.
But, when I start Alfresco these exceptions occur:

18:36:54,317 ERROR [smb.protocol.netbios] NetBIOSNameServer setup error:
java.net.BindException: Address already in use
   at java.net.PlainDatagramSocketImpl.bind0(Native Method)
   at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:82)
   at java.net.DatagramSocket.bind(DatagramSocket.java:368)
   at java.net.DatagramSocket.<init>(DatagramSocket.java:210)
   at java.net.DatagramSocket.<init>(DatagramSocket.java:261)
   at java.net.DatagramSocket.<init>(DatagramSocket.java:234)
   at org.alfresco.filesys.netbios.server.NetBIOSNameServer.openSocket(NetBIOSNameServer.java:1085)
   at org.alfresco.filesys.netbios.server.NetBIOSNameServer.run(NetBIOSNameServer.java:1611)
   at java.lang.Thread.run(Thread.java:619)
18:36:54,344 INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_11-b03; maximum heap size 493,063MB
18:36:54,361 WARN  [service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 493,063MB is less than recommended 512MB
18:36:54,344 ERROR [alfresco.ftp.protocol] FTP Socket error
java.net.BindException: Address already in use
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
   at java.net.ServerSocket.bind(ServerSocket.java:319)
   at java.net.ServerSocket.<init>(ServerSocket.java:185)
   at java.net.ServerSocket.<init>(ServerSocket.java:141)
   at org.alfresco.filesys.ftp.FTPNetworkServer.run(FTPNetworkServer.java:407)
   at java.lang.Thread.run(Thread.java:619)
18:36:54,361 INFO  [service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.1.0 (482) schema 64 - Installed version 2.1.0 (484) schema 64
18:36:54,368 ERROR [alfresco.smb.protocol] Server error :
java.net.BindException: Address already in use
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
   at java.net.ServerSocket.bind(ServerSocket.java:319)
   at java.net.ServerSocket.<init>(ServerSocket.java:185)
   at java.net.ServerSocket.<init>(ServerSocket.java:141)
   at org.alfresco.filesys.smb.server.SessionSocketHandler.initialize(SessionSocketHandler.java:257)
   at org.alfresco.filesys.smb.server.NetBIOSSessionSocketHandler.createSessionHandlers(NetBIOSSessionSocketHandler.java:165)
   at org.alfresco.filesys.smb.server.SMBServer.run(SMBServer.java:495)
   at java.lang.Thread.run(Thread.java:619)


I think the cause is about numbers of ports….is it right?
anyway, I checked the file-server.xml file, I edited numbers of ports  but the exceptions still occur.
Please, help me  Smiley Sad