Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me

TOPIC:

0 byte zip export 9 years 1 month ago #3222

  • rbrown
  • rbrown's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 31
  • Thank you received: 0
ok I think I've got it..

When I tried to export a 277MB project = it worked
401 MB project = failed
zapped the failed zip in /tmp
removed the content and went back to the 277MB project and export worked

so I think I'm running out of space on /tmp

Where can I set the directory to create the zip?

Please Inloggen or Create an account to join the conversation.

0 byte zip export 9 years 1 month ago #3224

  • tom
  • tom's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
Hmmm. Xerete uses ZipArchive, and that uses sys_get_temp_dir().

So that's not going to be that easy.

Please Inloggen or Create an account to join the conversation.

0 byte zip export 9 years 1 month ago #3227

  • rbrown
  • rbrown's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 31
  • Thank you received: 0
I just dropped

putenv('TMPDIR=/data/xerte');

into modules/xerte/export.php

and hey presto
2015-10-12 10:14:55 /srv/www/vhosts/xerte/xertetoolkits/modules/xerte/export.php112Temporary zip file is : /tmp/xerteExportFEdO0Y
went to
2015-10-12 10:27:35 /srv/www/vhosts/xerte/xertetoolkits/modules/xerte/export.php112Temporary zip file is : /data/xerte/xerteExport793mcg

however the change of TMPDIR does not appear to be set in env

# env | grep TMP
# env | grep TMPDIR

For future releases would it be possible to make the directory where the zip is created a variable that can be configured via the admin UI

Please Inloggen or Create an account to join the conversation.

Moderators: alimcnronm
Time to create page: 0.049 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search