CN112242027B - Express delivery cabinet fault processing method and device, fault processing equipment and storage medium - Google Patents

Express delivery cabinet fault processing method and device, fault processing equipment and storage medium Download PDF

Info

Publication number
CN112242027B
CN112242027B CN202011505371.7A CN202011505371A CN112242027B CN 112242027 B CN112242027 B CN 112242027B CN 202011505371 A CN202011505371 A CN 202011505371A CN 112242027 B CN112242027 B CN 112242027B
Authority
CN
China
Prior art keywords
fault
target database
type information
fault type
cabinet system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011505371.7A
Other languages
Chinese (zh)
Other versions
CN112242027A (en
Inventor
赵曦
杨博
董嘉华
张友平
邵杰
乔飞
刘晓东
徐坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing cloud cabinet Network Technology Co.,Ltd.
Original Assignee
Jiangsu Cloudbox Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Cloudbox Network Technology Co ltd filed Critical Jiangsu Cloudbox Network Technology Co ltd
Priority to CN202011505371.7A priority Critical patent/CN112242027B/en
Publication of CN112242027A publication Critical patent/CN112242027A/en
Application granted granted Critical
Publication of CN112242027B publication Critical patent/CN112242027B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/10Coin-freed apparatus for hiring articles; Coin-freed facilities or services for means for safe-keeping of property, left temporarily, e.g. by fastening the property

Abstract

The application provides an express cabinet fault processing method and device, fault processing equipment and a storage medium, and relates to the technical field of fault detection. In the application, firstly, whether the express cabinet system is in a fault state is determined based on the obtained state information, wherein the state information is used for representing the operation state of the express cabinet system. Secondly, if the express cabinet system is determined to be in a fault state, fault type information of the express cabinet system is determined based on the state information and a pre-configured state-fault corresponding relation. And then, executing fault recovery operation on the express delivery cabinet system according to the fault type information. Based on the method, the problem that faults are difficult to effectively process based on the existing fault detection technology can be solved.

Description

Express delivery cabinet fault processing method and device, fault processing equipment and storage medium
Technical Field
The application relates to the technical field of fault detection, in particular to a fault processing method and device for an express cabinet, fault processing equipment and a storage medium.
Background
Along with the rapid development of express delivery business, the intelligent express delivery cabinet is a new thing along with the continuous development of express delivery business. The intelligent express cabinet has the functions of mainly assisting couriers in receiving and sending express, and the facing users are vast couriers and recipients. As a 24-hour unattended express temporary storage cabinet, the intelligent express cabinet interacts with a server through an Internet of things card and is used as an application of the Internet of things technology in the modern logistics industry, the intelligent express cabinet is the most effective solution for the last kilometer of electronic commerce terminal logistics, the delivery efficiency of couriers is improved, the delivery cost is reduced, the privacy and the safety of users are guaranteed, and the intelligent express cabinet is gradually and widely recognized and popularized.
The intelligent express cabinet service needs 7-24 hours of uninterrupted service, so that very high requirements are provided for a data system supporting the service, any fault needs to be processed as soon as possible, the service is recovered, and direct and continuous economic loss is caused every time one second is delayed.
However, the inventor researches and finds that the existing data system fault diagnosis and processing methods are very scattered and not systematic, so that faults are easy to miss and slow to progress in fault removal, and therefore, the fault is difficult to be effectively processed.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method and an apparatus for handling a fault of an express delivery cabinet, a fault handling device, and a storage medium, so as to solve a problem that it is difficult to efficiently handle a fault based on an existing fault detection technology.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
an express cabinet fault handling method is applied to fault handling equipment, the fault handling equipment is in communication connection with an express cabinet system, and the express cabinet fault handling method comprises the following steps:
determining whether the express delivery cabinet system is in a fault state or not based on the obtained state information, wherein the state information is used for representing the running state of the express delivery cabinet system;
if the express cabinet system is determined to be in a fault state, determining fault type information of the express cabinet system based on the state information and a pre-configured state-fault corresponding relation;
and executing fault recovery operation on the express delivery cabinet system according to the fault type information.
In a preferred option of the embodiment of the present application, in the express delivery cabinet fault handling method, the express delivery cabinet system includes a client device, the client device is installed with a client application program, and the step of determining the fault type information of the express delivery cabinet system based on the state information and a preconfigured state-fault correspondence includes:
analyzing the state information to obtain a state analysis result;
if the state analysis result is that the client application program is wrongly reported when being opened, determining that the fault type information of the express delivery cabinet system is that the client application program is damaged;
if the state analysis result indicates that the client application program cannot be connected with a target database and can be connected with other databases, determining that the fault type information of the express cabinet system is that the version of the client application program or the driver program is not matched with the target database, wherein the target database and the other databases belong to different versions formed for the same database;
if the state analysis result indicates that the client application program cannot establish connection with the target database and can establish connection with a local database, determining that the fault type information of the express cabinet system is that a firewall of the client equipment prevents the client application program from establishing connection with the target database;
and if the state analysis result indicates that the client application program can be connected with the target database and has a network error or an account password error, determining that the fault type information of the express delivery cabinet system is that the configuration file of the client application program has an error.
In a preferred option of the embodiment of the present application, in the express cabinet fault handling method, the step of performing a fault recovery operation on the express cabinet system according to the fault type information includes:
if the fault type information indicates that the client application program is damaged, sending a first program reinstallation instruction to the client device, wherein the client device is used for reinstalling the client application program based on the first program reinstallation instruction;
if the fault type information is that the version or the driver of the client application program is not matched with the target database, sending a second program reinstallation instruction to the client device, wherein the client device is used for downloading and installing the client application program or the driver matched with the target database based on the second program reinstallation instruction;
if the fault type information is that a firewall of the client equipment prevents the client application program from establishing connection with the target database, a firewall configuration instruction is sent to the client equipment, wherein the client equipment is used for opening a connection port of the target database or closing the firewall based on the firewall configuration instruction;
and if the fault type information indicates that the configuration file of the client application program has an error, sending a configuration file modification instruction to the client device, wherein the client device is used for modifying the configuration file based on the configuration file modification instruction so as to configure a correct connection character string.
In a preferred option of the embodiment of the present application, in the express delivery cabinet fault handling method, the express delivery cabinet system includes a client device and a network layer device, the client device is installed with a client application program, and the step of determining fault type information of the express delivery cabinet system based on the state information and a pre-configured state-fault correspondence includes:
analyzing the state information to obtain a state analysis result;
if the state analysis result indicates that the client application program cannot be communicated with a target database and other application programs belonging to the same intranet with the network layer equipment cannot be communicated with the target database, determining that the fault type information of the express delivery cabinet system is that the public network address of the network layer equipment has an error, the intranet address has an error or the routing path has an error;
if the state analysis result indicates that the client application program cannot be communicated with the target database and other application programs belonging to the same intranet with the network layer equipment can be communicated with the target database, determining that the fault type information of the express cabinet system is that a firewall of the network layer equipment prevents the establishment of connection with the target database;
and if the state analysis result is that the rate of returning data to the client application program by the target database is reduced, determining that the fault type information of the express delivery cabinet system is that a bandwidth or flow limiting condition exists in the network equipment.
In a preferred option of the embodiment of the present application, in the express cabinet fault handling method, the step of performing a fault recovery operation on the express cabinet system according to the fault type information includes:
if the fault type information is that a public network address of the network layer equipment has an error, an internal network address has an error or a routing path has an error, sending a network information modification instruction to the network layer equipment, wherein the network layer equipment is used for modifying the public network address, the internal network address or a default routing path based on the network information modification instruction;
if the fault type information is that a firewall of the network layer equipment prevents the establishment of connection with the target database, sending a firewall adjusting instruction to the network layer equipment, wherein the network layer equipment is used for adjusting the firewall configuration of the network layer equipment based on the firewall adjusting instruction;
if the fault type information indicates that a bandwidth or flow limitation condition exists in the network equipment, sending a limitation condition adjustment instruction to the network layer equipment, wherein the network layer equipment is used for adjusting the bandwidth or flow limitation condition in the network equipment based on the limitation condition adjustment instruction so as to increase the bandwidth, increase the flow or limit the flow exceeding a preset value to access the target database.
In a preferred option of the embodiment of the present application, in the express cabinet fault handling method, the express cabinet system includes a server device, the server device is installed with a server application and has a target database, and the step of determining the fault type information of the express cabinet system based on the state information and a pre-configured state-fault correspondence includes:
analyzing the state information to obtain a state analysis result;
if the state analysis result indicates that the server application program cannot establish new connection with the target database, determining that the fault type information of the express cabinet system indicates that the connection number of the server application program reaches a preset number;
if the state analysis result indicates that the server-side application program cannot write data into the target database, determining that the fault type information of the express delivery cabinet system is that the server-side equipment does not have a free disk space and/or an input/output interface;
if the state analysis result is that alarm information exists, determining that the fault type information of the express cabinet system is exhausted of the memory and the exchange partition of the server side equipment, wherein the alarm information is used for representing the exhausted memory of the server side equipment;
if the state analysis result indicates that the performance parameters of the target database do not meet the preset conditions, determining that the fault type information of the express delivery cabinet system is that the computing resources of the central processing unit of the server device are exhausted;
if the state analysis result indicates that the server-side application program can be connected with the target database and other application programs cannot be connected with the target database, determining that the fault type information of the express cabinet system is that a monitoring program in the server-side equipment, a process where the target database is located or a port of the target database has a fault, wherein the other application programs and the server-side application program belong to the same intranet;
if the state analysis result indicates that the server application program can establish connection with the target database and the structured query statement of the target database is in error, determining that the fault type information of the express cabinet system is that the structured query statement of the target database has faults;
if the state analysis result is that the speed of data query based on the structured query statement of the target database is less than a preset speed and the frequency of using full-table scanning is greater than a preset frequency, determining that the fault type information of the express delivery cabinet system is that the structure and the index of the target database have faults;
and if the state analysis result indicates that the target database has system error report and the error report content belongs to a predetermined error report condition, determining that the fault type information of the express cabinet system is that the target database is in a leak.
In a preferred option of the embodiment of the present application, in the express cabinet fault handling method, the step of performing a fault recovery operation on the express cabinet system according to the fault type information includes:
if the fault type information indicates that the connection number of the server application program reaches a preset number, sending a connection number adjusting instruction to the server device, wherein the server device is used for increasing the preset number or reducing the connection number of other application programs to the target database based on the connection number adjusting instruction, and the importance parameters of the other application programs are lower than those of the server application program;
if the fault type information indicates that the server-side equipment does not have a free disk space and/or an input/output interface, sending a file adjusting instruction and/or an interface adjusting instruction to the server-side equipment, wherein the server-side equipment is used for deleting files in the disk space based on the file adjusting instruction and/or stopping calling of other application programs to the input/output interface based on the interface adjusting instruction, and the number of the input/output interfaces occupied by the other application programs is larger than a preset number;
if the fault type information is that the memory and the exchange partition of the server device are exhausted, sending an exchange partition adjusting instruction to the server device, wherein the server device is used for increasing the exchange partition based on the exchange partition adjusting instruction and restarting the target database;
if the fault type information of the express delivery cabinet system is that the computing resources of the central processing unit of the server device are exhausted, sending a resource adjusting instruction to the server device, wherein the server device is used for closing the process of consuming the computing resources of the central processing unit based on the resource adjusting instruction;
if the fault type information indicates that a monitor program in the server-side equipment, a process where the target database is located or a port of the target database has a fault, sending a configuration file modification instruction and a restart instruction to the server-side equipment, wherein the server-side equipment is used for modifying the configuration file of the monitor program or the target database based on the configuration file modification instruction and restarting the monitor program or the target database based on the restart instruction;
if the fault type information indicates that the structured query statement of the target database has a fault, sending a modification request instruction to client equipment connected with the server equipment, wherein the client equipment is used for modifying the structured query statement based on the modification request instruction;
if the fault type information indicates that the structure and the index of the target database have faults, a database adjusting instruction is sent to the server side equipment, wherein the server side equipment is used for adjusting the database structure of the target database based on the database adjusting instruction or establishing a corresponding index for a structured query statement corresponding to the fault;
and if the fault type information indicates that the target database is in a bug, sending a database fault processing instruction to the server side equipment, wherein the server side equipment is used for patching existing faults based on the database fault processing instruction.
The embodiment of the application further provides an express delivery cabinet fault handling device, is applied to fault handling equipment, and this fault handling equipment communication connection has an express delivery cabinet system, and this express delivery cabinet fault handling device includes:
the fault state determination module is used for determining whether the express delivery cabinet system is in a fault state or not based on the obtained state information, wherein the state information is used for representing the running state of the express delivery cabinet system;
the type information determining module is used for determining fault type information of the express delivery cabinet system based on the state information and a pre-configured state-fault corresponding relation when the express delivery cabinet system is determined to be in a fault state;
and the recovery operation execution module is used for executing fault recovery operation on the express delivery cabinet system according to the fault type information.
On the basis, an embodiment of the present application further provides a fault handling device, including:
a memory for storing a computer program;
and the processor is connected with the memory and is used for executing the computer program stored in the memory so as to realize the express delivery cabinet fault processing method.
On the basis, the embodiment of the application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the method for handling the fault of the express delivery cabinet is implemented.
According to the express cabinet fault processing method and device, the fault processing equipment and the storage medium, the fault type information of the express cabinet system is determined based on the obtained state information and the pre-configured state-fault corresponding relation when the express cabinet system is determined to be in the fault state, so that the fault recovery operation can be executed on the express cabinet system according to the fault type information, and the fault existing in the express cabinet system is solved. Therefore, efficient processing of faults existing in the express cabinet system can be achieved, the problem that the faults are difficult to process effectively based on the existing fault detection technology is solved, the express cabinet system can be guaranteed to provide services reliably, and the express cabinet system has high practical value.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a block diagram of a fault handling apparatus according to an embodiment of the present application.
Fig. 2 is a schematic flow chart of an express delivery cabinet fault processing method provided in the embodiment of the present application.
Fig. 3 is a schematic diagram of a client fault in an express delivery cabinet system provided in an embodiment of the present application.
Fig. 4 is a schematic diagram of a network fault in an express delivery cabinet system provided in an embodiment of the present application.
Fig. 5 is a schematic diagram of a fault of a server in an express delivery cabinet system according to an embodiment of the present application.
Fig. 6 is an interaction schematic diagram of a fault handling device according to an embodiment of the present application.
Fig. 7 is a schematic diagram of a fault of an express delivery cabinet system provided in an embodiment of the present application.
Fig. 8 is a block schematic diagram of an express delivery cabinet fault handling device provided in an embodiment of the present application.
Icon: 10-a fault handling device; 12-a memory; 14-a processor; 100-express delivery cabinet fault handling device; 110-a fault status determination module; 120-type information determination module; 130-resume operation execution module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As shown in fig. 1, an embodiment of the present application provides a fault handling device 10, which may include a memory 12, a processor 14, and an express cabinet fault handling apparatus 100.
Wherein the memory 12 and the processor 14 are electrically connected directly or indirectly to realize data transmission or interaction. For example, they may be electrically connected to each other via one or more communication buses or signal lines. The courier cabinet fault handling apparatus 100 includes at least one software functional module which may be stored in the memory 12 in the form of software or firmware (firmware). The processor 14 is configured to execute an executable computer program stored in the memory 12, for example, a software function module and a computer program included in the express cabinet fault handling apparatus 100, so as to implement the express cabinet fault handling method provided in the embodiment of the present application.
Alternatively, the Memory 12 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The Processor 14 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), a System on Chip (SoC), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
It is to be understood that the structure shown in fig. 1 is only an illustration, and the fault handling device 10 may also include more or fewer components than those shown in fig. 1, or have a different configuration than that shown in fig. 1, for example, and may also include a communication unit for information interaction with other devices.
In an alternative example, the fault handling device 10 may be an electronic device with data processing capability, such as a server.
With reference to fig. 2, an embodiment of the present application further provides an express delivery cabinet fault handling method applicable to the fault handling device 10. The fault handling device 10 is connected to an express delivery cabinet system in a communication manner, and method steps defined by a flow related to the fault handling method of the express delivery cabinet can be implemented by the fault handling device 10. The specific process shown in FIG. 2 will be described in detail below.
And step S110, determining whether the express delivery cabinet system is in a fault state or not based on the obtained state information.
In this embodiment, after obtaining the status information of the express delivery cabinet system, the fault handling device 10 may determine whether the express delivery cabinet system handles a fault status based on the status information, where the status information is used to represent the operating status of the express delivery cabinet system.
If it is determined that the express delivery cabinet system is in a failure state, step S120 may be executed.
And step S120, determining fault type information of the express delivery cabinet system based on the state information and a preset state-fault corresponding relation.
In this embodiment, after determining that the express delivery cabinet system is in the failure state based on step S110, the failure processing device 10 may determine the failure type information of the express delivery cabinet system based on the state information and the pre-configured state-failure correspondence.
And step S130, executing fault recovery operation on the express delivery cabinet system according to the fault type information.
In this embodiment, after determining the fault type information based on step S120, the fault handling device 10 may perform a fault recovery operation on the express delivery cabinet system based on the fault type information, and thus, may enable the express delivery cabinet system to recover to normal operation.
Based on the method, the faults existing in the express cabinet system can be efficiently processed, so that the problem that the faults are difficult to be effectively processed based on the existing fault detection technology is solved, and the express cabinet system can be ensured to reliably provide services.
In the first aspect, it should be noted that, in step S110, a specific manner of obtaining the state information is not limited, and may be selected according to actual application requirements.
For example, in an alternative example, the fault handling device 10 may wait for the courier cabinet system to send status information based on a mechanism to obtain the status information.
For another example, in another alternative example, the fault handling device 10 may predetermine each Application Program Interface (API) in the express cabinet system, and thus may obtain the status information of the express cabinet system by monitoring (e.g., checking at regular time) the API.
In the second aspect, it should be noted that, in step S120, a specific manner for determining the fault type information of the express delivery cabinet system is not limited, and may be selected according to actual application requirements.
For example, in an alternative example, the courier cabinet system includes a client device (which may refer to a courier cabinet device for delivering couriers), and the client device is installed with a client application (which may refer to a client of the courier cabinet system), so that, in order to perform effective detection and determination on the faults of the client device and the client application, step S120 may include the following steps:
firstly, analyzing and processing the state information to obtain a state analysis result; secondly, determining the fault type information of the express cabinet system based on the state analysis result.
With reference to fig. 3, the specific manner of determining the fault type information of the express delivery cabinet system based on the state analysis result may include:
if the status analysis result is an error reported when the client application program is opened (for example, in an alternative example, the status analysis result may refer to an error reported when an executable program in the client application program is opened), determining that the fault type information of the express delivery cabinet system is that the client application program is damaged;
if the state analysis result indicates that the client application program cannot be connected with a target database and can be connected with other databases, determining that the fault type information of the express cabinet system is that the version of the client application program or the driver program is not matched with the target database, wherein the target database and the other databases belong to different versions formed for the same database;
if the status analysis result indicates that the client application cannot establish a connection with the target database (for example, in an alternative example, it may refer to that a port of the target database fails in talnet) and can establish a connection with a local database (that is, the local database of the client device), determining that the fault type information of the express delivery cabinet system is that a firewall of the client device prevents the client device from establishing a connection with the target database;
if the status analysis result indicates that the client application can establish a connection with the target database and a network error or an account password error exists (for example, in an alternative example, it may be that a port of the target database is successful, but a network error or an account password error reporting the connection exists), it is determined that the fault type information of the express delivery locker system is that an error exists in the configuration file of the client application.
For another example, in another alternative example, the express cabinet system includes a client device (which may refer to an express cabinet device for delivering an express) and a network layer device (such as a router, a switch, and the like), where the client device is installed with a client application (which may refer to a client of the express cabinet system), so that, in order to perform effective detection and determination on the failure of the network layer device, step S120 may include the following steps:
firstly, analyzing and processing the state information to obtain a state analysis result; secondly, determining the fault type information of the express cabinet system based on the state analysis result.
With reference to fig. 4, the specific manner of determining the fault type information of the express delivery cabinet system based on the state analysis result may include:
if the state analysis result indicates that the client application program cannot be communicated with a target database and other application programs belonging to the same intranet as the network layer device cannot be communicated with the target database (for example, the client application program cannot ping the target database, and the other application programs cannot ping the target database), determining that the fault type information of the express delivery cabinet system is that a public network address of the network layer device has an error, an intranet address has an error, or a routing path has an error;
if the state analysis result indicates that the client application program cannot be communicated with the target database and other application programs belonging to the same intranet with the network layer equipment can be communicated with the target database, determining that the fault type information of the express cabinet system is that a firewall of the network layer equipment prevents the establishment of connection with the target database;
if the state analysis result is that the rate of returning data to the client application program by the target database is reduced (for example, the rate is greatly reduced when the client application program can access the target database but returns a large amount of data), it is determined that the fault type information of the express delivery cabinet system is that a bandwidth or flow limitation condition exists in the network device.
For another example, in another alternative example, the express cabinet system includes a server device, the server device is installed with a server application (which may be a server of the express cabinet system) and has a target database, so that, in order to effectively detect and determine a fault of the server device and the server application, step S120 may include the following steps:
firstly, analyzing and processing the state information to obtain a state analysis result; secondly, determining the fault type information of the express cabinet system based on the state analysis result.
With reference to fig. 5, the specific manner of determining the fault type information of the express delivery cabinet system based on the state analysis result may include:
if the state analysis result indicates that the server-side application program cannot establish a new connection with the target database, determining that the fault type information of the express delivery cabinet system indicates that the connection number of the server-side application program reaches a preset number (for example, the connection number is exhausted);
if the state analysis result indicates that the server application program cannot write data into the target database (for example, the target database is down or the performance of the target database is rapidly reduced), determining that the fault type information of the express delivery cabinet system is that the server equipment does not have a free disk space and/or an input/output interface;
if the state analysis result is that alarm information exists, determining that the fault type information of the express cabinet system is exhausted of the memory and the exchange partition of the server side equipment, wherein the alarm information is used for representing the exhausted memory of the server side equipment;
if the state analysis result indicates that the performance parameters of the target database do not meet the preset conditions, determining that the fault type information of the express delivery cabinet system is the exhaustion of computing resources of a Central Processing Unit (CPU) of the server device;
if the state analysis result indicates that the server-side application program can establish connection with the target database and other application programs cannot establish connection with the target database (for example, the server-side application program can access the target database, but other application programs cannot access the target database), determining that the fault type information of the express delivery cabinet system is that a monitoring program in the server-side equipment, a process where the target database is located, or a port of the target database has a fault, wherein the other application programs and the server-side application program belong to the same intranet;
if the state analysis result indicates that the server-side application program can establish connection with the target database and the Structured Query Language (SQL) running the target database has errors (such as error reporting of syntax, semantics, authority and the like), determining that the fault type information of the express delivery cabinet system indicates that the structured query language of the target database has faults;
if the state analysis result is that the speed of querying data based on the structured query statement of the target database is lower than a preset speed (for example, the data query is slow) and the frequency of using full-table scanning is higher than a preset frequency (for example, the full-table scanning is frequently used), determining that the fault type information of the express delivery cabinet system is that the structure and the index of the target database have faults;
and if the state analysis result indicates that the target database has system error reporting and the error reporting content belongs to a predetermined error reporting condition (for example, bug characteristics issued by a manufacturer), determining that the fault type information of the express delivery cabinet system is that the target database is in a bug.
In the third aspect, it should be noted that, in step S130, a specific manner of performing the fault recovery operation on the express delivery cabinet system is not limited, and may be selected according to actual application requirements.
For example, in an alternative example, based on the first example (i.e., the example shown in fig. 3) described above with respect to step S120, step S130 may include the following steps:
if the fault type information indicates that the client application program is damaged, sending a first program reinstallation instruction to the client device, wherein the client device is used for reinstalling the client application program based on the first program reinstallation instruction;
if the fault type information is that the version or the driver of the client application program is not matched with the target database, sending a second program reinstallation instruction to the client device, wherein the client device is used for downloading and installing the client application program or the driver matched with the target database based on the second program reinstallation instruction;
if the fault type information is that a firewall of the client equipment prevents the client application program from establishing connection with the target database, a firewall configuration instruction is sent to the client equipment, wherein the client equipment is used for opening a connection port of the target database or closing the firewall based on the firewall configuration instruction;
and if the fault type information indicates that the configuration file of the client application program has an error, sending a configuration file modification instruction to the client device, wherein the client device is used for modifying the configuration file based on the configuration file modification instruction so as to configure a correct connection character string.
For another example, in another alternative example, on the basis of the second example (i.e., the example shown in fig. 4) related to step S120, step S130 may include the following steps:
if the fault type information is that a public network address of the network layer equipment has an error, an internal network address has an error or a routing path has an error, sending a network information modification instruction to the network layer equipment, wherein the network layer equipment is used for modifying the public network address, the internal network address or a default routing path based on the network information modification instruction;
if the fault type information is that a firewall of the network layer equipment prevents the establishment of connection with the target database, sending a firewall adjusting instruction to the network layer equipment, wherein the network layer equipment is used for adjusting the firewall configuration of the network layer equipment based on the firewall adjusting instruction;
if the fault type information indicates that a bandwidth or flow limitation condition exists in the network device, a limitation condition adjustment instruction is sent to the network layer device, where the network layer device is configured to adjust the bandwidth or flow limitation condition in the network device based on the limitation condition adjustment instruction, so as to increase the bandwidth, increase the flow, or limit the flow exceeding a preset value to access the target database (that is, limit large-flow access to the target database).
For another example, in another alternative example, on the basis of the third example (i.e., the example shown in fig. 5) related to step S120, step S130 may include the following steps:
if the fault type information indicates that the connection number of the server application program reaches a preset number, sending a connection number adjusting instruction to the server device, where the server device is configured to increase the preset number based on the connection number adjusting instruction, or reduce the connection number of other application programs to the target database, where an importance parameter of the other application programs is lower than an importance parameter of the server application program (that is, the connection number of the application program with a lower importance degree to the target database may be reduced, and the importance degree may be determined based on configuration by a user);
if the fault type information indicates that the server-side device does not have a free disk space and/or an input/output interface, sending a file adjustment instruction and/or an interface adjustment instruction to the server-side device, where the server-side device is configured to delete a file in the disk space based on the file adjustment instruction (for example, some useless or temporary files may be deleted) and/or stop the call of other application programs to the input/output interface based on the interface adjustment instruction, where the number of the input/output interfaces occupied by the other application programs is greater than a preset amount;
if the fault type information is that the memory and the exchange partition of the server device are exhausted, sending an exchange partition adjusting instruction to the server device, wherein the server device is used for increasing the exchange partition based on the exchange partition adjusting instruction and restarting the target database;
if the fault type information of the express delivery cabinet system is that the computing resources of the central processing unit of the server device are exhausted, sending a resource adjusting instruction to the server device, wherein the server device is used for closing the process of consuming the computing resources of the central processing unit based on the resource adjusting instruction;
if the fault type information indicates that a monitor program in the server-side equipment, a process where the target database is located or a port of the target database has a fault, sending a configuration file modification instruction and a restart instruction to the server-side equipment, wherein the server-side equipment is used for modifying the configuration file of the monitor program or the target database based on the configuration file modification instruction and restarting the monitor program or the target database based on the restart instruction;
if the fault type information indicates that the structured query statement of the target database has a fault, sending a modification request instruction to client equipment connected with the server equipment, wherein the client equipment is used for modifying the structured query statement based on the modification request instruction;
if the fault type information indicates that the structure and the index of the target database have faults, a database adjusting instruction is sent to the server side equipment, wherein the server side equipment is used for adjusting the database structure of the target database based on the database adjusting instruction or establishing a corresponding index for a structured query statement corresponding to the fault;
if the fault type information indicates that the target database is in a bug (such as a database bug), sending a database fault processing instruction to the server device, where the server device is configured to perform patching processing on an existing fault based on the database fault processing instruction (or, in other examples, may also take measures to bypass the fault based on the database fault processing instruction).
On the basis of the above example, the present application further provides a specific application example, and with reference to fig. 6, the fault handling device 10 may be communicatively connected with a Configuration Management Database (CMDB), a user terminal, and an express cabinet system. The express cabinet system can comprise an express cabinet, a server, network equipment, a client corresponding to the express cabinet and a database corresponding to the server.
In detail, the configuration management database may store data of each electronic device (such as the network device, the server, and the like), the client, and the database in the express delivery cabinet system, such as an IP address of the device, a hardware configuration, a software path, an application configuration file, and the like. In this way, the fault handling device 10 may obtain data of each electronic device in the express delivery cabinet system from the configuration management database, and then may call a corresponding application program interface based on the data, so as to obtain status information of each electronic device, client, and database, such as CPU, memory, hard disk usage rate, application program error reporting information, database performance index, network throughput, and the like.
After the fault processing device 10 acquires the state information, the state information may be analyzed based on predetermined logic (as shown in fig. 7), so that corresponding fault type information may be determined, and a fault recovery operation may be performed based on the fault type information.
It can be understood that, if the fault type information cannot be determined based on the state information, notification information may be generated and sent to the user terminal, so that a person corresponding to the user terminal performs analysis processing, recovery processing, and the like on the fault corresponding to the state information.
With reference to fig. 8, an express delivery cabinet fault handling apparatus 100 applicable to the fault handling device 10 is further provided in the embodiment of the present application. The express cabinet fault handling apparatus 100 may include a fault status determination module 110, a type information determination module 120, and a recovery operation execution module 130.
The failure status determining module 110 may be configured to determine whether the express delivery cabinet system is in a failure status based on the obtained status information, where the status information is used to represent an operating status of the express delivery cabinet system. In this embodiment, the failure status determining module 110 may be configured to execute step S110 shown in fig. 2, and reference may be made to the foregoing description of step S110 regarding the relevant content of the failure status determining module 110.
The type information determining module 120 is configured to determine, when it is determined that the express delivery cabinet system is in a failure state, failure type information of the express delivery cabinet system based on the state information and a preconfigured state-failure correspondence. In this embodiment, the type information determining module 120 may be configured to perform step S120 shown in fig. 2, and reference may be made to the foregoing description of step S120 for relevant contents of the type information determining module 120.
The recovery operation executing module 130 is configured to execute a fault recovery operation on the express delivery cabinet system according to the fault type information. In this embodiment, the recovery operation performing module 130 may be configured to perform step S130 shown in fig. 2, and reference may be made to the foregoing description of step S130 for relevant contents of the recovery operation performing module 130.
In the embodiment of the present application, corresponding to the above-mentioned express delivery cabinet fault handling method applied to the fault handling device 10, a computer readable storage medium is further provided, in which a computer program is stored, and the computer program executes the steps of the express delivery cabinet fault handling method when running.
The steps executed when the computer program runs are not described in detail herein, and reference may be made to the explanation of the express cabinet fault handling method.
In summary, according to the express delivery cabinet fault processing method and apparatus, the fault processing device, and the storage medium provided by the application, the fault type information of the express delivery cabinet system is determined based on the obtained state information and the pre-configured state-fault correspondence when the express delivery cabinet system is determined to be in the fault state, so that the fault recovery operation can be performed on the express delivery cabinet system according to the fault type information, and the fault existing in the express delivery cabinet system is solved. Therefore, efficient processing of faults existing in the express cabinet system can be achieved, the problem that the faults are difficult to process effectively based on the existing fault detection technology is solved, the express cabinet system can be guaranteed to provide services reliably, and the express cabinet system has high practical value.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (8)

