Error codes

Error codes#

Bacularis API uses error codes and error descriptions in its responses whenever an error occurs.

These errors are returned by the API, but they may also be displayed in the web interface when it receives an API response containing an error code. In such cases, an error is usually presented in a popup window along with the error code and its description.

Below is the complete list of error codes:

Error Code

Category

Description

0

Generic

No error.

1

Generic

Invalid command.

2

Database

Problem with connection to database.

3

Database

Database access is not supported by this API instance.

4

Bconsole

Problem with connection to bconsole.

5

Bconsole

Invalid director.

6

Authentication

Problem with authentication to Baculum API.

7

Authorization

Access attempt to not allowed resource. Permission denied.

8

Generic

Invalid path.

9

Generic

Wrong exitcode.

10

Client

Client does not exist.

11

Bconsole

Bconsole support is disabled.

20

Storage

Storage does not exist.

30

Volume

Volume does not exist.

31

Volume

Invalid volume.

32

Volume

Invalid slot.

33

Volume

Volume already exists.

40

Pool

Pool does not exist.

41

Pool

Pool with inputted poolid does not contain any volume to update.

42

Pool

Pool is not empty.

50

Job

Job does not exist.

51

Job

Inputted job level is invalid.

52

Job

FileSet resource does not exist.

53

Job

Client does not exist.

54

Job

Storage does not exist.

55

Job

Pool does not exist.

56

Job

Inputted rpath for restore is invalid. Proper format is b2[0-9]+.

57

Job

Inputted “where” option is invalid.

58

Job

Inputted “replace” option is invalid.

59

Job

Inputted “filename” option is invalid.

60

FileSet

FileSet does not exist.

71

Restore/BVFS

Inputted path for restore is invalid. Proper format is b2[0-9]+.

72

Restore/BVFS

Inputted BVFS path param is invalid.

73

Restore/BVFS

Invalid jobid list.

74

Restore/BVFS

Invalid fileid list.

75

Restore/BVFS

Invalid file index list.

76

Restore/BVFS

Invalid dirid list.

77

Restore/BVFS

Invalid client name.

78

Restore/BVFS

Invalid jobid.

80

JSON Tools

JSON tools support is disabled.

81

JSON Tools

Problem with connection to a JSON tool.

82

JSON Tools

JSON tool returned wrong exitcode.

83

JSON Tools

JSON tool output was unable to parse.

84

JSON Tools

JSON tool not configured.

90

Configuration

Config directory is not writable.

91

Configuration

Unexpected Bacula config value.

92

Configuration

No JSON tool ready.

93

Configuration

Write to config file error.

94

Configuration

Config validation error.

95

Configuration

User is not allowed to read resource config.

96

Configuration

User is not allowed to write resource config.

97

Configuration

Config does not exist.

98

Configuration

Config already exists.

99

Configuration

Config dependency error.

100

Connection

Problem with connection to remote host.

110

Actions

Action does not exist.

111

Actions

Actions support is disabled.

112

Actions

Action command returned wrong exitcode.

113

Actions

Action is not configured.

120

OAuth2

OAuth2 client does not exist.

121

OAuth2

OAuth2 client already exists.

122

OAuth2

Invalid OAuth2 client ID.

123

OAuth2

Invalid OAuth2 client secret.

124

OAuth2

Invalid OAuth2 redirect URI.

125

OAuth2

Invalid OAuth2 scope.

126

OAuth2

Invalid Bconsole config path.

127

OAuth2

Invalid OAuth2 client name.

128

OAuth2

Invalid Console name.

129

OAuth2

Invalid Director name.

130

Device

Device config does not exist.

131

Device

Invalid changer command.

132

Device

Autochanger does not exist.

133

Device

Autochanger drive does not exist.

134

Device

Wrong slot number.

135

Device

Drive does not belong to selected autochanger.

136

Device

Invalid device value.

140

Basic User

Basic user does not exist.

141

Basic User

Basic user already exists.

142

Basic User

Invalid basic user username.

143

Basic User

Invalid bconsole config path.

144

Basic User

Invalid Console name.

145

Basic User

Invalid Director name.

146

Basic User

Invalid password.

150

Software Management

Software management command does not exist.

151

Software Management

Software managment is disabled.

152

Software Management

Non-zero exitcode returned by software management command.

153

Software Management

Software managment command is not configured.

160

Cloud/Amazon

Invalid account.

161

Cloud/Amazon

Account does not exist.

162

Cloud/Amazon

Account already exists.

163

Cloud/Amazon

Invalid output from AWS CLI.

1000

Generic

Internal error.