Telegram
On a server rented through Qubix, every active administrator whose Telegram is connected for the private messages of the bot receives the repair requests in a private chat as cards: a message with buttons and, for an offer or a returned request, the PDF of the whole request. A press of a button does the same as the action in the panel, in the name of the administrator who pressed. The switch of the cards sits in Settings.
Who receives a card
- Every administrator who is active and has Telegram connected for the private messages of the bot. Connect it in Notifications.
- The card speaks the language of the administrator and shows times in the time zone of the administrator's profile; an empty time zone reads as UTC.
- A button works from the private chat of an administrator with the bot. A press from the private chat of another person gets the answer "This button works only for a Qubix administrator."; the bot ignores a press from a group chat.
The stages of a card
Each card opens with the line "Server repair request:" and the object (for example "drive sdb", "memory", "PCIe device", "network", "CPU cooling" or "server failures"), then comes the name of the failure.
| Stage | When the card goes | Text and buttons | Repeat |
|---|---|---|---|
| Offer | The facts of the failure are ready, and the agreement is still pending | See the two variants below | Every 24 hours while the offer waits |
| Waiting for a backup | You agreed, and the request waits for a backup | "The request waits for a backup and goes as soon as it is done." Buttons: Send without a backup, Open in the panel | Once |
| The backup stopped | The backup failed to start or ended with a failure | "The backup stopped:" the reason "The request waits for your decision." Buttons: Back up now (omitted when the reason is the unsaved key or the missing program), Send without a backup, Open in the panel | Every 24 hours |
| Returned | admin.qubix.pro returned the request | "The rental service returned the request:" the reason, then the buttons of the offer | Every 24 hours |
The offer waits while a request of the same kind is open or three requests went within 24 hours (limits). The offer returns when the limit clears. After you cancel a request or withdraw your agreement the offer returns after a day. After Hetzner declines a request or finds the hardware in order, the offer returns at once.
When the sending of a card fails for every administrator, Qubix tries again after 10 minutes.
The offer of a request that switches the server off
The card says "Hetzner will shut the server down for the work. Choose the time." and carries the buttons:
- three buttons of the nearest nights, each labelled like "Today 02:00–04:00 (UTC+3)" in the time zone of the administrator; a night that starts in less than 3 hours is skipped;
- Choose a time in the panel, a link that opens the incident.
The offer of a request that keeps the server running
For a network check the card says "Hetzner checks the network while the server runs.", for a disk replaced while the server runs it says "Hetzner replaces the drive while the server runs." Buttons: Send the request and Open in the panel.
Reasons of a stopped backup
The card names the group of the reason; the details stand in the backups section of Qubix settings.
| The card says | The reason |
|---|---|
| "a saved backup key is needed" | The backup key is unsaved |
| "the server needs the backup program" | The backup program is missing or silent |
| "the backup ended with an error", "the backup was cancelled", "the backup was interrupted" or "the backup was skipped" | The backup stopped with that state |
| "the backup storage is unreachable" | The storage of backups is silent |
| "the backup key does not fit" | The key is wrong |
| "not enough space for the backup" | The space is short |
| "the backup service does not answer" | The service is silent |
| "the backup did not complete" | Any other reason |
Reasons of a returned request
| The card says | The reason |
|---|---|
| "a request of this kind is open, or three went within the day" | The limit |
| "the time of the work did not fit — choose another" | The time of works |
| "the Qubix licence is not active" | The licence is revoked or frozen |
| "the details are in the request window of the panel" | Any other reason |
The PDF of the request
The offer card and the card of a returned request carry the PDF of the whole request, named
qubix-repair- and the first eight characters of the incident number. The file holds, in the language of the
administrator:
- The title, the incident, the moment it opened and the summary of the incident.
- The data of the request: a note that these data go to the Qubix rental service, which writes the letter to Hetzner, and a table of fields with the kind of request, the state of the drive and the data lines (Repair request to Hetzner).
- Kernel log events: a table with the event, the device, the number of times and the seconds since the boot.
- Time of the work: the three nearest nights, or the text that the server keeps running.
- Backup: the moment of the last successful backup, and the rule that a backup older than 26 hours goes before the request.
- What Qubix read with an error: the parts that the incident marks as collected partly.
- The smartctl -a report and the mtr report when they exist.
- The closing line "Made by Qubix" and the moment.
The card goes bare of the file when the printer of the PDF is down.
Answers to a press
| Button | Effect | Answer in Telegram |
|---|---|---|
| A night | The agreement with that time of works | By the stage: "The request is being sent.", "The request waits for a backup.", "The backup stopped — the request waits for your decision.", "The rental service returned the request — the reason is in the next message.", or "Request" and the reference "is filed." |
| Send the request | The agreement for a request that skips the choice of time | The same set |
| Send without a backup | The request goes at once | The same set |
| Back up now | A new backup starts, the request waits | The same set |
| Choose a time in the panel, Open in the panel | The panel opens the incident | — |
A press that went through removes the buttons of the message. These answers remove them as well: "The consent to this request is given already.", "The incident is closed.", "The request goes on without waiting for a backup." and "This card is out of date — open the incident in the panel." The other answers keep the buttons.
| Message | When |
|---|---|
| "This button works only for a Qubix administrator." | The press came from the private chat of another person |
| "This button is out of date. Open the request in the panel." | The button data is wrong, or a night starts more than 8 days ahead |
| "The consent to this request is given already." | The agreement exists |
| "The incident is closed." | The incident closed |
| "This time has passed. Choose a time in the panel." | The chosen night has begun |
| "The request goes on without waiting for a backup." | The request left the waiting |
| "This card is out of date — open the incident in the panel." | The agreement changed since the card went |
| "Open the request in the panel to see where it stands." | The press failed |