1SERRNO(3) Castor Library Functions
2SERRNO(3)
3
4
5
6[1mNAME[0m
7 [1mserrno [22m‐ LCG internal error variable
8
9
10[1mSYNOPSIS[0m
11 [1m#include <[4m[22mserrno.h[24m[1m>[0m
12
13 [1mextern int [4m[22mserrno[24m[1m;[0m
14 [1mextern char *sstrerror(int [4m[22mserrno_value[24m
15[1m);[0m
16 [1mextern void sperror(char * [4m[22mmessage[24m [1m);[0m
17
18
19[1mDESCRIPTION[0m
20 The [1mserrno [22mvariable is the LCG’s equivalent to
21system error variable
22 [1merrno[22m. This variable, accessible only trough LCG
23API’s and related
24 functions below is guaranteed to be thread‐safe.
25 The serrno variable is divided into common values and per
26package val‐
27 ues, that are:
28
29 [1mCOPYTAPE[0m
30
31 [1mDB [22m‐ Database
32
33 [1mMSG [22m‐ Message daemon
34
35 [1mNS [22m‐ Name server
36
37 [1mRFIO [22m‐ Remote File I/O
38
39 [1mRTCOPY [22m‐ Remote Tape Copy
40
41 [1mSTAGE [22m‐ Stager
42
43 [1mSYSREQ[0m
44
45 [1mTAPE [22m‐ Tape operations
46
47 [1mVMGR [22m‐ Volume Manager
48
49 [1mVDQM [22m‐ Volume and Drive Queue
50Manager
51
52 [1mRMC [22m‐ Remote SCSI Media
53Changer Server
54
55 [1mMON [22m‐ Monitoring
56
57 [1mUPV [22m‐ User Privilege
58
59 [1mDPM [22m‐ Disk Pool Manager
60
61 [1mSECURITY[0m
62
63
64[1mCOMMON ERRORS[0m
65 The following error values might be returned by any pack‐
66age:
67
68 [1mSENOSHOST [22m(1001) Host unknown
69
70 [1mSENOSSERV [22m(1002) Service unknown
71
72 [1mSENOTRFILE [22m(1003) Not a remote file
73
74 [1mSETIMEDOUT [22m(1004) Has timed out
75
76 [1mSEBADFFORM [22m(1005) Bad fortran format speci‐
77fier
78
79 [1mSEBADFOPT [22m(1006) Bad fortran option speci‐
80fier
81
82 [1mSEINCFOPT [22m(1007) Incompatible fortran op‐
83tions
84
85 [1mSENAMETOOLONG [22m(1008) File name too long
86
87 [1mSENOCONFIG [22m(1009) Can’t open configuration
88file
89
90 [1mSEBADVERSION [22m(1010) Version ID mismatch
91
92 [1mSEUBUF2SMALL [22m(1011) User buffer too small
93
94 [1mSEMSGINVRNO [22m(1012) Invalid reply number
95
96 [1mSEUMSG2LONG [22m(1013) User message too long
97
98 [1mSEENTRYNFND [22m(1014) Entry not found
99
100 [1mSEINTERNAL [22m(1015) Internal error
101
102 [1mSECONNDROP [22m(1016) Connection closed by rem.
103end
104
105 [1mSEBADIFNAM [22m(1017) Can’t get interface name
106
107 [1mSECOMERR [22m(1018) Communication error
108
109 [1mSENOMAPDB [22m(1019) Can’t open mapping data‐
110base
111
112 [1mSENOMAPFND [22m(1020) No user mapping
113
114 [1mSERTYEXHAUST [22m(1021) Retry count exhausted
115
116 [1mSEOPNOTSUP [22m(1022) Operation not supported
117
118 [1mSEWOULDBLOCK [22m(1023) Resource temporarily un‐
119available
120
121 [1mSEINPROGRESS [22m(1024) Operation now in progress
122
123 [1mSECTHREADINIT [22m(1025) Cthread initialization
124error
125
126 [1mSECTHREADERR [22m(1026) Thread interface call er‐
127ror
128
129 [1mSESYSERR [22m(1027) System error
130
131 [1mSEADNSINIT [22m(1028) adns_init() error
132
133 [1mSEADNSSUBMIT [22m(1029) adns_submit() error
134
135 [1mSEADNS [22m(1030) adns resolving error
136
137 [1mSEADNSTOOMANY [22m(1031) adns returned more than
138one entry
139
140 [1mSENOTADMIN [22m(1032) requestor is not adminis‐
141trator
142
143 [1mSEUSERUNKN [22m(1033) User unknown
144
145 [1mSEDUPKEY [22m(1034) Duplicate key value
146
147 [1mSEENTRYEXISTS [22m(1035) The entry already exists
148
149 [1mSEGROUPUNKN [22m(1036) Group Unknown
150
151 [1mSECHECKSUM [22m(1037) Bad checksum
152
153 [1mSELOOP [22m(1038) Too many symbolic links
154encountered
155
156
157[1mCOPYTAPE ERRORS[0m
158 None yet
159
160
161[1mDB ERRORS[0m
162 The following error values are returned only by the data‐
163base package:
164
165 [1mEDB_A_ESESSION [22m(1201) Cdb api : in‐
166valid session
167
168 [1mEDB_A_EDB [22m(1202) Cdb api : in‐
169valid db
170
171 [1mEDB_A_EINVAL [22m(1203) Cdb api : in‐
172valid value
173
174 [1mEDB_A_RESHOST [22m(1204) Cdb api : host
175res error
176
177 [1mEDB_A_TOOMUCH [22m(1205) Cdb api : data
178size rejected
179
180 [1mEDB_AS_SOCKET [22m(1206) Cdb api system : sock‐
181et() error
182
183 [1mEDB_AS_SOCKOPT [22m(1207) Cdb api system :
184[set/get]sockopt() error
185
186 [1mEDB_AS_MALLOC [22m(1208) Cdb api system : mal‐
187loc() error
188
189 [1mEDB_A_NOERROR [22m(1209) Cdb api : no
190last error
191
192 [1mEDB_A_IEINVAL [22m(1200) Cdb api : in‐
193terface invalid value
194
195 [1mEDB_AS_BIND [22m(1201) Cdb api :
196bind() error
197
198 [1mEDB_AS_LISTEN [22m(1202) Cdb api : lis‐
199ten() error
200
201 [1mEDB_AS_GETSOCKNAME [22m(1203) Cdb api : get‐
202sockname() error
203
204 [1mEDB_AS_ACCEPT [22m(1204) Cdb api : ac‐
205cept() error
206
207 [1mEDB_AS_GETPEERNAME [22m(1205) Cdb api : getpeer‐
208name() error
209
210 [1mEDB_A_WHOISIT [22m(1206) Cdb api : Connec‐
211tion from bad host
212
213 [1mEDB_D_EINVAL [22m(1220) Cdb daemon : in‐
214valid value
215
216 [1mEDB_D_EAGAIN [22m(1221) Cdb daemon : yet
217done
218
219 [1mEDB_D_AUTH [22m(1222) Cdb daemon : unau‐
220thorized
221
222 [1mEDB_D_LOGIN [22m(1223) Cdb daemon : login
223refused
224
225 [1mEDB_D_PWDCORR [22m(1224) Cdb daemon : pwd
226file corrupted
227
228 [1mEDB_D_ANA [22m(1225) Cdb daemon : db
229analysis error
230
231 [1mEDB_D_HASHSIZE [22m(1226) Cdb daemon : bad
232hash size
233
234 [1mEDB_D_UNKNOWN [22m(1227) Cdb daemon : unkn.
235db/table/key
236
237 [1mEDB_D_NOLOCK [22m(1228) Cdb daemon : lock
238is required
239
240 [1mEDB_D_CORRUPT [22m(1229) Cdb daemon : prob‐
241ably corrupted
242
243 [1mEDB_D_TOOMUCH [22m(1230) Cdb daemon : data
244size rejected
245
246 [1mEDB_D_ENOENT [22m(1231) Cdb daemon : no
247entry
248
249 [1mEDB_D_ETYPE [22m(1232) Cdb daemon : un‐
250known member type
251
252 [1mEDB_D_EVALUE [22m(1233) Cdb daemon : un‐
253known member val
254
255 [1mEDB_D_NULLVALUE [22m(1234) Cdb daemon : null
256member value
257
258 [1mEDB_D_LOCK [22m(1235) Cdb daemon : can‐
259not gain lock
260
261 [1mEDB_D_FREE [22m(1236) Cdb daemon : un‐
262safe free attempt
263
264 [1mEDB_D_SHUTDOWN [22m(1237) Cdb daemon : shut‐
265down in progress
266
267 [1mEDB_D_DEADLOCK [22m(1238) Cdb daemon : shut‐
268down in progress
269
270 [1mEDB_D_EXIST [22m(1239) Cdb daemon : yet
271exists
272
273 [1mEDB_D_NOSPC [22m(1240) Cdb daemon : no
274more space
275
276 [1mEDB_D_DUMPEND [22m(1241) Cdb daemon : end
277of dump
278
279 [1mEDB_D_UNIQUE [22m(1242) Cdb daemon :
280uniqued key yet exist
281
282 [1mEDB_D_LISTEND [22m(1243) Cdb daemon : end
283of list
284
285 [1mEDB_D_NOTDUMP [22m(1244) Cdb daemon : not
286in dump mode
287
288 [1mEDB_D_DNSCHECK [22m(1245) Cdb daemon : dou‐
289ble DNS check error
290
291 [1mEDB_D_REJECTED [22m(1246) Cdb daemon : Con‐
292nection rejected (not
293 authorised)
294
295 [1mEDB_D_INIT [22m(1247) Cdb daemon : init
296in progress
297
298 [1mEDB_D_INCONST [22m(1248) Cdb daemon :
299Cdb daemon :
300 inconsistent request (unstop and no
301previous stop,
302 unfreeze and no previous freeze)
303
304 [1mEDB_D_FREEHASHSIZE [22m(1249) Cdb daemon : bad
305free hash size
306
307 [1mEDB_DS_MALLOC [22m(1250) Cdb daemon system : mal‐
308loc() error
309
310 [1mEDB_DS_CALLOC [22m(1251) Cdb daemon system : cal‐
311loc() error
312
313 [1mEDB_DS_REALLOC [22m(1252) Cdb daemon system : real‐
314loc() error
315
316 [1mEDB_DS_OPEN [22m(1253) Cdb daemon system :
317open() error
318
319 [1mEDB_DS_FSTAT [22m(1254) Cdb daemon system : fs‐
320tat() error
321
322 [1mEDB_DS_LSEEK [22m(1255) Cdb daemon system :
323lseek() error
324
325 [1mEDB_DS_READ [22m(1256) Cdb daemon system :
326read() error
327
328 [1mEDB_DS_WRITE [22m(1257) Cdb daemon system :
329write() error
330
331 [1mEDB_DS_RENAME [22m(1258) Cdb daemon system : re‐
332name() error
333
334 [1mEDB_DS_FTRUNC [22m(1259) Cdb daemon system :
335ftruncate() error
336
337 [1mEDB_DS_TMPNAM [22m(1260) Cdb daemon system : tmp‐
338nam() error
339
340 [1mEDB_DS_FCNTL [22m(1261) Cdb daemon system : fc‐
341ntl() error
342
343 [1mEDB_DS_MKDIR [22m(1262) Cdb daemon system :
344mkdir() error
345
346 [1mEDB_DS_TIMES [22m(1263) Cdb daemon system :
347times() error
348
349 [1mEDB_DS_SYSCONF [22m(1264) Cdb daemon system :
350sysconf() err/unav
351
352 [1mEDB_DS_GETHOSTNAME [22m(1265) Cdb daemon system : geth‐
353ostname() error
354
355 [1mEDB_DS_GETPEERNAME [22m(1266) Cdb daemon system : get‐
356peername() error
357
358 [1mEDB_DS_INET_NTOA [22m(1267) Cdb daemon system : get‐
359peername() error
360
361 [1mEDB_DS_REMOVE [22m(1268) Cdb daemon system : re‐
362move() error
363
364 [1mEDB_DS_SIGACTION [22m(1269) Cdb daemon system :
365sigaction() error
366
367 [1mEDB_DS_GETSOCKNAME [22m(1270) Cdb daemon system : get‐
368sockname() error
369
370 [1mEDB_DS_BIND [22m(1271) Cdb daemon system :
371bind() error
372
373 [1mEDB_DS_LISTEN [22m(1272) Cdb daemon system : lis‐
374ten() error
375
376 [1mEDB_DS_CONNECT [22m(1273) Cdb daemon system : con‐
377nect() error
378
379 [1mEDB_DS_SOCKET [22m(1274) Cdb daemon system : sock‐
380et() error
381
382 [1mEDB_DS_SOCKOPT [22m(1275) Cdb daemon system :
383[set/get]sockopt() error
384
385 [1mEDB_D_RESHOST [22m(1276) Cdb daemon : host res
386error
387
388 [1mEDB_D_REQSIZE [22m(1277) Cdb daemon : request
389too big
390
391 [1mEDB_C_EINVAL [22m(1280) Cdb config : in‐
392valid value
393
394 [1mEDB_C_ENOENT [22m(1281) Cdb config : con‐
395figuration error
396
397 [1mEDB_C_TOOMUCH [22m(1282) Cdb config : conf.
398size rejected
399
400 [1mEDB_CS_GETHOSTNAME [22m(1283) Cdb config system : geth‐
401ostname() error
402
403 [1mEDB_NOMOREDB [22m(1290) Cdb : nomoredb (the API
404retries automatically
405 in such a case so you should never see
406this error
407 number)
408
409
410[1mMSG ERRORS[0m
411 The following error values are returned only by the mes‐
412sage package:
413
414 [1mEMSMSGU2REP [22m(1301) msg daemon unable to re‐
415ply
416
417 [1mEMSMSGSYERR [22m(1302) msg daemon system error
418
419 [1mEMSNOPERM [22m(1303) Permission denied
420
421
422[1mNS ERRORS[0m
423 The following error values are returned only by the name
424server pack‐
425 age:
426
427 [1mENSNACT [22m(1401) name server not active
428or service being
429 drained
430
431
432[1mRFIO ERRORS[0m
433 The following error values are returned only by the
434remote file I/O
435 package:
436
437 [1mERFNORCODE [22m(1501) RFIO communication error
438
439 [1mERFHOSTREFUSED [22m(1502) RFIO rejected connect at‐
440tempt
441
442 [1mERFXHOST [22m(1503) Cross‐host link (re‐
443name())
444
445 [1mERFPROTONOTSUP [22m(1504) RFIO protocol not sup‐
446ported
447
448
449[1mRTCOPY ERRORS[0m
450 The following error values are returned only by the re‐
451mote tape copy
452 package:
453
454 [1mERTTMSERR [22m(1601) TMS call failed
455
456 [1mERTBLKSKPD [22m(1602) Blocks were skipped in
457file
458
459 [1mERTTPE_LSZ [22m(1603) Blocks skipped and file
460truncated
461
462 [1mERTMNYPARY [22m(1604) Too many skipped blocks
463
464 [1mERTLIMBYSZ [22m(1605) File limited by size
465
466 [1mERTUSINTR [22m(1606) Request interrupted by
467user
468
469 [1mERTOPINTR [22m(1607) Request interrupted by
470operator
471
472 [1mERTNOTCLIST [22m(1608) Request list is not cir‐
473cular
474
475 [1mERTBADREQ [22m(1609) Bad request structure
476
477
478[1mSTAGE ERRORS[0m
479 The following error values are returned only by the stager
480package:
481
482 [1mESTCLEARED [22m(1701) aborted by stageclr
483
484 [1mESTENOUGHF [22m(1702) enough free space
485
486 [1mESTLNKNCR [22m(1703) symbolic link not created
487
488 [1mESTLNKNSUP [22m(1704) symbolic link not sup‐
489ported
490
491 [1mESTNACT [22m(1705) Stager not active
492
493 [1mESTGROUP [22m(1706) Your group is invalid
494
495 [1mESTGRPUSER [22m(1707) No GRPUSER in configura‐
496tion
497
498 [1mESTUSER [22m(1708) Invalid user
499
500 [1mESTHSMHOST [22m(1709) HSM HOST not specified
501
502 [1mESTTMSCHECK [22m(1710) tmscheck error
503
504 [1mESTLINKNAME [22m(1711) User link name processing
505error
506
507 [1mESTWRITABLE [22m(1712) User path in a non‐
508writable directory
509
510 [1mESTKILLED [22m(1713) aborted by kill
511
512 [1mESTMEM [22m(1714) request too long (api)
513
514 [1mESTCONF [22m(1715) stage configuration error
515
516
517[1mSYSREQ ERRORS[0m
518 The following error value is returned only by the sysreq
519package:
520
521 [1mESQTMSNOTACT [22m(1801) TMS not active
522
523
524[1mTAPE ERRORS[0m
525 The following error values are returned only by the tape
526package:
527
528 [1mETDNP [22m(1901) daemon not available
529
530 [1mETSYS [22m(1902) system error
531
532 [1mETPRM [22m(1903) bad parameter
533
534 [1mETRSV [22m(1904) reserv already issued
535
536 [1mETNDV [22m(1905) too many drives requested
537
538 [1mETIDG [22m(1906) invalid device group name
539
540 [1mETNRS [22m(1907) reserv not done
541
542 [1mETIDN [22m(1908) no drive with requested
543characteristics
544
545 [1mETLBL [22m(1909) bad label structure
546
547 [1mETFSQ [22m(1910) bad file sequence number
548
549 [1mETINTR [22m(1911) interrupted by user
550
551 [1mETEOV [22m(1912) EOV found in multivolume
552set
553
554 [1mETRLSP [22m(1913) release pending
555
556 [1mETBLANK [22m(1914) blank tape
557
558 [1mETCOMPA [22m(1915) compatibility problem
559
560 [1mETHWERR [22m(1916) device malfunction
561
562 [1mETPARIT [22m(1917) parity error
563
564 [1mETUNREC [22m(1918) unrecoverable media error
565
566 [1mETNOSNS [22m(1919) no sense
567
568 [1mETRSLT [22m(1920) reselect server
569
570 [1mETVBSY [22m(1921) volume busy or inaccessi‐
571ble
572
573 [1mETDCA [22m(1922) drive currently assigned
574
575 [1mETNRDY [22m(1923) drive not ready
576
577 [1mETABSENT [22m(1924) volume absent
578
579 [1mETARCH [22m(1925) volume archived
580
581 [1mETHELD [22m(1926) volume held or disabled
582
583 [1mETNXPD [22m(1927) file not expired
584
585 [1mETOPAB [22m(1928) operator cancel
586
587 [1mETVUNKN [22m(1929) volume unknown
588
589 [1mETWLBL [22m(1930) wrong label type
590
591 [1mETWPROT [22m(1931) cartridge write protected
592
593 [1mETWVSN [22m(1932) wrong vsn
594
595 [1mETBADMIR [22m(1933) Tape has a bad MIR
596
597
598[1mVMGR ERRORS[0m
599 The following error values are returned only by the
600volume manager
601 package:
602
603 [1mEVMGRNACT [22m(2001) volume manager not active
604or service being
605 drained
606
607
608[1mVDQM ERRORS[0m
609 The following error values are returned only by the
610volume and drive
611 queue manager package:
612
613 [1mEVQSYERR [22m(2101) Failed system call
614
615 [1mEVQINCONSIST [22m(2102) Internal DB inconsistency
616
617 [1mEVQREPLICA [22m(2103) DB replication failed
618
619 [1mEVQNOVOL [22m(2104) No volume request queued
620
621 [1mEVQNODRV [22m(2105) No free drive available
622
623 [1mEVQNOSVOL [22m(2106) Specified vol. req. not
624found
625
626 [1mEVQNOSDRV [22m(2107) Specified drv. req. not
627found
628
629 [1mEVQALREADY [22m(2108) Specified vol. req. al‐
630ready exists
631
632 [1mEVQUNNOTUP [22m(2109) Unit not up
633
634 [1mEVQBADSTAT [22m(2110) Bad unit status request
635
636 [1mEVQBADID [22m(2111) Incorrect vol.req or job
637ID
638
639 [1mEVQBADJOBID [22m(2112) Incorrect job ID
640
641 [1mEVQNOTASS [22m(2113) Unit not assigned
642
643 [1mEVQBADVOLID [22m(2114) Attempt to mount with
644wrong VOLID
645
646 [1mEVQREQASS [22m(2115) Attempt to delete an as‐
647signed req
648
649 [1mEVQDGNINVL [22m(2116) Vol. req. for non‐exist‐
650ing DGN
651
652 [1mEVQPIPEFULL [22m(2117) Replication pipe is full
653
654 [1mEVQHOLD [22m(2118) Server is held
655
656 [1mEVQEOQREACHED [22m(2119) End of query reached
657
658
659[1mRMC ERRORS[0m
660 The following error values are returned only by the Remote
661SCSI media
662 changer server package:
663
664 [1mERMCNACT [22m(2201) Remote SCSI media
665changer server not active
666 or service being drained
667
668 [1mERMCRBTERR [22m(2202) Remote SCSI media changer
669error
670
671 [1mERMCUNREC [22m(2203) Remote SCSI media changer
672unrec. error
673
674 [1mERMCSLOWR [22m(2204) Remote SCSI media changer
675error (slow retry)
676
677 [1mERMCFASTR [22m(2205) Remote SCSI media changer
678error (fast retry)
679
680 [1mERMCDFORCE [22m(2206) Remote SCSI media
681changer error (demount
682 force)
683
684 [1mERMCDDOWN [22m(2207) Remote SCSI media changer
685error (drive down)
686
687 [1mERMCOMSGN [22m(2208) Remote SCSI media changer
688error (ops message)
689
690 [1mERMCOMSGS [22m(2209) Remote SCSI media chang‐
691er error (ops message
692 + retry)
693
694 [1mERMCOMSGR [22m(2210) Remote SCSI media changer
695error (ops message
696 + wait)
697
698 [1mERMCUNLOAD [22m(2211) Remote SCSI media
699changer error (unload +
700 demount)
701
702
703[1mMON ERRORS[0m
704 The following error values are returned only by the Moni‐
705toring package:
706
707 [1mEMON_SYSTEM [22m(2301) System error
708
709 [1mEMON_NO_HOST [22m(2302) Monitor Host not speci‐
710fied
711
712 [1mEMON_NO_PORT [22m(2303) Monitor Port not speci‐
713fied
714
715 [1mEMON_NO_CLIENTPORT [22m(2304) No port for client re‐
716quests defined in the
717 configuration
718
719
720[1mUPV ERRORS[0m
721 The following error values are returned only by the User
722Privilege Val‐
723 idation package:
724
725 [1mECUPVNACT [22m(2401) UPV not active or service
726being drained
727
728
729[1mDPM ERRORS[0m
730 The following error values are returned only by the Disk
731Pool Manager
732 package:
733
734 [1mEDPMNACT [22m(2601) DPM not active or service
735being drained
736
737
738[1mSECURITY ERRORS[0m
739 The following error values are returned only by the Secu‐
740rity package:
741
742 [1mESEC_SYSTEM [22m(2701) System error in the secu‐
743rity package
744
745 [1mESEC_BAD_CREDENTIALS[0m
746 (2702) Bad credentials
747
748 [1mESEC_NO_CONTEXT [22m(2703) Could not establish con‐
749text
750
751 [1mESEC_BAD_MAGIC [22m(2704) Bad magic number
752
753 [1mESEC_NO_USER [22m(2705) Could not map username to
754uid/gid
755
756 [1mESEC_NO_PRINC [22m(2706) Could not map principal
757to username
758
759 [1mESEC_NO_SECMECH [22m(2707) Could not load security
760mechanism
761
762 [1mESEC_CTX_NOT_INITIALIZED[0m
763 (2708) Context not initialized
764
765 [1mESEC_PROTNOTSUPP [22m(2709) Security protocol not
766supported
767
768 [1mESEC_NO_SVC_NAME [22m(2710) Service name not set
769
770 [1mESEC_NO_SVC_TYPE [22m(2711) Service type not set
771
772 [1mESEC_NO_SECPROT [22m(2712) Could not lookup security
773protocol
774
775 [1mESEC_BAD_CSEC_VERSION[0m
776 (2713) Csec incompatability
777
778 [1mESEC_BAD_PEER_RESP [22m(2714) Unexpected response from
779peer
780
781
782[1mAUTHOR[0m
783 [1mLCG Grid Deployment [22mTeam
784
785
786
787LCG $Date: 2006/01/27 09:52:14 $
788SERRNO(3)
789
790
791
792