On Enigma 2. AWK: out of memory ?

Antworten
Nachricht
Autor
Matt333
Beginners
Beginners
Beiträge: 23
Registriert: 25 Dez 2022 12:28
Receiver 1: Protek 4K
Receiver 2: Protek 9900LX
Hat gedankt: 13 Mal

On Enigma 2. AWK: out of memory ?

#1

Beitrag von Matt333 »

I have an old Protek 9900LX which is running 2 IPTV lines and Cccam.

When I tried to update the channels on my IPTV, I find the following message at the bottom of the script, after trying to download the new channels to the Protek through PUTTY.

AWK: out of memory.

This is the first time that this has happen to me.

The first question is how can I delete information in order for awk have more memory.
Secondly, how can I get more memory on this old receiver?

Thank you for any help with this matter.

Regards,
Matt33

1 meter motorised satellite dish with Protek 4K, OpenATV 7.2 image. Running Cccam and IPTV
Protek 9900 LX build openATV image 6.4 running with Technomate HDMI modulator and Panasonic DMR-BWT 740
Benutzeravatar
s3n0
Senior member
Senior member
Beiträge: 1580
Registriert: 02 Jan 2017 14:38
Receiver 1: Vu+ Zero 4K
Receiver 2: Vu+ Solo SE V2
Hat gedankt: 108 Mal
Hat Dank erhalten: 416 Mal
Kontaktdaten:

#2

Beitrag von s3n0 »

Hi.

Hard to say. It depends on what Linux kernel you have there and what options your Linux has in terms of system tools.

HTOP is a good tool for displaying free RAM. It is also possible to install it from the feed:

Code: Alles auswählen

opkg update
opkg install htop


This AWK probably requires free RAM... and the operating system can't free up enough memory for AWK for some reason. You can try to free the system cache before using your AWK, but I don't know if it will help:

Code: Alles auswählen

sync; echo 1 > /proc/sys/vm/drop_caches


To find out the free RAM, use, for example, the output from "/proc/meminfo":

Code: Alles auswählen

cat /proc/meminfo | grep -i memfree


It also depends on what actions you perform with AWK. If they are unnecessarily complicated and require a lot of free RAM, it is probably better to use other system tools for your algorithm / script.
Matt333
Beginners
Beginners
Beiträge: 23
Registriert: 25 Dez 2022 12:28
Receiver 1: Protek 4K
Receiver 2: Protek 9900LX
Hat gedankt: 13 Mal

#3

Beitrag von Matt333 »

root@9900lx:~# cat /proc/meminfo | grep -i memfree
MemFree: 104888 kB
root@9900lx:~#
This is what I get. I have run all 3 codes above. I am going to see if that has solved the problem.
Thank you for your help

N.B. Still says the same message at the end:

awk: out of memory
Benutzeravatar
s3n0
Senior member
Senior member
Beiträge: 1580
Registriert: 02 Jan 2017 14:38
Receiver 1: Vu+ Zero 4K
Receiver 2: Vu+ Solo SE V2
Hat gedankt: 108 Mal
Hat Dank erhalten: 416 Mal
Kontaktdaten:

#4

Beitrag von s3n0 »

And what exactly do you want to do with AWK ? It may have cycled or you are using it incorrectly.

The Linux OS is not foolproof. You have to know what to do. Linux OS does not think for the user, as for example Windows OS does.
Matt333
Beginners
Beginners
Beiträge: 23
Registriert: 25 Dez 2022 12:28
Receiver 1: Protek 4K
Receiver 2: Protek 9900LX
Hat gedankt: 13 Mal

#5

Beitrag von Matt333 »

I don't know what AWK is! It's the first time that I had this message when trying to update the IPTV channels list, through PUTTY.
Benutzeravatar
s3n0
Senior member
Senior member
Beiträge: 1580
Registriert: 02 Jan 2017 14:38
Receiver 1: Vu+ Zero 4K
Receiver 2: Vu+ Solo SE V2
Hat gedankt: 108 Mal
Hat Dank erhalten: 416 Mal
Kontaktdaten:

#6

Beitrag von s3n0 »

It's a command :) or rather a tool, designed for string processing in Linux OS. Simple scripts (programs) can be defined in it.
awk(1p) - Linux manual page

