Method, device and equipment for repairing cloud operating system and readable storage medium
Through automated activation detection and repair processes, the problem of cumbersome human operations when the cloud operating system is activated fails, and the repair efficiency is improved.
Patent Information
- Application Number
- CN202411791207.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-04-25
AI Technical Summary
When the activation of the cloud operating system fails, the existing technology requires a lot of human operation, resulting in cumbersome operation processes and inefficient repair efficiency.
By obtaining the activation detection command, the cloud operating system is activated to detect the system status, and when the activation fails, the system repair operation is automatically performed based on the activation failure information until the activation is successful.
It realizes that when there is a problem with the cloud operating system, the detection, analysis and repair steps are automatically executed, which avoids waste of manpower, simplifies the operation process, and improves the system activation and repair efficiency.
Smart Images

Figure CN119883455A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of cloud computer technology, and in particular, relates to a cloud operating system repair method, device, equipment and readable storage medium. Background Art
[0002] Cloud computers use desktop virtualization technology to virtualize hardware resources in the cloud, and use terminals to remotely connect to virtual desktops to achieve the purpose of using computers, which has a similar experience to using local computers. Windows system (Microsoft operating system) as the Guest OS (Guest Operating System) of cloud computers can be activated by using the KMS (Key Management Service) mechanism. Since Microsoft's software activation mechanisms are interrelated, if the network, components or users use unconventional means to activate office (office software), the system activation environment will be destroyed, resulting in the inability to activate the Windows system normally.
[0003] In the related art, when the Windows system cannot be activated normally, users or operation and maintenance personnel are usually required to manually troubleshoot the problem and try to solve it and reactivate it to repair the operating system of the cloud computer. The whole process requires a lot of manual operations, wastes a lot of manpower, has cumbersome operating procedures, and has low repair efficiency. Summary of the invention
[0004] The present invention provides a cloud operating system repair method, device, equipment and readable storage medium to solve the problems of cumbersome operation process and low repair efficiency when repairing the operating system of a cloud computer in the related art.
[0005] In a first aspect, the present invention provides a method for repairing a cloud operating system, the method comprising:
[0006] Get the activation detection command;
[0007] Performing activation detection on the cloud operating system using the activation detection command to obtain a system state of the cloud operating system after the activation detection;
[0008] When the system state is an activation failure state, obtaining activation failure information output by the activation detection command;
[0009] A system repair operation corresponding to the activation failure information is performed to repair the system state of the cloud operating system to an activation success state.
[0010] In a second aspect, the present invention provides a repair device for a cloud operating system, the device comprising:
[0011] A first acquisition module, used to acquire an activation detection command;
[0012] An activation module, used to perform activation detection on the cloud operating system using the activation detection command to obtain the system state of the cloud operating system after the activation detection;
[0013] A second acquisition module, configured to acquire activation failure information output by the activation detection command when the system state is an activation failure state;
[0014] The repair module is used to perform a system repair operation corresponding to the activation failure information to repair the system state of the cloud operating system to an activation success state.
[0015] In a third aspect, the present invention provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the program.
[0016] In a fourth aspect, the present invention provides a readable storage medium, which, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute the method described in the first aspect.
[0017] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0018] By obtaining an activation detection command; using the activation detection command to perform activation detection on the cloud operating system, obtaining the system status of the cloud operating system after the activation detection; when the system status is an activation failure status, obtaining the activation failure information output by the activation detection command; executing the system repair operation corresponding to the activation failure information to repair the system status of the cloud operating system to an activation success status. In this way, the activation detection command can be used to first perform activation detection on the problematic cloud operating system, and when the activation fails, the system repair operation corresponding to the activation failure information obtained by the activation detection can be automatically executed to repair the system status of the cloud operating system to an activation success status. When a problem occurs in the cloud operating system, the detection, analysis, and repair steps can be automatically executed, thereby avoiding wasting a lot of manpower, simplifying the operation process, and effectively improving the efficiency of system activation and repair.
[0019] Additional aspects and advantages of the present invention will be given in part in the following description, and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 It is a flow chart of a system activation repair method provided by the background technology of this application;
[0022] Figure 2 It is a flow chart of a cloud operating system repair method provided in an embodiment of the present application;
[0023] Figure 3 is a flow chart of another cloud operating system repair method provided in an embodiment of the present application;
[0024] Figure 4 It is a block diagram of a repair device for a cloud operating system provided in an embodiment of the present application;
[0025] Figure 5 It is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] Before introducing the cloud operating system repair method, device, equipment and storage medium provided by the present disclosure, the application scenarios involved in each embodiment of the present disclosure are first introduced. The present disclosure can be applied to the repair and activation scenario of the cloud computer operating system, and the cloud operating system repair method provided by the embodiment of the present disclosure can be applied to an electronic device, wherein the corresponding cloud computer client software can be installed on the electronic device, so that the user can connect to the cloud computer on the electronic device anytime and anywhere.
[0028] Specifically, the electronic device may include a handheld device, a vehicle-mounted device, a wearable device, a computing device or other processing device connected to a wireless modem, as well as various forms of user equipment (UE) (e.g., a mobile phone), a mobile station (MS) and other devices.
[0029] Cloud computers use desktop virtualization technology to virtualize hardware resources in the cloud, and use terminals to remotely connect to virtual desktops to achieve the purpose of using computers, which has a similar experience to using local computers. Windows system (Microsoft operating system) as the Guest OS (Guest Operating System) of cloud computers can be activated by using the KMS (Key Management Service) mechanism. Since Microsoft's software activation mechanisms are interrelated, if the network, components or users use unconventional means to activate office (office software), the system activation environment will be destroyed, resulting in the inability to activate the Windows system normally.
[0030] In the related art, when the Windows system cannot be activated normally, users or operation and maintenance personnel are usually required to manually troubleshoot the problem and try to solve and reactivate it to repair the operating system of the cloud computer, such as Figure 1 As shown, in the traditional system activation and repair method, the operation and maintenance personnel or users usually manually query the configured KMS address, and then call the slmgr (Software License Management Tool) command to try to activate the cloud operating system. Then, in the case of activation failure, an error code is obtained, and the error code is manually analyzed, and then the sppsvc (Software Protection Platform Service) status is checked and repaired in turn, and then the network status is checked and repaired. After using the above repair method, if it still cannot be repaired, the system needs to be manually reinstalled. The whole process requires more manual operations, wastes a lot of manpower, and the operation process is cumbersome, and the repair efficiency is low.
[0031] In order to solve the above problems, the present disclosure provides a cloud operating system repair method, device, equipment and readable storage medium, which obtains an activation detection command; uses the activation detection command to perform activation detection on the cloud operating system to obtain the system state of the cloud operating system after the activation detection; when the system state is an activation failure state, obtains the activation failure information output by the activation detection command; and executes the system repair operation corresponding to the activation failure information to repair the system state of the cloud operating system to an activation success state. In this way, the activation detection command can be used to first perform activation detection on the problematic cloud operating system, and when the activation fails, the system repair operation corresponding to the activation failure information obtained by the activation detection can be automatically executed to repair the system state of the cloud operating system to an activation success state. When a problem occurs in the cloud operating system, the detection, analysis and repair steps can be automatically executed to avoid wasting a lot of manpower, simplify the operation process, and effectively improve the efficiency of system activation repair.
[0032] Before describing the solution provided by the present disclosure in detail, some terms in the present disclosure are first explained to facilitate understanding by those skilled in the art.
[0033] KMS (Key Management Service) is a cloud computing service that provides a secure way to create, manage and control encryption keys for protecting the security of cloud applications, data and other resources. The main functions of KMS include generating encryption keys, storing keys, rotating keys, revoking keys, monitoring key usage, etc. It is often used to strengthen data security in cloud environments and ensure that data is properly encrypted and protected during storage and transmission.
[0034] sppsvc (Software Protection Platform Service) is a service in the Microsoft Windows operating system that is responsible for managing and maintaining functions related to software licensing.
[0035] WMI (Windows Management Instrumentation) is a set of tools and interfaces for accessing and managing computer systems, applications, and network resources. It allows administrators and developers to collect information about the status and performance of computer systems, perform management tasks, and monitor system activities.
[0036] The method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0037] Figure 2is a flow chart of a cloud operating system repair method provided in an embodiment of the present application, the method is applied to electronic devices such as Figure 2 As shown, the method may include the following steps.
[0038] In step S101 , an activation detection command is acquired.
[0039] The activation detection command may include a slmgr (Software License Management Tool) command, which is a command line tool for managing software license related operations in the Windows operating system.
[0040] Specifically, the slmgr command can be used to activate related software or activate related systems. You can use the command "slmgr.vbs / ipk [product key]" to install the product key, where the " / ipk" parameter is used to install the product key. For example, if you have a Windows 10 product key "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX", enter "slmgr.vbs / ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" in the command prompt (administrator privileges) to install the product key for the system. This is the first step to activate the system. In addition, you can also use the command "slmgr.vbs / ato" to activate the product, where the " / ato" parameter is used to activate the Windows system. After installing the product key, run this command to try to activate the system.
[0041] In this step, you can use the slmgr command to try to activate the Windows operating system.
[0042] In some embodiments, when the cloud operating system of the cloud computer fails to activate, a network request message can be first sent to the management desk server. The network request message is used to request the management desk server to communicate data with the electronic device to obtain the network address field of the KMS server sent by the management desk server. In this way, when the network address field of the KMS server is obtained, a secure communication channel can be established with the kms server for data communication.
[0043] Then, after obtaining the network address of the kms server, you can call the slmgr command to try to activate the Windows operating system.
[0044] In step S102, the activation detection command is used to perform activation detection on the cloud operating system to obtain the system state of the cloud operating system after the activation detection.
[0045] The system status may include activation success and activation failure.
[0046] In this step, the slmgr command may be used to activate the cloud operating system, for example, the Windows operating system, and then obtain the system status of the cloud operating system after activation detection.
[0047] In step S103, when the system state is an activation failure state, activation failure information output by the activation detection command is obtained.
[0048] Although the slmgr command is an official Microsoft activation tool, it is considered that in actual use, when the network, components or users use unconventional means to activate office (office software), the system activation environment will be destroyed, resulting in the Windows system being unable to activate normally, which will lead to activation failure. Therefore, in some embodiments, when the system state is an activation failure state, the activation failure information output by the activation detection command can be obtained.
[0049] In this step, when the system status is an activation failure status, the activation failure information output by the slmgr command after the activation detection of the cloud operating system can be obtained, wherein the activation failure information can include the type information of the activation failure and the corresponding prompt information. In this way, the obtained activation failure type information and the corresponding prompt information can be used for analysis and repair in subsequent steps.
[0050] In step S104, a system repair operation corresponding to the activation failure information is performed to repair the system state of the cloud operating system to an activation success state.
[0051] In this step, based on the activation failure information obtained in the above steps, a system repair operation corresponding to the above activation failure information can be determined and the system repair operation can be executed, so that the system state of the cloud operating system can be repaired to an activation success state by executing the system repair operation.
[0052] The above technical solution is adopted, by obtaining an activation detection command; using the activation detection command to perform activation detection on the cloud operating system, and obtaining the system state of the cloud operating system after the activation detection; when the system state is an activation failure state, obtaining the activation failure information output by the activation detection command; executing the system repair operation corresponding to the activation failure information, so as to repair the system state of the cloud operating system to an activation success state. In this way, the activation detection command can be used to first perform activation detection on the problematic cloud operating system, and when the activation fails, the system repair operation corresponding to the activation failure information obtained by the activation detection can be automatically executed to repair the system state of the cloud operating system to an activation success state. When a problem occurs in the cloud operating system, the detection, analysis, and repair steps can be automatically executed, avoiding wasting a lot of manpower, simplifying the operation process, and effectively improving the efficiency of system activation and repair.
[0053] In some embodiments, when the activation failure information includes a file access permission error, the activation component registry can be checked first, and then when an access file permission function is detected in the activation component registry, the access file permission function can be deleted, and the activation detection command can be used to re-activate the cloud operating system to repair the system state of the cloud operating system to a successful activation state.
[0054] For example, after the cloud operating system is activated and tested by the slmgr command, if the system is still in an activation failure state, the slmgr command may output an error code corresponding to the file access permission error, for example, an error code of "0x80070002" or "0x80040154".
[0055] Among them, the error code "0x80070002" or "0x80040154" is often caused by the fact that some components in the activation component registry are missing or damaged, or the access rights of some components in the activation component registry are restricted, or some components in the activation component registry conflict with other registries, etc.
[0056] Therefore, when an error code of "0x80070002" or "0x80040154" appears, the activation component registry can be checked; and when an access file permission function is detected in the activation component registry, the access file permission function is deleted, and the activation detection command is used to re-activate the cloud operating system to repair the system state of the cloud operating system to a successful activation state.
[0057] For example, the activation component registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\ImageFileExecutionOp tions) may be firstly detected to determine whether the activation component registry includes a file access permission function.
[0058] The file permission function may include a SppExtComObj.exe function component, which is a related program of the Software Protection Platform Service (SPPSVC) and is used to manage operations such as verification and activation of software licenses.
[0059] If the registration items related to SppExtComObj.exe in the registry are damaged or missing, the system may be unable to call the program correctly during the activation process, thereby causing "0x80070002" or "0x80040154" errors.
[0060] For example, if key data such as the program's path information and dependency information in the registry is lost or incorrectly modified, it will affect the normal use of SppExtComObj.exe by the activation program.
[0061] Alternatively, if the current user account does not have sufficient permissions to read or modify the SppExtComObj.exe-related parts of the registry, the system may not be able to correctly obtain the relevant registration information of SppExtComObj.exe during the activation process, thus causing the "0x80070002" or "0x80040154" error. This may be caused by incorrect system settings, security software restrictions, or permission configuration issues in the registry itself.
[0062] Alternatively, during the system activation process, the activator needs to interact with SppExtComObj.exe to complete operations such as software license verification and activation. If the relevant settings in the registry cause communication problems between the activator and SppExtComObj.exe, such as the activator cannot correctly find the relevant information of SppExtComObj.exe or cannot correctly call its functions, it may also trigger the "0x80070002" or "0x80040154" error.
[0063] Therefore, when the SppExtComObj.exe function component is detected in the activation component registry, the SppExtComObj.exe function component can be deleted, and the activation detection command can be used to re-activate the cloud operating system to repair the system state of the cloud operating system to a successful activation state.
[0064] In one possible implementation, when the system status is an activation failure status, the service status of the file access service of the cloud operating system can be detected, and when the service status indicates that the file access service is not operating normally, a first repair operation can be performed; and the activation detection command can be used to re-activate the cloud operating system to repair the system status of the cloud operating system to an activation success status.
[0065] The first repair operation includes one or more operations of restarting the service component of the file access service, re-registering the service component of the file access service, and obtaining a backup of the service component of the file access service. The file access service may include the sppsvc service.
[0066] In this step, when an error code of "0x80070002" or "0x80040154" appears, the component detection module can be called to check the status of the sppsvc service. If the service is not running normally, the service component of the sppsvc service can be repaired by one or more operations including restarting the service component of the sppsvc service, re-registering the service component of the sppsvc service, and obtaining a backup of the service component of the sppsvc service; and when the service component of the sppsvc service is repaired, the activation detection command is used to re-activate the cloud operating system to repair the system status of the cloud operating system to a successful activation state.
[0067] By adopting the above technical solution, when the cloud operating system fails to be activated due to an error in file access permissions, the system repair operation corresponding to the file access permission error can be automatically executed to repair the system state of the cloud operating system to a successful activation state. When problems occur in the cloud operating system, the detection, analysis, and repair steps can be automatically executed to avoid wasting a lot of manpower, simplify the operation process, and effectively improve the efficiency of system activation and repair.
[0068] In some embodiments, when the activation failure information includes invalid file occupation, the database parameters of the system architecture database of the cloud operating system can be detected; and when it is determined that there is a configuration error in the system architecture database based on the database parameters, a second repair operation is performed, and the activation detection command is used to re-activate the cloud operating system to repair the system state of the cloud operating system to a successful activation state.
[0069] The second repair operation includes rebuilding the system architecture database, resetting the service authority of the system architecture database, and renaming one or more operations in the system architecture database.
[0070] For example, after the cloud operating system is activated and tested by the slmgr command, if the system is still in an activation failure state, the slmgr command may output an error code corresponding to the invalid occupation of the file, for example, an error code of "0x80070020" or "0x80041010".
[0071] Among them, the error code "0x80070020" or "0x80041010" is common in situations where the system architecture database of the cloud operating system has abnormalities in permissions, file corruption, provider failure, or invalid occupancy of namespaces.
[0072] Therefore, when the error code "0x80070020" or "0x80041010" appears, the database parameters of the system architecture database of the cloud operating system can be detected; and when it is determined that there is a configuration error in the system architecture database based on the database parameters, a second repair operation is performed, and the activation detection command is used to re-activate the cloud operating system to repair the system status of the cloud operating system to a successful activation status.
[0073] For example, the consistency of the system architecture database (Windows Management Instrumentation, WMI) of the cloud operating system can be tested first. If it is determined that there is a configuration error in the system architecture database, the consistency of WMI can be repaired by rebuilding the WMI database, resetting WMI service permissions, repairing damaged WMI namespaces, etc.
[0074] In another possible implementation, when the system status is an activation failure status, if it is detected that the cloud operating system includes a modified extension service, the service component of the modified extension service is deleted, and the activation detection command is used to re-activate the cloud operating system to repair the system status of the cloud operating system to an activation success status.
[0075] The modified extension service includes sppsvc hook (Software Protection Platform Service hook), which is a hook operation that an external program or driver inserts into a service to modify its behavior. Specifically, it can be to insert custom code at a specific point in the software running process, thereby changing the normal execution process of the program. For example, when a function is called, the hook can add additional code before or after the function is executed to check, modify parameters or record information.
[0076] In this step, when the system status is an activation failure status, it is also possible to detect whether the cloud operating system has a sppsvc hook. If the sppsvc hook is detected, the sppsvc hook will be deleted or removed to ensure the normal operation of the sppsvc service without external interference.
[0077] The above technical solution is adopted because the existence of service hooks may be a potential cause of activation problems, so removing them can help improve the reliability of activation. Ensuring the normal operation of various system services is crucial to successful activation, so automating this step helps reduce the risk of activation failure.
[0078] In some embodiments, when the activation failure information includes an activation command error, the system version information of the cloud operating system can be first obtained; then, the activation key corresponding to the system version information can be determined from a preset key comparison table; and the cloud operating system can be re-activated using the activation key to repair the system status of the cloud operating system to a successful activation status.
[0079] For example, after the cloud operating system is activated and tested through the slmgr command, if the system status is still in the activation failure status, the slmgr command may output an error code corresponding to the activation command error, for example, the error code 0xC004E015, wherein the error code "0xC004E015" is common in situations such as key product abnormalities.
[0080] Therefore, when the error code "0xC004E015" appears, the system version information of the cloud operating system can be obtained; then the activation key corresponding to the system version information can be determined from the preset key comparison table; and the activation key can be used to re-activate the cloud operating system to repair the system status of the cloud operating system to a successful activation status.
[0081] For example, the system version information of the cloud operating system can be obtained first, which includes the operating system version and architecture. Then, a matching serial number key can be found in Microsoft's GVLK (Generic Volume License Key) and system comparison table. Once a matching key is found, the currently used key will be automatically replaced to ensure compatibility with the operating system version.
[0082] The above technical solution can solve the activation problem caused by invalid or mismatched keys.
[0083] In some embodiments, when the activation failure information includes a connection failure, the system activation event log of the cloud operating system can be obtained; and based on the system activation event log, the server address of the management server that sends the activation detection command is detected; then, when the server address is inconsistent with the preset server address, a network request information is sent to the management server corresponding to the preset server address to obtain an updated activation detection command, and the updated activation detection command is used to re-activate the cloud operating system to repair the system status of the cloud operating system to a successful activation status.
[0084] The network request information is used to instruct the management server to send the updated activation detection command, and the updated activation detection command is used to re-activate the cloud operating system that is in an activation failure state.
[0085] For example, after the cloud operating system is activated and tested by the slmgr command, if the system is still in an activation failure state, the slmgr command may output an error code corresponding to the connection failure, for example, an error code of "0xC004F074".
[0086] Among them, the error code "0xC004F074" is common in situations where the KMS server cannot be connected normally.
[0087] Therefore, when the error code "0xC004F074" appears, the system activation event log of the cloud operating system can be obtained; and based on the system activation event log, the server address of the management server that sends the activation detection command can be detected; then, when the server address is inconsistent with the preset server address, a network request information is sent to the management server corresponding to the preset server address to obtain an updated activation detection command, and the updated activation detection command is used to re-activate the cloud operating system to repair the system status of the cloud operating system to a successful activation status.
[0088] For example, the Windows log analysis module can be called for further analysis and repair. Among them, the log parsing module will first parse the activation event log to view the detailed information of the activation attempt, including the kms server address where the electronic device actually sends data. Then it will be determined whether the preset kms server address is matched. If not, the kms service registry will be repaired to ensure that the activation request points to the correct kms server, and then the updated activation detection command can be used to re-activate the cloud operating system to repair the system status of the cloud operating system to a successful activation state.
[0089] In another possible implementation, if the preset kms server address is used but activation still fails, the network detection module can be called to detect whether there are potential VPN connections in the cloud operating system. If so, these VPN connections will be removed to ensure that they do not interfere with the communication with the kms server.
[0090] The above technical solution can ensure smooth network connection and thus successfully complete the activation process.
[0091] Figure 3 is a flowchart of another cloud operating system repair method provided in an embodiment of the present application, the method is applied to electronic devices such as Figure 3 As shown, the method may include the following steps.
[0092] In step S201, an activation detection command is obtained.
[0093] In step S202, the activation detection command is used to perform activation detection on the cloud operating system to obtain the system state of the cloud operating system after the activation detection.
[0094] In step S203, when the system state is an activation failure state, activation failure information output by the activation detection command is obtained.
[0095] In the case where the activation failure information includes a file access permission error, executing steps S204, S205, and S217; or executing steps S206, S207, and S217;
[0096] In the case where the activation failure information includes invalid file occupation, steps S208, S209, and S217 are executed; or steps S210 and S217 are executed;
[0097] In the case where the activation failure information includes an activation command error, executing steps S211-S213;
[0098] In the case where the activation failure information includes a connection failure, executing steps S214-S217;
[0099] In step S204, the activation component registry is detected.
[0100] In step S205, when an access file permission function is detected in the activation component registry, the access file permission function is deleted.
[0101] In step S206, the service status of the file access service of the cloud operating system is detected.
[0102] In step S207, when the service status indicates that the file access service is not operating normally, a first repair operation is performed.
[0103] The first repair operation includes one or more operations of restarting the service component of the file access service, re-registering the service component of the file access service, and obtaining a backup of the service component of the file access service.
[0104] In step S208, the database parameters of the system architecture database of the cloud operating system are detected.
[0105] In step S209, when it is determined according to the database parameters that there is a configuration error in the system architecture database, a second repair operation is performed.
[0106] The second repair operation includes rebuilding the system architecture database, resetting the service authority of the system architecture database, and renaming one or more operations in the system architecture database.
[0107] In step S210 , if it is detected that the cloud operating system includes a modified extension service, the service component of the modified extension service is deleted.
[0108] In step S211, the system version information of the cloud operating system is obtained.
[0109] In step S212, the activation key corresponding to the system version information is determined from a preset key comparison table.
[0110] In step S213, the activation key is used to re-activate the cloud operating system to restore the system state of the cloud operating system to an activation success state.
[0111] In step S214, the system activation event log of the cloud operating system is obtained.
[0112] In step S215, the server address of the management server that sends the activation detection command is detected according to the system activation event log.
[0113] In step S216, when the server address is inconsistent with the preset server address, a network request message is sent to the management server corresponding to the preset server address to obtain an updated activation detection command.
[0114] The network request information is used to instruct the management server to send the updated activation detection command, and the updated activation detection command is used to re-activate the cloud operating system that is in an activation failure state.
[0115] In step S217, the updated activation detection command is used to re-activate the cloud operating system to restore the system state of the cloud operating system to an activation success state.
[0116] By adopting the above technical solution, it is possible to first perform activation detection on the problematic cloud operating system through an activation detection command, and in the event of activation failure, automatically execute the system repair operation corresponding to the activation failure information based on the activation failure information obtained by the activation detection, so as to repair the system state of the cloud operating system to a successful activation state. In the event of a problem with the cloud operating system, the detection, analysis, and repair steps can be automatically executed, thus avoiding wasting a lot of manpower, simplifying the operation process, and effectively improving the efficiency of system activation and repair.
[0117] Figure 4 is a block diagram of a repair device for a cloud operating system provided in an embodiment of the present application, such as Figure 4 As shown, the repair device 300 of the cloud operating system includes:
[0118] A first acquisition module 301 is used to acquire an activation detection command;
[0119] An activation module 302 is used to perform activation detection on the cloud operating system using the activation detection command to obtain a system state of the cloud operating system after the activation detection;
[0120] The second acquisition module 303 is used to acquire the activation failure information output by the activation detection command when the system state is an activation failure state;
[0121] The repair module 304 is used to perform a system repair operation corresponding to the activation failure information to repair the system state of the cloud operating system to an activation success state.
[0122] Optionally, the activation failure information includes a file access permission error; the repair module 304 is used to detect the activation component registry; when an access file permission function is detected in the activation component registry, the access file permission function is deleted, and the activation detection command is used to re-activate the cloud operating system to repair the system state of the cloud operating system to a successful activation state.
[0123] Optionally, the repair module 304 is further used to detect the service status of the file access service of the cloud operating system when the system status is an activation failure state, and to perform a first repair operation when the service status indicates that the file access service is not operating normally; and to use the activation detection command to re-activate the cloud operating system to repair the system status of the cloud operating system to an activation success state; wherein the first repair operation includes one or more operations of restarting the service component of the file access service, re-registering the service component of the file access service, and obtaining a backup of the service component of the file access service.
[0124] Optionally, the activation failure information includes invalid file occupation; the repair module 304 is used to detect database parameters of the system architecture database of the cloud operating system; when it is determined according to the database parameters that the system architecture database has a configuration error, a second repair operation is performed, and the activation detection command is used to re-activate the cloud operating system to repair the system state of the cloud operating system to a successful activation state; wherein the second repair operation includes rebuilding the system architecture database, resetting the service permissions of the system architecture database, and renaming one or more operations in the system architecture database.
[0125] Optionally, the repair module 304 is also used to, when the system state is an activation failure state, if it is detected that the cloud operating system includes a modified extension service, delete the service component of the modified extension service, and use the activation detection command to re-activate the cloud operating system to repair the system state of the cloud operating system to an activation success state.
[0126] Optionally, the activation failure information includes an activation command error; the repair module 304 is used to obtain the system version information of the cloud operating system; determine the activation key corresponding to the system version information from a preset key comparison table; and use the activation key to re-activate the cloud operating system to repair the system status of the cloud operating system to a successful activation status.
[0127] Optionally, the activation failure information includes a connection failure; the repair module 304 is used to obtain a system activation event log of the cloud operating system; based on the system activation event log, detect the server address of the management server that sends the activation detection command; when the server address is inconsistent with the preset server address, send a network request information to the management server corresponding to the preset server address to obtain an updated activation detection command, and use the updated activation detection command to re-activate the cloud operating system to repair the system status of the cloud operating system to a successful activation status; wherein the network request information is used to instruct the management server to send the updated activation detection command, and the updated activation detection command is used to re-activate the cloud operating system that is in an activation failure status.
[0128] By adopting the above-mentioned device, it is possible to first perform activation detection on the problematic cloud operating system through an activation detection command, and in the event of activation failure, automatically execute the system repair operation corresponding to the activation failure information based on the activation failure information obtained by the activation detection, so as to repair the system state of the cloud operating system to a successful activation state. When a problem occurs in the cloud operating system, the detection, analysis, and repair steps can be automatically executed, thus avoiding wasting a lot of manpower, simplifying the operation process, and effectively improving the efficiency of system activation and repair.
[0129] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0130] The present invention also provides an electronic device, see Figure 5 , including: a processor 401, a memory 402, and a computer program 4021 stored in the memory and executable on the processor, wherein when the processor executes the program, the repair device of the cloud operating system of the aforementioned embodiment is implemented.
[0131] The present invention also provides a readable storage medium, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the repair device of the cloud operating system of the aforementioned embodiment.
[0132] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0133] It should be noted that the various information and data obtained in the embodiments of the present invention are all obtained with the authorization of the information / data holder.
[0134] The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general purpose systems can also be used with the teachings based on this. Based on the above description, the structure required to construct such a system is obvious.
[0135] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0136] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
[0137] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0138] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the sorting device according to the present invention. The present invention may also be implemented as a device or apparatus program for executing part or all of the methods described herein. Such a program for implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0139] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.
[0140] The user information (including but not limited to the user's device information, user personal information, etc.) and related data involved in the present invention are all information authorized by the user or by all parties.
[0141] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0142] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0143] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for repairing a cloud operating system, characterized in that: The method comprises: Get the activation detection command; Performing activation detection on the cloud operating system using the activation detection command to obtain a system state of the cloud operating system after the activation detection; When the system state is an activation failure state, obtaining activation failure information output by the activation detection command; A system repair operation corresponding to the activation failure information is performed to repair the system state of the cloud operating system to an activation success state.
2. The method according to claim 1, characterized in that The activation failure information includes a file access permission error; and the performing of a system repair operation corresponding to the activation failure information includes: Check and activate component registry; In the case where the access file permission function is detected in the activation component registry, the access file permission function is deleted, and the activation detection command is used to re-activate the cloud operating system to repair the system state of the cloud operating system to a successful activation state.
3. The method according to claim 2, characterized in that The method further comprises: When the system status is an activation failure status, detecting the service status of the file access service of the cloud operating system, and when the service status indicates that the file access service is not operating normally, performing a first repair operation; and re-activating the cloud operating system using the activation detection command to repair the system status of the cloud operating system to an activation success status; The first repair operation includes one or more operations of restarting the service component of the file access service, re-registering the service component of the file access service, and obtaining a backup of the service component of the file access service.
4. The method according to claim 1, characterized in that: The activation failure information includes invalid file occupation; and the performing of a system repair operation corresponding to the activation failure information includes: Detecting database parameters of a system architecture database of the cloud operating system; In the case where it is determined according to the database parameters that the system architecture database has a configuration error, a second repair operation is performed, and the activation detection command is used to re-activate the cloud operating system to repair the system state of the cloud operating system to an activation success state; The second repair operation includes rebuilding the system architecture database, resetting the service authority of the system architecture database, and renaming one or more operations in the system architecture database.
5. The method according to claim 4, characterized in that The method further comprises: When the system status is an activation failure status, if it is detected that the cloud operating system includes a modified extended service, the service component of the modified extended service is deleted, and the activation detection command is used to re-activate the cloud operating system to repair the system status of the cloud operating system to an activation success status.
6. The method according to claim 1, characterized in that The activation failure information includes an activation command error; and the performing of a system repair operation corresponding to the activation failure information includes: Obtaining system version information of the cloud operating system; Determine the activation key corresponding to the system version information from a preset key comparison table; The activation key is used to re-activate the cloud operating system to restore the system state of the cloud operating system to an activation success state.
7. The method according to claim 1, characterized in that The activation failure information includes a connection failure; and the performing of a system repair operation corresponding to the activation failure information includes: Obtaining a system activation event log of the cloud operating system; Detecting, according to the system activation event log, a server address of a management server that sends the activation detection command; In the case where the server address is inconsistent with the preset server address, a network request message is sent to the management server corresponding to the preset server address to obtain an updated activation detection command, and the updated activation detection command is used to re-activate the cloud operating system to restore the system state of the cloud operating system to an activation success state; The network request information is used to instruct the management server to send the updated activation detection command, and the updated activation detection command is used to re-activate the cloud operating system that is in an activation failure state.
8. A cloud operating system repair device, characterized in that: The device comprises: A first acquisition module, used to acquire an activation detection command; An activation module, used to perform activation detection on the cloud operating system using the activation detection command to obtain the system state of the cloud operating system after the activation detection; A second acquisition module, configured to acquire activation failure information output by the activation detection command when the system state is an activation failure state; The repair module is used to perform a system repair operation corresponding to the activation failure information to repair the system state of the cloud operating system to an activation success state.
9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 7 when executing the program.
10. A readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any one of the methods described in claims 1-7.