Starcounter
3.0.0-rc-20191212
Search
K
Links
Comment on page

Error codes

This article lists the error codes that Starcounter uses, along with their severity and descriptions of what they mean.

Categories

  • 0 - Unspecified.
  • 1000 - General.
  • 2000 - StartupAndShutdown.
  • 3000 - IO.
  • 4000 - Database.
  • 5000 - Session.
  • 6000 - Internal.
  • 7000 - Sql.
  • 8000 - TransactionAbort.
  • 10000 - Management.
  • 11000 - Installer.
  • 12000 - Development.
  • 13000 - NetworkGateway.
  • 14000 - Apps.
  • 15000 - MetaTypes.

Error Codes

Category
Code
Name
Description
0
999
ScErrUnspecified
An unspecified error caused the operation to fail.
1000
1001
ScErrBadArguments
One or more arguments was invalid.
1000
1002
ScErrCodeNotEnhanced
Code not enhanced.
1000
1003
ScErrOutOfMemory
Operation failed because needed memory couldn't be allocated.
1000
1004
ScErrThreadNotAttached
The operation failed because the current thread wasn't attached to the scheduler.
1000
1005
ScErrNotSupported
The requested operation is not supported on the specific object.
1000
1006
ScErrNotAWorkerThread
The operation failed because the calling thread isn't a worker thread.
1000
1007
ScErrThreadNotDetached
The operation failed because the current thread was attached to the scheduler and detached thread was expected.
1000
1008
ScErrThreadYieldBlocked
The operation failed because it required the thread to yield but yield was blocked.
1000
1009
ScErrCounterMismatch
Generic error code for counter mismatch.
1000
1010
ScErrCounterOverflow
Generic error code for counter overflow.
1000
1011
ScErrStackOverflow
A stack overflow has been detected.
1000
1012
ScErrWaitTimeout
The wait timed out before the object was signaled.
1000
1013
ScErrMaxThreadsReached
The operation failed because the maximum number of worker threads has been reached and the operation required the scheduler to create additional worker threads.
1000
1014
ScErrCantCreateUuid
Failed to generate an UUID.
1000
1016
ScErrMutexNotOwned
Operation failed because of an attempt to release ownership of a mutex not owned by the current thread.
1000
1017
ScErrWouldBlock
A non blocking operation failed because if would be required to block.
1000
1018
ScErrUnresposiveThreadStall
A cooperatively scheduled worker thread has been unresponsive for an unacceptably long period of time.
1000
1019
ScErrThreadsBlockedStall
All threads available to the scheduler has been blocked for an unacceptably long period of time.
1000
1020
ScErrTaskCleanupIncomplete
A task still held resource when terminating that should have been released before the task terminated.
1000
1021
ScErrUnyieldingThreadStall
A cooperatively scheduled worker thread has been unwilling to yield for an unacceptably long period of time.
1000
1022
ScErrThreadAutoDetached
Use of reattach function for manually detached threads on auto detached thread.
1000
1023
ScErrThreadNotAutoDetached
Use of reattach function for auto detached threads on manually detached thread.
1000
1024
ScErrDebugVerifyFailed
Generic error code indicating that debug verification failed.
1000
1025
ScErrInvalidOperation
Operation invalid for the object's current state.
1000
1026
ScErrInputQueueFull
Operation failed because the target input queue was full.
1000
1027
ScErrNotImplemented
The method, operation or feature is not implemented.
1000
1028
ScErrEnvVariableNotAccessible
Access to an environment variable was not permitted due to the current security settings.
1000
1029
ScErrBinDirEnvNotFound
The environment variable holding the path to the Starcounter installation directory was not found.
1000
1030
ScErrBadCommandLineFormat
The format of the command-line was invalid.
1000
1031
ScErrBadCommandLineSyntax
Command-line arguments didn't match the defined syntax.
1000
1032
ScErrBadPostSharpLicense
The license key used to initialize the PostSharp library was invalid.
1000
1033
ScErrWrongErrorMessageFormat
Parsing an error message string failed due to an incorrect message format.
1000
1034
ScErrOperationCancelled
The operation was cancelled.
1000
1035
ScErrSharedInterfaceOpenDbShm
Opening the managed segment with the segment_name failed. Invalid segment or does not exist.
1000
1036
ScErrFindChunks
Could not find the chunks shared memory object.
1000
1037
ScErrFindSharedChunkPool
Could not find the shared_chunk_pool shared memory object.
1000
1038
ScErrFindCommonSchedInterface
Could not find the common_scheduler_interface shared memory object.
1000
1039
ScErrFindSchedulerInterfaces
Could not find the scheduler_interfaces shared memory object.
1000
1040
ScErrFindCommonClientInterface
Could not find the common_client_interface shared memory object.
1000
1041
ScErrFindClientInterfaces
Could not find the client_interfaces shared memory object.
1000
1042
ScErrFindChannels
Could not find the channels shared memory object.
1000
1043
ScErrOpenSchedulerWorkEvent
Failed to open a scheduler work event.
1000
1044
ScErrOpenClientWorkEvent
Failed to open a client work event.
1000
1045
ScErrOpenSchedNumPoolNotEmptyEv
Failed to open a scheduler number pool not empty event.
1000
1046
ScErrOpenSchedNumPoolNotFullEv
Failed to open a scheduler number pool not full event.
1000
1047
ScErrFormatActiveDbUpdatedEvName
Failed to format the active databases updated event name.
1000
1048
ScErrConvertActiveDbUpdatedEvMBS
Failed to convert active databases updated event name to multi-byte string.
1000
1049
ScErrOpenActiveDbUpdatedEv
Failed to open the active databases updated event.
1000
1050
ScErrIPCMonitorEraseDatabaseName
The IPC monitor failed to erase a database name.
1000
1051
ScErrBoostInterprocessException
The IPC monitor trying to open segment boost::interprocess::interprocess_exception caught.
1000
1052
ScErrTryOpenSegmentUnknownExcept
The IPC monitor trying to open segment unknown exception caught.
1000
1053
ScErrGotClientProcessTypeNotDb
The IPC monitor expected database process but got client process type.
1000
1054
ScErrGotUnknownProcessTypeNotDb
The IPC monitor expected database process but got unknown process type.
1000
1055
ScErrOpenProcessFailedRegDbProc
The IPC monitor is trying to register a database process but OpenProcess() failed.
1000
1056
ScErrIPCMonInsertDbNameActiveDbR
The IPC monitor failed to insert database name into active databases register.
1000
1057
ScErrIPCMonitorInsertSegmentName
The IPC monitor failed to insert segment name into the monitor interface.
1000
1058
ScErrIPCMonFailedNotifyScheduler
The IPC monitor failed to notify the scheduler on the given channel.
1000
1059
ScErrOpenDbShmSegToNotifyClients
The IPC monitor failed to open the database shared memory segment and is unable to notify the clients.
1000
1060
ScErrIPCMonOpenDbShmSegUnknownEx
The IPC monitor caught an unknown exception while trying to open database IPC shared memory segments.
1000
1061
ScErrIPCMonUnknownProessTypeExit
The IPC monitor got an unknown proess type exit.
1000
1062
ScErrOpenProcessFailedRegCliProc
The IPC monitor is trying to register a client process but OpenProcess() failed.
1000
1063
ScErrTheOwnerIDMatchButNotThePID
The IPC monitor unregistration failed. The owner ID matches but not the PID.
1000
1064
ScErrThePIDMatchButNotTheOwnerID
The IPC monitor unregistration failed. The PID matches but not the owner ID.
1000
1065
ScErrCleanupToOpenTheDBIPCShmSeg
The IPC monitor cleanup failed. Could not open the IPC database shared memory segment.
1000
1066
ScErrIPCMonitorCleanupWaitFailed
The IPC monitor was not notified. Wait failed.
1000
1067
ScErrOutOfDedicatedAddressSpace
Operation failed because needed memory couldn't be allocated within dedicated address space
1000
1068
ScErrMemoryLimitReached
Operation failed because limit reached on limited memory resource.
1000
1069
ScErrUnhandledException
An unhandled exception was detected.
1000
1070
ScErrUnexpectedInternalError
An unexpected internal error was detected.
1000
1071
ScErrTestAssertionFailure
Assertion used in a test application failed.
1000
1072
ScErrOperationPending
Operation completion pending.
2000
2001
ScErrAppAlreadyStarted
A Starcounter process with the specified name is already started.
2000
2002
ScErrBadBaseDirectoryConfig
Base directory (baseDirectory) missing from config or invalid.
2000
2003
ScErrBadTempDirectoryConfig
Temp directory (tempDirectory) missing from config or invalid.
2000
2004
ScErrBadImageDirectoryConfig
Image directory (imageDirectory) missing from config or invalid.
2000
2005
ScErrBadTLogDirectoryConfig
The transaction log directory (transactionLogDirectory) is missing from config or invalid.
2000
2012
ScErrCantInitializeClr
Unable to initialize the CLR.
2000
2013
ScErrCantLoadHostEnvironment
Unable to load host environment.
2000
2014
ScErrLogModuleNotFound
The operation failed because sccorelog.dll or one of the functions it exports couldn't be loaded.
2000
2015
ScErrImageStorageMismatch
The properties of the different disk drives used to store the image files don't have compatible configuration (do they have the same sector sizes?).
2000
2016
ScErrImageStorageIncompatible
The properties of the disk drive doesn't match the database image (is the disk drive is configured for a different sector size than the image is built for?).
2000
2017
ScErrWrongDatabaseVersion
The database files are build for a different Starcounter version and are not compatible with the current version.
2000
2018
ScErrCantGetPrivilegesNeeded
Could not acquire the privileges needed for the operation to complete successfully.
2000
2022
ScErrDatabaseFileMismatch
Attempt to load database files from different databases was detected.
2000
2023
ScErrDatabaseLangUnsupported
One or more of the languages the database is configured for isn't supported by the current system.
2000
2027
ScErrCodeLoaderError
Code loder error.
2000
2029
ScErrTypesLoadError
Error inspecting assembly.
2000
2030
ScErrWeavingError
At least one error has been detected during weaving of the application code.
2000
2031
ScErrInvalidServerName
The server name is too long (max 31 chars) or contains invalid characters.
2000
2032
ScErrShutdownTimedOut
Shutdown timed out: Stuck in user code.
2000
2035
ScErrBadSchedCountConfig
Too many virtual CPUs configured.
2000
2036
ScErrWrongTLogVersion
Wrong transaction log version.
2000
2037
ScErrBadRebuildConfig
Bad unload/reload configuration.
2000
2043
ScErrBadTLogSizeConfig
The specified transaction log size is either smaller then the minimum size, larger then the maximum size or not aligned with the disk sector size.
2000
2044
ScErrBadDiskSectorSizeConfig
The specified disk sector size is not compatible with storage.
2000
2045
ScErrShrinkImageNotSupported
The specified new image size is smaller then the current image size. Making the image smaller is not allowed.
2000
2046
ScErrBadImageSizeConfig
The specified image size is either smaller then the minimum size, larger then the maximum size or not aligned with the database block size.
2000
2047
ScErrDatabaseAlreadyExists
A database with the specified name already exists.
2000
2048
ScErrModuleNotFound
The operation failed because an expected DLL module couldn't be loaded.
2000
2049
ScErrParsingAppArgs
When parsing the application arguments to scdbs.exe, the system routine parsing it reported an error.
2000
2050
ScErrTooFewAppArgs
The number of arguments passed to scdbs.exe did not include all arguments required.
2000
2051
ScErrAppArgsSemanticViolation
All arguments passed to scdbs.exe did not confirm to the constraints, or some of them were found incompatible.
2000
2052
ScErrUnloadEmptyDatabase
The -unload directive specified as a server application argument can not be used when the database is empty and not initialized.
2000
2053
ScErrRldPopulatedDatabase
The -reload directive specified as a server application argument can not be used when the database is allready populated.
2000
2054
ScErrFuncExportNotFound
The operation failed because an expected function export from a module dependent upon was not found.
2000
2055
ScErrBadBackupDirectoryConfig
Bad backup directory config. Either the configured directory does not exist or the directory path is to long.
2000
2056
ScErrBadLogDirectoryConfig
Bad log directory config. Either the configuration does not exist or the configured directory isn't valid.
2000
2057
ScErrCompareEmptyDatabase
The server was started, instructed to execute a compare of application and core schemas, and when the database was examined, the server detected it to not being bound to any previous application, i.e. containing no schema.
2000
2058
ScErrTLogNotInitialized
An operation failed due to the transaction/redo log not being initialized.
2000
2059
ScErrAcquireDbControlTimeOut
Attempt to acquire control of the database environment timed out.
2000
2060
ScErrCreateActMonBufTimeOut
Attempt to create activity monitor shared buffer timed out.
2000
2061
ScErrDbStateAccessDenied
Allocating shared memory for database state failed. Access was denied.
2000
2063
ScErrBadImageFileCksumLoad
Checksum mismatch detected in image file when image file was loaded into memory.
2000
2064
ScErrClientBackendAlreadyLoaded
Client application communication library was already loaded.
2000
2065
ScErrClientBackendNotLoaded
Client application communication library failed to load.
2000
2066
ScErrClientBackendWrongPath
Client application communication library was loaded from the wrong path.
2000
2067
ScErrStartSharedMemoryMonitor
Problems starting shared memory monitor process.
2000
2068
ScErrWeaverProjectFileNotFound
A project file the weaver engine depends on could not be found. Either it was deleted or the program hosting the weaver did not resolve its path to the correct installation directory.
2000
2069
ScErrConstructDbShmParamName
The database intends to open the database shared memory parameters, but failed when trying to concatenate the database name prefix with the database name.
2000
2070
ScErrDbDataDirPathInvalidMBChar
The database intends to open the shared memory object with the database shared memory parameters, but failed because of an illegal char in the db_data_dir_path in the psetup parameter.
2000
2071
ScErrDbShmParamNameInvalidWChar
The database intends to open the shared memory object with the database shared memory parameters, but failed because a wide character that cannot be converted into a multibyte character was encountered.
2000
2075
ScErrConstructSegmentNameSeqNo
Failed to construct the segment name with sequence number.
2000
2076
ScErrSegmentNameInvalidWChar
The database intends to get the sequence number and append it to the segment name, but failed because a wide character that cannot be converted into a multibyte character was encountered.
2000
2077
ScErrConstrMonitorInterfaceName
The database intends to register with the monitor, but it failed because constructing the monitor interface name would result in buffer overflow.
2000
2078
ScErrDbMapMonitorInterfaceInShm
The database intends to register with the monitor, but failed to map the monitor interface in shared memory.
2000
2080
ScErrDBAcquireOwnerID
The database tried to register with the monitor, but failed to acquire an owner ID.
2000
2081
ScErrCConstructDbShmParamName
The client intends to open the database shared memory parameters, but failed when trying to concatenate the database name prefix with the database name.
2000
2082
ScErrCConstrMonitorInterfaceName
The client intends to register with the monitor, but failed because constructing the monitor interface name would result in buffer overflow.
2000
2083
ScErrCAcquireOwnerID
The client tried to register with the monitor, but failed to acquire an owner ID.
2000
2084
ScErrClientOpenDbShmSegment
The client intends to open the database shared memory segment, but failed because it is not initialized yet.
2000
2085
ScErrCConstrDbShmSegmentName
The client intends to open the database shared memory segment, but failed because constructing the name of the database shared memory segment would result in buffer overflow.
2000
2086
ScErrClientAcquireClientNumber
The client failed to initialize because it could not acquire a client number.
2000
2087
ScErrUnknownExceptThrownInSetup
An unknown exception was thrown by the database when trying something in the call to setup during the initialization phase.
2000
2088
ScErrDbOpenMonitorInterface
The database intends to register with the monitor, but it failed to open the monitor interface.
2000
2089
ScErrDbCreateDbShmParameters
The database failed to create the database shared memory parameters file.
2000
2090
ScErrCreateDbShmParameters
Failed to create the database shared memory parameters file.
2000
2091
ScErrOpenDbShmParameters
Failed to open the database shared memory parameters file.
2000
2092
ScErrMapDbShmParametersInShm
Failed to map the database shared memory parameters in shared memory.
2000
2094
ScErrOpenMonitorInterface
Failed to open monitor interface.
2000
2095
ScErrMapMonitorInterfaceInShm
Failed to map monitor interface in shared memory.
2000
2096
ScErrDbMapDbShmParametersInShm
The database failed to map the database shared memory parameters in shared memory.
2000
2097
ScErrCOpenDbShmParameters
The client failed to open the database shared memory parameters file.
2000
2098
ScErrCMapDbShmParametersInShm
The client failed to map the database shared memory parameters in shared memory.
2000
2099
ScErrDbOpenDebugFile
The database failed to open the debug file.
2000
2100
ScErrDbReleaseOwnerID
The database tried to unregister with the monitor, but failed to release its owner ID.
2000
2101
ScErrCReleaseOwnerID
The client tried to unregister with the monitor, but failed to release its owner ID.
2000
2102
ScErrDbAcquireOwnerIDTimeout
The database tried to register with the monitor, but failed to acquire an owner ID because a timeout occurred.
2000
2103
ScErrCAcquireOwnerIDTimeout
The client tried to register with the monitor, but failed to acquire an owner ID because a timeout occurred.
2000
2104
ScErrDbReleaseOwnerIDTimeout
The database tried to unregister with the monitor, but failed to release its owner ID because a timeout occurred.
2000
2105
ScErrCReleaseOwnerIDTimeout
The client tried to unregister with the monitor, but failed to release its owner ID because a timeout occurred.
2000
2106
ScErrBadSchedIdSupplied
Trying to queue a job on scheduler with incorrect id.
2000
2107
ScErrCAcquireOwnerIDTimeout2
The client tried to register with the monitor, but failed to acquire an owner ID because a timeout occurred.
2000
2108
ScErrDbAlreadyStarted
A Starcounter database with the specified name is already started.
2000
2109
ScErrBadDatabaseConfig
Invalid configuration prevents the database from being accessible.
2000
2110
ScErrStartNetworkGateway
Problems starting network gateway process.
2000
2111
ScErrBadChunksNumberConfig
Shared memory chunks number is missing in database configuration file or has invalid value.
2000
2112
ScErrTLogStorageIncompatible
The properties of the disk drive doesn't match the transaction log (is the disk drive is configured for a different sector size than the transaction log is built for?).
2000
2113
ScErrBadServiceConfig
Service configuration is invalid.
2000
2114
ScErrKilledByProcessManager
Process was killed by process manager.
2000
2115
ScErrBadServerConfig
Server configuration is invalid.
2000
2116
ScErrInvalidGlobalSegmentShmObj
Invalid Global Segment Shared Memory Object.
2000
2117
ScErrServerInitUnknownException
Unknown exception thrown during initialization of server.
2000
2118
ScErrServerPortInitInvalidShmObj
Server port initialization failed, invalid shared memory object.
2000
2119
ScErrServerPortInitInvalidMapReg
Server port initialization failed, invalid mapped region.
2000
2120
ScErrServerPortUnknownException
Server port initialization failed, unknown exception caught.
2000
2121
ScErrCantCreateIPCMonitorDir
IPC monitor failed to create IPC monitor directory.
2000
2122
ScErrIPCMonitorRequiredArguments
IPC monitor failed to start, required arguments are missing.
2000
2123
ScErrFormatIPCMonitorCleanupEv
IPC monitor failed to format the ipc_monitor_cleanup_event_name.
2000
2124
ScErrConvertIPCMonCleanupEvMBS
IPC monitor failed to convert the IPC monitor cleanup event name to multi-byte string.
2000
2125
ScErrCreateIPCMonitorCleanupEv
IPC monitor failed to create the IPC monitor cleanup event.
2000
2126
ScErrIPCMFormatActiveDbUpdatedEv
IPC monitor failed to format the active databases updated event name.
2000
2127
ScErrIPCMConvActiveDbUpdatedEvMB
IPC monitor failed to convert active databases updated event name to multi-byte string.
2000
2128
ScErrCreateActiveDbUpdatedEv
IPC monitor failed to failed to create the active databases updated event.
2000
2129
ScErrInvalidIPCMonInterfacShmObj
IPC monitor invalid monitor_interface shared memory object.
2000
2130
ScErrInvalidIPCMonInterfacMapReg
IPC monitor invalid monitor_interface mapped_region.
2000
2131
ScErrIPCMonitorOpenProcessToken
IPC monitor OpenProcessToken() failed.
2000
2132
ScErrIPCMonLookupPrivilegeValue
IPC monitor LookupPrivilegeValue() failed.
2000
2133
ScErrIPCMonAdjustTokenPrivileges
IPC monitor AdjustTokenPrivileges() failed.
2000
2134
ScErrIPCMonSetSeDebugPrivilege
IPC monitor failed to set SeDebugPrivilege.
2000
2135
ScErrIPCMonitorCreateActiveDbDir
IPC monitor can't create monitor active databases directory.
2000
2136
ScErrIPCMonitorDelActiveDbFile
IPC monitor can't delete monitor active databases file.
2000
2137
ScErrBoostIPCExecption
Boost interprocess exception thrown in client_port.
2000
2138
ScErrClientPortUnknownException
Unknown exception thrown in client_port.
2000
2139
ScErrIPCMonitorUnknownException
Unknown exception thrown in IPC monitor.
2000
2140
ScErrWeaverFailedLoadFile
The weaver failed to load a binary user code file.
2000
2141
ScErrScServiceIsAlreadyRunning
An instance of scservice is already running in the same session.
2000
2142
ScErrScServiceFailedCreateLck
scservice tried to create a mutex named scservice_is_running_lock but CreateMutex() returned NULL.
2000
2143
ScErrWeaverFailedStrongNameAsm
A locally deployed strong-named assembly was detected.
2000
2144
ScErrBadGatewayWorkersNumberConfig
Gateway workers number is missing in configuration file or has invalid value.
2000