If you have a problem with IPTV or with a shell-script or with a plugin, contact the IPTV provider or the author of the software, who must correct this error. Unfortunately, OpenATV Enigma2 developers have no control over this and it is not their fault.

You can also turn on DEBUG in the Enigma2 / OpenATV configuration. Then restart the set-top box. Raise the error again. And then copy the created debug file (it should be in the folder /home/root/logs) to the PC and then paste it here - in the discussion. There will be more information about the problem. Since they are not able to write even very important facts... that what this error message comes from.
Matt333
Beginners
Beginners
Beiträge: 23
Registriert: 25 Dez 2022 12:28
Receiver 1: Protek 4K
Receiver 2: Protek 9900LX
Hat gedankt: 13 Mal

#7

Beitrag von Matt333 »

This afternoon I had a look at the folder: home/root/logs and it was full!
I deleted all content and run my IPTV list through PUTTY software and it worked! No signed of the error message : awk: out of memory!
Thank you for your help with this matter.

NB- I did not even know of a folder : "Debug " list !!! I am learning every day
Benutzeravatar
Papi2000
Super Moderator
Super Moderator
Beiträge: 25923
Registriert: 20 Apr 2013 20:09
Receiver 1: Viele GigaBlues
Receiver 2: DM und ZGemma
Receiver 3: bissl VU
Hat gedankt: 4496 Mal
Hat Dank erhalten: 8313 Mal

#8

Beitrag von Papi2000 »

So deactivate debuglog, resart the box, and empty the folder again.
You don't have enough space left in your flash. Otherwise you will get trouble again and again. Keep an eye on your flash.
Grüßle
Ralf
--------------------------------------------
---- Einen Receiver kann sich jeder kaufen - Eine stabile E²-Box muß man sich verdienen! ----




Bild
Benutzeravatar
s3n0
Senior member
Senior member
Beiträge: 1580
Registriert: 02 Jan 2017 14:38
Receiver 1: Vu+ Zero 4K
Receiver 2: Vu+ Solo SE V2
Hat gedankt: 108 Mal
Hat Dank erhalten: 416 Mal
Kontaktdaten:

#9

Beitrag von s3n0 »

Code: Alles auswählen

init 4   # stop the enigma2
rm -f /home/root/logs/*   # remove log files
reboot   # reboot the set-top box


After triggering the error, copy only the log file that has the latest date and time (date/time stamp in the log file name).
urie
Member
Member
Beiträge: 837
Registriert: 07 Mai 2019 13:52
Wohnort: Scotland
Receiver 1: Gigablue Quad UHD 4K
Receiver 2: Zgemma H9 Combo
Hat gedankt: 152 Mal
Hat Dank erhalten: 174 Mal

#10

Beitrag von urie »

Or save logs to another device I have mines set to save to usb and also epg.dat,
rather than stb memory or even limit maximum number of days of keep in logs settings.

Oder Protokolle auf einem anderen Gerät speichern. Ich habe Minen so eingestellt, dass sie auf USB und auch in epg.dat gespeichert werden.
statt STB-Speicher oder begrenzen Sie sogar die maximale Anzahl an Aufbewahrungstagen in den Protokolleinstellungen.
Matt333
Beginners
Beginners
Beiträge: 23
Registriert: 25 Dez 2022 12:28
Receiver 1: Protek 4K
Receiver 2: Protek 9900LX
Hat gedankt: 13 Mal

#11

Beitrag von Matt333 »

Problem solved!
Thank you for all your help!
Benutzeravatar
Papi2000
Super Moderator
Super Moderator
Beiträge: 25923
Registriert: 20 Apr 2013 20:09
Receiver 1: Viele GigaBlues
Receiver 2: DM und ZGemma
Receiver 3: bissl VU
Hat gedankt: 4496 Mal
Hat Dank erhalten: 8313 Mal

#12

Beitrag von Papi2000 »

Dom't forget to keep Debuglog deactivated, untill you need it again temporary.
Grüßle
Ralf
--------------------------------------------
---- Einen Receiver kann sich jeder kaufen - Eine stabile E²-Box muß man sich verdienen! ----




Bild
Antworten

Zurück zu „English Section“