jezahost
  • 1c
  • windows-server
  • migration
  • licensing

Moving a 1C server to the cloud. The database is easy to move, the licence is not

When 1C is moved from a computer in the office to a cloud server, the thing people fear most is losing the database. In practice, what catches you from an unexpected side is the licence. We tell what it is tied to and what we did about it.

In the accountant's room, under the desk, sits a computer. 1C runs on it, and the whole company's reporting is in it. When the power goes out, work stops; when the accountant wants to work from home, someone has to go to the office and switch the computer on. One day the manager says, "Let's move this to the cloud."

We have customer servers that run 1C, and this question comes up often. The most feared part of the move is the database. Yet the work with the database usually goes smoothly. What catches people where they do not expect it is something else, the licence.

What the licence is tied to

On paper, 1C's software licence (the one activated with a PIN code) is issued to the company; in practice it is tied to a specific computer. At the moment of activation the program takes that computer's "fingerprint" and then checks it at every start.

When we looked into this, we learned that the fingerprint includes these.

  • the processor;
  • information about the motherboard;
  • the address of the network card (MAC);
  • the computer's name on the network;
  • the version of the operating system and its installation date.

When one of these changes, 1C decides "this is a different computer" and the licence does not work.

On a physical computer these do not change for years. On a virtual server the situation is different, and this is exactly the part many people do not know about.

What can change on a cloud server

A virtual server runs on top of a physical machine, but it is not tied to that machine. When the provider does technical work, it can move it to another physical machine. The provider can update the software that runs the virtual servers. The server can be restored from a backup.

For the customer none of this should be visible. But seen through 1C's eyes, each one is a danger.

  • If the server has moved to another physical machine and the processor there is different, the "processor" part of the fingerprint changes.
  • If that software has been updated, the information about the "motherboard" the virtual server sees can change.
  • If the server has been restored, the address of the network card can be replaced with a new one.

The result is the same, in the morning the accountant opens 1C and sees a licence not found message. The database is in place, the server is running, but the program does not open.

What we did about it

Once we knew about this risk, we fixed three things in place.

First, the virtual "motherboard". We pinned the machine type of every virtual server to a specific version. When we update the software, the hardware information the server sees does not change.

Second, the processor. All our physical machines have the same processor model. So when we move a virtual server from one machine to another while it is running, the processor it sees does not change. We did not leave this as an assumption, we checked it, after a live migration the licence stays in place.

Third, identity. When a server is restored from a backup or rebuilt, the address of the network card and the server's unique identifier are preserved.

Before you start the move

On the licence side we have three pieces of advice.

Find your spare PIN codes in advance. Together with a software licence you are given several spare activation codes. You will not want to be hunting for where they are on the day of the move. The move itself is a new activation too, because for 1C the cloud server is a new computer.

If you have a USB key (HASP), tell the provider about it in advance. A USB key is a physical object, and attaching it directly to a virtual server ties the server to a specific physical machine. A server like that cannot be moved to another machine while it is running, which means one of the main advantages of the cloud is lost. Switching to a software licence is often the more convenient way.

If you have many users, think about a separate licence server. The licences sit in one place, and the work servers ask it. Then changing, enlarging or rebuilding a work server does not touch the licence.

In short

When 1C is moved to the cloud, the questions usually start with the database, how much space does it take, how will it be moved, how long will we be down. These matter, but the solution is known.

The question that is asked less often but causes more headaches is this, "Will my licence work in the new place, and will it still work tomorrow?" The answer depends on the provider. If the processor, motherboard and network card the virtual server sees do not change over time, the licence stays in place too. Ask your provider about this before the move.