Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Log file under Logs would be helpful also #23

Open
Helkyd opened this issue Jul 26, 2021 · 4 comments
Open

Log file under Logs would be helpful also #23

Helkyd opened this issue Jul 26, 2021 · 4 comments

Comments

@Helkyd
Copy link

Helkyd commented Jul 26, 2021

Hi,
I have been using this app and is running well for small DB to be sent to my NextCloud server but for bigger DB files is just returning the below error message...

"Failed while uploading Public files Traceback (most recent call last): File "/home/frappe/frappe-bench/apps/nextcloud_integration/nextcloud_integration/nextcloud_integration/doctype/nextcloud_setting/nextcloud_setting.py", line 28, in start_taking_backup raise Exception Exception"

This file is 180M.
Would be great to have a log file under Logs on frappe-bench.
Now What could the reason for the Error?

@thejoe8495
Copy link

You can change the line 28 in /home/frappe/frappe-bench/apps/nextcloud_integration/nextcloud_integration/nextcloud_integration/doctype/nextcloud_setting/nextcloud_setting.py
from
raise Exception
to
frappe.log_error(self.error_log, 'nextcloud upload failed')

After the change an error is in the error list.
But the messages can be better, i testet it with a wrong login but the error message is
['Failed while uploading DB', 'Failed while uploading Site Config']
But you can test it.

@Helkyd
Copy link
Author

Helkyd commented Jul 27, 2021 via email

@thejoe8495
Copy link

It's look like the script can't get the filesize from the dump on the disk.
Work the normal backup dump?
Which frappe/erpnext version you have?
Is this a new installation of nextcloud or is nextcloud stopped at a time?

@Helkyd
Copy link
Author

Helkyd commented Jul 30, 2021 via email

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

No branches or pull requests

2 participants