Windows 11 keep (3-4 times a day) blue screening and restarting - windows

I already formatted the notebook. But it's still happening. How can i find the source of the error?
The event log when the notebook restart:
Always start with a 6008 event error ( The system shutdown that happened at XX:XX:XX XX/XX/XX wasn't expected ). Source: Eventlog.
Then go to a 168 event error (Dump file generation completed successfully). Source: volmgr.
Then go to a 1101 event error (Audit events were dropped by transport. 0). Source: Eventlog.
Then go to multiple 1108 event errors. Source: Eventlog.
Then go to a 1001 event error (The computer was rebooted after an error check. This check was: 0x0000000a (0x0000000000000, 0x00000000000002, 0x0000000000000, 0xfffff80126ac1b4b). a memory dump was saved in.....). Source: BugCheck.
And the last one is 10010 event error (The server (8CFC164F-4BE5...) did not register with DCOM within the required timeout.) Source: DistributedCOM.

Related

Solaris SMF for Oracle DB is ok but not for the Listener. How can an SMF method work under svcadm but not to restart the service when it has failed?

I have 2 questions about Solaris SMF. (I am an SMF newbie.)
I set up the Oracle RDBMS service in SMF as per https://docs.oracle.com/cd/E37838_01/html/E61677/odbstartstop.html
The database part works entirely as expected, so I added a listener as another service instance seeing as the method script has an option of 'listener' as an argument instead of 'db' and will run a lsnrctl start ${LISTENER} instead of using sqlplus to access and then start or stop a database instance.
The svcadm enable and svcadm disable of the service start and stop the listener as expected. The issue is that the framework senses if lsnrctl is running but does nothing to restart it, if it has stopped. See below:
svc:/site/oracle/db/oracle12lsnr:LISTENER4 (?)
State: maintenance since May 21, 2020 03:25:39 PM BST
Reason: Method failed.
See: http://support.oracle.com/msg/SMF-8000-8Q
See: /var/svc/log/site-oracle-db-oracle12lsnr:LISTENER4.log
Impact: This service is not running.
The - Reason: Method failed. - is not congruent with the fact that invoking the method via svcadm enable (or disable) shows that the method works just fine.
Further investigation - I killed the lsnrctl process from root and got this from svcs -Lv
[ May 22 14:13:30 Executing stop method ("/lib/svc/method/svc-oracle12-database lsnr stop LISTENER4"). ]
LSNRCTL for Solaris: Version 12.1.0.2.0 - Production on 22-MAY-2020 14:13:30
Copyright (c) 1991, 2016, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=orahost.some.domain)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Solaris Error: 146: Connection refused
[ May 22 14:13:30 Method "stop" exited with status 95. ]
So the first question has changed and is now: Why would it run the stop method? The db version of this service runs the start method when the database service goes down.
Answer to Q1: the service framework runs the stop method followed by the start method. Once this was established a fresh look at the method script revealed a flaw. It error exited in the stop method if it couldn't contact the tnslsnr process. (Logic fail. If the tnslsnr process was killed you can't test a connection to it!)
To be honest I am struggling with the sheer volume of information to get through. I am currently reading through the pdf version of the URL above. I had a quick look here at Moellenkamp's blog http://blog.moellenkamp.org/archives/18-Auditing-a-single-SMF-service-revisted.html but I've not implemented that auditing service yet - assuming it would help anyway. If anyone has any thoughts as to why this isn't working I'd be really grateful.
The second question is this:
In the example the manifest is stored in /lib/svc/manifest/site/oracle/db and first time around I changed this to /lib/svc/manifest/site/oracle12db since 2 subdirectories (after .../site) seemed a little over the top and this resulted in the service just failing to work in any way (always in maintenance). I had adjusted the manifest xml file to match the changed directory structure. I was baffled and after fiddling around I simply changed the xml files and directory structure to match the example and it all worked. Why would that be? Is there some formula to the layers in the service_name or service_bundle?
I haven't yet read anything that says the directory structure has to be extended as per the example. I had not typo'd the xml file as far as I can tell - especially as revoking the changes to match the original example was simply to alter the service_name and service_bundle lines to match the extended directory structure.
To diagnose the reason for a service failure, always start with the service log, path for which is in the svcs output. Or just use "svcs -Lv " to display it directly.
Another 'easy when you know how'.
Upon failure the framework runs the stop method followed by the start method.
I can now scan through the pdf and look to confirm this and also such things as restart and refresh.
I'll vote for user13596356's response because the quick turnaround on checking the log and a bit of input from an SMF question by user40330 from 7 yrs ago got me looking at the service method script which was flawed.

App Script My Executions Entries Delayed/Missing

Recently, I've been having issues with My Executions having delays in adding the execution entries.
The app script on the Google Sheet will run successfully (based on output), but there is no entry in the execution logs or the entry is delayed (10+ minutes).
More worrisome, today I received an automatically generated email with a script error:
"We're sorry, a server error occurred. Please wait a bit and try again."
But there was no corresponding entry in executions.
I've tried checking View/Stackdriver Logging, View/Stackdriver Error Reporting - which both go to the Apps Script Dashboard. And I've played with the filters, but the errors do not appear.

Periodic tns-12531: TNS: Cannot allocate memory

