Running two versions of 1c on one server. Parallel launch of several 1C:Enterprise servers of different versions on one computer

Server 1C 8.2 and 8.3 on one computer (Windows)

Server 1C 8.2 and 8.3 on one computer (Windows)

September 24, 2015

Let's say you have a functioning 1C 8.3 server and you additionally need to upgrade to 8.2. However, after installing 8.2 and running it, this led to problems with version 8.3.
The easiest way to start is to write the necessary values ​​in the registry operating system.
Let's stop the 1s 8.2 server.
Now open “Start - Run” and enter the command regedit. The system registry will open. Find the ImagePath parameter in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\1C:Enterprise 8 Server Agent branch. Ports for 1c are registered in this registry key. Let's change them, for example, to:
C:\Program Files\1cv82\8.2.хх.хх\bin\ragent.exe" -srvc -agent -regport 2041 -port 2040 -range 2060:2091 -d "C:\Program Files\1cv82\srvinfo

regport - clients are connected through it.
port — server management port (administration panel, postgresql).
range - ports for connecting a PC.
Don't forget to open the firewall ports!

Restart servers 1C 8.3 and 8.2.
Now let’s create a central server in the server administration panel.

Create a central server.
The port must be set for the central server.
For a server cluster, you need to set the port value to regport.
For worker processes, the port range is set to range

To connect to the 1c 8.2 server, you now need to specify nameserver in the “Server name” field:

It is also possible that you want to rename the cluster, which may result in the error "Error network access to the server"

Background... Our company successfully operates 1C:Enterprise version 8.2, which has about 100 intensively used accounting databases. A separate server with quite impressive characteristics has been allocated for this matter, because... During operation, it turned out that the combination 1C:Enterprise 8.2 + MS SQL 2005 is very demanding on such hardware resources as hard disks, processor, and most importantly - quantity random access memory. The cost of such a server for us exceeded 250 thousand rubles (not counting licenses for both the OS and 1C itself).

It was considered unreasonable to allocate separate hardware for 1C:Enterprise version 8.3, and besides, paying another 100 thousand rubles for the second set of keys for the 1C server is very expensive! An attempt to install 1C:Enterprise version 8.3 directly led to the fact that the cluster with existing databases was lost. This is where the peculiarities of installing and running two server versions of 1C:Enterprise on one computer were revealed.

The installation program for 1C:Enterprise 8.2 and 8.3 configures software to use their standard ports: 1540 (used by the server agent), 1541 (used by the cluster manager), 1560-1591 (range of ports used for workflows). Therefore, if the 1C:Enterprise 8.3 server must work simultaneously with the 1C:Enterprise 8.2 server, then the former must specify ports different from those already used by the running instance of the previous version of the server.

On a computer with the 1C:Enterprise server version 8.2 already installed, the “1C:Enterprise 8.2 Server Agent” service is registered and running, already using the standard ports indicated above. If you installed a 1C:Enterprise 8.3 server “nearby”, then the launch of its service “1C:Enterprise 8.3 Server Agent” will end abnormally, because it will try to use already “occupied” ports. To avoid this, you must do the following.

(Everything described below is true for Windows Server 2008 R2 Enterprise (and Standart) 64 bit + SP1 and 32-bit server versions of 1C:Enterprise 8.2 and 8.3).

1C:Enterprise 8.2 (version 8.2.19.90) was installed by me as a Windows service with rights to run on behalf of an existing one local user"Administrator".

After installation is complete, the window Server Manager -> Configuration -> Services we see the “1C:Enterprise 8.2 Server Agent” service running:

launched with parameters:

C:\Program Files (x86)\1cv82\8.2.19.90\bin\ragent.exe" -srvc -agent -regport 1541 -port 1540 -range 1560:1591 -d "C:\Program Files (x86)\1cv82\ srvinfo"

I installed 1C:Enterprise 8.3 server (version 8.3.4.437) in a similar way:

However, as we see in the window Server Manager -> Configuration -> Services, the “1C:Enterprise 8.3 Server Agent” service did not start:

Now we need to open the window command line cmd and go to the bin directory of the installed server version of 1C:Enterprise 8.3 and try to delete the registration of the “1C:Enterprise 8.3 Server Agent” service with the command ragent.exe -rmsrvc:

C:\Users\admin>cd C:\Program Files (x86)\1cv8\8.3.4.437\bin C:\Program Files (x86)\1cv8\8.3.4.437\bin>ragent.exe -rmsrvc Error! ControlService error!

I got it error Error! ControlService error! , which is in principle expected, because the service has not registered properly in the system. But in fact, he should leave. In the window Server Manager -> Configuration -> Services you won't see him again.

Now you need to re-register of this server, but at the same time specify ports different from those already used by the 1C:Enterprise 8.2 agent. In my case the command will look like:

