Hi guys my macbook keeps dying on me while the lid is closed and something is preventing it from going to sleep. This is the system report, it keeps repeating this line of codes the entire night until full battery drainage. I have a refurbished macbook pro retina 2015, 13", Sierra 10.12.6. Please help!!!
Aug 11 07:58:43-MBP com.apple.xpc.launchd[1] (com.apple.quicklook[12844]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.quicklook
Aug 11 07:59:07-MBP GoogleSoftwareUpdateAgent[12845]: 2017-08-11 07:59:07.379 GoogleSoftwareUpdateAgent[12845/0x7fffbcac13c0] [lvl=2] -[KSAgentApp(PrivateMethods) setupLoggerOutput] Agent default/global settings: <KSAgentSettings:0x1002160e0 bundleID=com.google.Keystone.Agent lastCheck=2017-08-11 07:57:34 +0000 lastServerCheck=2017-08-11 07:57:32 +0000 lastCheckStart=2017-08-11 07:57:31 +0000 checkInterval=18000.000000 uiDisplayInterval=604800.000000 sleepInterval=1800.000000 jitterInterval=900 maxRunInterval=0.000000 isConsoleUser=1 ticketStorePath=/Users//Library/Google/GoogleSoftwareUpdate/TicketStore/Keystone.ticketstore runMode=3 daemonUpdateEngineBrokerServiceName=com.google.Keystone.Daemon.UpdateEngine daemonAdministrationServiceName=com.google.Keystone.Daemon.Administration logEverything=0 logBufferSize=2048 alwaysPromptForUpdates=0 productIDToUpdate=(null) lastUIDisplayed=(null) alwaysShowStatusItem=0 updateCheckTag=(null) printResults=NO userInitiated=NO>
Aug 11 07:59:07-MBP GoogleSoftwareUpdateAgent[12845]: 2017-08-11 07:59:07.410 GoogleSoftwareUpdateAgent[12845/0x7fffbcac13c0] [lvl=2] +[KSCodeSigningVerification verifyBundle:applicationId:error:] KSCodeSigningVerification verifying code signing for '/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle' with the requirement 'anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU]="EQHXZ8M8AV" and (identifier="com.google.Keystone")'
Aug 11 07:59:07-MBP GoogleSoftwareUpdateAgent[12845]: 2017-08-11 07:59:07.437 GoogleSoftwareUpdateAgent[12845/0x7fffbcac13c0] [lvl=2] +[KSCodeSigningVerification verifyBundle:applicationId:error:] KSCodeSigningVerification verifying code signing for '/Users//Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/MacOS/GoogleSoftwareUpdateDaemon' with the requirement 'anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU]="EQHXZ8M8AV" and (identifier="com.google.Keystone")'
Aug 11 08:02:54-MBP com.apple.xpc.launchd[1] (com.apple.quicklook[12846]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.quicklook
Aug 11 07:58:43-MBP com.apple.xpc.launchd[1] (com.apple.quicklook[12844]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.quicklook
Aug 11 07:59:07-MBP GoogleSoftwareUpdateAgent[12845]: 2017-08-11 07:59:07.379 GoogleSoftwareUpdateAgent[12845/0x7fffbcac13c0] [lvl=2] -[KSAgentApp(PrivateMethods) setupLoggerOutput] Agent default/global settings: <KSAgentSettings:0x1002160e0 bundleID=com.google.Keystone.Agent lastCheck=2017-08-11 07:57:34 +0000 lastServerCheck=2017-08-11 07:57:32 +0000 lastCheckStart=2017-08-11 07:57:31 +0000 checkInterval=18000.000000 uiDisplayInterval=604800.000000 sleepInterval=1800.000000 jitterInterval=900 maxRunInterval=0.000000 isConsoleUser=1 ticketStorePath=/Users//Library/Google/GoogleSoftwareUpdate/TicketStore/Keystone.ticketstore runMode=3 daemonUpdateEngineBrokerServiceName=com.google.Keystone.Daemon.UpdateEngine daemonAdministrationServiceName=com.google.Keystone.Daemon.Administration logEverything=0 logBufferSize=2048 alwaysPromptForUpdates=0 productIDToUpdate=(null) lastUIDisplayed=(null) alwaysShowStatusItem=0 updateCheckTag=(null) printResults=NO userInitiated=NO>
Aug 11 07:59:07-MBP GoogleSoftwareUpdateAgent[12845]: 2017-08-11 07:59:07.410 GoogleSoftwareUpdateAgent[12845/0x7fffbcac13c0] [lvl=2] +[KSCodeSigningVerification verifyBundle:applicationId:error:] KSCodeSigningVerification verifying code signing for '/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle' with the requirement 'anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU]="EQHXZ8M8AV" and (identifier="com.google.Keystone")'
Aug 11 07:59:07-MBP GoogleSoftwareUpdateAgent[12845]: 2017-08-11 07:59:07.437 GoogleSoftwareUpdateAgent[12845/0x7fffbcac13c0] [lvl=2] +[KSCodeSigningVerification verifyBundle:applicationId:error:] KSCodeSigningVerification verifying code signing for '/Users//Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/MacOS/GoogleSoftwareUpdateDaemon' with the requirement 'anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU]="EQHXZ8M8AV" and (identifier="com.google.Keystone")'
Aug 11 08:02:54-MBP com.apple.xpc.launchd[1] (com.apple.quicklook[12846]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.quicklook