opencaching / okapi

A common API for all National Opencaching.XX sites
22 stars 20 forks source link

OCPL fulldump generation issue #615

Closed kojoty closed 3 years ago

kojoty commented 3 years ago

I discovered that for a few months OKAPI fulldump generation started every week at OCPL has not worked. Dump was generated, DB was updated with right metadata but the file served as fulldump archive still contains obsolete data.

I've investigated the issue and it seems that the problem is in preparation of tar-bzip archive here:

https://github.com/opencaching/okapi/blob/baa30056643125291a30b9c287573a33d1e70cb7/okapi/services/replicate/ReplicateCommon.php#L601

exec ($command)

works great if $command is no longer than 128KB...

Explanation could be this: https://unix.stackexchange.com/questions/622412/arguments-limit-php-exec-to-bash-script

kumy commented 3 years ago

I have created PR #616, hope this help :)

wrygiel commented 3 years ago

Aaah, so that was the problem! Thank you @kojoty for investigating it. I looked at it some time ago, but failed to identify the culprit. Great work!