C:\Program Files (x86)\1cv8\8.3.4.437\bin>

  • -port 2540— port on which the 1C:Enterprise server agent version 8.3 will run;
  • -regport 2541— port through which the 1C:Enterprise server cluster, version 8.3, will be administered;
  • -range 2560:2591— range of ports for workflows;
  • -in “C:\Program Files (x86)\1cv8\srvinfo”— a directory for storing information about the new 1C:Enterprise server cluster being created, version 8.3;
  • -usr .\Administrator— the user on whose behalf the 1C:Enterprise server agent version 8.3 will be launched;
  • -pwd********— password for the specified user (enter yours).

After this, you will again see the “1C:Enterprise 8.3 Server Agent” service in the window Server Manager -> Configuration -> Services. All you have to do is run it with the command ragent.exe -start:

C:\Program Files (x86)\1cv8\8.3.4.437\bin>ragent.exe -start

In the window Server Manager -> Configuration -> Services we see the “1C:Enterprise 8.3 Server Agent” service:

launched with parameters:

where is the field “ Executable file” has the setting:

C:\Program Files (x86)\1cv8\8.3.4.437\bin\ragent.exe" -srvc -agent -regport 2541 -port 2540 -range 2560:2591 -d "C:\Program Files (x86)\1cv8\ srvinfo"

And now the most interesting thing: you will have to perform this operation every time there is a need to update the version of the 1C: Enterprise 8.3 server! Bravo, developers...

Now a little about how to live with this connection. There is no longer a need to run the 1C:Enterprise program itself with the old version (from the folder C:\Program Files (x86)\1cv82\common). When installing 1C:Enterprise version 8.3, the desktop shortcut will automatically be overwritten to launch the program from the folder C:\Program Files (x86)\1cv8\common. If you open an accounting database running on a server version 8.2, it will automatically open in the required version of the thin client.

Templates for creating databases (accounting or ZIK) are placed by default in the directory of the user on whose behalf you launched their installation. If you are doing this as an administrator, you will find them in the path C:\Users\administrator\AppData\Roaming\1C\1cv8\tmplts . If you want to add a new database based on the installed template, thin client version 8.3 will see them all:

Now, if you need to register the database version 8.3, then you will need to indicate in the “1C:Enterprise server cluster” field the computer with the 1C server version 8.3 installed and, through a colon, the port of the cluster manager that you specified when registering the 1C server agent version 8.3. In my case it is 2541:

When adding a new one to the list of accounting databases, located on an enterprise server running 1C:Enterprise version 8.3, you must also indicate the server name, followed by a colon - the port used by the cluster manager:

The need to register the utility for cluster administration with both 1C servers (both versions 8.2 and 8.3) remains after each installation/update.

Now let's move on to administering clusters managed by different versions 1C:Enterprise servers on one computer. Open the folder in Explorer along the path C:\Program Files (x86)\1cv8\common, and create a shortcut on the desktop for the cluster administration console version 8.3 (it’s better to immediately rename the shortcut accordingly, for example 1CV8.3):

In the same way, open the folder in Explorer along the path C:\Program Files (x86)\1cv82\common , and create a shortcut on the desktop for the cluster administration console version 8.2 (it’s better to immediately rename the shortcut, for example to 1CV8.2):

On your desktop you will get the following:

Let’s launch the 1C:Enterprise server cluster administration utility version 8.2 with the shortcut “1CV8.2” (since the server uses default ports, the cluster will be displayed without problems):

When you try to open this cluster from the console intended for administering the 1C:Enterprise server cluster version 8.3 (using the desktop shortcut named “1CV8.3”), you will see the error:

Error connecting to the 1C:Enterprise 8.3 server: The client and server versions differ (8.3.4.437 - 8.2.19.90), client application: Cluster Console

To display the 1C:Enterprise server cluster version 8.3 we need, we need to create a new central 1C:Enterprise 8.3 server in this snap-in:

  • in field Name you must specify the name of the computer with the 1C:Enterprise 8.3 server installed;
  • in field IP port you must specify the port on which the 1C:Enterprise 8.3 server agent runs, which you designated when setting up the agent launch service;
  • in field Description indicate description.

After clicking the “OK” button, you will be able to see your new cluster, which was created after installing the 1C:Enterprise server version 8.3.

Those. administration of clusters of different versions of 1C:Enterprise server installed on one computer is carried out using the appropriate snap-ins.

That's basically it. Good luck!

_________
UPD. As practice has shown, the method described in this article is not suitable for simultaneously running several instances of 1C:Enterprise server version 8.3 on one server. When trying to create a new 1C agent service from a different version of 1C:Enterprise, running on different ports, the operation:

C:\Program Files (x86)\1cv8\8.3.4.437\bin>ragent.exe -instsrvc -port 2540 -regport 2541 -range 2560:2591 -d "C:\Program Files (x86)\1cv8\srvinfo" - usr .\Administrator -pwd ********

ends up removing an already running service old version 1C 8.3, but a new one is not created.

In I described a method for installing, creating the appropriate ones and running several versions of 1C:Enterprise 8.3 server on one server...