I have a problem that's been plaguing me about a year now. I have Oracle 12.1.x.x installed on my machine. After a day or two the listener stops responding and the listener.log contains a bunch of TNS-12531 messages. If I reboot, the problem goes away and I'm fine for another day or two. I'm lazy and I hate rebooting, so I decided to finally track this down, but I'm having no luck. Since the alternative is to do work that I really don't want to do, I'm going to spend all my time researching this.
Some notes:
Windows 10 Pro
64-Bit
32 GB RAM
Generally, about 20GB free when the error occurs
I have several databases and it doesn't matter which DB is running
Restarting the DB doesn't help
Restarting the listener doesn't help
Only rebooting clears the problem
When I set TRACE_LEVEL_LISTENER = 16, I don't get much more info. Trace files are not written to
I can connect to the DB if I bypass the listener (ie, set ORACLE_SID=xxx and connect without a DB identifier)
All other network interactions seem to work fine after the listener stops
lsnrctl status hangs and adds another TNS-12531 to the listener.log
I have roughly the same config at home and this does not happen
Below is an example of a listener.log file:
Fri Jul 28 14:21:47 2017
System parameter file is D:\app\user\product\12.1.0\dbhome_1\network\admin\listener.ora
Log messages written to D:\app\user\diag\tnslsnr\LJ-Quad\listener\alert\log.xml
Trace information written to D:\app\user\diag\tnslsnr\LJ-Quad\listener\trace\ora_24288_14976.trc
Trace level is currently 16
Started with pid=24288
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=LJ-Quad)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
Listener completed notification to CRS on start
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
28-JUL-2017 14:22:06 * 12531
TNS-12531: TNS:cannot allocate memory
28-JUL-2017 14:22:47 * 12531
TNS-12531: TNS:cannot allocate memory
28-JUL-2017 14:26:24 * 12531
TNS-12531: TNS:cannot allocate memory
Thanks a bunch for any help you can provide!
Issue 1
This error can occur approximately after 2048 connections have been made via the listener when running on a non-English Windows installation.
Fix for Issue 1
Create a Windows User Group named Administrators on the computer where the listener.exe resides. This can fix the issue of the listener dying.
Reference: I'll post the link for the first issue as soon as I find it again
Issue 2
This error can also occur on Windows 64-Bit systems where the Desktop Application Heap is too small.
Fix for Issue 2
Try to Increase the Desktop Application Heap Registry in windows its located in
HKLM\System\CurrentControlSet\Control\Session Manager\SubSystems\Windows
Just as note don't add this Value by yourself, you have to depend on document.
Basically search for the registry entry and alter the third value for the key SharedSection=1024,20480,1024. This is a trial and error approach, but seems to improve listener's stability and memory issues.
Reference: TNS:cannot allocate memory - is there limit to the num databases on one box (Oracle Developer Community)

LaunchServices logs XPC_ERROR_CONNECTION_INTERRUPTED in mac os x console

1.Service only ran for 0 seconds. Pushing respawn out by 10 seconds
2.LaunchServices: received XPC_ERROR_CONNECTION_INTERRUPTED trying to map database database
launchservices: database mapping failed with result -10822, retrying
I found this two logs related to my Application in console those logs are generated at every 10 seconds.
I search about it but didn’t get proper reason
https://discussions.apple.com/thread/7263229?tstart=0
https://forums.developer.apple.com/thread/16788
Any idea about this logs? Any help would be useful
For 1st warning please check all launch service(lauchchd) commands, And check which command cause this logs. please provide more logs relative to first warning.
(by restart your machine may stop log this warning)

Windows error reporting - reports service as hang during loading of service dependent windows dll-s

I have a service that starts at Win7 startup. If I start the service after boot I cannot find any warning in event log reported by Windows Error Reporting service, but if it starts automatically during boot I get this:
Fault bucket , type 0
Event Name: ServiceHang
Response: Not available
Cab Id: 0
Problem signature:
P1: serviceName
P2: serviceName
P3: 0.0.0.0
P4: 10
P5: 2
P6:
P7:
P8:
P9:
P10:
Attached files:
These files may be available here:
Analysis symbol:
Rechecking for solution: 0
Report Id: 46283ee5-85ba-11e2-9242-001a4d425476
Report Status: 4
Looking into the wer generated file is says :
LoadedModule[0]=C:\Program Files (x86)\..\serviceName.exe
LoadedModule[1]=C:\Windows\SYSTEM32\ntdll.dll
LoadedModule[2]=C:\Windows\SYSTEM32\wow64.dll
LoadedModule[3]=C:\Windows\SYSTEM32\wow64win.dll
LoadedModule[4]=C:\Windows\SYSTEM32\wow64cpu.dll
It seems like that while loading of the service by the windows loader it was detected something that looks like a hang. But I collected logs using performance recorder during boot for the described report and I could see from that the following:
It looks that by measuring the distance between loading of the .exe (from the graph above) and the loading of the module that is not mentioned in the WER report (kernel32.dll) is no more than 200 ms (and all these are microsoft dll-s). I wonder why is WER reporting that as a hang and if I I can do something about it. I always reproduces at system boot and not in any other condition.
NOTE The service starts successfully. It's only the nagging event viewer report at every boot.

Resources