Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails silently (on big table) #37

Open
pille opened this issue Sep 19, 2019 · 4 comments
Open

fails silently (on big table) #37

pille opened this issue Sep 19, 2019 · 4 comments

Comments

@pille
Copy link

pille commented Sep 19, 2019

i've installed ownbackup on nextcloud-16.0.4 and over the last two nights, its cronjob failed silently. nothing in the logs, but the backups are incomplete.
looks like it bailed out on a big table. it wrote the structure.xml, but no data.dump is available. also there should be more tables after this one.

@pbek
Copy link
Owner

pbek commented Sep 19, 2019

Sounds like something like #22, out of memory or max. execution time of php.

@pbek
Copy link
Owner

pbek commented Sep 19, 2019

What happens if you increase the max execution time and memory limit (best to -1 for both) and run the cron.php on the command line?

@pille
Copy link
Author

pille commented Sep 19, 2019

i'd expect to see an error message in the logs. this is all:

{"reqId":"LBrEebhvQ2bE7ljlsJqB","level":0,"time":"2019-09-19T09:45:02+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Run OCA\\OwnBackup\\Jobs\\BackupJob job with ID 5","userAgent":"--","version":"16.0.4.1"}

and doesn't look failed at all, when in fact it did.

when i run a backup manually, i can see it failing with "Allowed memory size of 536870912 bytes exhausted..." in the logs.

so does it pull each table completely into memory, before dumping?

@pbek
Copy link
Owner

pbek commented Sep 19, 2019

If php is killing its process there is no way to log anything in the interpreted php-file.

so does it pull each table completely into memory, before dumping?

yes, it uses the internal (private) Nextcloud API to do the backup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants