> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/troubleshooting.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Troubleshooting

Troubleshooting Tina

This list groups the Tina error codes and their meaning.

```
  OK							= 0,   /* Request executed			*/
	TN_ERR_REQ_INCONS			= 1,   /* Inconsistent request parameters	*/
	TN_ERR_PROCESS				= 2,   /* No process slots available			*/
	TN_ERR_PORTAB				= 3,   /* Application portability error */
	TN_ERR_OBJ_INEX				= 4,   /* The specified object does not exist		*/
	TN_ERR_OS_INCONS			= 5,   /* The operating system reports an error that should never occur */
	TN_ERR_COMM					= 6,   /* Network connection error		*/
	TN_ERR_SERV					= 7,   /* The server could not execute the request because of a malfunction */
	TN_ERR_REQ					= 8,   /* The request is valid in form but defines an impossible operation */
	TN_ERR_FATALE				= 9,   /* Severe inconsistency requiring an immediate stop */
	TN_ERR_DISK					= 10,  /* Disk I/O error			*/
	TN_ERR_ODB					= 11,  /* Serious ODB error. ODB is unavailable */
	TN_ERR_MEM					= 12,  /* Out of memory			*/
	TN_ERR_REMOTE				= 13,  /* The operation was aborted at the remote application's request */
	TN_ERR_PROG_INCONS			= 14,  /* Inconsistency probably caused by a programming error */
	TN_ERR_NOT_NODE				= 15,  /* Object found, but it is not a node	*/
	TN_ERR_ODB_RESS				= 16,  /* ODB resource limit reached	*/
	TN_ERR_CONFIG				= 17,  /* Environment configuration error */
	TN_ERR_FNF					= 18,  /* File not found			*/
	TN_ERR_CONNECT_SERV			= 19,  /* The server refuses the connection	*/
	TN_ERR_SERV_RESS			= 20,  /* The request cannot run because the server lacks resources	*/
	TN_ERR_X11_RESS				= 21,  /* X11 resource unavailable		*/
	TN_ERR_CN_SERV_X			= 22,  /* The X11 server refuses the connection */
	TN_ERR_PERM					= 23,  /* The request cannot run because of authorization issues	*/
	TN_ERR_EXISTE_DEJA			= 24,  /* The specified object cannot be created because it already exists		*/
	TN_ERR_FS_FULL				= 25,  /* The file system is full		*/
	TN_ERR_QUOTA				= 26,  /* The user quota has been reached	*/
	TN_ERR_BC					= 27,  /* Backup class creation error		*/
	TN_ERR_STALE				= 28,  /* The handle is detached from its object	*/
	TN_ERR_MAG_PHYS				= 29,  /* Physical I/O error on drive		*/
	TN_ERR_MAG_EOF				= 30,  /* EOF reached				*/
	TN_ERR_MAG_EOT				= 31,  /* EOT reached				*/
	TN_ERR_CACHE_FAULT			= 32,  /* The block is not in the cache		*/
	TN_ERR_BUSY_W				= 33,  /* The folder is already open for writing	*/
	TN_ERR_ALLOC				= 34,  /* The resource is already allocated		*/
	TN_ERR_NOLABEL				= 35,  /* The cartridge is not labeled	*/
	TN_ERR_DEJA_LABEL			= 36,  /* The cartridge is already labeled	*/
	TN_ERR_MAG_FMT				= 37,  /* Cartridge format error		*/
	TN_ERR_MAG_NOT_READY		= 38,  /* Drive not ready or cartridge missing	*/
	TN_ERR_MAG_CART_PROT		= 39,  /* Cartridge is write-protected	*/
	TN_ERR_ABORT				= 40,  /* Abort requested by the user	*/
	TN_ERR_TIMEOUT				= 41,  /* Timeout expired     	*/
	TN_ERR_SUSPEND				= 42,  /* Suspension in progress	*/
	TN_ERR_CONNECT_REM_MAG		= 43,  /* Remote drive server connection error	*/
	TN_ERR_FATALE_X11			= 44,  /* X error requiring a stop		*/
	TN_ERR_FORMAT_TAR			= 45,  /* TAR header/trailer format error	*/
	TN_ERR_FORMAT_CPIO			= 46,  /* CPIO header/trailer format error	*/
	TN_ERR_BCNF					= 47,  /* Backup class not defined on object	*/
	TN_ERR_L64					= 48,  /* Error in a 64-bit operation	*/
	TN_ERR_SHUTDOWN				= 49,  /* Abort caused by server shutdown	*/
	TN_ERR_CONNECT_REM_ROB		= 50,  /* Remote robot server connection error	*/
	TN_ERR_ROB_NOT_READY		= 51,  /* Robot not ready                     	*/
	TN_ERR_ROB_RESS				= 52,  /* Resource unavailable (picker, mail...)	*/
	TN_ERR_ROB_REQ				= 53,  /* Request cannot be fulfilled	*/
	TN_ERR_ROB_PHYS				= 54,  /* Physical I/O error on robot		*/
	TN_ERR_MOUNT_ABORT			= 55,  /* Mount request aborted		*/
	TN_ERR_NO_FS_INFO			= 56,  /* Cannot determine the object's file system	*/
	TN_ERR_ROB_INCONS			= 57,  /* Robot content inconsistency detected 	*/
	TN_ERR_ROB_SRC_VIDE			= 58,  /* Source location is empty		*/
	TN_ERR_ROB_DST_PLEIN		= 59,  /* Destination location is occupied	*/
	TN_ERR_MAG_NODEV			= 60,  /* Drive is not detected or is unavailable	*/
	TN_ERR_MAG_BUSY				= 61,  /* Drive is already in use 		*/
	TN_ERR_ROB_DRV_INCONS		= 62,  /* Inconsistency between robot and drive status */
	TN_ERR_INSTALL				= 63,  /* Installation error			*/
	TN_ERR_EOF					= 64,  /* End of file			*/
	TN_ERR_SIGNAL				= 65,  /* Interrupted by a received signal	*/
	TN_ERR_ODB_FULL				= 66,  /* Catalog is full			*/
	TN_ERR_ROB_AGAIN			= 67,  /* Request accepted but cannot be fulfilled immediately */
	TN_ERR_BNFS					= 68,  /* Access blocked during an NFS mount	*/
	TN_ERR_NOT_INIT				= 69,  /* Package/resource not initialized	*/
	TN_ERR_FILTERED				= 70,  /* Filtered element, from a list or tree */
	TN_ERR_CONNECT_APP			= 71,  /* Application connection error		*/
	TN_ERR_APP_INCONS			= 72,  /* An application reports an error that should never occur */
	TN_ERR_READ_FILE			= 73,  /* Error reading a file from disk */
	TN_ERR_WRITE_FILE			= 74,  /* Error writing a file to disk */
	TN_ERR_MAG_EOS				= 75,  /* Maximum segment size reached	*/
	TN_ERR_MOUNT_RESS			= 76,  /* Mount resource unavailable		*/
	TN_ERR_CONFLICT_RESS		= 77,  /* Access conflict on the same resource	*/
	TN_ERR_SYNTAX				= 78,  /* Syntax error			*/
	TN_ERR_DEADLOCK				= 79,  /* Catalog deadlock			*/
	TN_ERR_MAG_EMPTY			= 80,  /* Tape drive empty			*/
	TN_ERR_ROB_UNIT_ATTENTION	= 81,  /* Unit Attention on rob			*/
	TN_ERR_ROB_NODEV			= 82,  /* No such device			*/
	TN_ERR_RANGE				= 83,  /* Value error, with valid syntax	*/
	TN_ERR_NOT_PATH				= 84,  /* Absolute path conversion error	*/
	TN_ERR_TOO_MANY_ERRORS		= 85,  /* Too many errors: cannot continue the operation */
	TN_ERR_FORMAT_SIDF			= 86,  /* SIDF header/trailer format error	*/
	TN_ERR_OVERFLOW				= 87,  /* Overflow during calculation		*/
	TN_ERR_COMPAT				= 88,  /* Compatibility issue 			*/
	TN_ERR_SEQ					= 89,  /* Sequencing error (stream or log sequence) */
	TN_ERR_WAIT_READ			= 90,  /* DTM waiting for reading		*/
	TN_ERR_WAIT_WRITE			= 91,  /* DTM waiting for writing		*/
	TN_ERR_CLUSTER_FAILURE		= 92,  /* Cluster failure detected		*/
	TN_ERR_BAD_CHECKSUM			= 93,  /* Checksum error			*/
	TN_ERR_MAG_BOT				= 94,  /* BOT detected on write			*/
	TN_ERR_BUSY					= 95,  /* Mutex already acquired			*/
	TN_ERR_STR_TOO_LONG			= 96,  /* String too long			*/
	TN_ERR_MAG_EOD				= 97,  /* EOD detected				*/
	TN_ERR_OBJ_INCONS			= 98,  /* Inconsistent object			*/
	TN_ERR_NOT_EMPTY			= 99,  /* Directory not empty			*/
	TN_ERR_PARSE_XML			= 100, /* XML parsing error			*/
	TN_ERR_NEED_PASSWD			= 101, /* Decoding error: password required */
	TN_ERR_REQ_TRUNC_FLOW		= 102, /* Selected pack has incomplete segments for conversion */
	TN_ERR_SIGHUP				= 103, /* received sighup			*/
	TN_ERR_SIGPIPE				= 104, /* received sigpipe			*/
	TN_ERR_JOB_DELETE			= 105, /* job deletion in progress		*/
	TN_ERR_SERV_STOP			= 106, /* service is stopping			*/
	TN_ERR_CROSS_RESTO			= 107, /* Object or Attribute not cross	restorable */
	TN_ERR_FS_SPECIAL			= 108, /* special filesystem (eg automount)	*/
	TN_ERR_CAT_INEX				= 109,
	TN_ERR_REST_POSTPROCESS		= 110, /* post processing error for applications */
	TN_ERR_FFS					= 111, /* Fast file scan errors			*/
	TN_ERR_READ_ONLY			= 112, /* Error due to Read Only		*/
	TN_ERR_INVALID_NETWORK_PKT	= 113, /* Invalid client tried to establish network connection with tina_daemon */
	TN_ERR_IO                   = 114, /* General Input/Ouput error during operation */
	TN_ERR_EOS                  = 115, /* End of stream */
	TN_ERR_NOT_DIRECTORY        = 116, /* Not a directory (Clt mostly uses TN_ERR_NOT_NODE and is not aware of this error) */
	TN_ERR_FORMAT               = 117, /* Format error */
	TN_ERR_NOT_SUPPORTED        = 118, /* Not supported */
	TN_ERR_BUF_FULL             = 119, /* Buffer is full */
	TN_ERR_NOT_MOUNT_POINT      = 120, /* Path is not a mount point */
	TN_ERR_PATH_LOCKED          = 121, /* Path is locked */
	TN_ERR_LOGON_ACCOUNT        = 122, /* Invalid user account for logon */
	TN_ERR_PATH_INVALID         = 123, /* Invalid path */
	TN_ERR_PATH_TOO_LONG        = 124, /* Path name too long */
	TN_ERR_NOT_IMPLEMENTED      = 125, /* Not implemented */
	TN_ERR_PARAM                = 126, /* Invalid parameters */
	TN_ERR_BACKUP_RETRY         = 127, /* Retry backup */
	TN_ERR_BACKUP_RETRYFULL     = 128, /* Retry backup full; no incremental allowed */
	TN_ERR_FILE_NOT_AVAILABLE   = 129, /* The file is not available */

	/* errors for virtualization */
	TN_ERR_VM_CREATE_FAILED		= 130, /* failed to create a Virtual Machine	*/
	TN_ERR_VM_PRE_FREEZE		= 131, /* problem with the pre-freeze operation	*/
	TN_ERR_VM_NO_SNAPSHOT		= 132, /* snapshot does not exist		*/
	TN_ERR_VM_BACKUP_ERROR		= 133, /* general error backing up a VM		*/

	TN_ERR_UPGRADE_REQUIRES_A_FULL	= 134, /* After some upgrades, an incremental backup cannot be performed */

	TN_ERR_VM_NO_FGR			= 135, /* Cannot restore Files if the backup is not fine grain */
	TN_ERR_NEED_FULL			= 136, /* Agent backup cannot run in cremental mode. A Full is required */
	TN_ERR_ALREADY_CACHED		= 137, /* Data for this VM and arch_time already in cache for file restore */

	TN_ERR_USER_ABORT			= 138, /* Job aborted on user request		*/

	TN_ERR_MAINTENANCE			= 139, /* Action not allowed because of related folder maintenance */

	/* Password management errors */
	TN_ERR_PASSWORD_COMPLEXITY_COMPLIANCE	= 140, /* Password does not comply with password policy */
	TN_ERR_PASSWORD_RECENTLY_CHANGED		= 141, /* Password was changed too recently */
	TN_ERR_PASSWORD_REUSE					= 142, /* Password is identical to another used recently */
	TN_ERR_USER_LOCKED						= 143, /* Account is locked */
	TN_ERR_PASSWORD_EXPIRED					= 144, /* Expired password */
	TN_ERR_PASSWORD_POLICY_ALTERED			= 145, /* Password policy was altered without going through the modification interfaces */

	/* errors for cloud */
	TN_ERR_BUCKET_NOT_VERS					= 146, /* Bucket is not versionned */

	/* Password management errors */
	TN_ERR_PASSWORD_EMPTY					= 147, /* Password empty */

	/* 2FA management errors */
	TN_ERR_NEED_2FA_CODE					= 148, /* Need 2FA code */

	/* For asynchronous batch requests */
	TN_ERR_INCOMPLETE_DATA					= 149, /* Current batch is not the last for this request */

	/* tina_mount */
	TN_ERR_ROB_INCOMPATIBLE_MEDIUM = 150,	/* Tape / drive incompatible */
```