For people who want to constantly improve, learn something and constantly learn something new, we specially made this category. It contains exclusively educational, useful content that you will certainly enjoy. A large number of videos can perhaps rival even the education we are given at school, college or university. The biggest thing about training videos is that they try to give the latest, most relevant information. The world around us in the era of technology is constantly changing, and printed educational publications simply do not have time to provide the latest information.


Among the videos you can also find educational videos for preschool children. There your child will be taught letters, numbers, counting, reading, etc. Agree, it’s a very good alternative to cartoons. You can also find training for primary school students English language, assistance in studying school subjects. For older students, educational videos have been created that will help you prepare for tests, exams, or simply deepen your knowledge in a particular subject. The acquired knowledge can have a qualitative impact on their mental potential, as well as please you with excellent grades.


For young people who have already graduated from school, are studying or not studying at university, there are many fascinating educational videos. They can help them deepen their knowledge of the profession for which they are studying. Or get a profession, such as a programmer, web designer, SEO optimizer, etc. This profession is not yet taught at universities, so you can become a specialist in this advanced and relevant field only by self-education, which we are trying to help with by collecting the most useful videos.


For adults, this topic is also relevant, since it often happens that after working in a profession for years, you come to the understanding that this is not your thing and you want to learn something more suitable for yourself and at the same time profitable. Also among this category of people, there are often videos on the type of self-improvement, saving time and money, optimizing their lives, in which they find ways to live a much better and happier life. Even for adults, the topic of creating and developing your own business is very suitable.


Also among the educational videos there are videos with a general focus that are suitable for almost any age; in them you can learn about how life began, what theories of evolution exist, facts from history, etc. They perfectly broaden a person’s horizons, making him a much more erudite and pleasant intellectual interlocutor. Such educational videos are indeed useful for everyone to watch, without exception, since knowledge is power. We wish you a pleasant and useful viewing!


Nowadays, it is simply necessary to be what is called “on the wave.” This refers not only to news, but also to the development of one’s own mind. If you want to develop, explore the world, be in demand in society and be interesting, then this section is just for you.

We install the 1C 8.3 server to work together with 8.2, and if necessary, then with 8.1.
Or we simply launch an unlimited number of 1C servers for different tasks.

If the server has not yet been installed, then:

1. Download the server distribution. It is usually called like this: " Server 1C:Enterprise (64-bit) for Windows"
or "Technological platform 1C:Enterprise for Windows"

If the installer crashes when you try to start the service, click “Skip”.

Registry settings:

1. Go to the registry using regedit and follow the path:

"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\1C:Enterprise 8.3 Server Agent"

The final path may vary depending on installed version, For example:

1C:Enterprise 8.3 Server Agent (x86-64)
1C:Enterprise 8.3 Server Agent
1C:Enterprise 8.2 Server Agent
and so on.

2. If a second server is created, the same version or the same edition as the one already running, then:

We create a full copy of the directory and rename it, for example to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\1C:Enterprise 8.3 Server Agent Debug

3. Find the key with the name " ImagePath", we edit all ports and port ranges in it from 15xx to others, for example 16xx, 17xx, 18xx, etc.

The result should be:
"C:\Program Files\1cv8\8.3.6.2299\bin\ragent.exe" -srvc -agent -regport 1741 -port 1740 -range 1760:1791 -d "C:\Program Files\1cv8\srvinfo"

4. If we launch the server for debugging or another version of the same edition, add the key at the end -debug
"C:\Program Files\1cv8\8.3.7.1751\bin\ragent.exe" -srvc -agent -regport 1741 -port 1740 -range 1760:1791 -d "C:\Program Files\1cv8\srvinfo" -debug

In this case, it is also necessary to change the working directory of the server from "C:\Program Files\1cv8\srvinfo" on "C:\Program Files\1cv8\srvinfo_debug",
having previously created a directory on the disk.

5. For the service to appear in the list of services, you must restart the server, or run the following command:
sc create "1C:Enterprise 8.3 Server Agent Debug" binPath="C:\Program Files (x86)\1cv8\8.3.5.1482\bin\ragent.exe"
Where
1C:Enterprise 8.3 Server Agent Debug- the name of the directory we created in the registry (it’s also the name of the service)
"C:\Program Files (x86)\1cv8\8.3.5.1482\bin\ragent.exe"- let it be to the service being started (the key starts with it " ImagePath")

6. Go to services and start the service "1C:Enterprise 8.3 Server Agent Debug".
The service name is set in the registry with the key DisplayName

7. When updating the platform, the version will change only on the main server, folder 1C:Enterprise 8.3 Server Agent
For added services, the platform version will have to be changed manually.

8. The operation can be repeated an unlimited number of times, depending on how many and what servers are needed.
For example, three different 8.1, two 8.2, two 8.3.

8. The cluster console when installing the client part of the platform has a different path for different versions, if we set it “by default”, then this:

8.2 - "C:\Program Files\1cv82\common\1CV8 Servers.msc"
8.3 - "C:\Program Files\1cv8\common\1CV8 Servers.msc"