Difference between revisions of "Retain Logs"
(→Getting a message) |
(→Receive Item) |
||
Line 271: | Line 271: | ||
===Receive Item=== | ===Receive Item=== | ||
− | + | The following message has the subject: "UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171" with 2 attachments: utf.txt and shuffled.csv | |
− | 12: | + | 12:19:03, 471[http-bio-48080-exec-5] [INFO ] index: ========================================================================================== |
− | 12: | + | 12:19:03, 471[http-bio-48080-exec-5] [TRACE] index: index.jsp: began |
− | 12: | + | 12:19:03, 471[Store_1468952343471_28125] [TRACE] StoreEmail: receiving document... |
− | 12: | + | 12:19:03, 471[Store_1468952343471_28125] [TRACE] IndexingOperationsImpl: IndexAdmin().isInitialized(): true |
− | 12: | + | 12:19:03, 471[Store_1468952343471_28125] [INFO ] StoreEmail: #begin archiving: DDB2E4039E3B4C6AFF18ECD1FD30A29F 6820dc7924bd77479af526bf5cb3282c00000000010d#6820dc7924bd77479af526bf5cb3282c0000b051f4d3 46B808CC98C3ED7B988353761D0A116B9B97115EE5E8524BD5DF2A8B8DFBCE7D |
− | 12: | + | 12:19:03, 471[Store_1468952343471_28125] [INFO ] StoreEmail: userID: test19@gwava.net |
− | 12: | + | 12:19:03, 471[Store_1468952343471_28125] [TRACE] StoreEmail: file received: "UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171.txt" (541 bytes) |
− | 12: | + | 12:19:03, 471[Store_1468952343471_28125] [TRACE] StoreEmail: file received, ContentLength: 2143 bytes |
− | 12: | + | 12:19:03, 471[Store_1468952343471_28125] [TRACE] StoreEmail: request.getContentLength() - (metaDataLength+2) = 374 |
− | 12: | + | 12:19:03, 471[Store_1468952343471_28125] [TRACE] StoreEmail: asDoc.compressedSize = 374 |
− | 12: | + | 12:19:03, 471[Store_1468952343471_28125] [DEBUG] SingleProcessStorageEngine: receiving document UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171.txt done. hash:46B808CC98C3ED7B988353761D0A116B9B97115EE5E8524BD5DF2A8B8DFBCE7D |
− | 12: | + | 12:19:04, 002[Store_1468952343471_28125] [TRACE] PartitionCache: Def Partition Path: PARTITION:id=0;name=default;path=E:\Retain\archive;bt=1468952344;et=0 |
− | 12: | + | 12:19:04, 815[Store_1468952343471_28125] [INFO ] RetainDBStorageEngine: About to commmit transaction null |
− | 12: | + | 12:19:04, 846[Store_1468952343471_28125] [DEBUG] RetainDBStorageEngine: [HibernateUtil.insertMessage]: , msgID: 6820dc7924bd77479af526bf5cb3282c00000000010d#6820dc7924bd77479af526bf5cb3282c0000b051f4d3, uuid: 66cd42a7-1e0c-4c76-a461-e4c81726dbfb, doc: com.gwava.dao.social.Document id=12149617, hash=46B808CC98C3ED7B988353761D0A116B9B97115EE5E8524BD5DF2A8B8DFBCE7D |
− | + | 12:19:04, 846[Store_1468952343471_28125] [DEBUG] RetainDBStorageEngine: UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171 - attachments hasChanged: true | |
− | + | 12:19:05, 737[Store_1468952343471_28125] [DEBUG] RetainDBStorageEngine: "UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171.txt" has parent: \test19\Inbox isSubmail: false has changed: true | |
− | 12: | + | 12:19:05, 737[Store_1468952343471_28125] [DEBUG] RetainDBStorageEngine: check if indexing needed... |
− | 12: | + | 12:19:05, 737[Store_1468952343471_28125] [DEBUG] StoreEmail: archiving document...done |
− | 12: | + | 12:19:05, 737[Store_1468952343471_28125] [TRACE] StoreEmail: All dummy bytes read (5) |
− | 12: | + | 12:19:05, 737[Store_1468952343471_28125] [INFO ] StoreEmail: #done archiving: 6820dc7924bd77479af526bf5cb3282c00000000010d#6820dc7924bd77479af526bf5cb3282c0000b051f4d3 46B808CC98C3ED7B988353761D0A116B9B97115EE5E8524BD5DF2A8B8DFBCE7D |
− | 12: | + | 12:19:05, 737[http-bio-48080-exec-5] [TRACE] index: index.jsp: ended gracefully |
− | 12: | + | |
− | + | ||
===Job Ending=== | ===Job Ending=== |
Revision as of 21:27, 19 July 2016
When attempting to troubleshoot Retain the logs will be the greatest help to you.
Contents |
Logging Overview
There are a few different logs that you will encounter. They are found in the logs directory [1] This page will talk about the main ones:
- RetainWorker which contains the job log. This will be on the server that hosts the worker agent.
- RetainServer which contains the server log, what messages it received, indexed, and deleted. This will be on the server that hosts the Retain server.
- RetainStatServer which contains the Reporting and Monitoring log. This will be on the server that hosts the Reporting and Monitoring server.
- Indexer which contains what messages were indexed. This will be on the server that hosts the Indexer.
Logging is enabled and configured in a few places:
- Server Configuration/Logging
- Workers/<workername>/Logging
- Reporting and Monitoring/Logging
Log files are closed and compress at midnight each day. By default, logs are kept for 10 days before being deleted, but that can be changed by the customer. There are some logs that are not included like the catalina.out which needs to be removed from time to time when it grows too large.
Logging Levels
There are four logging levels:
- Error Only
- Normal (Info)
- Verbose (Debug)
- Diagnostic (Trace)
We recommend Diagnostic because it contains all relevant data. That means the logs can be very large and somewhat cluttered but there are techniques for making reading the logs easier.
Monitoring and Reading Log Files
We prefer having logs set to Diagnostic so we can just capture the error the first time and not have the customer have to attempt to repeat it as an archive job can take a long time to run.
Utilities for Reading Logs
Log files can be large text files, sometimes very large. You will need a text editor to view the log.
Linux
Linux has some built-in commands that are very handy
less
is a built-in text editor in linux. It is very powerful with search capabililties using / and ?, it can also tail a running log with Shift-F.tail
to tail or watch a running log file.
Windows
While Windows does come with NotePad, it cannot handle very large text files. You will need a third-party Windows Utilities
- NotePad++ which can also tail files can open typical log Retain log files, but will refuse to open very large log files.
- TextPad can open larger log files and has very powerful search capabilities, but cannot tail a log.
- baretail can tail a running log file, it can highlight text but doesn't have search capabilities.
- glogg is able to open the rare very large log file.
Generally, we install baretail to be able to watch a job run, but if we need to analyze a log we would use NotePad++ or TextPad for their strong search capabilities.
RetainWorker log
This log is against an Exchange 2013 system, but the principles apply to each email system even if the details may differ. The Worker log contains what happens as the worker connects to the email system and gets messages. You want to have the logs run in Diagnostic mode which is set in the Logging tab of the Worker web object in the Retain admin console.
Job Start
When a job begins there will be a header that looks something like this:
2016-07-05 16:30:00,022 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.jobs.quartz.QuartzTriggerListener: FIRED: This trigger is a recurring friendly job name = Daily EX Trigger 'ECD7EFFD600E95C66902048EE9A47EB5_triggerGroup.ECD7EFFD600E95C66902048EE9A47EB5_triggerName': triggerClass: 'org.quartz.CronTrigger isVolatile: false calendar: 'null' misfireInstruction: 0 nextFireTime: Wed Jul 06 16:30:00 MDT 2016 2016-07-05 16:30:00,054 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.jobs.RetainArchiveJob: Add Daily EX (ECD7EFFD600E95C66902048EE9A47EB5) to queue [] 2016-07-05 16:30:00,054 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.jobs.RetainArchiveJob: Job Daily EX (ECD7EFFD600E95C66902048EE9A47EB5) is in a RUNNING state 2016-07-05 16:30:00,054 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.jobs.RetainArchiveJob: Job memory: (free/max/total): (2996635/7459840/7459840) 2016-07-05 16:30:00,054 INFO [RTWQuartzScheduler_Archive_Worker-9] com.gwava.jobs.RetainArchiveJob: Starting scheduled Archive job ECD7EFFD600E95C66902048EE9A47EB5 @ Tue Jul 05 16:30:00 MDT 2016 2016-07-05 16:30:00,084 TRACE [Stubber-1467757800054] com.gwava.jobs.stubbing.BGStubber: Background Stubbing thread coming to life ... 2016-07-05 16:30:00,537 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.job.stats.RQStatsUpdater: Creating new stat tracker for thread: RTWQuartzScheduler_Archive_Worker-9 2016-07-05 16:30:00,537 INFO [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Job starting Daily EX 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Mail System : exchange 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Profile Settings applied to this job : 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Profile Name : Item Store Flag 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Mailbox Type : Users 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Item Type : Mail, Appointment, Note, Task 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Item Source : All 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Message Status : Opened Doesn't Matter|Read Doesn't Matter|Private Doesn't Matter|Personal Doesn't Matter|Confidential Doesn't Matter 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Scope 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Date Range to Scan : All Messages (ignore date) 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Duplicate Check : Ignore all messages older than item store flag 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Set Storage Flags : Don't set Purge flag, Don't set Retention flag, Set Item Store flag 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Miscellaneous 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Store Attachments : Store all attachments 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Store/index Internet Headers : true 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Include Routing Properties : true 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Include Shared Folders : all 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Advanced 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Advanced Criteria : 0 2016-07-05 16:30:00,537 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Folder Scope : all
There will be a section of getting the user list just after this.
Logging in as a User
Then Retain begins the data dredge by entering user mailboxes:
2016-07-05 16:31:51,522 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: ============================================================================================= 2016-07-05 16:31:51,522 INFO [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Logging in as : test19@gwava.net to dredge their mailbox. 2016-07-05 16:31:51,522 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.ews.jobs.ProcessExchFilters: profile.getDateType(): 1 2016-07-05 16:31:51,522 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.ews.jobs.ProcessExchFilters: profile.getDateType(): All Messages (ignore date) 2016-07-05 16:31:51,522 INFO [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: - Query Range Used: 2016-07-05 16:31:51,522 INFO [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: - GTE:1970-01-01 00:00:00 2016-07-05 16:31:51,522 INFO [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: - LTE:2016-07-05 22:31:51 2016-07-05 16:31:51,522 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.archive.process.RetainUser: Begin login of test19@gwava.net 2016-07-05 16:31:51,522 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.http.RetainServerCommunication: RetainServerCommunication.obtainHTTPResponseCodeAndData() - About to post to : http://10.1.4.52:48080/RetainServer/Server/ServerController2.jsp Params:{emailSystem=exchange, password=WVVTSUJURE5OQU9ORFVaTVRHVA==, mailbox=test19@gwava.net, method=checkIfUserExists, abSystem=exchange, domain=sf.gwava.net, display=test19, uuid=779d94ef38f5164f97cc4b38ed03299e, archiverID=DDB2E4039E3B4C6AFF18ECD1FD30A29F, email=test19@sf.gwava.net, po=SFEX13SRV} 2016-07-05 16:31:51,538 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.http.HttpUIDResolver: checkIfUserExists response: OK: USER EXISTS ::: 66cd42a7-1e0c-4c76-a461-e4c81726dbfb 2016-07-05 16:31:51,538 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.archive.process.RetainUser: End login of test19@gwava.net 2016-07-05 16:31:51,538 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.jobs.stats.StatsUpdater: updating job status information name: lastmailboxnumber 2016-07-05 16:31:51,538 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.http.RetainServerCommunication: RetainServerCommunication.obtainHTTPResponseCodeAndData() - About to post to : http://10.1.4.52:48080/RetainServer/Server/ServerController2.jsp Params:{emailSystem=exchange, jobid=ECD7EFFD600E95C66902048EE9A47EB5, password=WVVTSUJURE5OQU9ORFVaTVRHVA==, method=svStatus, proc_id=null, f_order=1, lastmailboxnumber=2, archiverID=DDB2E4039E3B4C6AFF18ECD1FD30A29F} 2016-07-05 16:31:51,803 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.jobs.stats.StatsUpdater: updating job status information name: lastmailbox 2016-07-05 16:31:51,803 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.http.RetainServerCommunication: RetainServerCommunication.obtainHTTPResponseCodeAndData() - About to post to : http://10.1.4.52:48080/RetainServer/Server/ServerController2.jsp Params:{emailSystem=exchange, jobid=ECD7EFFD600E95C66902048EE9A47EB5, password=WVVTSUJURE5OQU9ORFVaTVRHVA==, lastmailbox=test19@gwava.net, method=svStatus, proc_id=null, f_order=1, archiverID=DDB2E4039E3B4C6AFF18ECD1FD30A29F} 2016-07-05 16:31:52,102 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.jobs.stats.StatsUpdater: updating job status information name: lastpo 2016-07-05 16:31:52,102 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.http.RetainServerCommunication: RetainServerCommunication.obtainHTTPResponseCodeAndData() - About to post to : http://10.1.4.52:48080/RetainServer/Server/ServerController2.jsp Params:{emailSystem=exchange, jobid=ECD7EFFD600E95C66902048EE9A47EB5, password=WVVTSUJURE5OQU9ORFVaTVRHVA==, method=svStatus, proc_id=null, f_order=1, lastpo=SFEX13SRV, archiverID=DDB2E4039E3B4C6AFF18ECD1FD30A29F} 2016-07-05 16:31:52,116 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.retain.worker.rest.client.JobStatusTracker: Starting the stat mailbox run update for user: 66cd42a7-1e0c-4c76-a461-e4c81726dbfb 2016-07-05 16:31:52,288 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.MailboxArchivingStats: enterMailbox: test19@gwava.net
Search for "Logging in as :" to find the next user.
This is followed by a list of the user's folders.
Getting a message
The following message has the subject: "UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171" with 2 attachments: utf.txt and shuffled.csv
2016-07-19 12:19:03,440 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.ews.jobs.ExchangeDredger: subject: UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171, boxtype: received 2016-07-19 12:19:03,440 DEBUG [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.Archiver: ============================================================= 2016-07-19 12:19:03,440 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.Archiver: Processing ID: 6820dc7924bd77479af526bf5cb3282c0000b051f4d3 2016-07-19 12:19:03,440 DEBUG [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.Archiver: Archive Message: 6820dc7924bd77479af526bf5cb3282c00000000010d#6820dc7924bd77479af526bf5cb3282c0000b051f4d3 2016-07-19 12:19:03,440 DEBUG [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.Archiver: Location:\test19\Inbox 2016-07-19 12:19:03,440 DEBUG [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.Archiver: Subject:UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171 2016-07-19 12:19:03,440 DEBUG [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.Archiver: Date:2016-07-19 08:19:10 2016-07-19 12:19:03,440 DEBUG [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.Archiver: Sender:script@sf.gwava.net 2016-07-19 12:19:03,440 DEBUG [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.Archiver: Recipient(s):test19@sf.gwava.net 2016-07-19 12:19:03,440 DEBUG [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.Archiver: Number of attachments: 2 2016-07-19 12:19:03,440 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.Archiver: itemType: EXCH.MessageType 2016-07-19 12:19:03,440 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.process.ArchiveMetaData: hashMapToQueryString: emailSystem=exchange&archiver=Worker1+%28Exchange%29&senderUUID=script%40sf.gwava.net&exchange.m.Sender-Name=script%40sf.gwava.net&subject=UTF8_HTML+Go-Postal+07%2F19%2F2016+02%3A19%3A09+762595171&senderDisplay=script%40sf.gwava.net&delivered=1468916350&uuid=66cd42a7-1e0c-4c76-a461-e4c81726dbfb&userid=test19%40gwava.net&dirPathIDStr=%5CRoot%5CMailbox&folderID=AAMkAGI3OGE2Mjk5LWMxZWMtNDRlNy1iOWFhLWJhNjdhZjEyYjkzYgAuAAAAAADpCgDO8OTCS66scINjm1RaAQBoINx5JL13R5r1Jr9csygsAAAAAAENAAA%3D&archiverID=DDB2E4039E3B4C6AFF18ECD1FD30A29F&itemTypeString=EXCH.MessageType&jobid=ECD7EFFD600E95C66902048EE9A47EB5&exchange.m.ci=AQHR4ZY5l5sZFHaJsEW3wtM6F233Ew%3D%3D&exchange.m.dateReceived=2016-07-19T08%3A19%3A10Z&password=WVVTSUJURE5OQU9ORFVaTVRHVA%3D%3D&dirPath=%5Ctest19%5CInbox&from=script%40sf.gwava.net&categories=&exchange.m.ct=UTF8_HTML+Go-Postal+07%2F19%2F2016+02%3A19%3A09+762595171&exchange.m.foldertype=inbox&exchange.m.Sender-Routing-Type=SMTP&personalSubject=&friendlyname=Daily+EX&expireDays=0&exchange.m.Sender-Email=script%40sf.gwava.net&parentFolderID=6820dc7924bd77479af526bf5cb3282c00000000010d&created=1468916350&msgid=6820dc7924bd77479af526bf5cb3282c00000000010d%236820dc7924bd77479af526bf5cb3282c0000b051f4d3&priority=Standard&exchange.m.sensitivity=Normal&isSubmail=false&boxTypeString=received&recipients=0%3Atest19%3Atest19%40sf.gwava.net%3A%3B&exchange.m.itemClass=IPM.Note&item.class=com.microsoft.schemas.exchange.services._2006.types.MessageType&attachmentCount=2&exchange.m.dateSent=2016-07-19T08%3A19%3A09Z&internet=false&status= 2016-07-19 12:19:03,440 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.process.ArchiveMetaData: hashMapToQueryString: emailSystem=exchange&archiver=Worker1+%28Exchange%29&senderUUID=script%40sf.gwava.net&exchange.m.Sender-Name=script%40sf.gwava.net&subject=UTF8_HTML+Go-Postal+07%2F19%2F2016+02%3A19%3A09+762595171&senderDisplay=script%40sf.gwava.net&delivered=1468916350&filesize=541&uuid=66cd42a7-1e0c-4c76-a461-e4c81726dbfb&userid=test19%40gwava.net&dirPathIDStr=%5CRoot%5CMailbox&folderID=AAMkAGI3OGE2Mjk5LWMxZWMtNDRlNy1iOWFhLWJhNjdhZjEyYjkzYgAuAAAAAADpCgDO8OTCS66scINjm1RaAQBoINx5JL13R5r1Jr9csygsAAAAAAENAAA%3D&archiverID=DDB2E4039E3B4C6AFF18ECD1FD30A29F&itemTypeString=EXCH.MessageType&finalpart=no&jobid=ECD7EFFD600E95C66902048EE9A47EB5&exchange.m.ci=AQHR4ZY5l5sZFHaJsEW3wtM6F233Ew%3D%3D&exchange.m.dateReceived=2016-07-19T08%3A19%3A10Z&password=WVVTSUJURE5OQU9ORFVaTVRHVA%3D%3D&dirPath=%5Ctest19%5CInbox&from=script%40sf.gwava.net&categories=&contentType=bodytext%2Fplain&exchange.m.ct=UTF8_HTML+Go-Postal+07%2F19%2F2016+02%3A19%3A09+762595171&exchange.m.foldertype=inbox&exchange.m.Sender-Routing-Type=SMTP&personalSubject=&friendlyname=Daily+EX&expireDays=0&exchange.m.Sender-Email=script%40sf.gwava.net&parentFolderID=6820dc7924bd77479af526bf5cb3282c00000000010d&created=1468916350&msgid=6820dc7924bd77479af526bf5cb3282c00000000010d%236820dc7924bd77479af526bf5cb3282c0000b051f4d3&priority=Standard&exchange.m.sensitivity=Normal&isSubmail=false&boxTypeString=received&compressedSize=374&filename=UTF8_HTML+Go-Postal+07%2F19%2F2016+02%3A19%3A09+762595171.txt&recipients=0%3Atest19%3Atest19%40sf.gwava.net%3A%3B&exchange.m.itemClass=IPM.Note&item.class=com.microsoft.schemas.exchange.services._2006.types.MessageType&attachmentCount=2&exchange.m.dateSent=2016-07-19T08%3A19%3A09Z&hash=46B808CC98C3ED7B988353761D0A116B9B97115EE5E8524BD5DF2A8B8DFBCE7D&internet=false&status= 2016-07-19 12:19:03,440 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.http.RetainServerCommunication: Sending data and waiting for response. 2016-07-19 12:19:03,440 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.http.HTTPWrapper2: using ApacheClient with TimedHttpMethodRetryHandler... 2016-07-19 12:19:03,440 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.http.HTTPWrapper2: headerstream.length: 1764 dataStream: 374 2016-07-19 12:19:05,737 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.process.ArchiveEmail: sent mail textbody with subject: UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171, server-response: Archive: OK: All is well. Result=AddedEMails: 1, emailID=4138831, parentID=13 2016-07-19 12:19:05,737 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.process.ArchiveEmail: +++msgCount: 1 2016-07-19 12:19:05,737 DEBUG [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.process.ArchiveEmail: archiveEmail: processing binary attachment, subject: UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171, att-name: shuffled.csv, isItem: false, size: 592... 2016-07-19 12:19:05,737 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.process.ArchiveAttachment: Skipping check for whether the instance exists 2016-07-19 12:19:05,737 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.http.RetainServerCommunication: Sending data and waiting for response. 2016-07-19 12:19:05,737 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.http.HTTPWrapper2: using ApacheClient with TimedHttpMethodRetryHandler... 2016-07-19 12:19:05,737 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.http.HTTPWrapper2: headerstream.length: 1862 dataStream: 264 2016-07-19 12:19:06,034 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.process.ArchiveAttachment: Send a nice healthy blob:Archive: OK: All is well. Result=AddedEMails: 0, emailID=4138831, parentID=13 2016-07-19 12:19:06,034 DEBUG [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.process.ArchiveEmail: archiveEmail: processing binary attachment, subject: UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171, att-name: utf.txt, isItem: false, size: 2050... 2016-07-19 12:19:06,034 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.process.ArchiveAttachment: Skipping check for whether the instance exists 2016-07-19 12:19:06,034 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.http.RetainServerCommunication: Sending data and waiting for response. 2016-07-19 12:19:06,034 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.http.HTTPWrapper2: using ApacheClient with TimedHttpMethodRetryHandler... 2016-07-19 12:19:06,034 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.http.HTTPWrapper2: headerstream.length: 1858 dataStream: 778 2016-07-19 12:19:07,056 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.process.ArchiveAttachment: Send a nice healthy blob:Archive: OK: All is well. Result=AddedEMails: 0, emailID=4138831, parentID=13 2016-07-19 12:19:07,056 DEBUG [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.process.ArchiveEmail: archiveEmail: processing binary attachment, subject: UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171, att-name: headers.822, isItem: false, size: 884... 2016-07-19 12:19:07,056 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.process.ArchiveAttachment: Skipping check for whether the instance exists 2016-07-19 12:19:07,056 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.http.RetainServerCommunication: Sending data and waiting for response. 2016-07-19 12:19:07,056 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.http.HTTPWrapper2: using ApacheClient with TimedHttpMethodRetryHandler... 2016-07-19 12:19:07,056 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.http.HTTPWrapper2: headerstream.length: 1808 dataStream: 347 2016-07-19 12:19:08,206 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.process.ArchiveAttachment: Send a nice healthy blob:Archive: OK: All is well. Result=AddedEMails: 0, emailID=4138831, parentID=13 2016-07-19 12:19:08,206 TRACE [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.process.ArchiveEmail: EmailID: 4138831, parentID: 13, stubbingStage: 0 2016-07-19 12:19:08,206 DEBUG [RTWQuartzScheduler_Archive_Worker-4] com.gwava.caapi.Archiver: Message archived succesfully!
If the message already exists in the Retain archive you'll see a message like this:
2016-07-05 16:31:49,803 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.Archiver: Message was previously archived so skipped!
Leaving a Mailbox
2016-07-05 16:31:51,303 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.archive.process.DateFlagManager: Using MaxItemRetention-Date 2016-07-05 16:31:51,303 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.archive.process.DateFlagManager: Last archived mail Retention date=Thu Oct 22 10:49:58 MDT 2015 Last mail before first error mail Retention date=Wed Dec 31 17:00:00 MST 1969 Max mail Retention date=Thu Oct 22 10:49:58 MDT 2015 Mailbox login time=Tue Jul 05 16:30:13 MDT 2016 Date Chosen:Thu Oct 22 10:48:58 MDT 2015 2016-07-05 16:31:51,303 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.MailboxArchivingStats: Calculated date-flag TimeStamp: (Thu Oct 22 10:48:58 MDT 2015) 2016-07-05 16:31:51,303 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.http.RetainServerCommunication: RetainServerCommunication.obtainHTTPResponseCodeAndData() - About to post to : http://10.1.4.52:48080/RetainServer/Server/ServerController2.jsp Params:{emailSystem=exchange, 4112started=1467757897334, method=svStatus, 4112earlyexited=false, proc_id=null, 4112mailboxerrortotal=0, archiverID=DDB2E4039E3B4C6AFF18ECD1FD30A29F, jobid=ECD7EFFD600E95C66902048EE9A47EB5, 4112mailboxprocessed=1, password=WVVTSUJURE5OQU9ORFVaTVRHVA==, 4112mailboxwarntotal=0, 4112useraborted=false, 4112ended=1467757911303, 4112mailboxmessagetotal=0, 4112dateflags=, 4112mailboxintuuid=533e8805-1c3f-49eb-b597-350d3ab1b7b9} 2016-07-05 16:31:51,522 INFO [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Cumulative mails processed for this job: 0 2016-07-05 16:31:51,522 INFO [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Cumulative mails archived for this job: 0 2016-07-05 16:31:51,522 INFO [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Cumulative errors for this job: 0 2016-07-05 16:31:51,522 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Logging out... 2016-07-05 16:31:51,522 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.ews.RetainExchangeWebserviceFactory: invoking retainews method: deleteStreamedDirectory - 1467757911522
End of the Job
2016-07-05 23:55:08,494 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.archive.process.DateFlagManager: Using MaxItemRetention-Date 2016-07-05 23:55:08,494 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.archive.process.DateFlagManager: Last archived mail Retention date=Fri May 27 14:18:52 MDT 2016 Last mail before first error mail Retention date=Wed Dec 31 17:00:00 MST 1969 Max mail Retention date=Fri May 27 14:18:52 MDT 2016 Mailbox login time=Tue Jul 05 16:30:13 MDT 2016 Date Chosen:Fri May 27 14:17:52 MDT 2016 2016-07-05 23:55:08,494 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.MailboxArchivingStats: Calculated date-flag TimeStamp: (Fri May 27 14:17:52 MDT 2016) 2016-07-05 23:55:08,494 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.http.RetainServerCommunication: RetainServerCommunication.obtainHTTPResponseCodeAndData() - About to post to : http://10.1.4.52:48080/RetainServer/Server/ServerController2.jsp Params:{emailSystem=exchange, 4112started=1467784457771, method=svStatus, 4112earlyexited=false, proc_id=null, 4112mailboxerrortotal=0, archiverID=DDB2E4039E3B4C6AFF18ECD1FD30A29F, jobid=ECD7EFFD600E95C66902048EE9A47EB5, 4112mailboxprocessed=1, password=WVVTSUJURE5OQU9ORFVaTVRHVA==, 4112mailboxwarntotal=0, 4112useraborted=false, 4112ended=1467784508494, 4112mailboxmessagetotal=0, 4112dateflags=, 4112mailboxintuuid=ca727e52-c039-4e2e-bb2e-be57851e2ae8} 2016-07-05 23:55:08,593 INFO [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Cumulative mails processed for this job: 0 2016-07-05 23:55:08,593 INFO [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Cumulative mails archived for this job: 0 2016-07-05 23:55:08,593 INFO [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Cumulative errors for this job: 0 2016-07-05 23:55:08,593 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Logging out... 2016-07-05 23:55:08,593 TRACE [RTWQuartzScheduler_Archive_Worker-9] com.gwava.ews.RetainExchangeWebserviceFactory: invoking retainews method: deleteStreamedDirectory - 1467784508593 2016-07-05 23:55:08,618 INFO [RTWQuartzScheduler_Archive_Worker-9] com.gwava.caapi.process.RetainDredger: Job ending : Daily EX 2016-07-05 23:55:08,618 DEBUG [RTWQuartzScheduler_Archive_Worker-9] com.gwava.jobs.stats.StatsUpdater: archived 10031 msgs for this job. Job total Errors: 0
Error Messages
There are many error codes, so this is just a single sample.
2016-07-05 23:55:15,491 ERROR [RTWQuartzScheduler_Archive_Worker-1] com.gwava.workerutils.DefaultCAAPIErrorHandleStrategy: reportError: Process Archive Job :: com.gwava.workerutils.DefaultCAAPIErrorHandleStrategy.returnCaller:55 :: com.gwava.archive.exceptions.RetainWorkerFatalException: com.gwava.archive.exceptions.RetainWorkerException: com.gwava.archive.exceptions.RetainWorkerFatalException: at com.gwava.caapi.process.RetainDredger.processNormalJob(RetainDredger.java:272) at com.gwava.ews.jobs.ExchangeDredger.executeWork(ExchangeDredger.java:509) at com.gwava.jobs.RetainArchiveJob.performDredge(RetainArchiveJob.java:567) at com.gwava.jobs.RetainArchiveJob.execute(RetainArchiveJob.java:235) at com.gwava.jobs.RetainArchiveJob.execute(RetainArchiveJob.java:448) at org.quartz.core.JobRunShell.run(JobRunShell.java:216) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) Caused by: com.gwava.archive.exceptions.RetainWorkerFatalException: at com.gwava.ews.jobs.selection.LiveEWSUserSelection.resolveArchiveSource(LiveEWSUserSelection.java:91) at com.gwava.ews.jobs.selection.EWSUserSelection.getListOfUsers(EWSUserSelection.java:112) at com.gwava.ews.jobs.ExchangeDredger.getListOfUsers(ExchangeDredger.java:142) at com.gwava.ews.jobs.ExchangeDredger.getListOfUsers(ExchangeDredger.java:48) at com.gwava.caapi.process.RetainDredger.processNormalJob(RetainDredger.java:270) ... 6 more Caused by: javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-03100213, problem 2001 (NO_OBJECT), data 0, best match of: ]; remaining name '<GUID=e3d02cb7937f7f4e957efe9218b19193>' at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3160) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3081) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2888) at com.sun.jndi.ldap.LdapCtx.c_getAttributes(LdapCtx.java:1329) at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirContext.java:235) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:141) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:129) at javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:142) at com.gwava.address.exchange.impl.UserViaGUIDLDAP.getUserForDN(UserViaGUIDLDAP.java:60) at com.gwava.address.exchange.impl.UserViaGUIDLDAP.getUser(UserViaGUIDLDAP.java:47) at com.gwava.address.exchange.impl.UserViaGUIDLDAP.performOperation(UserViaGUIDLDAP.java:99) at com.gwava.ews.jobs.selection.LiveEWSUserSelection.processIncludeUserSource(LiveEWSUserSelection.java:151) at com.gwava.ews.jobs.selection.LiveEWSUserSelection.resolveArchiveSource(LiveEWSUserSelection.java:80) ... 10 more
An LDAP 32 is one that is in the knowledgebase [2].
Most errors have been documented now. Often you just have to find the first error after the beginning of the job and you have the issue that needs to be fixed. Error stacks can be quite long and you'll need to find the top, there may be warnings above it that have some details as well.
Worker Log Reading Techniques
When troubleshooting a particular error is not fixing things you may have to change how you see what is happening in the logs.
There is a lot more information in the logs then is useful sometimes. So you have to find a way to pull signal from all the noise. One way of doing that is to extract lines that are more useful than others.
Using an advanced text editor like TextPad is handy.
- Search for "Job starting" to find the beginning of the job and mark all instances.
- Search for "Logging in as :" to find each user and mark all.
- Search for "ERROR" and mark all. Since errors come in multi-line stacks this will only show you where they are in relation to everything else.
- Search for "Job ending :" and mark all.
- Search for "&hash=" this marks the line with all the header data being sent to the server, this line is unique for each message.
Copy all bookmarked lines and paste into a new document. Now you can see the essential information of the job with much less noise and you can see patterns better.
If there are lots of errors with a particular mailbox then it is likely that the mailbox needs to be repaired by the email system.
If you note the time it takes for each message to be archived you can see if there are any gaps that show places where a job is being slowed down. For example, if there are hundreds of recipients it will take a long time for the database to store them all and you can limit the number stored with the rest being placed in an XML file.
RetainServer log
Job Start
When a job starts it will be noted in the RetainServer log and look like this:
12:00:00, 013[RTSQuartzScheduler_QuartzSchedulerThread] [DEBUG] SimpleJobFactory: Producing instance of Job 'MODULEFORWARDGroup.MODULEFORWARDER', class=com.gwava.smtp.ModuleForwarder 12:00:00, 013[Maintain] [DEBUG] JobRunShell: Calling execute on job MODULEFORWARDGroup.MODULEFORWARDER 12:00:00, 013[Maintain] [INFO ] ModuleForwarder: Starting module forwarding job. 12:00:00, 013[Maintain] [DEBUG] ModuleForwarder: Checking for SMTP forwarding. 12:00:00, 029[Maintain] [DEBUG] ModuleForwarder: Checking for FTP/FTPS forwarding. 12:00:00, 029[Maintain] [INFO ] FTPPostArchiveListener: No messages to forward. 12:00:00, 029[Maintain] [DEBUG] FTPPostArchiveListener: Notifying queue thread. 12:00:00, 123[http-bio-48080-exec-7] [INFO ] AppController: Location of Catalina.base: E:\Program Files\Beginfinite\Retain\Tomcat 7.0\logs 12:00:00, 123[http-bio-48080-exec-7] [INFO ] AppController: Logs space left : 32639156224
Receive Item
The following message has the subject: "UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171" with 2 attachments: utf.txt and shuffled.csv
12:19:03, 471[http-bio-48080-exec-5] [INFO ] index: ========================================================================================== 12:19:03, 471[http-bio-48080-exec-5] [TRACE] index: index.jsp: began 12:19:03, 471[Store_1468952343471_28125] [TRACE] StoreEmail: receiving document... 12:19:03, 471[Store_1468952343471_28125] [TRACE] IndexingOperationsImpl: IndexAdmin().isInitialized(): true 12:19:03, 471[Store_1468952343471_28125] [INFO ] StoreEmail: #begin archiving: DDB2E4039E3B4C6AFF18ECD1FD30A29F 6820dc7924bd77479af526bf5cb3282c00000000010d#6820dc7924bd77479af526bf5cb3282c0000b051f4d3 46B808CC98C3ED7B988353761D0A116B9B97115EE5E8524BD5DF2A8B8DFBCE7D 12:19:03, 471[Store_1468952343471_28125] [INFO ] StoreEmail: userID: test19@gwava.net 12:19:03, 471[Store_1468952343471_28125] [TRACE] StoreEmail: file received: "UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171.txt" (541 bytes) 12:19:03, 471[Store_1468952343471_28125] [TRACE] StoreEmail: file received, ContentLength: 2143 bytes 12:19:03, 471[Store_1468952343471_28125] [TRACE] StoreEmail: request.getContentLength() - (metaDataLength+2) = 374 12:19:03, 471[Store_1468952343471_28125] [TRACE] StoreEmail: asDoc.compressedSize = 374 12:19:03, 471[Store_1468952343471_28125] [DEBUG] SingleProcessStorageEngine: receiving document UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171.txt done. hash:46B808CC98C3ED7B988353761D0A116B9B97115EE5E8524BD5DF2A8B8DFBCE7D 12:19:04, 002[Store_1468952343471_28125] [TRACE] PartitionCache: Def Partition Path: PARTITION:id=0;name=default;path=E:\Retain\archive;bt=1468952344;et=0 12:19:04, 815[Store_1468952343471_28125] [INFO ] RetainDBStorageEngine: About to commmit transaction null 12:19:04, 846[Store_1468952343471_28125] [DEBUG] RetainDBStorageEngine: [HibernateUtil.insertMessage]: , msgID: 6820dc7924bd77479af526bf5cb3282c00000000010d#6820dc7924bd77479af526bf5cb3282c0000b051f4d3, uuid: 66cd42a7-1e0c-4c76-a461-e4c81726dbfb, doc: com.gwava.dao.social.Document id=12149617, hash=46B808CC98C3ED7B988353761D0A116B9B97115EE5E8524BD5DF2A8B8DFBCE7D 12:19:04, 846[Store_1468952343471_28125] [DEBUG] RetainDBStorageEngine: UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171 - attachments hasChanged: true 12:19:05, 737[Store_1468952343471_28125] [DEBUG] RetainDBStorageEngine: "UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171.txt" has parent: \test19\Inbox isSubmail: false has changed: true 12:19:05, 737[Store_1468952343471_28125] [DEBUG] RetainDBStorageEngine: check if indexing needed... 12:19:05, 737[Store_1468952343471_28125] [DEBUG] StoreEmail: archiving document...done 12:19:05, 737[Store_1468952343471_28125] [TRACE] StoreEmail: All dummy bytes read (5) 12:19:05, 737[Store_1468952343471_28125] [INFO ] StoreEmail: #done archiving: 6820dc7924bd77479af526bf5cb3282c00000000010d#6820dc7924bd77479af526bf5cb3282c0000b051f4d3 46B808CC98C3ED7B988353761D0A116B9B97115EE5E8524BD5DF2A8B8DFBCE7D 12:19:05, 737[http-bio-48080-exec-5] [TRACE] index: index.jsp: ended gracefully
Job Ending
The end of the job will look like this:
13:00:25, 398[http-bio-48080-exec-6] [DEBUG] ServerController: ServerController.jsp: Method called: svStatus 13:00:25, 398[http-bio-48080-exec-6] [TRACE] LegacyStatController: processSvStatus, worker: DDB2E4039E3B4C6AFF18ECD1FD30A29F ECD7EFFD600E95C66902048EE9A47EB5 13:00:25, 413[http-bio-48080-exec-6] [DEBUG] ServerController: ServerController.jsp: Method called: svStatus 13:00:25, 413[http-bio-48080-exec-6] [TRACE] LegacyStatController: processSvStatus, worker: DDB2E4039E3B4C6AFF18ECD1FD30A29F ECD7EFFD600E95C66902048EE9A47EB5 13:00:25, 429[http-bio-48080-exec-6] [DEBUG] ServerController: ServerController.jsp: Method called: svStatus 13:00:25, 429[http-bio-48080-exec-6] [TRACE] LegacyStatController: processSvStatus, worker: DDB2E4039E3B4C6AFF18ECD1FD30A29F 13:00:25, 507[http-bio-48080-exec-6] [DEBUG] ServerController: ServerController.jsp: Method called: svStatus 13:00:25, 507[http-bio-48080-exec-6] [TRACE] LegacyStatController: processSvStatus, worker: DDB2E4039E3B4C6AFF18ECD1FD30A29F 13:00:25, 523[http-bio-48080-exec-6] [DEBUG] ServerController: ServerController.jsp: Method called: svStatus 13:00:25, 523[http-bio-48080-exec-6] [TRACE] LegacyStatController: processSvStatus, worker: DDB2E4039E3B4C6AFF18ECD1FD30A29F ECD7EFFD600E95C66902048EE9A47EB5 13:00:25, 788[http-bio-48080-exec-6] [TRACE] LegacyStatController: mb ca727e52-c039-4e2e-bb2e-be57851e2ae8 found, archived: 0, intUuid: ca727e52-c039-4e2e-bb2e-be57851e2ae8 13:00:25, 788[http-bio-48080-exec-6] [TRACE] LegacyStatController: lastmailbox, enterMailbox: ca727e52-c039-4e2e-bb2e-be57851e2ae8 archived: 0 13:00:25, 804[http-bio-48080-exec-6] [DEBUG] ServerController: ServerController.jsp: Method called: svStatus 13:00:25, 804[http-bio-48080-exec-6] [TRACE] LegacyStatController: processSvStatus, worker: DDB2E4039E3B4C6AFF18ECD1FD30A29F 13:00:25, 819[http-bio-48080-exec-6] [DEBUG] ServerController: ServerController.jsp: Method called: svStatus 13:00:25, 819[http-bio-48080-exec-6] [TRACE] LegacyStatController: processSvStatus, worker: DDB2E4039E3B4C6AFF18ECD1FD30A29F ECD7EFFD600E95C66902048EE9A47EB5 13:00:26, 694[http-bio-48080-exec-6] [DEBUG] ServerController: ServerController.jsp: Method called: svStatus 13:00:26, 694[http-bio-48080-exec-6] [TRACE] LegacyStatController: processSvStatus, worker: DDB2E4039E3B4C6AFF18ECD1FD30A29F ECD7EFFD600E95C66902048EE9A47EB5 13:00:26, 773[http-bio-48080-exec-6] [DEBUG] ServerController: ServerController.jsp: Method called: svStatus 13:00:26, 773[http-bio-48080-exec-6] [TRACE] LegacyStatController: processSvStatus, worker: DDB2E4039E3B4C6AFF18ECD1FD30A29F ECD7EFFD600E95C66902048EE9A47EB5 13:00:26, 788[http-bio-48080-exec-6] [DEBUG] ServerController: ServerController.jsp: Method called: svStatus 13:00:26, 788[http-bio-48080-exec-6] [TRACE] LegacyStatController: processSvStatus, worker: DDB2E4039E3B4C6AFF18ECD1FD30A29F ECD7EFFD600E95C66902048EE9A47EB5 13:00:26, 788[http-bio-48080-exec-6] [INFO ] LegacyStatController: Worker job has concluded 13:00:26, 804[http-bio-48080-exec-6] [DEBUG] ServerController: ServerController.jsp: Method called: svStatus 13:00:26, 804[http-bio-48080-exec-6] [TRACE] LegacyStatController: processSvStatus, worker: DDB2E4039E3B4C6AFF18ECD1FD30A29F 13:00:26, 819[http-bio-48080-exec-6] [DEBUG] ServerController: ServerController.jsp: Method called: svStatus 13:00:26, 819[http-bio-48080-exec-6] [TRACE] LegacyStatController: processSvStatus, worker: DDB2E4039E3B4C6AFF18ECD1FD30A29F ECD7EFFD600E95C66902048EE9A47EB5 13:00:26, 835[http-bio-48080-exec-6] [DEBUG] ServerController: ServerController.jsp: Method called: svStatus 13:00:26, 835[http-bio-48080-exec-6] [TRACE] LegacyStatController: processSvStatus, worker: DDB2E4039E3B4C6AFF18ECD1FD30A29F ECD7EFFD600E95C66902048EE9A47EB5 13:00:26, 851[http-bio-48080-exec-6] [DEBUG] ServerController: ServerController.jsp: Method called: svStatus 13:00:26, 851[http-bio-48080-exec-6] [TRACE] LegacyStatController: processSvStatus, worker: DDB2E4039E3B4C6AFF18ECD1FD30A29F ECD7EFFD600E95C66902048EE9A47EB5 13:00:26, 882[http-bio-48080-exec-6] [DEBUG] ServerController: ServerController.jsp: Method called: svStatus 13:00:26, 882[http-bio-48080-exec-6] [TRACE] LegacyStatController: processSvStatus, worker: DDB2E4039E3B4C6AFF18ECD1FD30A29F ECD7EFFD600E95C66902048EE9A47EB5 13:00:26, 913[http-bio-48080-exec-6] [DEBUG] ServerController: ServerController.jsp: Method called: svStatus 13:00:26, 913[http-bio-48080-exec-6] [TRACE] LegacyStatController: processSvStatus, worker: DDB2E4039E3B4C6AFF18ECD1FD30A29F ECD7EFFD600E95C66902048EE9A47EB5 13:00:27, 070[http-bio-48080-exec-3] [INFO ] JobStatusController: HeartBeat message received for JobRun: HeartBeat {ID=789, endTime=1468954826, status=1} 13:00:27, 091[HeartBeat] [TRACE] CheckHeartBeatThread: Entered CheckHeartBeatThread and will be sleeping for 10 minutes 13:00:27, 148[Thread-165589] [TRACE] JobStatusController: server endJobRun Email response.getBody() = null
Server Log Reading Techniques
Tracing a message coming into the server can be challenging because the server can be receiving data from multiple sources at the same time. You can use the threadID to do it.
A threadID is something like [http-bio-48080-exec-6]
Indexer
You would go into the Indexer logs when trying to determine why the indexer is not starting, seeing many failed items in the Server Configuration/Index tab, or if items are not being found in search.
Indexing Items
There is nothing special about when a job begins. The indexer indexes items as it is fed new data:
The following message has the subject: "UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171" with 2 attachments: utf.txt and shuffled.csv
12:19:13, 143 [DEBUG] [solrcloudQueueThread1] SolrCloudDocumentUtil: indexing: UTF8_HTML Go-Postal 07/19/2016 02:19:09 762595171.txt, filesize: 541, handlerclass: com.gwava.extractor.TextExtractor hash: 46B808CC98C3ED7B988353761D0A116B9B97115EE5E8524BD5DF2A8B8DFBCE7D 12:19:13, 143 [TRACE] [solrcloudQueueThread1] TextExtractionService: Began extraction process 12:19:13, 143 [TRACE] [solrcloudQueueThread1] Extractor: Textextractor rejected binary file 12:19:13, 143 [TRACE] [solrcloudQueueThread1] TextExtractionService: Returned from Extraction process 12:19:13, 159 [TRACE] [solrcloudQueueThread1] SolrCloudDocumentUtil: processAttachmentStreams() - Exiting attachment processing 12:19:13, 159 [TRACE] [solrcloudQueueThread1] SolrCloudDocumentUtil: addToSolrCloud() - addingDoc to index... 12:19:13, 643 [TRACE] [solrcloudQueueThread1] SolrCloudIndexingAddition: Add doc response:{responseHeader={status=0,QTime=73}} 12:19:13, 643 [TRACE] [solrcloudQueueThread1] SolrCloudDocumentUtil: addToSolrCloud() - addingDoc to index done. 12:19:13, 643 [TRACE] [solrcloudQueueThread1] SolrCloudDocumentUtil: processAttachedDocumentToIndex() - successFullyAddedDoc: true, indexedValue: 64 12:19:13, 643 [INFO ] [solrcloudQueueThread1] SolrCloudIndexingQueueThread: [BGINDEXER] Adding email id 4138831 to index. 12:19:13, 643 [INFO ] [solrcloudQueueThread1] SolrCloudIndexingQueueThread: consume() - committing changes to DB ... 12:19:13, 643 [INFO ] [solrcloudQueueThread1] SolrCloudIndexingQueueThread: creating docUtil... 12:19:13, 643 [INFO ] [solrcloudQueueThread1] SolrCloudIndexingQueueThread: Indexer: Adding email to index...4138834 12:19:13, 659 [TRACE] [solrcloudQueueThread1] TextExtractionService: Began extraction process 12:19:13, 659 [TRACE] [solrcloudQueueThread1] Extractor: Textextractor rejected binary file 12:19:13, 659 [TRACE] [solrcloudQueueThread1] TextExtractionService: Returned from Extraction process 12:19:13, 674 [TRACE] [solrcloudQueueThread1] SolrCloudDocumentUtil: processAttachedDocumentToIndex() - Looping through att 0 12:19:13, 674 [TRACE] [solrcloudQueueThread1] SolrCloudDocumentUtil: processAttachmentStreams() - Entering attachment processing 12:19:13, 674 [DEBUG] [solrcloudQueueThread1] SolrCloudDocumentUtil: indexing: utf.txt, filesize: 1948, handlerclass: com.gwava.extractor.TextExtractor hash: 1DF136232E51E46642C545EFA40F0BA8CAE0D4C20BFAFCA30FF517DE8FBC9331 12:19:13, 674 [TRACE] [solrcloudQueueThread1] TextExtractionService: Began extraction process 12:19:13, 674 [TRACE] [solrcloudQueueThread1] TextExtractionService: Returned from Extraction process 12:19:13, 674 [TRACE] [solrcloudQueueThread1] SolrCloudDocumentUtil: processAttachmentStreams() - Exiting attachment processing 12:19:13, 674 [TRACE] [solrcloudQueueThread1] SolrCloudDocumentUtil: processAttachedDocumentToIndex() - Looping through att 1 12:19:13, 690 [TRACE] [solrcloudQueueThread1] SolrCloudDocumentUtil: processAttachmentStreams() - Entering attachment processing 12:19:13, 690 [DEBUG] [solrcloudQueueThread1] SolrCloudDocumentUtil: INDEXING_NOT_ON_WHITELIST: shuffled.csv, filesize: 592, handlerclass: null hash: EEB758423B031AECEDC077AA6DA93A7F3339D7B9815EF4515EDD84D86994B0AF 12:19:13, 690 [TRACE] [solrcloudQueueThread1] SolrCloudDocumentUtil: processAttachmentStreams() - Exiting attachment processing 12:19:13, 690 [TRACE] [solrcloudQueueThread1] SolrCloudDocumentUtil: processAttachedDocumentToIndex() - Looping through att 2
Return to Retain Training