Archive.sh - Memory problem


#1

Hi,

Version Piwik - 1.4

I have a problem logged in “user.log”. It refers to the script “archive.sh” of Piwik that is in my crontab.
I increase the memory in :

  • /etc/php5/conf.d/suhosin.ini > suhosin.memory_limit = 512M
  • /etc/php5/apache2/php.ini > memory_limit = 512M

I think there is perhaps a problem with this script (It need 4GB ???). What do I think about this problem? Is there a parameter to modify?

Thanks.
Damien.

Extract of my crontab


MAILTO="my@dresse"
15 *    * * *   www-data /opt/piwik/misc/cron/archive.sh > /dev/null

Extract of user.log


May 17 08:15:01 localhost suhosin[25034]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 08:15:01 localhost suhosin[25036]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 08:15:01 localhost suhosin[25038]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 08:15:01 localhost suhosin[25043]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 08:15:02 localhost suhosin[25045]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 08:15:02 localhost suhosin[25047]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 08:15:03 localhost suhosin[25049]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 08:15:04 localhost suhosin[25054]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 08:15:04 localhost suhosin[25056]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 08:15:05 localhost suhosin[25058]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 08:15:05 localhost suhosin[25060]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 09:15:01 localhost suhosin[25186]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 09:15:01 localhost suhosin[25188]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 09:15:02 localhost suhosin[25190]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 09:15:02 localhost suhosin[25195]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 09:15:02 localhost suhosin[25197]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 09:15:03 localhost suhosin[25199]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 09:15:04 localhost suhosin[25201]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 09:15:04 localhost suhosin[25206]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 09:15:04 localhost suhosin[25208]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 09:15:05 localhost suhosin[25210]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')
May 17 09:15:05 localhost suhosin[25212]: ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file 'unknown')


#2

Nobody has this problem ??? It’s really strange.


#3

I found. I must modify /etc/php5/cli/php.ini, memory_limit = -1 to memory_limit = 512M .


#4

I’ve been told by my host (HostNine) I’m having this problem! Applying your fix and see if that helps.