• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# File Management Error Codes
2
3> **NOTE**
4>
5> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md).
6
7The error codes of the file management subsystem include the following:<br>- [Basic File IO Error Codes](#basic-file-io-error-codes)<br>- [User Data Management Error Codes](#user-data-management-error-codes)<br>- [User File Access Error Codes](#user-file-access-error-codes)<br>- [Space Statistics Error Codes](#space-statistics-error-codes)<br>- [Device-Cloud Synchronization Error Codes](#device-cloud-synchronization-error-codes)
8
9## Basic File IO Error Codes
10
11### 13900001 Operation Not Permitted
12
13**Error Message**
14
15Operation not permitted
16
17**Possible Causes**
18
19The caller does not have the permission to access the URI or path.
20
21**Solution**
22
231. Check whether the caller cannot use the URI shared by another application. For details, see [access control mechanisms](../../security/AccessToken/access-token-overview.md) of the system.
24
252. Check whether the permission is obtained by Picker. The permission obtained by Picker is temporary. For details, see [System Pickers](../../application-models/system-app-startup.md).
26
273. Check whether the URI is a concatenated path, which has no permission by default.
28
29### 13900002 File or Directory Not Exist
30
31**Error Message**
32
33No such file or directory
34
35**Possible Causes**
36
37The file or directory does not exist.
38
39**Solution**
40
41Check whether the file directory exists.
42
43### 13900003 Process Not Exist
44
45**Error Message**
46
47No such process
48
49**Possible Causes**
50
51This error code is reported if a process does not exist.
52
53**Solution**
54
551. Check whether the process is killed unexpectedly.
56
572. Check whether the service related to the process has started.
58
59### 13900004 System Call Interrupted
60
61**Error Message**
62
63Interrupted system call
64
65**Possible Causes**
66
67The system call is interrupted by another thread.
68
69**Solution**
70
711. Check the multi-thread code logic.
72
732. Invoke the system call again.
74
75### 13900005 I/O Error
76
77**Error Message**
78
79I/O error
80
81**Possible Causes**
82
83The I/O request is invalid.
84
85**Solution**
86
87Make the I/O request again.
88
89### 13900006 Device or Address Not Exist
90
91**Error Message**
92
93No such device or address
94
95**Possible Causes**
96
97The device information or address is incorrect.
98
99**Solution**
100
101Check that the device information or address is correct.
102
103### 13900007 Long Parameter List
104
105**Error Message**
106
107Arg list too long
108
109**Possible Causes**
110
111The parameter list is too long.
112
113**Solution**
114
115Reduce the number of parameters.
116
117### 13900008 File Descriptor Corrupted
118
119**Error Message**
120
121Bad file descriptor
122
123**Possible Causes**
124
1251. This file descriptor is closed.
1262. The read and write permissions on the file do not match the settings.
127
128**Solution**
129
1301. Check whether the file descriptor is closed.
1312. Check that the permissions on the file match the settings.
132
133### 13900009 Child Process Not Exist
134
135**Error Message**
136
137No child processes
138
139**Possible Causes**
140
141The child process cannot be created.
142
143**Solution**
144
145Check the maximum number of processes in the system.
146
147### 13900010 Resource Unavailable
148
149**Error Message**
150
151Try again
152
153**Possible Causes**
154
155The resources are blocked.
156
157**Solution**
158
159Request the resource again.
160
161### 13900011 Memory Overflow
162
163**Error Message**
164
165Out of memory
166
167**Possible Causes**
168
169A memory overflow occurs.
170
171**Solution**
172
1731. Check the memory overhead.
174
1752. Control the memory overhead.
176
177### 13900012 Permission Denied
178
179**Error Message**
180
181Permission denied
182
183**Possible Causes**
184
1851. The operation is intercepted by DAC or SELinux.
186
1872. The file sandbox path is incorrect.
188
189**Solution**
190
1911. Check the UGO permission of the file.
192
1932. Check the kernel log for [AVC log information](https://gitee.com/openharmony/docs/blob/master/en/device-dev/subsystems/subsys-security-selinux-develop-intro.md). If yes,<!--RP1--> see [SELinux Development](../../../device-dev/subsystems/subsys-security-selinux-develop-intro.md).<!--RP1End-->
194
1953. Check whether the file path is a [sandbox path](../../file-management/app-sandbox-directory.md). The File Management system does not allow operations on files outside the sandbox directory.
196
197### 13900013 Incorrect Address
198
199**Error Message**
200
201Bad address
202
203**Possible Causes**
204
205The address is incorrect.
206
207**Solution**
208
209Check that the address is correct.
210
211### 13900014 Device or Resource Not Available
212
213**Error Message**
214
215Device or resource busy
216
217**Possible Causes**
218
219The requested resource is unavailable.
220
221**Solution**
222
223Request the resource again.
224
225### 13900015 File Already Exists
226
227**Error Message**
228
229File exists
230
231**Possible Causes**
232
233The file to be created already exists.
234
235**Solution**
236
237Check whether the file path is correct.
238
239### 13900016 Invalid Cross-Device Link
240
241**Error Message**
242
243Cross-device link
244
245**Possible Causes**
246
247The link between devices is incorrect.
248
249**Solution**
250
251Check the devices and create the link correctly.
252
253### 13900017 Device Not Exist
254
255**Error Message**
256
257No such device
258
259**Possible Causes**
260
261The device is not identified.
262
263**Solution**
264
265Check the connection to the target device.
266
267### 13900018 Invalid Directory
268
269**Error Message**
270
271Not a directory
272
273**Possible Causes**
274
275The specified directory is invalid.
276
277**Solution**
278
279Check that the specified data is correct.
280
281### 13900019 The Specified Object Is a Directory
282
283**Error Message**
284
285Is a directory
286
287**Possible Causes**
288
289The specified object is a directory.
290
291**Solution**
292
293Check that the specified data is correct.
294
295### 13900020 Invalid Parameter
296
297**Error Message**
298
299Invalid argument
300
301**Possible Causes**
302
303The input parameter is invalid.
304
305**Solution**
306
307Check that the input parameters are valid.
308
309### 13900021 Too Many File Descriptors Opened
310
311**Error Message**
312
313File table overflow
314
315**Possible Causes**
316
317The number of file descriptors opened has reached the limit.
318
319**Solution**
320
321Close the file descriptors that are no longer required.
322
323### 13900022 Too Many Files Opened
324
325**Error Message**
326
327Too many open files
328
329**Possible Causes**
330
331The number of files opened has reached the limit.
332
333**Solution**
334
335Close the files that are not required.
336
337### 13900023 Text File Not Respond
338
339**Error Message**
340
341Text file busy
342
343**Possible Causes**
344
345The executable file of the program is in use.
346
347**Solution**
348
349Close the program that is being debugged.
350
351### 13900024 File Oversized
352
353**Error Message**
354
355File too large
356
357**Possible Causes**
358
359The file size exceeds the limit.
360
361**Solution**
362
363Check whether the file size exceeds the limit.
364
365### 13900025 Insufficient Space on the Device
366
367**Error Message**
368
369No space left on device
370
371**Possible Causes**
372
373The device storage space is insufficient.
374
375**Solution**
376
377Clear the space of the device.
378
379### 13900026 Invalid Shift
380
381**Error Message**
382
383Illegal seek
384
385**Possible Causes**
386
387Seek is used in pipe or FIFO.
388
389**Solution**
390
391Check the use of **seek()**.
392
393### 13900027 Read-Only File System
394
395**Error Message**
396
397Read-only file system
398
399**Possible Causes**
400
401The file system allows read operations only.
402
403**Solution**
404
405Check whether the file is read-only.
406
407### 13900028 Links Reach the Limit
408
409**Error Message**
410
411Too many links
412
413**Possible Causes**
414
415The number of links to the file has reached the limit.
416
417**Solution**
418
419Delete the links that are no longer required.
420
421### 13900029 Resource Deadlock
422
423**Error Message**
424
425Resource deadlock would occur
426
427**Possible Causes**
428
429Resource deadlock occurs.
430
431**Solution**
432
433Terminate the deadlock process.
434
435### 13900030 Long File Name
436
437**Error Message**
438
439Filename too Long
440
441**Possible Causes**
442
443The file name length exceeds 256 bytes.
444
445**Solution**
446
447Check the file name length.
448
449### 13900031 Function Not Implemented
450
451**Error Message**
452
453Function not implemented
454
455**Possible Causes**
456
457The function is not supported by the system.
458
459**Solution**
460
461Check the system version and update the system if required.
462
463### 13900032 Directory Not Empty
464
465**Error Message**
466
467Directory not empty
468
469**Possible Causes**
470
471The specified directory is not empty.
472
473**Solution**
474
4751. Check the directory.
476
4772. Ensure that the directory is empty.
478
479### 13900033 Too Many Symbol Links
480
481**Error Message**
482
483Too many symbolic links encountered
484
485**Possible Causes**
486
487There are too many symbolic links.
488
489**Solution**
490
491Delete unnecessary symbol links.
492
493### 13900034 Operation Blocked
494
495**Error Message**
496
497Operation would block
498
499**Possible Causes**
500
501The operation is blocked.
502
503**Solution**
504
505Perform the operation again.
506
507### 13900035 Invalid File Descriptor
508
509**Error Message**
510
511Invalid request descriptor
512
513**Possible Causes**
514
515The requested file descriptor is invalid.
516
517**Solution**
518
519Check that the file descriptor is valid.
520
521### 13900036 Target Is Not a Character Stream Device
522
523**Error Message**
524
525Device not a stream
526
527**Possible Causes**
528
529The device pointed to by the file descriptor is not a character stream device.
530
531**Solution**
532
533Check whether the file descriptor points to a stream.
534
535### 13900037 No Data Available
536
537**Error Message**
538
539No data available
540
541**Possible Causes**
542
543The required data is not available.
544
545**Solution**
546
547Request the data again.
548
549### 13900038 Value Mismatches the Data Type
550
551**Error Message**
552
553Value too large for defined data type
554
555**Possible Causes**
556
557The specified value is out of the range defined for the data type.
558
559**Solution**
560
561Modify the data type.
562
563### 13900039 File Descriptor Corrupted
564
565**Error Message**
566
567File descriptor in bad state
568
569**Possible Causes**
570
571The file descriptor is corrupted.
572
573**Solution**
574
575Check that the file descriptor is valid.
576
577### 13900040 System Call Not Started
578
579**Error Message**
580
581Interrupted system call should be restarted
582
583**Possible Causes**
584
585The system call is interrupted.
586
587**Solution**
588
589Invoke the system call again.
590
591### 13900041 Disk Quota Exceeded
592
593**Error Message**
594
595Quota exceeded
596
597**Possible Causes**
598
599Insufficient storage space.
600
601**Solution**
602
603Clear disk space.
604
605### 13900042 Unknown Error
606
607**Error Message**
608
609Unknown error
610
611**Possible Causes**
612
613Internal error
614
615**Solution**
616
6171. Call the API again.
618
6192. Restart the service.
620
621### 13900043 No Available Lock
622
623**Error Message**
624
625No record is locks available
626
627**Possible Causes**
628
629System resources are insufficient.
630
631**Solution**
632
633Wait until a lock is released and try again.
634
635### 2300007 Network Access Failure
636
637**Error Message**
638
639Network is unreachable
640
641**Possible Causes**
642
643A network error occurs.
644
645**Solution**
646
647Check the network status.
648
649### 13900045 Connection Failed
650
651**Error Message**
652
653Connection failed
654
655**Possible Causes**
656
657The device is abnormal, or Wi-Fi or Bluetooth is unavailable.
658
659**Solution**
660
6611. Check that the device is in normal status.
662
6632. Check that Wi-Fi and Bluetooth are available.
664
665### 13900046 Connection Interrupted by Software
666
667**Error Message**
668
669Software caused connection abort
670
671**Possible Causes**
672
673The device goes offline, or the Wi-Fi or Bluetooth is disconnected.
674
675**Solution**
676
6771. Check that the device is in normal status.
678
6792. Check that Wi-Fi and Bluetooth are available.
680
681## User Data Management Error Codes
682
683### 14000001 Invalid File Name
684
685**Error Message**
686
687Invalid file name
688
689**Possible Causes**
690
691The file name contains invalid characters.
692
693**Solution**
694
695Modify the file name.
696
697### 14000002 Invalid URI
698
699**Error Message**
700
701Invalid URI
702
703**Possible Causes**
704
705The URI is invalid.
706
707**Solution**
708
709Use the obtained URI.
710
711### 14000003 Invalid File Name Extension
712
713**Error Message**
714
715Invalid file name extension
716
717**Possible Causes**
718
719The file name extension is incorrect.
720
721**Solution**
722
723Modify the file name extension.
724
725### 14000004 File in Recycle Bin
726
727**Error Message**
728
729File already in the recycle bin
730
731**Possible Causes**
732
733The file is moved to the Recycle Bin.
734
735**Solution**
736
737Check whether the file is in the Recycle Bin.
738
739### 14000011 Internal System Error
740
741**Error Message**
742
743System inner fail
744
745**Possible Causes**
746
747An unidentified error occurs in the system.
748
749**Solution**
750
751Clear the background or restart the device.
752
753### 14000014 Invalid Member Name
754
755**Error Message**
756
757Member is not a valid PhotoKey
758
759**Possible Causes**
760
761The input string is not a member name of a class or interface.
762
763**Solution**
764
765Ensure that the input string is the member name of the class or interface.
766
767## Space Statistics Error Codes
768
769### 13600001 IPC Failed
770
771**Error Message**
772
773IPC error
774
775**Possible Causes**
776
777The called service does not exist.
778
779**Solution**
780
781Check whether the service is started.
782
783### 13600002 File System Not Supported
784
785**Error Message**
786
787File system not supported
788
789**Possible Causes**
790
791The file system is not supported.
792
793**Solution**
794
795Use a supported file system.
796
797### 13600003 Mount Failed
798
799**Error Message**
800
801Mount failed
802
803**Possible Causes**
804
805The **mount** command fails.
806
807**Solution**
808
809Remove the card and run the **mount** command again.
810
811### 13600004 Unmount Failed
812
813**Error Message**
814
815Unmount failed
816
817**Possible Causes**
818
819The device does not respond.
820
821**Solution**
822
823Check whether the file is being used. If yes, kill the thread that uses the file.
824
825### 13600005 Incorrect Volume State
826
827**Error Message**
828
829Incorrect volume state
830
831**Possible Causes**
832
833The volume state is incorrect.
834
835**Solution**
836
837Check whether the current volume state is correct.
838
839### 13600006 Failed to Create a Directory or Node
840
841**Error Message**
842
843Failed to create the drectory or node
844
845**Possible Causes**
846
847The directory or node to be created already exists.
848
849**Solution**
850
851Check whether the directory or node to be created already exists.
852
853### 13600007 Failed to Delete a Directory or Node
854
855**Error Message**
856
857Failed to delete the drectory or node
858
859**Possible Causes**
860
861The specified directory or node has been deleted.
862
863**Solution**
864
865Check whether the specified directory or node exists.
866
867### 13600008 Object Not Exist
868
869**Error Message**
870
871No such object
872
873**Possible Causes**
874
8751. The specified volume ID is incorrect.
876
8772. The specified bundle name is incorrect.
878
879**Solution**
880
8811. Check whether the specified volume exists.
882
8832. Check whether the specified bundle name exists.
884
885### 13600009 Invalid User ID
886
887**Error Message**
888
889User ID out of range
890
891**Possible Causes**
892
893The specified user ID is incorrect.
894
895**Solution**
896
897Check that the user ID is correct.
898
899## User File Access Error Codes
900
901### 14300001 IPC Failed
902
903**Error Message**
904
905IPC error
906
907**Possible Causes**
908
9091. The server service does not exist.
910
9112. The extension mechanism is abnormal.
912
913**Solution**
914
915Check that the server service exists.
916
917### 14300002 Incorrect URI Format
918
919**Error Message**
920
921Invalid URI
922
923**Possible Causes**
924
925The URI is invalid.
926
927**Solution**
928
929Check that the URI is in correct format.
930
931### 14300003 Failed to Obtain the Server Ability Information
932
933**Error Message**
934
935Failed to obtain the server ability information
936
937**Possible Causes**
938
939The BMS interface is abnormal.
940
941**Solution**
942
943Check for basic system capability errors. <!--RP1-->Please contact the OpenHarmony team for support.<!--RP1End-->
944
945### 14300004 Incorrect Result Returned by js-server
946
947**Error Message**
948
949Incorrect result returned by js-server
950
951**Possible Causes**
952
953The data returned by the server is incorrect.
954
955**Solution**
956
957Check the data returned by the server.
958
959### 14300005 Failed to Register Notify
960
961**Error Message**
962
963Failed to register Notify
964
965**Possible Causes**
966
9671. The server service does not exist.
968
9692. The extension mechanism is abnormal.
970
971**Solution**
972
973Check that the server service exists.
974
975### 14300006 Failed to Unregister Notify
976
977**Error Message**
978
979Failed to unregister Notify
980
981**Possible Causes**
982
9831. The server service does not exist.
984
9852. The extension mechanism is abnormal.
986
987**Solution**
988
989Check that the server service exists.
990
991### 14300007 Failed to Initialize the Notify Agent
992
993**Error Message**
994
995Failed to initialize the Notify agent
996
997**Possible Causes**
998
999The specified Notify agent has not been registered.
1000
1001**Solution**
1002
1003Check whether the Notify agent has been registered.
1004
1005### 14300008 Failed to Notify the Agent
1006
1007**Error Message**
1008
1009Failed to notify the agent
1010
1011**Possible Causes**
1012
10131. The service does not exist.
1014
10152. The extension mechanism is abnormal.
1016
1017**Solution**
1018
1019Check whether the client is normal.
1020
1021## Device-Cloud Synchronization Error Codes
1022
1023### 22400001 Cloud Unavailable
1024
1025**Error Message**
1026
1027Cloud status not ready
1028
1029**Possible Causes**
1030
10311. The cloud is not enabled.
1032
10332. The cloud synchronization switch is not enabled for the application.
1034
1035**Solution**
1036
10371. Check whether the user has logged in using an account.
1038
10392. Check whether the cloud synchronization switch is enabled.
1040
1041### 22400002 Network Unavailable
1042
1043**Error Message**
1044
1045Network unavailable
1046
1047**Possible Causes**
1048
1049The device is not connected to the network or the network is unavailable.
1050
1051**Solution**
1052
1053Check the network status.
1054
1055### 22400003 Low Battery Level
1056
1057**Error Message**
1058
1059Low battery level
1060
1061**Possible Causes**
1062
1063The battery level is low.
1064
1065**Solution**
1066
1067Perform the operation after the battery is being charged or the battery level is restored.
1068