| Previous | Next |
| ERROR_SERVICE_NO_THREAD | ERROR_SERVICE_ALREADY_RUNNING |
ERROR_SERVICE_DATABASE_LOCKED
ERROR_SERVICE_DATABASE_LOCKED (1055, 0x0000041F) indicates that an operation attempted to acquire the Service Control Manager database lock while that lock was already held.
Service database locking
The Service Control Manager stores service configuration in the registry service tree. A database lock was historically used to serialize changes to this tree and service startup. On Windows Vista and later, LockServiceDatabase remains for compatibility but no longer has an operational effect.
On earlier Windows versions, a program that held the lock could prevent the Service Control Manager from starting services until it released the lock. The lock is associated with an SC_LOCK handle and must be released with UnlockServiceDatabase.
Practical interpretation
If this code is produced by legacy service-management software, look for another configuration or setup process that is changing service entries at the same time. Do not leave a database lock open across user interaction, network operations or other lengthy work.
Looking for a different code? Search another status or error code.