1. An express cabinet fault handling method is applied to fault handling equipment, the fault handling equipment is in communication connection with an express cabinet system, and the express cabinet fault handling method comprises the following steps:
determining whether the express delivery cabinet system is in a fault state or not based on the obtained state information, wherein the state information is used for representing the running state of the express delivery cabinet system;
if the express cabinet system is determined to be in a fault state, determining fault type information of the express cabinet system based on the state information and a pre-configured state-fault corresponding relation;
executing fault recovery operation on the express delivery cabinet system according to the fault type information;
the step of determining the fault type information of the express delivery cabinet system based on the state information and the pre-configured state-fault corresponding relation includes:
analyzing the state information to obtain a state analysis result;
if the state analysis result is that the client application program is wrongly reported when being opened, determining that the fault type information of the express delivery cabinet system is that the client application program is damaged;
if the state analysis result indicates that the client application program cannot be connected with a target database and can be connected with other databases, determining that the fault type information of the express cabinet system is that the version of the client application program or the driver program is not matched with the target database, wherein the target database and the other databases belong to different versions formed for the same database;
if the state analysis result indicates that the client application program cannot establish connection with the target database and can establish connection with a local database, determining that the fault type information of the express cabinet system is that a firewall of the client equipment prevents the client application program from establishing connection with the target database;
and if the state analysis result indicates that the client application program can be connected with the target database and has a network error or an account password error, determining that the fault type information of the express delivery cabinet system is that the configuration file of the client application program has an error.
2. The express cabinet fault handling method of claim 1, wherein the step of performing a fault recovery operation on the express cabinet system according to the fault type information comprises:
if the fault type information indicates that the client application program is damaged, sending a first program reinstallation instruction to the client device, wherein the client device is used for reinstalling the client application program based on the first program reinstallation instruction;
if the fault type information is that the version or the driver of the client application program is not matched with the target database, sending a second program reinstallation instruction to the client device, wherein the client device is used for downloading and installing the client application program or the driver matched with the target database based on the second program reinstallation instruction;
if the fault type information is that a firewall of the client equipment prevents the client application program from establishing connection with the target database, a firewall configuration instruction is sent to the client equipment, wherein the client equipment is used for opening a connection port of the target database or closing the firewall based on the firewall configuration instruction;
and if the fault type information indicates that the configuration file of the client application program has an error, sending a configuration file modification instruction to the client device, wherein the client device is used for modifying the configuration file based on the configuration file modification instruction so as to configure a correct connection character string.
3. The express delivery cabinet fault handling method according to claim 1, wherein the express delivery cabinet system includes a client device and a network layer device, the client device is installed with a client application, and the step of determining the fault type information of the express delivery cabinet system based on the state information and a pre-configured state-fault correspondence includes:
analyzing the state information to obtain a state analysis result;
if the state analysis result indicates that the client application program cannot be communicated with a target database and other application programs belonging to the same intranet with the network layer equipment cannot be communicated with the target database, determining that the fault type information of the express delivery cabinet system is that the public network address of the network layer equipment has an error, the intranet address has an error or the routing path has an error;
if the state analysis result indicates that the client application program cannot be communicated with the target database and other application programs belonging to the same intranet with the network layer equipment can be communicated with the target database, determining that the fault type information of the express cabinet system is that a firewall of the network layer equipment prevents the establishment of connection with the target database;
and if the state analysis result is that the rate of returning data to the client application program by the target database is reduced, determining that the fault type information of the express delivery cabinet system is that a bandwidth or flow limiting condition exists in the network layer equipment.
4. The express cabinet fault handling method of claim 3, wherein the step of performing a fault recovery operation on the express cabinet system according to the fault type information comprises:
if the fault type information is that a public network address of the network layer equipment has an error, an internal network address has an error or a routing path has an error, sending a network information modification instruction to the network layer equipment, wherein the network layer equipment is used for modifying the public network address, the internal network address or a default routing path based on the network information modification instruction;
if the fault type information is that a firewall of the network layer equipment prevents the establishment of connection with the target database, sending a firewall adjusting instruction to the network layer equipment, wherein the network layer equipment is used for adjusting the firewall configuration of the network layer equipment based on the firewall adjusting instruction;
if the fault type information indicates that a bandwidth or flow limitation condition exists in the network layer equipment, sending a limitation condition adjustment instruction to the network layer equipment, wherein the network layer equipment is used for adjusting the bandwidth or flow limitation condition in the network layer equipment based on the limitation condition adjustment instruction so as to increase the bandwidth, increase the flow or limit the flow exceeding a preset value to access the target database.
5. The express delivery cabinet fault handling method according to claim 1, wherein the express delivery cabinet system includes a server device, the server device is installed with a server application and has a target database, and the step of determining the fault type information of the express delivery cabinet system based on the state information and a pre-configured state-fault correspondence includes:
analyzing the state information to obtain a state analysis result;
if the state analysis result indicates that the server application program cannot establish new connection with the target database, determining that the fault type information of the express cabinet system indicates that the connection number of the server application program reaches a preset number;
if the state analysis result indicates that the server-side application program cannot write data into the target database, determining that the fault type information of the express delivery cabinet system is that the server-side equipment does not have a free disk space and/or an input/output interface;
if the state analysis result is that alarm information exists, determining that the fault type information of the express cabinet system is exhausted of the memory and the exchange partition of the server side equipment, wherein the alarm information is used for representing the exhausted memory of the server side equipment;
if the state analysis result indicates that the performance parameters of the target database do not meet the preset conditions, determining that the fault type information of the express delivery cabinet system is that the computing resources of the central processing unit of the server device are exhausted;
if the state analysis result indicates that the server-side application program can be connected with the target database and other application programs cannot be connected with the target database, determining that the fault type information of the express cabinet system is that a monitoring program in the server-side equipment, a process where the target database is located or a port of the target database has a fault, wherein the other application programs and the server-side application program belong to the same intranet;
if the state analysis result indicates that the server application program can establish connection with the target database and the structured query statement of the target database is in error, determining that the fault type information of the express cabinet system is that the structured query statement of the target database has faults;
if the state analysis result is that the speed of data query based on the structured query statement of the target database is less than a preset speed and the frequency of using full-table scanning is greater than a preset frequency, determining that the fault type information of the express delivery cabinet system is that the structure and the index of the target database have faults;
and if the state analysis result indicates that the target database has system error report and the error report content belongs to a predetermined error report condition, determining that the fault type information of the express cabinet system is that the target database is in a leak.
6. The express cabinet fault handling method of claim 5, wherein the step of performing a fault recovery operation on the express cabinet system according to the fault type information comprises:
if the fault type information indicates that the connection number of the server application program reaches a preset number, sending a connection number adjusting instruction to the server device, wherein the server device is used for increasing the preset number or reducing the connection number of other application programs to the target database based on the connection number adjusting instruction, and the importance parameters of the other application programs are lower than those of the server application program;
if the fault type information indicates that the server-side equipment does not have a free disk space and/or an input/output interface, sending a file adjusting instruction and/or an interface adjusting instruction to the server-side equipment, wherein the server-side equipment is used for deleting files in the disk space based on the file adjusting instruction and/or stopping calling of other application programs to the input/output interface based on the interface adjusting instruction, and the number of the input/output interfaces occupied by the other application programs is larger than a preset number;
if the fault type information is that the memory and the exchange partition of the server device are exhausted, sending an exchange partition adjusting instruction to the server device, wherein the server device is used for increasing the exchange partition based on the exchange partition adjusting instruction and restarting the target database;
if the fault type information of the express delivery cabinet system is that the computing resources of the central processing unit of the server device are exhausted, sending a resource adjusting instruction to the server device, wherein the server device is used for closing the process of consuming the computing resources of the central processing unit based on the resource adjusting instruction;
if the fault type information indicates that a monitor program in the server-side equipment, a process where the target database is located or a port of the target database has a fault, sending a configuration file modification instruction and a restart instruction to the server-side equipment, wherein the server-side equipment is used for modifying the configuration file of the monitor program or the target database based on the configuration file modification instruction and restarting the monitor program or the target database based on the restart instruction;
if the fault type information indicates that the structured query statement of the target database has a fault, sending a modification request instruction to client equipment connected with the server equipment, wherein the client equipment is used for modifying the structured query statement based on the modification request instruction;
if the fault type information indicates that the structure and the index of the target database have faults, a database adjusting instruction is sent to the server side equipment, wherein the server side equipment is used for adjusting the database structure of the target database based on the database adjusting instruction or establishing a corresponding index for a structured query statement corresponding to the fault;
and if the fault type information indicates that the target database is in a bug, sending a database fault processing instruction to the server side equipment, wherein the server side equipment is used for patching existing faults based on the database fault processing instruction.
7. A fault handling device, comprising:
a memory for storing a computer program;
a processor coupled to the memory for executing a computer program stored in the memory to implement the express cabinet fault handling method of any of claims 1-6.
8. A computer-readable storage medium on which a computer program is stored, wherein the computer program, when executed, implements the express cabinet failure handling method of any of claims 1 to 6.
CN202011505371.7A 2020-12-18 2020-12-18 Express delivery cabinet fault processing method and device, fault processing equipment and storage medium Active CN112242027B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011505371.7A CN112242027B (en) 2020-12-18 2020-12-18 Express delivery cabinet fault processing method and device, fault processing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011505371.7A CN112242027B (en) 2020-12-18 2020-12-18 Express delivery cabinet fault processing method and device, fault processing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112242027A CN112242027A (en) 2021-01-19
CN112242027B true CN112242027B (en) 2021-03-30

