serrno man page

SERRNO(3) Castor Library Functions SERRNO(3)

[1mNAME[0m
[1mserrno [22m- LCG internal error variable

[1mSYNOPSIS[0m
[1m#include <[4m[22mserrno.h[24m[1m>[0m

[1mextern int [4m[22mserrno[24m[1m;[0m
[1mextern char *sstrerror(int [4m[22mserrno_value[24m [1m);[0m
[1mextern void sperror(char * [4m[22mmessage[24m [1m);[0m

[1mDESCRIPTION[0m
The [1mserrno [22mvariable is the LCG's equivalent to system error variable
[1merrno[22m. This variable, accessible only trough LCG API's and related
functions below is guaranteed to be thread-safe.
The serrno variable is divided into common values and per package val-
ues, that are:

[1mCOPYTAPE[0m

[1mDB [22m- Database

[1mMSG [22m- Message daemon

[1mNS [22m- Name server

[1mRFIO [22m- Remote File I/O

[1mRTCOPY [22m- Remote Tape Copy

[1mSTAGE [22m- Stager

[1mSYSREQ[0m

[1mTAPE [22m- Tape operations

[1mVMGR [22m- Volume Manager

[1mVDQM [22m- Volume and Drive Queue Manager

[1mRMC [22m- Remote SCSI Media Changer Server

[1mMON [22m- Monitoring

[1mUPV [22m- User Privilege

[1mDPM [22m- Disk Pool Manager

[1mSECURITY[0m

[1mCOMMON ERRORS[0m
The following error values might be returned by any package:

[1mSENOSHOST [22m(1001) Host unknown

[1mSENOSSERV [22m(1002) Service unknown

[1mSENOTRFILE [22m(1003) Not a remote file

[1mSETIMEDOUT [22m(1004) Has timed out

[1mSEBADFFORM [22m(1005) Bad fortran format specifier

[1mSEBADFOPT [22m(1006) Bad fortran option specifier

[1mSEINCFOPT [22m(1007) Incompatible fortran options

[1mSENAMETOOLONG [22m(1008) File name too long

[1mSENOCONFIG [22m(1009) Can't open configuration file

[1mSEBADVERSION [22m(1010) Version ID mismatch

[1mSEUBUF2SMALL [22m(1011) User buffer too small

[1mSEMSGINVRNO [22m(1012) Invalid reply number

[1mSEUMSG2LONG [22m(1013) User message too long

[1mSEENTRYNFND [22m(1014) Entry not found

[1mSEINTERNAL [22m(1015) Internal error

[1mSECONNDROP [22m(1016) Connection closed by rem. end

[1mSEBADIFNAM [22m(1017) Can't get interface name

[1mSECOMERR [22m(1018) Communication error

[1mSENOMAPDB [22m(1019) Can't open mapping database

[1mSENOMAPFND [22m(1020) No user mapping

[1mSERTYEXHAUST [22m(1021) Retry count exhausted

[1mSEOPNOTSUP [22m(1022) Operation not supported

[1mSEWOULDBLOCK [22m(1023) Resource temporarily unavailable

[1mSEINPROGRESS [22m(1024) Operation now in progress

[1mSECTHREADINIT [22m(1025) Cthread initialization error

[1mSECTHREADERR [22m(1026) Thread interface call error

[1mSESYSERR [22m(1027) System error

[1mSEADNSINIT [22m(1028) adns_init() error

[1mSEADNSSUBMIT [22m(1029) adns_submit() error

[1mSEADNS [22m(1030) adns resolving error

[1mSEADNSTOOMANY [22m(1031) adns returned more than one entry

[1mSENOTADMIN [22m(1032) requestor is not administrator

[1mSEUSERUNKN [22m(1033) User unknown

[1mSEDUPKEY [22m(1034) Duplicate key value

[1mSEENTRYEXISTS [22m(1035) The entry already exists

[1mSEGROUPUNKN [22m(1036) Group Unknown

[1mSECHECKSUM [22m(1037) Bad checksum

[1mSELOOP [22m(1038) Too many symbolic links encountered

[1mCOPYTAPE ERRORS[0m
None yet

[1mDB ERRORS[0m
The following error values are returned only by the database package:

[1mEDB_A_ESESSION [22m(1201) Cdb api : invalid session

[1mEDB_A_EDB [22m(1202) Cdb api : invalid db

[1mEDB_A_EINVAL [22m(1203) Cdb api : invalid value

[1mEDB_A_RESHOST [22m(1204) Cdb api : host res error

[1mEDB_A_TOOMUCH [22m(1205) Cdb api : data size rejected

[1mEDB_AS_SOCKET [22m(1206) Cdb api system : socket() error

[1mEDB_AS_SOCKOPT [22m(1207) Cdb api system : [set/get]sockopt() error

[1mEDB_AS_MALLOC [22m(1208) Cdb api system : malloc() error

[1mEDB_A_NOERROR [22m(1209) Cdb api : no last error

[1mEDB_A_IEINVAL [22m(1200) Cdb api : interface invalid value

[1mEDB_AS_BIND [22m(1201) Cdb api : bind() error

[1mEDB_AS_LISTEN [22m(1202) Cdb api : listen() error

[1mEDB_AS_GETSOCKNAME [22m(1203) Cdb api : getsockname() error

[1mEDB_AS_ACCEPT [22m(1204) Cdb api : accept() error

[1mEDB_AS_GETPEERNAME [22m(1205) Cdb api : getpeername() error

[1mEDB_A_WHOISIT [22m(1206) Cdb api : Connection from bad host

[1mEDB_D_EINVAL [22m(1220) Cdb daemon : invalid value

[1mEDB_D_EAGAIN [22m(1221) Cdb daemon : yet done

[1mEDB_D_AUTH [22m(1222) Cdb daemon : unauthorized

[1mEDB_D_LOGIN [22m(1223) Cdb daemon : login refused

[1mEDB_D_PWDCORR [22m(1224) Cdb daemon : pwd file corrupted

[1mEDB_D_ANA [22m(1225) Cdb daemon : db analysis error

[1mEDB_D_HASHSIZE [22m(1226) Cdb daemon : bad hash size

[1mEDB_D_UNKNOWN [22m(1227) Cdb daemon : unkn. db/table/key

[1mEDB_D_NOLOCK [22m(1228) Cdb daemon : lock is required

[1mEDB_D_CORRUPT [22m(1229) Cdb daemon : probably corrupted

[1mEDB_D_TOOMUCH [22m(1230) Cdb daemon : data size rejected

[1mEDB_D_ENOENT [22m(1231) Cdb daemon : no entry

[1mEDB_D_ETYPE [22m(1232) Cdb daemon : unknown member type

[1mEDB_D_EVALUE [22m(1233) Cdb daemon : unknown member val

[1mEDB_D_NULLVALUE [22m(1234) Cdb daemon : null member value

[1mEDB_D_LOCK [22m(1235) Cdb daemon : cannot gain lock

[1mEDB_D_FREE [22m(1236) Cdb daemon : unsafe free attempt

[1mEDB_D_SHUTDOWN [22m(1237) Cdb daemon : shutdown in progress

[1mEDB_D_DEADLOCK [22m(1238) Cdb daemon : shutdown in progress

[1mEDB_D_EXIST [22m(1239) Cdb daemon : yet exists

[1mEDB_D_NOSPC [22m(1240) Cdb daemon : no more space

[1mEDB_D_DUMPEND [22m(1241) Cdb daemon : end of dump

[1mEDB_D_UNIQUE [22m(1242) Cdb daemon : uniqued key yet exist

[1mEDB_D_LISTEND [22m(1243) Cdb daemon : end of list

[1mEDB_D_NOTDUMP [22m(1244) Cdb daemon : not in dump mode

[1mEDB_D_DNSCHECK [22m(1245) Cdb daemon : double DNS check error

[1mEDB_D_REJECTED [22m(1246) Cdb daemon : Connection rejected (not
authorised)

[1mEDB_D_INIT [22m(1247) Cdb daemon : init in progress

[1mEDB_D_INCONST [22m(1248) Cdb daemon : Cdb daemon :
inconsistent request (unstop and no previous stop,
unfreeze and no previous freeze)

[1mEDB_D_FREEHASHSIZE [22m(1249) Cdb daemon : bad free hash size

[1mEDB_DS_MALLOC [22m(1250) Cdb daemon system : malloc() error

[1mEDB_DS_CALLOC [22m(1251) Cdb daemon system : calloc() error

[1mEDB_DS_REALLOC [22m(1252) Cdb daemon system : realloc() error

[1mEDB_DS_OPEN [22m(1253) Cdb daemon system : open() error

[1mEDB_DS_FSTAT [22m(1254) Cdb daemon system : fstat() error

[1mEDB_DS_LSEEK [22m(1255) Cdb daemon system : lseek() error

[1mEDB_DS_READ [22m(1256) Cdb daemon system : read() error

[1mEDB_DS_WRITE [22m(1257) Cdb daemon system : write() error

[1mEDB_DS_RENAME [22m(1258) Cdb daemon system : rename() error

[1mEDB_DS_FTRUNC [22m(1259) Cdb daemon system : ftruncate() error

[1mEDB_DS_TMPNAM [22m(1260) Cdb daemon system : tmpnam() error

[1mEDB_DS_FCNTL [22m(1261) Cdb daemon system : fcntl() error

[1mEDB_DS_MKDIR [22m(1262) Cdb daemon system : mkdir() error

[1mEDB_DS_TIMES [22m(1263) Cdb daemon system : times() error

[1mEDB_DS_SYSCONF [22m(1264) Cdb daemon system : sysconf() err/unav

[1mEDB_DS_GETHOSTNAME [22m(1265) Cdb daemon system : gethostname() error

[1mEDB_DS_GETPEERNAME [22m(1266) Cdb daemon system : getpeername() error

[1mEDB_DS_INET_NTOA [22m(1267) Cdb daemon system : getpeername() error

[1mEDB_DS_REMOVE [22m(1268) Cdb daemon system : remove() error

[1mEDB_DS_SIGACTION [22m(1269) Cdb daemon system : sigaction() error

[1mEDB_DS_GETSOCKNAME [22m(1270) Cdb daemon system : getsockname() error

[1mEDB_DS_BIND [22m(1271) Cdb daemon system : bind() error

[1mEDB_DS_LISTEN [22m(1272) Cdb daemon system : listen() error

[1mEDB_DS_CONNECT [22m(1273) Cdb daemon system : connect() error

[1mEDB_DS_SOCKET [22m(1274) Cdb daemon system : socket() error

[1mEDB_DS_SOCKOPT [22m(1275) Cdb daemon system : [set/get]sockopt() error

[1mEDB_D_RESHOST [22m(1276) Cdb daemon : host res error

[1mEDB_D_REQSIZE [22m(1277) Cdb daemon : request too big

[1mEDB_C_EINVAL [22m(1280) Cdb config : invalid value

[1mEDB_C_ENOENT [22m(1281) Cdb config : configuration error

[1mEDB_C_TOOMUCH [22m(1282) Cdb config : conf. size rejected

[1mEDB_CS_GETHOSTNAME [22m(1283) Cdb config system : gethostname() error

[1mEDB_NOMOREDB [22m(1290) Cdb : nomoredb (the API retries automatically
in such a case so you should never see this error
number)

[1mMSG ERRORS[0m
The following error values are returned only by the message package:

[1mEMSMSGU2REP [22m(1301) msg daemon unable to reply

[1mEMSMSGSYERR [22m(1302) msg daemon system error

[1mEMSNOPERM [22m(1303) Permission denied

[1mNS ERRORS[0m
The following error values are returned only by the name server pack-
age:

[1mENSNACT [22m(1401) name server not active or service being
drained

[1mRFIO ERRORS[0m
The following error values are returned only by the remote file I/O
package:

[1mERFNORCODE [22m(1501) RFIO communication error

[1mERFHOSTREFUSED [22m(1502) RFIO rejected connect attempt

[1mERFXHOST [22m(1503) Cross-host link (rename())

[1mERFPROTONOTSUP [22m(1504) RFIO protocol not supported

[1mRTCOPY ERRORS[0m
The following error values are returned only by the remote tape copy
package:

[1mERTTMSERR [22m(1601) TMS call failed

[1mERTBLKSKPD [22m(1602) Blocks were skipped in file

[1mERTTPE_LSZ [22m(1603) Blocks skipped and file truncated

[1mERTMNYPARY [22m(1604) Too many skipped blocks

[1mERTLIMBYSZ [22m(1605) File limited by size

[1mERTUSINTR [22m(1606) Request interrupted by user

[1mERTOPINTR [22m(1607) Request interrupted by operator

[1mERTNOTCLIST [22m(1608) Request list is not circular

[1mERTBADREQ [22m(1609) Bad request structure

[1mSTAGE ERRORS[0m
The following error values are returned only by the stager package:

[1mESTCLEARED [22m(1701) aborted by stageclr

[1mESTENOUGHF [22m(1702) enough free space

[1mESTLNKNCR [22m(1703) symbolic link not created

[1mESTLNKNSUP [22m(1704) symbolic link not supported

[1mESTNACT [22m(1705) Stager not active

[1mESTGROUP [22m(1706) Your group is invalid

[1mESTGRPUSER [22m(1707) No GRPUSER in configuration

[1mESTUSER [22m(1708) Invalid user

[1mESTHSMHOST [22m(1709) HSM HOST not specified

[1mESTTMSCHECK [22m(1710) tmscheck error

[1mESTLINKNAME [22m(1711) User link name processing error

[1mESTWRITABLE [22m(1712) User path in a non-writable directory

[1mESTKILLED [22m(1713) aborted by kill

[1mESTMEM [22m(1714) request too long (api)

[1mESTCONF [22m(1715) stage configuration error

[1mSYSREQ ERRORS[0m
The following error value is returned only by the sysreq package:

[1mESQTMSNOTACT [22m(1801) TMS not active

[1mTAPE ERRORS[0m
The following error values are returned only by the tape package:

[1mETDNP [22m(1901) daemon not available

[1mETSYS [22m(1902) system error

[1mETPRM [22m(1903) bad parameter

[1mETRSV [22m(1904) reserv already issued

[1mETNDV [22m(1905) too many drives requested

[1mETIDG [22m(1906) invalid device group name

[1mETNRS [22m(1907) reserv not done

[1mETIDN [22m(1908) no drive with requested characteristics

[1mETLBL [22m(1909) bad label structure

[1mETFSQ [22m(1910) bad file sequence number

[1mETINTR [22m(1911) interrupted by user

[1mETEOV [22m(1912) EOV found in multivolume set

[1mETRLSP [22m(1913) release pending

[1mETBLANK [22m(1914) blank tape

[1mETCOMPA [22m(1915) compatibility problem

[1mETHWERR [22m(1916) device malfunction

[1mETPARIT [22m(1917) parity error

[1mETUNREC [22m(1918) unrecoverable media error

[1mETNOSNS [22m(1919) no sense

[1mETRSLT [22m(1920) reselect server

[1mETVBSY [22m(1921) volume busy or inaccessible

[1mETDCA [22m(1922) drive currently assigned

[1mETNRDY [22m(1923) drive not ready

[1mETABSENT [22m(1924) volume absent

[1mETARCH [22m(1925) volume archived

[1mETHELD [22m(1926) volume held or disabled

[1mETNXPD [22m(1927) file not expired

[1mETOPAB [22m(1928) operator cancel

[1mETVUNKN [22m(1929) volume unknown

[1mETWLBL [22m(1930) wrong label type

[1mETWPROT [22m(1931) cartridge write protected

[1mETWVSN [22m(1932) wrong vsn

[1mETBADMIR [22m(1933) Tape has a bad MIR

[1mVMGR ERRORS[0m
The following error values are returned only by the volume manager
package:

[1mEVMGRNACT [22m(2001) volume manager not active or service being
drained

[1mVDQM ERRORS[0m
The following error values are returned only by the volume and drive
queue manager package:

[1mEVQSYERR [22m(2101) Failed system call

[1mEVQINCONSIST [22m(2102) Internal DB inconsistency

[1mEVQREPLICA [22m(2103) DB replication failed

[1mEVQNOVOL [22m(2104) No volume request queued

[1mEVQNODRV [22m(2105) No free drive available

[1mEVQNOSVOL [22m(2106) Specified vol. req. not found

[1mEVQNOSDRV [22m(2107) Specified drv. req. not found

[1mEVQALREADY [22m(2108) Specified vol. req. already exists

[1mEVQUNNOTUP [22m(2109) Unit not up

[1mEVQBADSTAT [22m(2110) Bad unit status request

[1mEVQBADID [22m(2111) Incorrect vol.req or job ID

[1mEVQBADJOBID [22m(2112) Incorrect job ID

[1mEVQNOTASS [22m(2113) Unit not assigned

[1mEVQBADVOLID [22m(2114) Attempt to mount with wrong VOLID

[1mEVQREQASS [22m(2115) Attempt to delete an assigned req

[1mEVQDGNINVL [22m(2116) Vol. req. for non-existing DGN

[1mEVQPIPEFULL [22m(2117) Replication pipe is full

[1mEVQHOLD [22m(2118) Server is held

[1mEVQEOQREACHED [22m(2119) End of query reached

[1mRMC ERRORS[0m
The following error values are returned only by the Remote SCSI media
changer server package:

[1mERMCNACT [22m(2201) Remote SCSI media changer server not active
or service being drained

[1mERMCRBTERR [22m(2202) Remote SCSI media changer error

[1mERMCUNREC [22m(2203) Remote SCSI media changer unrec. error

[1mERMCSLOWR [22m(2204) Remote SCSI media changer error (slow retry)

[1mERMCFASTR [22m(2205) Remote SCSI media changer error (fast retry)

[1mERMCDFORCE [22m(2206) Remote SCSI media changer error (demount
force)

[1mERMCDDOWN [22m(2207) Remote SCSI media changer error (drive down)

[1mERMCOMSGN [22m(2208) Remote SCSI media changer error (ops message)

[1mERMCOMSGS [22m(2209) Remote SCSI media changer error (ops message
+ retry)

[1mERMCOMSGR [22m(2210) Remote SCSI media changer error (ops message
+ wait)

[1mERMCUNLOAD [22m(2211) Remote SCSI media changer error (unload +
demount)

[1mMON ERRORS[0m
The following error values are returned only by the Monitoring package:

[1mEMON_SYSTEM [22m(2301) System error

[1mEMON_NO_HOST [22m(2302) Monitor Host not specified

[1mEMON_NO_PORT [22m(2303) Monitor Port not specified

[1mEMON_NO_CLIENTPORT [22m(2304) No port for client requests defined in the
configuration

[1mUPV ERRORS[0m
The following error values are returned only by the User Privilege Val-
idation package:

[1mECUPVNACT [22m(2401) UPV not active or service being drained

[1mDPM ERRORS[0m
The following error values are returned only by the Disk Pool Manager
package:

[1mEDPMNACT [22m(2601) DPM not active or service being drained

[1mSECURITY ERRORS[0m
The following error values are returned only by the Security package:

[1mESEC_SYSTEM [22m(2701) System error in the security package

[1mESEC_BAD_CREDENTIALS[0m
(2702) Bad credentials

[1mESEC_NO_CONTEXT [22m(2703) Could not establish context

[1mESEC_BAD_MAGIC [22m(2704) Bad magic number

[1mESEC_NO_USER [22m(2705) Could not map username to uid/gid

[1mESEC_NO_PRINC [22m(2706) Could not map principal to username

[1mESEC_NO_SECMECH [22m(2707) Could not load security mechanism

[1mESEC_CTX_NOT_INITIALIZED[0m
(2708) Context not initialized

[1mESEC_PROTNOTSUPP [22m(2709) Security protocol not supported

[1mESEC_NO_SVC_NAME [22m(2710) Service name not set

[1mESEC_NO_SVC_TYPE [22m(2711) Service type not set

[1mESEC_NO_SECPROT [22m(2712) Could not lookup security protocol

[1mESEC_BAD_CSEC_VERSION[0m
(2713) Csec incompatability

[1mESEC_BAD_PEER_RESP [22m(2714) Unexpected response from peer

[1mAUTHOR[0m
[1mLCG Grid Deployment [22mTeam

LCG $Date: 2006/01/27 09:52:14 $ SERRNO(3)

Info