## Troubleshooting restore

This topic contains information about File granular restores.

#### Error during File restore from a tape vault backup

If an error occurs during a File granular restore from a tape vault backup, delete the contents of the cache directory and restart the File granular restore. This only applies if the data is already present in the cache during the restore.

#### Customizing directories for File restore

File restore is only supported for virtual machines running on Windows.

The default directory for File granular restore is <kbd>TINA\_HOME</kbd>. If there is a problem writing to this default directory, you must redefine it with the system environment variable <kbd>ATN\_HYPERV\_HOME.</kbd>

The directory defined with the system environment variable <kbd>ATN\_HYPERV\_HOME</kbd> contains these subdirectories:

* The <kbd>ATN\_HYPERV\_HOME/vhd\_repository</kbd> directory contains the exposed file system. You must set this system environment variable before starting the Tina service. If a system environment variable <kbd>ATN\_HPV\_HOME</kbd> already exists, it is used instead of the default directory. If the default directory was used before setting this variable, delete the <kbd>TINA\_HOME/vhd\_repository</kbd> directory.

## Tape storage : Library Diagnostic Tool

The topics [<mark style="color:blue;">Running qcdiag in Interactive Mode</mark>](#running-qcdiag-in-interactive-mode)<mark style="color:blue;">,</mark> [<mark style="color:blue;">Running qcdiag in Batch Mode</mark>](#running-qcdiag-in-batch-mode)<mark style="color:blue;">, and</mark> [<mark style="color:blue;">Identifying the Drive Position</mark>](#identifying-the-drive-position) describe the basic use of the `qcdiag` library diagnostic tool.\
The `qcdiag` tool lets you test the library driver, `qc` or passthrough, or the library itself, independently of the Tina environment.\
You can run it in interactive mode or batch mode. Batch mode runs a series of commands listed in a text file. This is a simple way to automate tests on libraries.

> **Important** : If the library is already in use by Tina, you must stop the Tina daemon or service on the server to avoid any concurrent access to the library and drives.\
> **Important** : Moving media within the library can create a silo inconsistency in Tina if you do not put the media back in their original location, or if you do not run a library reset after restarting the Tina daemon or service linked to qcdiag.

### Running qcdiag in Interactive Mode

The binary is installed in the `Bin` directory along with the standard Tina binaries.

* **Unix**. Location: `$TINA\_HOME/Bin/qcdiag`
* **Windows**. Location: `%TINA\_HOME%\Bin\qcdiag.exe`

Once launched, you get the `(qcdiag)` prompt. You can then enter the desired command.\
You must first open a library before you can diagnose it. Use the `open` command with the library's **Device Descriptor**, as defined in the Web admin console.

**Example on Windows**. `(qcdiag) open C1B0T6L0`\
**Example on Unix**. `(qcdiag) open /dev/qc0,0`\
You can then display the library status, often the first command to run after `open` to test communication:

<kbd>(qcdiag) status</kbd>

The most useful commands for testing a library are:

* <kbd>geo</kbd> — returns a table of general information about the library, such as the number of slots, the number of drives, and the addresses of objects.
* <kbd>init-elt-status</kbd> — checks for the presence or absence of media in each library location. Can also check barcodes if the library can read them.
* <kbd>read-elt-status</kbd> — displays the contents of the library, but you must first run `init-elt-status`.

You can also test the drives:

* use the `define-tape` and `open-tape` commands on the drive's **Device Descriptor**

<kbd>(qcdiag) define-tape d0 /dev/rmt/0cn</kbd>

<kbd>(qcdiag) open-tape d0</kbd>

* or move media
  * from one slot to another: <kbd>(qcdiag) move s0 s1</kbd>
  * from a slot to a drive: <kbd>(qcdiag) move s1 d0</kbd>

#### Basic qcdiag Commands

<table><thead><tr><th width="320.33331298828125">To ...</th><th>use the command ...</th></tr></thead><tbody><tr><td><strong>list all commands</strong></td><td><code>help</code></td></tr><tr><td><strong>get information about a specific command</strong></td><td><code>help &#x3C;command_name></code></td></tr><tr><td><strong>quit qcdiag</strong></td><td><code>quit</code></td></tr><tr><td><strong>open a library</strong></td><td><code>open &#x3C;device_descriptor></code></td></tr><tr><td><strong>get information about the library (Vendor, Product...)</strong></td><td><code>identity</code></td></tr><tr><td><strong>close the open library</strong></td><td><code>close</code></td></tr></tbody></table>

### Running qcdiag in Batch Mode

Run the `qcdiag` command with a script name as a parameter.\
**Example**. <kbd># qcdiag move\_medium</kbd>

**Example of a `move_medium` Script**

```
' open library device
open /dev/qc0,0
' open tape device
define-tape d0 /dev/rmt/0cn
open-tape d0
' move medium from slot 0 to drive 0 and back
move s0 d0
move d0 s0
```

### Identifying the Drive Position

The drive position is a number that identifies the drive's location in the library. You will need it when declaring the drive in Tina.

> **Note** : The first location in the library corresponds to drive position `0`.

The `qcdiag` tool can help you determine a drive's position within a library.

**To Identify the Drive Position with qcdiag**

1. Run `qcdiag` in interactive mode.
2. Associate the SCSI address of each drive with a drive identifier using the `define-tape` command: `define-tape drive_id device_descriptor`\
   Where:

   1. `drive_id` is the drive identifier: `d0`, `d1`, `d2`, etc.
   2. `device_descriptor` is the drive descriptor, in the form of a SCSI address `c?b?t?l?` for `Controller`, `Bus`, `Target`, `LUN`.

   If you have two drives, `d0` and `d1`, enter for example:

   1. `define-tape d0 c1b0t4l0`
   2. `define-tape d1 c1b0t5l0`
3. Enter the <kbd>learn</kbd> command: `learn drive_name drive_name ...`

   Where: `drive_id` is the identifier used earlier to define the drives.

   **Example**. `learn d0 d1`
4. If the result shows that the first drive is associated with position `0`, the second with position `1`, the third with position `2`, and so on, you can easily match the positions with the SCSI addresses.

   **Example**. Result

   ```
   1: d1
   0: d0
   ```

   This means that drive `d0`, with SCSI address `c1b0t4l0`, is associated with position `0`, and drive `d1`, with SCSI address `c1b0t5l0`, is associated with position `1`.

   If the result shows reversed logical indexes, redefine the drives as shown in step 2, then rerun the `learn` command.

   **Example**. Result

   ```
   1: d0
   0: d1
   ```

   This means the logical indexes are reversed. Redefine the SCSI addresses differently, then rerun the `learn` command.

   ```
   define-tape d0 c1b0t5l0
   define-tape d1 c1b0t4l0
   learn d0 d1
   1: d1
   0: d0
   ```

   Now, `d0` with SCSI address `c1b0t5l0` is associated with position `0`, and `d1` with SCSI address `c1b0t4l0` is associated with position `1`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/troubleshooting.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