Family

ID=74175335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011505371.7A Active CN112242027B (en) 2020-12-18 2020-12-18 Express delivery cabinet fault processing method and device, fault processing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112242027B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111833557A (en) * 2020-07-27 2020-10-27 中国工商银行股份有限公司 Fault identification method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111833557A (en) * 2020-07-27 2020-10-27 中国工商银行股份有限公司 Fault identification method and device

Also Published As

Publication number Publication date
CN112242027A (en) 2021-01-19

Similar Documents

Publication Publication Date Title
Chen et al. Automating Network Application Dependency Discovery: Experiences, Limitations, and New Solutions.
US8799709B2 (en) Snapshot management method, snapshot management apparatus, and computer-readable, non-transitory medium
CN107704360B (en) Monitoring data processing method, equipment, server and storage medium
EP3311529B1 (en) Resilience as a service
US20170083390A1 (en) Server fault analysis system using event logs
CN112534432A (en) Real-time mitigation of unfamiliar threat scenarios
US10826756B2 (en) Automatic generation of threat remediation steps by crowd sourcing security solutions
US8332690B1 (en) Method and apparatus for managing failures in a datacenter
CN113835836B (en) System, method, computer device and medium for dynamic publishing container service
US8086909B1 (en) Automatic core file upload
US10341182B2 (en) Method and system for detecting network upgrades
CN111371623B (en) Service performance and safety monitoring method and device, storage medium and electronic equipment
US20180359184A1 (en) Out-of-band telemetry data collection
CN113760652B (en) Method, system, device and storage medium for full link monitoring based on application
JP2013222313A (en) Failure contact efficiency system
US10970148B2 (en) Method, device and computer program product for managing input/output stack
CN112242027B (en) Express delivery cabinet fault processing method and device, fault processing equipment and storage medium
CN109189652A (en) A kind of acquisition method and system of close network terminal behavior data
CN114785621B (en) Vulnerability detection method and device, electronic equipment and computer readable storage medium
JP2017199250A (en) Computer system, analysis method of data, and computer
US11281488B1 (en) Management of computing environments with verification of command effects
US20230066698A1 (en) Compute instance warmup operations
CN113886122A (en) System operation exception handling method, device, equipment and storage medium
JP2017211722A (en) Application support program, application support device and application support method
CN112069024B (en) Method for monitoring size of virtual disk in real time in server virtualization platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210507

Address after: 210000 Room 301, 3rd floor, 138 Fengtai South Road, Yuhuatai District, Nanjing City, Jiangsu Province

Patentee after: Nanjing cloud cabinet Network Technology Co.,Ltd.

Address before: Room 1501, building 1, Tianhe Plaza, 146 Fengtai South Road, Yuhuatai District, Nanjing, Jiangsu Province 210000

Patentee before: JIANGSU CLOUDBOX NETWORK TECHNOLOGY Co.,Ltd.