(resolved) gravity.sh out of memory. Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
rogern

(resolved) gravity.sh out of memory.

Post by rogern »

Getting this error when running gravity.sh

Code: Select all

/usr/local/bin/gravity.sh: xmalloc: ../bash/subst.c:3571: cannot allocate 94906779 bytes (201375744 bytes allocated)
Using raspberrypi A

This error comes up in apache2 error log

Code: Select all

/var/www/linuxdash/server/modules/shell_files/general_info.sh: line 16: /usr/bin/lsb_release: No such file or directory
/bin/grep: /var/log/syslog: No such file or directory
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Getting some errors

Post by Fourdee »

rogern wrote:Getting this error when running gravity.sh

Code: Select all

/usr/local/bin/gravity.sh: xmalloc: ../bash/subst.c:3571: cannot allocate 94906779 bytes (201375744 bytes allocated)
Hi rogern,

This will occur if you run out of memory while the gravity script is working. You will need to increase your swapfile size to 500MB or more.
This can be done in dietpi-config, under "Advanced options" then reboot to apply the changes.
rogern wrote:Using raspberrypi A

This error comes up in apache2 error log

Code: Select all

/var/www/linuxdash/server/modules/shell_files/general_info.sh: line 16: /usr/bin/lsb_release: No such file or directory
/bin/grep: /var/log/syslog: No such file or directory
Not sure about the linuxdash one, but the syslog error is expected, its harmless. Syslog is not installed by default on DietPi systems.
If log files are critical to your systems operation, you can use dietpi-software to set your Log system to "full"
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply