Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear Team,
One of our clients operations monitor failed to reload from the task scheduler. We had recently upgraded the server to November 2018 patch 1. Everything was working fine and this issue came up from past few days.
Thanks in Advance.
Please find the script log below.
I am having the same error. When I duplicated the License Monitor app and ran it myself I got the following additional information:
I/O error governanceLicenseLog_7.10.0_file.qvd:
LogContent:
NoConcatenate
Load * FROM lib://ServerLogFolder/governanceLicenseLog_7.10.0_file.qvd (qvd)
WHERE LogTimeStamp >= '2018-02-19' ScriptErrorList: Database Not Found File Has Wrong Format
When I try to open the underlying governanceLicenseLog_7.10.0_file.qvd file using QViewer I get an "Index was outside the bounds of the array" error. I suspect the file somehow got corrupt.
I ended up deleting the corrupt qvd and rerunning the task. I am not sure if I lost some log history in the process, but at least the task is running again.
Hey guys, I believe the correct thing here is to let the QVD file recreate, I know the guys that do the Governance Dashboard have told us as much on it, so I am assuming same goes for the Sense monitoring apps as well. The next run should then recreate things from scratch, which may cause that load to run a little longer than normal, but once it is recreated, things should be quicker after that again. Hopefully this is what you needed to continue moving forward. I will be moving the post as well to the product forums, someone else may have something to add there.
Regards,
Brett
2019-04-16 10:18:34 Execution started.
2019-04-16 10:18:34 Qlik Sense Server Version 12.287.2
2019-04-16 10:18:34 CPU Target x64
2019-04-16 10:18:34 Operating System Windows Server 2012 R2 Standard (64 bit edition)
2019-04-16 10:18:34 Wow64 mode Not using Wow64
2019-04-16 10:18:34 Language 0409 English English
2019-04-16 10:18:34 Country USA United States United States
2019-04-16 10:18:34 MDAC Version 6.3.9600.16384
2019-04-16 10:18:34 MDAC Full Install Version 6.3.9600.16384
2019-04-16 10:18:34 PreferredCompression 2
2019-04-16 10:18:34 EnableParallelReload 1
2019-04-16 10:18:34 ParallelizeQvdLoads 1
2019-04-16 10:18:34 AutoSaveAfterReload 0
2019-04-16 10:18:34 BackupBeforeReload 0
2019-04-16 10:18:34 EnableFlushLog 0
2019-04-16 10:18:34 UserLogfileCharset 65001
2019-04-16 10:18:34 OdbcLoginTimeout -1
2019-04-16 10:18:34 OdbcConnectionTimeout -1
2019-04-16 10:18:34 LongestPossibleLine 1048576
2019-04-16 10:18:34 MaxCoreMask -1
2019-04-16 10:18:34 WebFileTimeout 0
2019-04-16 10:18:34 WebFileUserAgent Mozilla/5.0
2019-04-16 10:18:34 DontUseInternetCache 1
2019-04-16 10:18:34 ScriptWantsDbWrite false
2019-04-16 10:18:34 ScriptWantsExe false
2019-04-16 10:18:34 ICU_FOR_CHARACTER_CLASSIFICATION true
2019-04-16 10:18:34 ICU_FOR_CODE_PAGES true
2019-04-16 10:18:34 ICU_FOR_COLLATION true
2019-04-16 10:18:34 ICU_FOR_LOCALE_INFO true
2019-04-16 10:18:34 ICU_FOR_SUPPORT_INFO true
2019-04-16 10:18:34 ICU_FOR_TIME_ZONE_INFO true
2019-04-16 10:18:34 LogFile CodePage Used: 65001
2019-04-16 10:18:34 UseMemoryFillPattern 1
2019-04-16 10:18:34 ScriptMode Standard (limits system access)
2019-04-16 10:18:34 SequentialThreadCount 26
2019-04-16 10:18:34 NumberOfCores (effective) 8
2019-04-16 10:18:34 ReloadCodebase Bnf
2019-04-16 10:18:34 Reload Executed By UserDirectory=INTERNAL; UserId=sa_scheduler
2019-04-16 10:18:34 Process Executing Qlik Sense Server
2019-04-16 10:18:34 Process ID 4184
2019-04-16 10:18:34 Grpc version 5.0.0
2019-04-16 10:18:34 Protobuf version 3.4.0
2019-04-16 10:18:34 0003 LET yr = year(ReloadTime())
2019-04-16 10:18:34 0004 SET copyright = 'Copyright 1993-2019 Qliktech International AB'
2019-04-16 10:18:34 0006 REM *** *** *** *** *** *** *** *** ****** *** *** *** *** *** *** ******
2019-04-16 10:18:34 0007 *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-04-16 10:18:34 0008 *** *** *** *** *** ****** *** *** ******
2019-04-16 10:18:34 0009 *** *** *** *** *** ****** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-04-16 10:18:34 0011 SET db_v_file_override = 0
2019-04-16 10:18:34 0013 REM *** *** *** *** *** *** *** *** ****** *** *** *** *** *** *** *** *** *********
2019-04-16 10:18:34 0015 Let ReloadStartTime = now(1)
2019-04-16 10:18:34 0016 Set ahora =
2019-04-16 10:18:34 0016 SET msg =
2019-04-16 10:18:34 0016 SET skipped=0
2019-04-16 10:18:34 0016 SET loaded =0
2019-04-16 10:18:34 0016 SET textFile =
2019-04-16 10:18:34 0017 SET app_name = 'License Monitor'
2019-04-16 10:18:34 0018 SET app_version = '7.10.0'
2019-04-16 10:18:34 0019 Let comp = ComputerName()
2019-04-16 10:18:34 0020 LET EngineVer = PurgeChar(EngineVersion(),chr(39))
2019-04-16 10:18:34 0021 LET startMsg_1 = 'Reloading License Monitor 7.10.0 from APPS-VM running QIX Engine version 12.287.2'
2019-04-16 10:18:34 0022 LET startMsg = 'Reloading License Monitor 7.10.0 from APPS-VM running QIX Engine version 12.287.2. ' & If(db_v_file_override=2,'Database logs chosen',if(db_v_file_override=1,'File logs chosen','Default log source selected (will check database first, then files)'))
2019-04-16 10:18:34 0023 TRACE Reloading License Monitor 7.10.0 from APPS-VM running QIX Engine version 12.287.2. Default log source selected (will check database first, then files)
2019-04-16 10:18:34 0023 Reloading License Monitor 7.10.0 from APPS-VM running QIX Engine version 12.287.2. Default log source selected (will check database first, then files)
2019-04-16 10:18:34 0024
2019-04-16 10:18:34 0025 SET monthsOfHistory = 12
2019-04-16 10:18:34 0026 LET cutoffDate = AddMonths(today(),-12,1)
2019-04-16 10:18:34 0027 Let LastReloadTime = timestamp(if(isnull(LastSuccessfulReloadStartTime),cutoffDate,LastSuccessfulReloadStartTime))
2019-04-16 10:18:34 0028 Let lastReloadCompare = num(LastReloadTime)-1
2019-04-16 10:18:34 0029 SET minSenseActivityDate = 42005
2019-04-16 10:18:34 0031 SET hideprefix = 'log'
2019-04-16 10:18:34 0032 SET firstReload = 0
2019-04-16 10:18:34 0033 SET va_LoginToUserPass = 10
2019-04-16 10:18:34 0035 LET serverLogFolder = 'lib://ServerLogFolder/'
2019-04-16 10:18:34 0036 LET archivedLogsFolder = 'lib://ArchivedLogsFolder/'
2019-04-16 10:18:34 0037 SET central_node_name =
2019-04-16 10:18:34 0039 LET baseFileName = 'governanceLicenseLog_7.10.0'
2019-04-16 10:18:34 0040 LET baseTableName = 'lib://ServerLogFolder/governanceLicenseLog_7.10.0'
2019-04-16 10:18:34 0042 LET SessionFileName = 'governanceSession_7.10.0'
2019-04-16 10:18:34 0043 LET sessionTableName = 'lib://ServerLogFolder/governanceSession_7.10.0'
2019-04-16 10:18:34 0044 LET monitorAppStatsFile = 'lib://ServerLogFolder/License_Monitor_Reload_Stats_7.10.0.txt'
2019-04-16 10:18:34 0046 SET storeBaseTableFail = 0
2019-04-16 10:18:34 0047 LET tempErrorDetails =
2019-04-16 10:18:34 0050 SET TimeFormat = 'hh:mm:ss'
2019-04-16 10:18:34 0051 SET DateFormat = 'YYYY-MM-DD'
2019-04-16 10:18:34 0052 SET TimestampFormat = 'YYYY-MM-DD hh:mm:ss'
2019-04-16 10:18:34 0054 Let vLast72Hours = Num(timestamp(Now(1)-3))
2019-04-16 10:18:34 0055 Let vLast7Days = Num(timestamp(Now(1)-7))
2019-04-16 10:18:34 0056 Let vLast14Days = Num(timestamp(Now(1)-14))
2019-04-16 10:18:34 0057 Let vLast28Days = Num(timestamp(Now(1)-28))
2019-04-16 10:18:34 0058 Let vLast90Days = Num(timestamp(Now(1)-90))
2019-04-16 10:18:34 0061 set c_red = 'RGB(204,102,119)'
2019-04-16 10:18:34 0062 set c_yellow = 'RGB(221,204,119)'
2019-04-16 10:18:34 0063 set c_blue = 'RGB(68,119,170)'
2019-04-16 10:18:34 0064 set c_green = 'RGB(17,119,51)'
2019-04-16 10:18:34 0065 set c_gray = 'RGB(150,150,150)'
2019-04-16 10:18:34 0066 set c_lightred = 'RGB(240,209,214)'
2019-04-16 10:18:34 0067 set c_lightblue = 'RGB(188,181,201)'
2019-04-16 10:18:34 0070 SUB verify_database
2019-04-16 10:18:34 0157 SUB logList
2019-04-16 10:18:34 0168 SUB defineFields
2019-04-16 10:18:34 0178 SUB CommandList
2019-04-16 10:18:34 0200 SUB loadBaseTable (nombre, archivo)
2019-04-16 10:18:34 0248 SUB multiNodeConfig
2019-04-16 10:18:34 0275 SUB logFolderList
2019-04-16 10:18:34 0318 SUB loadFiles (fdr,iter)
2019-04-16 10:18:34 0404 SUB load_database_logs
2019-04-16 10:18:34 0479 SUB concatTables (concatToTable, incrementalTable, concatField)
2019-04-16 10:18:34 0520 SUB sessionData (fdr)
2019-04-16 10:18:34 0562 SUB storeFiles (nombre, archivo)
2019-04-16 10:18:34 0583 SUB monitor_app_stats_incremental // Use this to append new 'status' entry to table
2019-04-16 10:18:34 0597 SUB monitor_app_reload_stats (sev, obj, message, description)
2019-04-16 10:18:34 0629 SUB QRS
2019-04-16 10:18:34 0656 SUB monitor_apps_REST_license_user
2019-04-16 10:18:34 0761 SUB monitor_apps_REST_license_login
2019-04-16 10:18:34 0792 SUB monitor_apps_REST_user
2019-04-16 10:18:34 0902 SUB monitor_apps_REST_license_access
2019-04-16 10:18:34 1011 SUB monitor_apps_REST_app
2019-04-16 10:18:34 1046 SUB calendarization
2019-04-16 10:18:34 1153 SUB supportingLogic
2019-04-16 10:18:34 1215 SUB finalize
2019-04-16 10:18:34 1252 CALL monitor_app_reload_stats('INFO','License Monitor', startMsg,'Reload Start')
2019-04-16 10:18:34 0599 IF description = 'Reload Start' THEN
2019-04-16 10:18:34 0601 IF FileSize('lib://ServerLogFolder/License_Monitor_Reload_Stats_7.10.0.txt') > 0 THEN
2019-04-16 10:18:34 0605 Trace Did not find lib://ServerLogFolder/License_Monitor_Reload_Stats_7.10.0.txt - will create a new file.
2019-04-16 10:18:34 0605 Did not find lib://ServerLogFolder/License_Monitor_Reload_Stats_7.10.0.txt - will create a new file.
2019-04-16 10:18:34 0606
2019-04-16 10:18:34 0606 monitor_app_reload_stats:
2019-04-16 10:18:34 0607 Load * Inline [Log Entry, Log Timestamp, Log Severity,Host,Description,Log Message,Object]
2019-04-16 10:18:34 7 fields found: Log Entry, Log Timestamp, Log Severity, Host, Description, Log Message, Object,
2019-04-16 10:18:34 0 lines fetched
2019-04-16 10:18:34 0608 ENDIF
2019-04-16 10:18:34 0610 Let appMonitorStatsRowsInit = NoOfRows('monitor_app_reload_stats')
2019-04-16 10:18:34 0611 CALL monitor_app_stats_incremental // Add start message
2019-04-16 10:18:34 0584 Concatenate (monitor_app_reload_stats)
2019-04-16 10:18:34 0585 Load
2019-04-16 10:18:34 0586 RowNo() as [Log Entry],
2019-04-16 10:18:34 0587 timestamp(now(1)) as [Log Timestamp],
2019-04-16 10:18:34 0588 'INFO' as [Log Severity],
2019-04-16 10:18:34 0589 'APPS-VM' as Host,
2019-04-16 10:18:34 0590 'Reload Start' as Description,
2019-04-16 10:18:34 0591 'Reloading License Monitor 7.10.0 from APPS-VM running QIX Engine version 12.287.2. Default log source selected (will check database first, then files)' as [Log Message],
2019-04-16 10:18:34 0592 'License Monitor' as Object
2019-04-16 10:18:34 0593 AutoGenerate (1)
2019-04-16 10:18:34 7 fields found: Log Entry, Log Timestamp, Log Severity, Host, Description, Log Message, Object,
2019-04-16 10:18:34 1 lines fetched
2019-04-16 10:18:34 0595 ENDSUB
2019-04-16 10:18:34 0613 ELSEIF description = 'Status Message' THEN
2019-04-16 10:18:34 0626 ENDSUB
2019-04-16 10:18:34 1254 CALL verify_database
2019-04-16 10:18:34 0072 TRACE Verifying logging database.
2019-04-16 10:18:34 0072 Verifying logging database.
2019-04-16 10:18:34 0073
2019-04-16 10:18:34 0074 REM *** *** *** *** *** *** *** *** *** *** *** ***
2019-04-16 10:18:34 0076 IF db_v_file_override = 1 THEN
2019-04-16 10:18:34 0087 LET db_check_time = timestamp(now(1)-0.01)
2019-04-16 10:18:34 0088 Set errormode = 0
2019-04-16 10:18:34 0090 LIB CONNECT TO 'QLogs'
2019-04-16 10:18:35 Connected.
2019-04-16 10:18:35 0096 LET tempErrorDetails = ScriptErrorDetails
2019-04-16 10:18:35 0097 IF Len(tempErrorDetails) > 0 THEN
2019-04-16 10:18:35 0111 db_check:
2019-04-16 10:18:35 0112 SELECT "id"
2019-04-16 10:18:35 0113 FROM "public"."log_entries"
2019-04-16 10:18:35 0114 WHERE "entry_timestamp" >= '2019-04-16 03:04:10'
2019-04-16 10:18:35 1 fields found: id,
2019-04-16 10:18:35 0 lines fetched
2019-04-16 10:18:35 0118 LET tempErrorDetails = ScriptErrorDetails
2019-04-16 10:18:35 0119 IF Len(tempErrorDetails) > 0 THEN
2019-04-16 10:18:35 0133 Let NoOfRows_db_check = NoOfRows('db_check')
2019-04-16 10:18:35 0135 IF 0>1 THEN
2019-04-16 10:18:35 0143 TRACE Could not validate active database logging. Sourcing from file logs instead.
2019-04-16 10:18:35 0143 Could not validate active database logging. Sourcing from file logs instead.
2019-04-16 10:18:35 0144
2019-04-16 10:18:35 0144 SET db_v_file = 1
2019-04-16 10:18:35 0145 LET baseTableName = 'lib://ServerLogFolder/governanceLicenseLog_7.10.0_file'
2019-04-16 10:18:35 0146 LET lastReloadCompare = If(LastReloadSource=1,lastReloadCompare,cutoffDate)
2019-04-16 10:18:35 0148 TRACE Last Reload Compare time = 2018-04-16. CutoffDate = 2018-04-16.
2019-04-16 10:18:35 0148 Last Reload Compare time = 2018-04-16. CutoffDate = 2018-04-16.
2019-04-16 10:18:35 0149
2019-04-16 10:18:35 0149 DISCONNECT
2019-04-16 10:18:35 0150 ENDIF
2019-04-16 10:18:35 0152 SET errormode = 1
2019-04-16 10:18:35 0154 ENDIF // For db_v_file_override---> verifying existence of active logging database
2019-04-16 10:18:35 0155 ENDSUB
2019-04-16 10:18:35 1256 REM *** *** *** ********* *** *** *** ***
2019-04-16 10:18:35 1257 CALL loadBaseTable ('LogContent', 'lib://ServerLogFolder/governanceLicenseLog_7.10.0_file') // Main License_Repository logs
2019-04-16 10:18:35 0202 Let baseFileSize = FileSize('lib://ServerLogFolder/governanceLicenseLog_7.10.0_file.qvd')
2019-04-16 10:18:35 0204 IF baseFileSize > 0 THEN // Yes - QVD exists = not first load
2019-04-16 10:18:35 0223 trace Initial Load
2019-04-16 10:18:35 0223 Initial Load
2019-04-16 10:18:35 0224
2019-04-16 10:18:35 0224 Let firstReload = 1
2019-04-16 10:18:35 0225 LET lastReloadCompare = num(cutoffDate)
2019-04-16 10:18:35 0226 Let LastReloadTime = timestamp(cutoffDate)
2019-04-16 10:18:35 0228 IF nombre = 'LogContent' THEN // License Repository log data
2019-04-16 10:18:35 0229 LogContent:
2019-04-16 10:18:35 0230 NoConcatenate
2019-04-16 10:18:35 0231 Load * Inline [Id, LogEntryPeriodStart, LogTimeStamp,Hostname,Message
2019-04-16 10:18:35 0232 ]
2019-04-16 10:18:35 5 fields found: Id, LogEntryPeriodStart, LogTimeStamp, Hostname, Message,
2019-04-16 10:18:35 0 lines fetched
2019-04-16 10:18:35 0233 ELSEIF nombre = 'sessionData' THEN // nombre = 'sessionData' > Session_Engine log data
2019-04-16 10:18:35 0241 END IF
2019-04-16 10:18:35 0243 LET NoOfRowsLogContentBASE = NoOfRows('LogContent')
2019-04-16 10:18:35 0245 ENDSUB
2019-04-16 10:18:35 1258 CALL loadBaseTable ('sessionData','lib://ServerLogFolder/governanceSession_7.10.0') // Session_Engine log for App Name TODO App Name for License
2019-04-16 10:18:35 0202 Let baseFileSize = FileSize('lib://ServerLogFolder/governanceSession_7.10.0.qvd')
2019-04-16 10:18:35 0204 IF baseFileSize > 0 THEN // Yes - QVD exists = not first load
2019-04-16 10:18:35 0223 trace Initial Load
2019-04-16 10:18:35 0223 Initial Load
2019-04-16 10:18:35 0224
2019-04-16 10:18:35 0224 Let firstReload = 1
2019-04-16 10:18:35 0225 LET lastReloadCompare = num(cutoffDate)
2019-04-16 10:18:35 0226 Let LastReloadTime = timestamp(cutoffDate)
2019-04-16 10:18:35 0228 IF nombre = 'LogContent' THEN // License Repository log data
2019-04-16 10:18:35 0234 sessionData:
2019-04-16 10:18:35 0235 NoConcatenate
2019-04-16 10:18:35 0236 Load * Inline [ProxySessionId,LogTimeStamp]
2019-04-16 10:18:35 2 fields found: ProxySessionId, LogTimeStamp,
2019-04-16 10:18:35 0 lines fetched
2019-04-16 10:18:35 0237 ELSE
2019-04-16 10:18:35 0241 END IF
2019-04-16 10:18:35 0243 LET NoOfRowssessionDataBASE = NoOfRows('sessionData')
2019-04-16 10:18:35 0245 ENDSUB
2019-04-16 10:18:35 1260 REM *** *** ***
2019-04-16 10:18:35 1261 CALL CommandList
2019-04-16 10:18:35 0180 CommandList:
2019-04-16 10:18:35 0181 LOAD
2019-04-16 10:18:35 0182 Command,
2019-04-16 10:18:35 0183 CommandType
2019-04-16 10:18:35 0184 Inline [
2019-04-16 10:18:35 0185 Command, CommandType
2019-04-16 10:18:35 0186 Add license, Allocation
2019-04-16 10:18:35 0187 Add user access, Usage
2019-04-16 10:18:35 0188 Delete user access, Allocation
2019-04-16 10:18:35 0189 License maintenance, Usage
2019-04-16 10:18:35 0190 License user access, Usage
2019-04-16 10:18:35 0191 License user access request, Usage
2019-04-16 10:18:35 0192 Request access type, Usage
2019-04-16 10:18:35 0193 Update license, Allocation
2019-04-16 10:18:35 0194 Update user access, Allocation
2019-04-16 10:18:35 0195 ]
2019-04-16 10:18:35 2 fields found: Command, CommandType,
2019-04-16 10:18:35 9 lines fetched
2019-04-16 10:18:35 0197 ENDSUB
2019-04-16 10:18:35 1263 REM *** *** ***
2019-04-16 10:18:35 1264 working:
2019-04-16 10:18:35 1265 Load * inline [ProxyPackageId,RequestSequenceId]
2019-04-16 10:18:35 2 fields found: ProxyPackageId, RequestSequenceId,
2019-04-16 10:18:35 0 lines fetched
2019-04-16 10:18:35 1266 working_session:
2019-04-16 10:18:35 1267 NoConcatenate Load * Inline [ProxySessionId, LogTimeStamp]
2019-04-16 10:18:35 2 fields found: ProxySessionId, LogTimeStamp,
2019-04-16 10:18:35 0 lines fetched
2019-04-16 10:18:35 1269 REM *** *** *** ****** *** ****** *** *** *** *** *** *** ****** *** *** *** ***
2019-04-16 10:18:35 1270 IF db_v_file = 1 THEN // File logs as source
2019-04-16 10:18:35 1271 CALL logList
2019-04-16 10:18:35 0159 logList:
2019-04-16 10:18:35 0160 LOAD * INLINE [
2019-04-16 10:18:35 0161 logService, logArea, logType, logStart, logAddlFields,logAddlFilter
2019-04-16 10:18:35 0162 Repository, Audit, Security,Timestamp,fieldsAuditSecurity,additionalFilterAuditSecurity
2019-04-16 10:18:35 0163
2019-04-16 10:18:35 0164 ]
2019-04-16 10:18:35 6 fields found: logService, logArea, logType, logStart, logAddlFields, logAddlFilter,
2019-04-16 10:18:35 1 lines fetched
2019-04-16 10:18:35 0165 ENDSUB
2019-04-16 10:18:35 1272 CALL defineFields
2019-04-16 10:18:35 0172 LET fieldsAuditSecurity = ''
2019-04-16 10:18:35 0174 ENDSUB
2019-04-16 10:18:35 1273 CALL multiNodeConfig
2019-04-16 10:18:35 0251 FOR each folder in DirList(archivedLogsFolder & '*')
2019-04-16 10:18:35 Error: Connection not found: ArchivedLogsFolder
2019-04-16 10:18:35 Execution Failed
2019-04-16 10:18:35 Execution finished.
Hi,
I'm getting type of error while running Monitor License task. Please help me to resolve it.
In addition to my above post, we have replaced localhost to our server . But still issue exists. Please help us asap.
Hi,
Below link might help you to get issue fixed
Regards,
Anupam
What solution applied?
Hi Kishore,
I have added ArchievedLog folder @ c:/programdata/Qlik/Sense/Repository/,do I need to change the folder connection to?
Thanks and Regards
Suhasini G Metri