ACPI BIOS Error (bug) error logs in kernal.log ubuntu-20.10 - ubuntu-20.10

I am using ubuntu 20.10
My device memory got full in just 10 days from 250 gb to 100 gb
when i looked into logs i found kern.log file which has a storage of about 50 gb
I looked into many solutions but none of them seems to be working for me .
I get errors like below
eb 3 17:09:07 vikram-singh kernel: [ 1252.226498] No Local Variables are initialized for Method [_L6F]
Feb 3 17:09:07 vikram-singh kernel: [ 1252.226499] No Arguments are initialized for method [_L6F]
Feb 3 17:09:07 vikram-singh kernel: [ 1252.226500] ACPI Error: Aborting method \_GPE._L6F due to previous error (AE_NOT_FOUND) (20200528/psparse-529)
Feb 3 17:09:07 vikram-singh kernel: [ 1252.226504] ACPI Error: AE_NOT_FOUND, while evaluating GPE method [_L6F] (20200528/evgpe-511)
Feb 3 17:09:07 vikram-singh kernel: [ 1252.228423] ACPI BIOS Error (bug): Could not resolve symbol [\_GPE._L6F.PGRT], AE_NOT_FOUND (20200528/psargs-330)
Feb 3 17:09:07 vikram-singh kernel: [ 1252.228428] No Local Variables are initialized for Method [_L6F]
Feb 3 17:09:07 vikram-singh kernel: [ 1252.228428] No Arguments are initialized for method [_L6F]
Feb 3 17:09:07 vikram-singh kernel: [ 1252.228430] ACPI Error: Aborting method \_GPE._L6F due to previous error (AE_NOT_FOUND) (20200528/psparse-529)
Kernal which i use 5.8.0-41-generic
Thanks in advance

Related

qla2xxx - SNS scan failed

We have two hypervisor(Dell PowerEdge R630, virtualization environment: Proxmox), they are connected with an FC-switch and the FC-switch with the storage(dell compellent).
One of the hypervisor are connected via multipath to the storage and it's works.
The other hypervisor doesn't found the storage.
The not-finder-hypervisor says:
kernel: qla2xxx [0000:81:00.0]-001d: : Found an ISP2532 irq 93 iobase 0x00000000bf40f73b.
kernel: scsi host13: qla2xxx
kernel: qla2xxx [0000:81:00.0]-500a:13: LOOP UP detected (8 Gbps).
kernel: qla2xxx [0000:81:00.0]-00fb:13: QLogic QLE2562 - PCI-Express Dual Channel 8Gb Fibre Channel HBA.
kernel: qla2xxx [0000:81:00.0]-00fc:13: ISP2532: PCIe (5.0GT/s x8) # 0000:81:00.0 hdma+ host#=13 fw=8.07.00 (90d5).
kernel: qla2xxx [0000:81:00.0]-209e:13: SNS scan failed -- assuming zero-entry result.
The multipath module is loaded into kernel. Both hypervisor have the same loaded modules.
dm_multipath 28672 1 dm_round_robin
Check SAN-zoning and LUN-secuty on the array: they must define and allow host-connection with the array and LUNs on it.

How to capture n lines before and after a first occurrence of a string match

