Sean Posted July 30, 2012 Report Share Posted July 30, 2012 Hi, I have read this blog post -> http://codicesoftware.blogspot.com/2010/12/setting-up-two-plastic-scm.html on how to set up multiple servers on a Windows host but I'm wondering how this might be done on a Linux server host. Do you have any instructions like this blog post that you could provide? Regards, Sean Link to comment Share on other sites More sharing options...
manu Posted August 1, 2012 Report Share Posted August 1, 2012 Hello Sean, it's quite similar, you have to configure a different port for the secondary server and if both servers are going to use the same backend (database engine) you will need to include a database suffix <DbConfig> ... <DatabaseSuffix>_s2</DatabaseSuffix> ...</DbConfig> And in order to run both servers you will need to include on the Unix bootstrap the Plastic SCM launch. You can do it by running the following: ./plasticd --console or ./plasticd --daemon I do recommend you to do it manually the first time in order to see if everything is fine. Link to comment Share on other sites More sharing options...
Sean Posted August 2, 2012 Author Report Share Posted August 2, 2012 Thanks Manu, I'll give this a try when I have some time to test it Link to comment Share on other sites More sharing options...
Maja Posted September 20, 2012 Report Share Posted September 20, 2012 PlasticSCM-4.1.10.341-linux-x64-installer CentOS 6.3 PostgreSQL DB One instance is running OK. I have coppied /opt/plasticscm4 to /opt/plasticscm4_2, modified all files, where I found some path info to _2, added DataBaseSuffix, modified port to 80087 and still cannot run the second instance. plasticd --console Configuration file '/opt/plasticscm4/server/remoting.conf' could not be loaded: Argument is out of range. Parameter name: port Cannot find any file containing this path. I think it is hardcoded somewhere ... ??? Link to comment Share on other sites More sharing options...
manu Posted September 20, 2012 Report Share Posted September 20, 2012 I think you are reusing the server start-up script and it has a reference to the old Path, open the "plasticd" file and fix it. Link to comment Share on other sites More sharing options...
Maja Posted September 20, 2012 Report Share Posted September 20, 2012 No, startup script ./plasticd has modified path ... exec "/opt/plasticscm4_2/config/mono_setup" plasticd mono "/opt/plasticscm4_2/server/plasticd.exe" "$@" ... Link to comment Share on other sites More sharing options...
manu Posted September 20, 2012 Report Share Posted September 20, 2012 I have time to a short gotomeeting connection. Are you available? Link to comment Share on other sites More sharing options...
Maja Posted September 20, 2012 Report Share Posted September 20, 2012 Sorry, i have no audio devices now ... Link to comment Share on other sites More sharing options...
Maja Posted September 20, 2012 Report Share Posted September 20, 2012 In these files is modified path (from /opt/plasticscm4 to /opt/plasticscm4_2) ./server umtoolgui plasticd umtool clconfigureserver configureserver ./client binmergetool plasticupd clconfigureclient mergetool cm plastic ./config mono_setup mono_setup_env Cannot find any other file with strings like /opt/plasticscm4 or remoting.conf inside. Link to comment Share on other sites More sharing options...
manu Posted September 20, 2012 Report Share Posted September 20, 2012 No problem, we can use the build-in chat. Please tell me your time zone. Link to comment Share on other sites More sharing options...
Maja Posted September 20, 2012 Report Share Posted September 20, 2012 Europe/Prague Link to comment Share on other sites More sharing options...
manu Posted September 20, 2012 Report Share Posted September 20, 2012 Ok, so if you want it I'll be available for the next 30 minutes. Link to comment Share on other sites More sharing options...
Maja Posted September 24, 2012 Report Share Posted September 24, 2012 Is this somewhere in documentation ? I am able to find webpage http://codicesoftware.blogspot.com/2010/12/setting-up-two-plastic-scm.html and this forum posts. And none of these informations works ... Link to comment Share on other sites More sharing options...
Maja Posted September 25, 2012 Report Share Posted September 25, 2012 Thanks for offering chat, but for me is better to post it here in forum. Link to comment Share on other sites More sharing options...
manu Posted September 25, 2012 Report Share Posted September 25, 2012 Ok, let's do the following: 1) Check that the remoting.conf file exists and it has the right permissions to be read. 2) Check the same for the server.conf file. 3) This time run the following command: mono ./plasticd.exe --console Link to comment Share on other sites More sharing options...
JakubH Posted September 26, 2012 Report Share Posted September 26, 2012 Hi, I have a similar issue. I am trying to run two servers on one machine with Windows. I was following this blog post: http://codicesoftwar...lastic-scm.html, however it is not working in the current version (Plastic 4.1.10.345). Everything looks fine, until I try to run the second service. It just doesn't start. I tried to run it as a console app and it returns this error message: log4net:ERROR [FileAppender] Unable to acquire lock on file C:\Program Files\PlasticSCM4\server\query.log.txt. The process cannot access the file 'C:\Program Files\PlasticSCM4\server\query.log.txt' because it is being used by another process. log4net:ERROR [RollingFileAppender] Unable to acquire lock on file C:\Program Files\PlasticSCM4\server\ChannelCall.log.txt. The process cannot access the file 'C:\Program Files\PlasticSCM4\server\ChannelCall.log.txt' because it is being used by another process. log4net:ERROR [FileAppender] Unable to acquire lock on file C:\Program Files\PlasticSCM4\server\upgrade.log.txt. The process cannot access the file 'C:\Program Files\PlasticSCM4\server\upgrade.log.txt' because it is being used by another process. log4net:ERROR [RollingFileAppender] Unable to acquire lock on file C:\Program Files\PlasticSCM4\server\plastic.server.log. The process cannot access the file 'C:\Program Files\PlasticSCM4\server\plastic.server.log' because it is being used by another process. Creating ServerSink Remoting configuration failed with the exception 'System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at System.Net.Sockets.TcpListener.Start(Int32 backlog) at Codice.Channels.PlasticTcpServerChannel.StartListening(Object data) at Codice.Channels.PlasticTcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider serverSinkProvider, Boolean bUseSSL) at Codice.Channels.PlasticTcpChannel.CreateServerChannel(IDictionary properties, IServerChannelSinkProvider serverSink) at Codice.Channels.PlasticTcpChannel.Init(IDictionary properties, IClientChannelSinkProvider clientSink, IServerChannelSinkProvider serverSink) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Runtime.Remoting.RemotingConfigHandler.CreateChannelFromConfigEntry(ChannelEntry entry) at System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXmlConfigFileData configData, Boolean ensureSecurity) at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)'. It is quite clear what happens: it tries to use files from the first server directory, while it should use my second serverDOC directory. How can I solve that? Is the path hardcored somewhere? Link to comment Share on other sites More sharing options...
manu Posted September 26, 2012 Report Share Posted September 26, 2012 JakubH, in your case you are trying to use the same port for both servers. Check the remoting.conf file and choose a different one for the SSL and the regular channel. That's why the framework is complaining with this error: SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted Link to comment Share on other sites More sharing options...
JakubH Posted September 26, 2012 Report Share Posted September 26, 2012 No, I am trying to use different ports, but it reads the same remoting.conf file (from one server folder), so it gets the same port of course. Link to comment Share on other sites More sharing options...
manu Posted September 26, 2012 Report Share Posted September 26, 2012 Ok, in that case review the paths inside the "plasticd" script. If you start issuing "mono plasticd.exe --console" you can gn step by step. First make sure the mono command is running and then jump into the script. Link to comment Share on other sites More sharing options...
JakubH Posted September 26, 2012 Report Share Posted September 26, 2012 I am afraid I don't understand to your latest post, maybe it is intended for the Linux case. However I finally manage to get it up and running: the second service was installed wrong – with incorrect path. I delete it and create it again manually (using sc create PlasticServerDOC binPath= "C:\Program Files\PlasticSCM4\serverDOC\plasticd.exe" DisplayName= "Plastic Server 4 DOC" start= auto). It is working now. Link to comment Share on other sites More sharing options...
manu Posted September 27, 2012 Report Share Posted September 27, 2012 Sorry JakubH I didn't read the path lines and I thought that we were talking about UNIX. It's good to hear that is was a configuration issue and you have it up and running. Link to comment Share on other sites More sharing options...
JakubH Posted October 1, 2012 Report Share Posted October 1, 2012 No problem. I shouldn't add my case to this thread probably. It is a bit confusing. Link to comment Share on other sites More sharing options...
manu Posted October 1, 2012 Report Share Posted October 1, 2012 No problem! Let's see is Maja is also able to get it also up and running. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.