errorcode-filemanagement.md 13.1 KB
Newer Older
A
Annie_wang 已提交
1
# File Management Error Codes
2 3 4 5 6

> **NOTE**
>
> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](errorcode-universal.md).

A
Annie_wang 已提交
7
The error codes of the file management subsystem include the following:
A
Annie_wang 已提交
8

A
Annie_wang 已提交
9 10 11 12 13 14
- [Basic File IO Error Codes](#basic-file-io-error-codes)
- [User Data Management Error Codes](#user-data-management-error-code)
- [User File Access Error Codes](#user-file-access-error-codes)
- [Space Statistics Error Codes](#space-statistics-error-codes)

## Basic File IO Error Codes
A
Annie_wang 已提交
15 16 17 18

### 13900001 Operation Not Permitted

**Error Message**
19

A
Annie_wang 已提交
20 21 22
Operation not permitted

**Possible Causes**
23

A
Annie_wang 已提交
24 25 26
The current operation on the file is not allowed.

**Solution**
27

A
Annie_wang 已提交
28 29 30 31 32
Check the permission for the file.

### 13900002 File or Directory Not Exist

**Error Message**
33

A
Annie_wang 已提交
34 35 36
No such file or directory

**Possible Causes**
37

A
Annie_wang 已提交
38 39 40
The file or directory does not exist.

**Solution**
41

A
Annie_wang 已提交
42 43 44 45 46
Check whether the file directory exists.

### 13900003 Process Not Exist

**Error Message**
47

A
Annie_wang 已提交
48 49 50
No such process

**Possible Causes**
51

A
Annie_wang 已提交
52 53 54
The process does not exist.

**Solution**
55

A
Annie_wang 已提交
56
1. Check whether the process is killed unexpectedly.
A
Annie_wang 已提交
57

A
Annie_wang 已提交
58 59 60 61 62
2. Check whether the service related to the process has started.

### 13900004 System Call Interrupted

**Error Message**
63

A
Annie_wang 已提交
64 65 66
Interrupted system call

**Possible Causes**
67

A
Annie_wang 已提交
68 69 70
The system call is interrupted by another thread.

**Solution**
71

A
Annie_wang 已提交
72
1. Check the multi-thread code logic.
A
Annie_wang 已提交
73

A
Annie_wang 已提交
74 75 76 77 78
2. Invoke the system call again.

### 13900005 I/O Error

**Error Message**
79

A
Annie_wang 已提交
80 81 82
I/O error

**Possible Causes**
83

A
Annie_wang 已提交
84 85 86
The I/O request is invalid.

**Solution**
87

A
Annie_wang 已提交
88 89 90 91 92
Initiate the I/O request again.

### 13900006 Device or Address Not Exist

**Error Message**
93

A
Annie_wang 已提交
94 95 96
No such device or address

**Possible Causes**
97

A
Annie_wang 已提交
98 99 100
The device information or address is incorrect.

**Solution**
101

A
Annie_wang 已提交
102 103 104 105 106
Check that the device information or address is correct.

### 13900007 Long Parameter List

**Error Message**
107

A
Annie_wang 已提交
108 109 110
Arg list too long

**Possible Causes**
111

A
Annie_wang 已提交
112 113 114
The parameter list is too long.

**Solution**
115

A
Annie_wang 已提交
116 117 118 119 120
Reduce the number of parameters.

### 13900008 Invalid File Descriptor

**Error Message**
121

A
Annie_wang 已提交
122 123 124
Bad file descriptor

**Possible Causes**
125

A
Annie_wang 已提交
126 127 128
This file descriptor is closed.

**Solution**
129

A
Annie_wang 已提交
130 131 132 133 134
Check whether the file descriptor is closed.

### 13900009 Child Process Not Exist

**Error Message**
135

A
Annie_wang 已提交
136 137 138
No child processes

**Possible Causes**
139

A
Annie_wang 已提交
140 141 142
The child process cannot be created.

**Solution**
143

A
Annie_wang 已提交
144 145 146 147 148
Check the maximum number of processes in the system.

### 13900010 Resource Unavailable

**Error Message**
149

A
Annie_wang 已提交
150 151 152
Try again

**Possible Causes**
153

A
Annie_wang 已提交
154 155 156
The resources are blocked.

**Solution**
157

A
Annie_wang 已提交
158 159 160 161 162
Request resources.

### 13900011 Memory Overflow

**Error Message**
163

A
Annie_wang 已提交
164 165 166
Out of memory

**Possible Causes**
167

A
Annie_wang 已提交
168 169 170
A memory overflow occurs.

**Solution**
A
Annie_wang 已提交
171

A
Annie_wang 已提交
172
1. Check the memory overhead.
A
Annie_wang 已提交
173

A
Annie_wang 已提交
174 175 176 177 178
2. Control the memory overhead.

### 13900012 Permission Denied

**Error Message**
179

A
Annie_wang 已提交
180 181 182
Permission denied

**Possible Causes**
183

A
Annie_wang 已提交
184
1. You do not have the permission to operate the file.
A
Annie_wang 已提交
185

A
Annie_wang 已提交
186 187 188
2. The file sandbox path is incorrect.

**Solution**
A
Annie_wang 已提交
189 190 191

1. Check that the required permission is available.

A
Annie_wang 已提交
192 193 194 195 196
2. Check that the file sandbox path is correct.

### 13900013 Incorrect Address

**Error Message**
197

A
Annie_wang 已提交
198 199 200
Bad address

**Possible Causes**
201

A
Annie_wang 已提交
202 203 204
The address is incorrect.

**Solution**
205

A
Annie_wang 已提交
206 207 208 209 210
Check that the address is correct.

### 13900014 Device or Resource Not Available

**Error Message**
211

A
Annie_wang 已提交
212 213 214
Device or resource busy

**Possible Causes**
215

A
Annie_wang 已提交
216 217 218
The requested resource is unavailable.

**Solution**
219

A
Annie_wang 已提交
220 221 222 223 224
Request the resource again.

### 13900015 File Already Exists

**Error Message**
225

A
Annie_wang 已提交
226 227 228
File exists

**Possible Causes**
229

A
Annie_wang 已提交
230 231 232
The file to be created already exists.

**Solution**
233

A
Annie_wang 已提交
234 235 236 237 238
Check whether the file path is correct.

### 13900016 Invalid Cross-Device Link

**Error Message**
239

A
Annie_wang 已提交
240 241 242
Cross-device link

**Possible Causes**
243

A
Annie_wang 已提交
244 245 246
The link between devices is incorrect.

**Solution**
247

A
Annie_wang 已提交
248 249 250 251 252
Check the devices and create the link correctly.

### 13900017 Device Not Exist

**Error Message**
253

A
Annie_wang 已提交
254 255 256
No such device

**Possible Causes**
257

A
Annie_wang 已提交
258 259 260
The device is not identified.

**Solution**
261

A
Annie_wang 已提交
262 263 264 265 266
Check the connection to the target device.

### 13900018 Invalid Directory

**Error Message**
267

A
Annie_wang 已提交
268 269 270
Not a directory

**Possible Causes**
271

A
Annie_wang 已提交
272 273 274
The specified directory is invalid.

**Solution**
275

A
Annie_wang 已提交
276 277 278 279 280
Check that the directory is correct.

### 13900019 The Specified Object Is a Directory

**Error Message**
281

A
Annie_wang 已提交
282 283 284
Is a directory

**Possible Causes**
285

A
Annie_wang 已提交
286 287 288
The specified object is a directory.

**Solution**
289

A
Annie_wang 已提交
290 291 292 293 294
Check that the specified data is correct.

### 13900020 Invalid Parameter

**Error Message**
295

A
Annie_wang 已提交
296 297 298
Invalid argument

**Possible Causes**
299

A
Annie_wang 已提交
300 301 302
Invalid input parameter is detected.

**Solution**
303

A
Annie_wang 已提交
304 305 306 307 308
Check that the input parameters are valid.

### 13900021 Too Many File Descriptors Opened

**Error Message**
309

A
Annie_wang 已提交
310 311 312
File table overflow

**Possible Causes**
313

A
Annie_wang 已提交
314 315 316
The number of file descriptors opened has reached the limit.

**Solution**
317

A
Annie_wang 已提交
318 319 320 321 322
Close the file descriptors that are no longer required.

### 13900022 Too Many Files Opened

**Error Message**
323

A
Annie_wang 已提交
324 325 326
Too many open files

**Possible Causes**
327

A
Annie_wang 已提交
328 329 330
The number of files opened has reached the limit.

**Solution**
331

A
Annie_wang 已提交
332 333 334 335 336
Close the files that are not required.

### 13900023 Text File Not Respond

**Error Message**
337

A
Annie_wang 已提交
338 339 340
Text file busy

**Possible Causes**
341

A
Annie_wang 已提交
342 343 344
The executable file of the program is in use.

**Solution**
345

A
Annie_wang 已提交
346 347 348 349 350
Close the program that is being debugged.

### 13900024 File Oversized

**Error Message**
351

A
Annie_wang 已提交
352 353 354
File too large

**Possible Causes**
355

A
Annie_wang 已提交
356 357 358
The file size exceeds the limit.

**Solution**
359

A
Annie_wang 已提交
360 361 362 363 364
Check whether the file size exceeds the limit.

### 13900025 Insufficient Space on the Device

**Error Message**
365

A
Annie_wang 已提交
366 367 368
No space left on device

**Possible Causes**
369

A
Annie_wang 已提交
370 371 372
The device storage space is insufficient.

**Solution**
373

A
Annie_wang 已提交
374 375 376 377 378
Clear the space of the device.

### 13900026 Invalid Shift

**Error Message**
379

A
Annie_wang 已提交
380 381 382
Illegal seek

**Possible Causes**
383

A
Annie_wang 已提交
384 385 386
Seek is used in pipe or FIFO.

**Solution**
387

A
Annie_wang 已提交
388
Check the use of **seek()**.
A
Annie_wang 已提交
389 390 391 392

### 13900027 Read-Only File System

**Error Message**
393

A
Annie_wang 已提交
394 395 396
Read-only file system

**Possible Causes**
397

A
Annie_wang 已提交
398 399 400
The file system allows read operations only.

**Solution**
401

A
Annie_wang 已提交
402 403 404 405 406
Check whether the file is read-only.

### 13900028 Links Reach the Limit

**Error Message**
407

A
Annie_wang 已提交
408 409 410
Too many links

**Possible Causes**
411

A
Annie_wang 已提交
412 413 414
The number of links to the file has reached the limit.

**Solution**
415

A
Annie_wang 已提交
416 417 418 419 420
Delete the links that are no longer required.

### 13900029 Resource Deadlock

**Error Message**
421

A
Annie_wang 已提交
422 423 424
Resource deadlock would occur

**Possible Causes**
425

A
Annie_wang 已提交
426 427 428
Resource deadlock occurs.

**Solution**
429

A
Annie_wang 已提交
430 431 432 433 434
Terminate the deadlock process.

### 13900030 Long File Name

**Error Message**
435

A
Annie_wang 已提交
436 437 438
Filename too Long

**Possible Causes**
439

A
Annie_wang 已提交
440 441 442
The length of the path or file name exceeds the limit.

**Solution**
443

A
Annie_wang 已提交
444 445 446 447 448
Modify the path or file name.

### 13900031 Function Not Implemented

**Error Message**
449

A
Annie_wang 已提交
450 451 452
Function not implemented

**Possible Causes**
453

A
Annie_wang 已提交
454 455 456
The function is not supported by the system.

**Solution**
457

A
Annie_wang 已提交
458 459 460 461 462
Check the system version and update the system if required.

### 13900032 Directory Not Empty

**Error Message**
463

A
Annie_wang 已提交
464 465 466
Directory not empty

**Possible Causes**
467

A
Annie_wang 已提交
468 469 470
The specified directory is not empty.

**Solution**
471

A
Annie_wang 已提交
472
1. Check the directory.
A
Annie_wang 已提交
473

A
Annie_wang 已提交
474 475 476 477 478
2. Ensure that the directory is empty.

### 13900033 Too Many Symbol Links

**Error Message**
479

A
Annie_wang 已提交
480 481 482
Too many symbolic links

**Possible Causes**
483

A
Annie_wang 已提交
484 485 486
There are too many symbolic links.

**Solution**
487

A
Annie_wang 已提交
488 489 490 491 492
Delete unnecessary symbol links.

### 13900034 Operation Blocked

**Error Message**
493

A
Annie_wang 已提交
494 495 496
Operation would block

**Possible Causes**
497

A
Annie_wang 已提交
498 499 500
The operation is blocked.

**Solution**
501

A
Annie_wang 已提交
502 503 504 505 506
Perform the operation again.

### 13900035 Invalid File Descriptor

**Error Message**
507 508

Invalid request descriptor
A
Annie_wang 已提交
509 510

**Possible Causes**
511

A
Annie_wang 已提交
512 513 514
The requested file descriptor is invalid.

**Solution**
515

A
Annie_wang 已提交
516 517 518 519 520
Check that the file descriptor is valid.

### 13900036 Target Is Not a Character Stream Device

**Error Message**
521

A
Annie_wang 已提交
522 523 524
Device not a stream

**Possible Causes**
525

A
Annie_wang 已提交
526 527 528
The device pointed to by the file descriptor is not a character stream device.

**Solution**
529

A
Annie_wang 已提交
530
Check whether the file descriptor points to a stream.
A
Annie_wang 已提交
531 532 533 534

### 13900037 No Data Available

**Error Message**
535

A
Annie_wang 已提交
536 537 538
No data available

**Possible Causes**
539

A
Annie_wang 已提交
540 541 542
The required data is not available.

**Solution**
543

A
Annie_wang 已提交
544 545 546 547 548
Request the data again.

### 13900038 Value Mismatches the Data Type

**Error Message**
549

A
Annie_wang 已提交
550 551 552
Value too large for defined data type

**Possible Causes**
553

A
Annie_wang 已提交
554 555 556
The specified value is out of the range defined for the data type.

**Solution**
557

A
Annie_wang 已提交
558 559 560 561 562
Modify the data type.

### 13900039 File Descriptor Corrupted

**Error Message**
563

A
Annie_wang 已提交
564 565 566
File descriptor in bad state

**Possible Causes**
567

A
Annie_wang 已提交
568 569 570
The file descriptor is corrupted.

**Solution**
571

A
Annie_wang 已提交
572 573 574 575 576
Check that the file descriptor is valid.

### 13900040 System Call Interrupted

**Error Message**
577 578

Interrupted system call should be restarted
A
Annie_wang 已提交
579 580

**Possible Causes**
581

A
Annie_wang 已提交
582 583 584
The system call is interrupted.

**Solution**
585

A
Annie_wang 已提交
586 587 588 589 590
Invoke the system call again.

### 13900041 Disk Quota Exceeded

**Error Message**
591

A
Annie_wang 已提交
592 593 594
Quota exceeded

**Possible Causes**
595

A
Annie_wang 已提交
596 597 598
The disk space is insufficient.

**Solution**
599

A
Annie_wang 已提交
600 601 602 603 604
Clear disk space.

### 13900042 Unknown Error

**Error Message**
605

A
Annie_wang 已提交
606 607 608
Unknown error

**Possible Causes**
609

A
Annie_wang 已提交
610 611 612
The error is unidentified.

**Solution**
A
Annie_wang 已提交
613

A
Annie_wang 已提交
614
1. Call the API again.
A
Annie_wang 已提交
615

A
Annie_wang 已提交
616 617 618 619 620 621 622
2. Restart the service.

## User Data Management Error Codes

### 14000001 Invalid File Name

**Error Message**
623

A
Annie_wang 已提交
624 625 626
Invalid display name

**Possible Causes**
627

A
Annie_wang 已提交
628 629 630
The file name contains invalid characters.

**Solution**
631

A
Annie_wang 已提交
632 633 634 635 636
Modify the file name.

### 14000002 Invalid URI

**Error Message**
637

A
Annie_wang 已提交
638 639 640
Invalid uri

**Possible Causes**
641

A
Annie_wang 已提交
642 643 644
The URI is invalid.

**Solution**
645

A
Annie_wang 已提交
646 647 648 649 650
Use the obtained URI.

### 14000003 Invalid File Name Extension

**Error Message**
651

A
Annie_wang 已提交
652
Invalid file name extension
A
Annie_wang 已提交
653 654

**Possible Causes**
655

A
Annie_wang 已提交
656 657 658
The file name extension is incorrect.

**Solution**
659

A
Annie_wang 已提交
660 661 662 663 664
Modify the file name extension.

### 14000004 File in Recycle Bin

**Error Message**
665

A
Annie_wang 已提交
666 667 668
File has been put into trash bin

**Possible Causes**
669

A
Annie_wang 已提交
670 671 672
The file is moved to the Recycle Bin.

**Solution**
673

A
Annie_wang 已提交
674 675
Check whether the file is in the Recycle Bin.

A
Annie_wang 已提交
676
## Space Statistics Error Codes
A
Annie_wang 已提交
677 678 679 680

### 13600001 IPC Failed

**Error Message**
681

A
Annie_wang 已提交
682 683 684
IPC error

**Possible Causes**
685

A
Annie_wang 已提交
686 687 688
The called service does not exist.

**Solution**
689

A
Annie_wang 已提交
690 691 692 693 694
Check whether the service is started.

### 13600002 File System Not Supported

**Error Message**
695

A
Annie_wang 已提交
696
Not supported filesystem
A
Annie_wang 已提交
697 698

**Possible Causes**
699

A
Annie_wang 已提交
700 701 702
The file system is not supported.

**Solution**
703

A
Annie_wang 已提交
704 705 706 707 708
Use a supported file system.

### 13600003 Mount Failed

**Error Message**
709

A
Annie_wang 已提交
710 711 712
Failed to mount

**Possible Causes**
713

A
Annie_wang 已提交
714 715 716
The **mount** command fails.

**Solution**
717

A
Annie_wang 已提交
718 719 720 721 722
Remove the card and run the **mount** command again.

### 13600004 Unmount Failed

**Error Message**
723

A
Annie_wang 已提交
724 725 726
Failed to unmount

**Possible Causes**
727

A
Annie_wang 已提交
728 729 730
The device does not respond.

**Solution**
731

A
Annie_wang 已提交
732 733 734 735 736
Check whether the file is being used. If yes, kill the thread that uses the file.

### 13600005 Incorrect Volume State

**Error Message**
737

A
Annie_wang 已提交
738 739 740
Incorrect volume state

**Possible Causes**
741

A
Annie_wang 已提交
742 743 744
The volume state is incorrect.

**Solution**
745

A
Annie_wang 已提交
746 747 748 749 750
Check whether the current volume state is correct.

### 13600006 Failed to Create a Directory or Node

**Error Message**
751

A
Annie_wang 已提交
752 753 754
Prepare directory or node error

**Possible Causes**
755

A
Annie_wang 已提交
756 757 758
The directory or node to be created already exists.

**Solution**
759

A
Annie_wang 已提交
760 761 762 763 764
Check whether the directory or node to be created already exists.

### 13600007 Failed to Delete a Directory or Node

**Error Message**
765

A
Annie_wang 已提交
766 767 768
Delete directory or node error

**Possible Causes**
769

A
Annie_wang 已提交
770 771 772
The specified directory or node has been deleted.

**Solution**
773

A
Annie_wang 已提交
774 775 776 777 778
Check whether the specified directory or node exists.

### 13600008 Object Not Exist

**Error Message**
779

A
Annie_wang 已提交
780 781 782
No such object

**Possible Causes**
A
Annie_wang 已提交
783

A
Annie_wang 已提交
784
1. The specified volume ID is incorrect.
A
Annie_wang 已提交
785

A
Annie_wang 已提交
786 787 788
2. The specified bundle name is incorrect.

**Solution**
A
Annie_wang 已提交
789

A
Annie_wang 已提交
790
1. Check whether the specified volume exists.
A
Annie_wang 已提交
791

A
Annie_wang 已提交
792 793 794 795 796
2. Check whether the specified bundle name exists.

### 13600009 Invalid User ID

**Error Message**
797

A
Annie_wang 已提交
798 799 800
User id out of range

**Possible Causes**
801

A
Annie_wang 已提交
802 803 804
The specified user ID is incorrect.

**Solution**
805

A
Annie_wang 已提交
806 807 808 809 810 811 812
Check that the user ID is correct.

## User File Access Error Codes

### 14300001 IPC Failed

**Error Message**
813

A
Annie_wang 已提交
814 815 816
IPC error

**Possible Causes**
817

A
Annie_wang 已提交
818
1. The server service does not exist.
A
Annie_wang 已提交
819

A
Annie_wang 已提交
820 821 822
2. The extension mechanism is abnormal.

**Solution**
823

A
Annie_wang 已提交
824 825 826 827 828
Check that the server service exists.

### 14300002 Incorrect URI Format

**Error Message**
829

A
Annie_wang 已提交
830 831 832
Invalid uri

**Possible Causes**
833

A
Annie_wang 已提交
834 835 836
The URI is invalid.

**Solution**
837

A
Annie_wang 已提交
838 839 840 841 842
Check that the URI is in correct format.

### 14300003 Failed to Obtain the Server Ability Information

**Error Message**
843

A
Annie_wang 已提交
844 845 846
Fail to get fileextension info

**Possible Causes**
847

A
Annie_wang 已提交
848 849 850
The BMS interface is abnormal.

**Solution**
851

A
Annie_wang 已提交
852 853 854 855 856
Check for basic system capability errors.

### 14300004 Incorrect Result Returned by js-server

**Error Message**
857

A
Annie_wang 已提交
858 859 860
Get wrong result

**Possible Causes**
861

A
Annie_wang 已提交
862 863 864
The data returned by the server is incorrect.

**Solution**
865

A
Annie_wang 已提交
866 867 868 869 870
Check the data returned by the server.

### 14300005 Failed to Register Notify

**Error Message**
871

A
Annie_wang 已提交
872 873 874
Fail to register notification

**Possible Causes**
A
Annie_wang 已提交
875

A
Annie_wang 已提交
876
1. The server service does not exist.
A
Annie_wang 已提交
877

A
Annie_wang 已提交
878 879 880
2. The extension mechanism is abnormal.

**Solution**
881

A
Annie_wang 已提交
882 883 884 885 886
Check that the server service exists.

### 14300006 Failed to Unregister Notify

**Error Message**
887

A
Annie_wang 已提交
888 889 890
Fail to remove notification

**Possible Causes**
A
Annie_wang 已提交
891

A
Annie_wang 已提交
892
1. The server service does not exist.
A
Annie_wang 已提交
893

A
Annie_wang 已提交
894 895 896
2. The extension mechanism is abnormal.

**Solution**
897

A
Annie_wang 已提交
898 899 900 901 902
Check that the server service exists.

### 14300007 Failed to Initialize the Notify Agent

**Error Message**
903

A
Annie_wang 已提交
904 905 906
Fail to init notification agent

**Possible Causes**
907

A
Annie_wang 已提交
908 909 910
The specified Notify agent has not been registered.

**Solution**
911

A
Annie_wang 已提交
912 913 914 915 916
Check whether the specified Notify agent is registered.

### 14300008 Failed to Notify the Agent

**Error Message**
917

A
Annie_wang 已提交
918 919 920
Fail to notify agent

**Possible Causes**
A
Annie_wang 已提交
921

A
Annie_wang 已提交
922
1. The service does not exist.
A
Annie_wang 已提交
923

A
Annie_wang 已提交
924 925 926
2. The extension mechanism is abnormal.

**Solution**
927

A
Annie_wang 已提交
928
Check whether the client is normal.