Answer with repeated occurrence is like below
[root#centos6 bin]# grep -A 2 -B 2 "SampleTextFile.txt" /var/log/messages
Nov 10 00:14:54 centos6 kernel: Kernel logging (proc) stopped.
Nov 10 00:14:54 centos6 rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="1513" x-info="http://www.rsyslog.com"] exiting on signal 15.
File SampleTextFile.txt
First Line after original SampleTextFile.txt
Nov 12 18:13:48 centos6 kernel: imklog 5.8.10, log source = /proc/kmsg started.
Nov 12 18:13:48 centos6 rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="1519" x-info="http://www.rsyslog.com"] start
--
Nov 12 18:14:19 centos6 polkitd[2382]: started daemon version 0.96 using authority implementation `local' version `0.96'
Nov 12 18:14:19 centos6 rtkit-daemon[2388]: Sucessfully made thread 2386 of process 2386 (/usr/bin/pulseaudio) owned by '42' high priority at nice level -11.
File SampleTextFile.txt
Second Line after original SampleTextFile.txt
Nov 12 18:14:19 centos6 pulseaudio[2386]: alsa-util.c: Disabling timer-based scheduling because running inside a VM.
Nov 12 18:14:19 centos6 rtkit-daemon[2388]: Sucessfully made thread 2392 of process 2386 (/usr/bin/pulseaudio) owned by '42' RT at priority 5.
[root#centos6 bin]#
If I use -m switch then it doe not show "AFTER" lines...
[root#centos6 bin]# grep -m 1 -A 2 -B 2 "SampleTextFile.txt" /var/log/messages
Nov 10 00:14:54 centos6 kernel: Kernel logging (proc) stopped.
Nov 10 00:14:54 centos6 rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="1513" x-info="http://www.rsyslog.com"] exiting on signal 15.
File SampleTextFile.txt
[root#centos6 bin]#
My grep version is below:
[root#centos6 bin]# grep -V
grep (GNU grep) 2.20
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Haertel and others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
[root#centos6 bin]#
I would sincerely appreciate any help to solve this issue.
Thank you in advance.
--Edit:
Expected result
[root#centos6 bin]# grep -A 2 -B 2 "SampleTextFile.txt" /var/log/messages
Nov 10 00:14:54 centos6 kernel: Kernel logging (proc) stopped.
Nov 10 00:14:54 centos6 rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="1513" x-info="http://www.rsyslog.com"] exiting on signal 15.
File SampleTextFile.txt
First Line after original SampleTextFile.txt
Nov 12 18:13:48 centos6 kernel: imklog 5.8.10, log source = /proc/kmsg started.
Nov 12 18:13:48 centos6 rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="1519" x-info="http://www.rsyslog.com"] start

Unicorn gets killed due to out of memory

Today, I have noticed that unicorn was not running on the production environment. Unicorn error log is as follows (it seems unicorn stopped due to SIGKILL signal):
D, [2017-10-11T12:25:49.521336 #9375] DEBUG -- : waiting 16.0s after suspend/hibernation
E, [2017-10-11T12:26:08.051349 #9375] ERROR -- : reaped #<Process::Status: pid 9535 SIGKILL (signal 9)> worker=1
I, [2017-10-11T12:26:21.708135 #9375] INFO -- : worker=1 spawning...
It seeems when the unicorn was killed, we had faced a out of memory problem. In the /var/log/syslog.1 I have following logs:
Oct 11 12:26:02 analiz kernel: [4486147.309450] [<ffffffff81190979>] out_of_memory+0x219/0x460
Oct 11 12:26:02 analiz kernel: [4486147.309677] Out of memory: Kill process 9375 (ruby2.3) score 81 or sacrifice child
Now my questions are;
How I can make sure that unicorn will be restarted automatically even if it gets killed by kernel? (eg, restart automatically after 30secs)
In the normal operation, memory utilization is around %50-%60. I would like to understand the root cause and take measures to prevent a similar problem in future. According to the syslog messages, out of memory issue is started with postgres. I have no clue what caused a high memory utilization by postgres or other processes. Any kind of support will be appreciated.
Oct 11 12:26:02 analiz kernel: [4486147.309419] postgres invoked oom-killer: gfp_mask=0x24200ca, order=0, oom_score_adj=0
Oct 11 12:26:02 analiz kernel: [4486147.309422] postgres cpuset=/ mems_allowed=0
Oct 11 12:26:02 analiz kernel: [4486147.309427] CPU: 0 PID: 9570 Comm: postgres Not tainted 4.4.0-1031-aws #40-Ubuntu
Oct 11 12:26:02 analiz kernel: [4486147.309428] Hardware name: Xen HVM domU, BIOS 4.2.amazon 02/16/2017
Oct 11 12:26:02 analiz kernel: [4486147.309429] 0000000000000286 08956ec91b465ba3 ffff88000918f9e8 ffffffff813f6ec3
Oct 11 12:26:02 analiz kernel: [4486147.309432] ffff88000918fba0 ffff88003cfdb700 ffff88000918fa58 ffffffff81208b3a
Oct 11 12:26:02 analiz kernel: [4486147.309433] ffffffff81cc3661 0000000000000000 ffffffff81e667a0 0000000000000206
Thanks in advance.

TokuMX 1.4 to 1.5 data migration

I have copied over all TokuMX 1.4 data files to a fresh installed TokuMX 1.5 server, but launching the server fails with:
Fri Aug 1 09:51:04.633 [initandlisten] TokuMX starting : pid=42210 port=27017 dbpath=/data/db 64-bit host=beagle.massive-insights.com
Fri Aug 1 09:51:04.633 [initandlisten] TokuMX mongod server v1.5.0-mongodb-2.4.10, using TokuKV rev 479eed747982601fa52e4c4e4b9b4be18f58d3c1
Fri Aug 1 09:51:04.633 [initandlisten] git version: 3c686d0b09d6dfb9fd54da440247d3075fcfd0ac
Fri Aug 1 09:51:04.633 [initandlisten] build info: Linux a5f9a8a9a9af 3.11.0-20-generic #35-Ubuntu SMP Fri May 2 21:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux BOOST_LIB_VERSION=1_49
Fri Aug 1 09:51:04.633 [initandlisten] options: { config: "/etc/mongodb.conf", dbpath: "/data/db", logFlushPeriod: 300, logappend: "true", logpath: "/var/log/mongodb/mongodb.log", maxConns: 20000 }
Fri Aug 1 09:51:04.634 [initandlisten] [tokumx] startup
Cannot upgrade TokuDB version 25 database. Previous improper shutdown detected.
Fri Aug 1 09:51:04.661 [initandlisten] Assertion: 16767:Unhandled ydb error: -100011
0xb3b123 0x80c91b 0x8061f0 0x8069df 0x8071fc 0x749e7a 0x74a558 0x735caa 0x7f5a97b5ceed 0x746e79
/usr/local/bin/mongod(_ZN5mongo15printStackTraceERSo+0x23) [0xb3b123]
/usr/local/bin/mongod(_ZN5mongo7storage21MsgAssertionExceptionC2EiRKSs+0x9b) [0x80c91b]
/usr/local/bin/mongod(_ZN5mongo7storage16handle_ydb_errorEi+0x390) [0x8061f0]
/usr/local/bin/mongod(_ZN5mongo7storage22handle_ydb_error_fatalEi+0xf) [0x8069df]
/usr/local/bin/mongod(_ZN5mongo7storage7startupEPNS_16TxnCompleteHooksEPNS0_14UpdateCallbackE+0x5bc) [0x8071fc]
/usr/local/bin/mongod(_ZN5mongo14_initAndListenEi+0x34a) [0x749e7a]
/usr/local/bin/mongod(_ZN5mongo13initAndListenEi+0x18) [0x74a558]
/usr/local/bin/mongod(main+0x29a) [0x735caa]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f5a97b5ceed]
/usr/local/bin/mongod() [0x746e79]
Fri Aug 1 09:51:04.670 [initandlisten] fatal error 16767: Unhandled ydb error: -100011
Fri Aug 1 09:51:04.670 [initandlisten] 16767 Unhandled ydb error: -100011
Fri Aug 1 09:51:04.670 [initandlisten] Fatal Assertion 16767
0xb3b123 0x9e654c 0x806bc6 0x8071fc 0x749e7a 0x74a558 0x735caa 0x7f5a97b5ceed 0x746e79
/usr/local/bin/mongod(_ZN5mongo15printStackTraceERSo+0x23) [0xb3b123]
/usr/local/bin/mongod(_ZN5mongo13fassertFailedEi+0x4c) [0x9e654c]
/usr/local/bin/mongod(_ZN5mongo7storage22handle_ydb_error_fatalEi+0x1f6) [0x806bc6]
/usr/local/bin/mongod(_ZN5mongo7storage7startupEPNS_16TxnCompleteHooksEPNS0_14UpdateCallbackE+0x5bc) [0x8071fc]
/usr/local/bin/mongod(_ZN5mongo14_initAndListenEi+0x34a) [0x749e7a]
/usr/local/bin/mongod(_ZN5mongo13initAndListenEi+0x18) [0x74a558]
/usr/local/bin/mongod(main+0x29a) [0x735caa]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f5a97b5ceed]
/usr/local/bin/mongod() [0x746e79]
Fri Aug 1 09:51:04.677 [initandlisten]
How can I go about the migration path 1.4 to 1.5, and how to deal with that error above?
As the log file states, "Cannot upgrade TokuDB version 25 database. Previous improper shutdown detected."
TokuMX does not support upgrades (meaning the file format has changed) unless the files you are using from the prior version came from a cleanly shutdown TokuMX.
You need to cleanly shutdown your 1.4 server, then copy or re-use the data files with 1.5.

receive memory warning but consumer fewer

I'm doing a app like photo browser just like the "Photo" on iTOuch. And I use a third-party lib : https://github.com/kirbyt/KTPhotoBrowser
When I scroll the photos several times, the app crashes.
The log shows that it has receive memory warning.
Then I use instrument to check the memory (I choose Memory-Allocation).
I track the Live Bytes and Overall Bytes for "All Allocations".
However, the Live Bytes is never more than 5 MB, and the Overall Bytes is beyond 100 MB .
When the app carshes, the Live Bytes is 3.97MB and the Overall is 125.48MB.
I think Live Bytes is the memory currently used, and it seems it costs a little.
Why the app still crashes?
Xcode 4.2 4D199,Lion 10.7.2(11c74), iTouch ios5.0.1 beta2.
Below is the screenshot, and the instrument configuration is the default.
Any idea?
the crash log is like:
Nov 8 16:54:42 unknown SpringBoard[15] : Received memory warning.
Nov 8 16:54:43 unknown com.apple.launchd[1] : (UIKitApplication:com.apple.mobilephone[0xcb31]) Exited: Killed: 9
Nov 8 16:54:43 unknown com.apple.launchd[1] : (UIKitApplication:com.freebit.minimumcloud.ios[0xf787]) Exited: Killed: 9
Nov 8 16:54:43 unknown UserEventAgent[12] : jetsam: kernel termination snapshot being created
Nov 8 16:54:43 unknown SpringBoard[15] : Application 'Min.Cloud' exited abnormally with signal 9: Killed: 9
Nov 8 16:54:44 unknown SpringBoard[15] : Application 'FaceTime' exited abnormally with signal 9: Killed: 9
Nov 8 16:54:45 unknown kernel[0] : launchd[481] Builtin profile: container (sandbox)
Nov 8 16:54:45 unknown kernel[0] : launchd[481] Container: /private/var/mobile/Applications/301E2A00-F1B6-4E88-ACF4-8EBEFB92B9DA [69] (sandbox)
Nov 8 16:54:45 unknown librariand[459] : client connection is invalid: Connection invalid
Nov 8 16:54:45 unknown ReportCrash[480] : Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2011-11-08-165445.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
Nov 8 16:54:49 unknown sandboxd[483] : MinimumCloud(481) deny file-write-data /private/var/mobile/Library/Mobile Documents/*********
Nov 8 16:54:50 unknown MinimumCloud[481] : file://localhost/private/var/mobile/Library/Mobile%20Documents/*******/Documents/
Nov 8 16:54:50 unknown sandboxd[483] : MinimumCloud(481) deny file-write-create /file:
Nov 8 16:54:50 unknown MinimumCloud[481] : ubiquityContainerURL=/private/var/mobile/Library/Mobile Documents/******/Documents
Nov 8 16:54:50 unknown sandboxd[483] : MinimumCloud(481) deny file-write-create /file:
Nov 8 16:54:50 unknown MinimumCloud[481] : mystorageSymLink=/var/mobile/Applications/301E2A00-F1B6-4E88-ACF4-8EBEFB92B9DA/Library/htdocs/MyStorage
Nov 8 16:54:51 unknown wifid[27] : WiFi:[342435291.518957]: Disable WoW requested by "spd"
It is my own fault!
when I use NSURLConnection to detect the MIME-TYPE of the file, the memory of the connection is never released and it becomes larger and larger(As I detect the type of more than 100 files).
I reconstruct the code.

Resources