android icon indicating copy to clipboard operation
android copied to clipboard

calendar backup not working

Open henningaround opened this issue 3 years ago • 23 comments

I've enabled daily contacts and calendar backup.

Backup of contacts is working for a long time now and it's backup up all contacts to a single .vcf file in .Contacts-Backup on the nextcloud server home of the user (I would like to specify the folder but that's another topic :) )

However the newly introduced calendar backup doesn't do anything. Or where should I find the backup files?

It's Nextcloud files for android 3.18.0 on Android 11.

Best Henning

henningaround avatar Dec 10 '21 10:12 henningaround

Subscribing: backup of contact indeed works great. Calendar doesn't do anything though, would be great if that goes in.

swentel avatar Dec 20 '21 13:12 swentel

Same for me ; The contact backup feature works great (I have been using it for years). I have noticed that the backup files are stored in a hidden "Contacts-Backup" folder. On the other hand, the calendar backup seams not to work. I imagine that if it worked, a hidden backup folder would be available (and would contain dated ics files, for each calendar).

Jerome-Herbinet avatar Feb 03 '22 11:02 Jerome-Herbinet

I have 4 calendars and its only backing up 3 of them. The "main" calendar "Termine" is not backed up.

gryban1 avatar Feb 03 '22 16:02 gryban1

The backup of my calendar "Termine" is now working. Don't know why.

gryban1 avatar Apr 21 '22 14:04 gryban1

Nothing has changed here so far. I still only have backup files of contacts in the /.Contacts-Backup folder.

henningaround avatar Apr 22 '22 13:04 henningaround

I use DAVx^5 to sync my calendars, Nextcloud would only backup calendars from other accounts, not the ones saved on my server. It also saved the calendars on my own server two month ago but stopped suddenly, I see this in the files in the .calendar-backup folder.

ristein avatar May 17 '22 16:05 ristein

I use DAVx^5 to sync my calendars, Nextcloud would only backup calendars from other accounts, not the ones saved on my server. It also saved the calendars on my own server two month ago but stopped suddenly, I see this in the files in the .calendar-backup folder.

I do also you DAVx^5. But the directory ".calendar-backup" doesn't show up.

henningaround avatar May 18 '22 09:05 henningaround

Here similar:

  • calendar backup not working at all

  • contacts backup works only manually (via "Back up now" button) - while "Restore backup" giving me the possibility to choose any date from a certain date on (April 2022, can't remember whether I activated the backup back then)

System info: Nextcloud Android app: 3.20.3 Android 10 (MIUI Global 12.0.1)

Simplenuity avatar Jun 27 '22 08:06 Simplenuity

I also have the same error. The contacts are backed up in the folder .Contacts-Backup. But my calendars are not backed up. There is also NO folder .Calendar.Backup. Even if I create it manually, nothing happens. The calendar backup just does not work.

System info: Nexcloud version 24.0.2 and DavX5 version 4.2.2-ose. My phone is running Nextcloud Android App 3.20.3.

Jobode avatar Jul 03 '22 17:07 Jobode

Also having issues...

Android 12, nextcloud 3.20.3

  • Calendar backup does not work
  • Contacts backup used to work but now does not. I tried toggling the slider but still doesn't work. Manual back up does work.

May try reinstalling the app if I continue to have issues with contacts but any suggestions are appreciated.

ljep42 avatar Jul 12 '22 00:07 ljep42

How can I check whether this works in 3.21.1? Clicking on "backup now" creates a new file in .contacts-backup but nothing else, although "backup calendar" is enabled. No error message either.

The activity tab does also only show the vcf file and nothing else.

svenb1234 avatar Aug 26 '22 14:08 svenb1234

How can I check whether this works in 3.21.1? Clicking on "backup now" creates a new file in .contacts-backup but nothing else, although "backup calendar" is enabled. No error message either.

The activity tab does also only show the vcf file and nothing else.

Same.

Jerome-Herbinet avatar Aug 26 '22 15:08 Jerome-Herbinet

I have another phone where it worked. With that phone the backup was enabled after the update to 3.21.1

svenb1234 avatar Aug 27 '22 18:08 svenb1234

How can I check whether this works in 3.21.1? Clicking on "backup now" creates a new file in .contacts-backup but nothing else, although "backup calendar" is enabled. No error message either.

The activity tab does also only show the vcf file and nothing else.

Try removing and re-granting calendar permissions for the app

AlvaroBrey avatar Aug 29 '22 08:08 AlvaroBrey

How can I check whether this works in 3.21.1? Clicking on "backup now" creates a new file in .contacts-backup but nothing else, although "backup calendar" is enabled. No error message either. The activity tab does also only show the vcf file and nothing else.

Try removing and re-granting calendar permissions for the app

I tried this to no avail. Starting a manual backup only created a backup of the contacts.

Simplenuity avatar Aug 29 '22 08:08 Simplenuity

How can I check whether this works in 3.21.1? Clicking on "backup now" creates a new file in .contacts-backup but nothing else, although "backup calendar" is enabled. No error message either. The activity tab does also only show the vcf file and nothing else.

Try removing and re-granting calendar permissions for the app

I tried this to no avail. Starting a manual backup only created a backup of the contacts.

Same (still no calendar backup after disabling and enabling it)

Jerome-Herbinet avatar Aug 29 '22 08:08 Jerome-Herbinet

@Jerome-Herbinet @Simplenuity can either of you post some logs?

Instructions here: https://github.com/nextcloud/android#getting-debug-info-via-logcat-mag

Feel free to search and replace the server URL, username and other file names in the output.

AlvaroBrey avatar Aug 29 '22 09:08 AlvaroBrey

@Jerome-Herbinet @Simplenuity can either of you post some logs?

Instructions here: https://github.com/nextcloud/android#getting-debug-info-via-logcat-mag

Feel free to search and replace the server URL, username and other file names in the output.

@AlvaroBrey logcatOutput.txt

Jerome-Herbinet avatar Aug 29 '22 09:08 Jerome-Herbinet

Thanks @Jerome-Herbinet, from the above log:

08-29 11:16:41.606 14654 14672 E WM-WorkerWrapper: Work [ id=a948a45c-10cf-49c1-bb5d-0fe9bda45e1c, tags={ name:immediate_calendar_backup <account id> timestamp:1661764601420, *, user:<user id>, com.nextcloud.client.jobs.CalendarBackupWork } ] failed because it threw an exception/error
08-29 11:16:41.606 14654 14672 E WM-WorkerWrapper: java.util.concurrent.ExecutionException: net.fortuna.ical4j.model.ValidationException: Calendar must contain at least one component
08-29 11:16:41.606 14654 14672 E WM-WorkerWrapper: 	at androidx.work.impl.utils.futures.AbstractFuture.getDoneValue(AbstractFuture.java:516)
08-29 11:16:41.606 14654 14672 E WM-WorkerWrapper: 	at androidx.work.impl.utils.futures.AbstractFuture.get(AbstractFuture.java:475)
08-29 11:16:41.606 14654 14672 E WM-WorkerWrapper: 	at androidx.work.impl.WorkerWrapper$2.run(WorkerWrapper.java:311)
08-29 11:16:41.606 14654 14672 E WM-WorkerWrapper: 	at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91)
08-29 11:16:41.606 14654 14672 E WM-WorkerWrapper: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
08-29 11:16:41.606 14654 14672 E WM-WorkerWrapper: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
08-29 11:16:41.606 14654 14672 E WM-WorkerWrapper: 	at java.lang.Thread.run(Thread.java:920)
08-29 11:16:41.606 14654 14672 E WM-WorkerWrapper: Caused by: net.fortuna.ical4j.model.ValidationException: Calendar must contain at least one component
08-29 11:16:41.606 14654 14672 E WM-WorkerWrapper: 	at net.fortuna.ical4j.model.Calendar.validate(Calendar.java:287)
08-29 11:16:41.606 14654 14672 E WM-WorkerWrapper: 	at net.fortuna.ical4j.model.Calendar.validate(Calendar.java:257)
08-29 11:16:41.606 14654 14672 E WM-WorkerWrapper: 	at net.fortuna.ical4j.data.CalendarOutputter.output(CalendarOutputter.java:96)
08-29 11:16:41.606 14654 14672 E WM-WorkerWrapper: 	at net.fortuna.ical4j.data.CalendarOutputter.output(CalendarOutputter.java:83)
08-29 11:16:41.606 14654 14672 E WM-WorkerWrapper: 	at third_parties.sufficientlysecure.SaveCalendar.start(SaveCalendar.java:193)
08-29 11:16:41.606 14654 14672 E WM-WorkerWrapper: 	at com.nextcloud.client.jobs.CalendarBackupWork.doWork(CalendarBackupWork.kt:69)
08-29 11:16:41.606 14654 14672 E WM-WorkerWrapper: 	at androidx.work.Worker$1.run(Worker.java:86)

I have no idea what Calendar must contain at least one component means, I'll try to figure it out.

AlvaroBrey avatar Aug 29 '22 09:08 AlvaroBrey

@Jerome-Herbinet @Simplenuity can either of you post some logs? Instructions here: https://github.com/nextcloud/android#getting-debug-info-via-logcat-mag Feel free to search and replace the server URL, username and other file names in the output.

@AlvaroBrey logcatOutput.txt

@AlvaroBrey, this is strange ... so, I have just made sure that none of my 9 calendars are empty. They all contain events.

Jerome-Herbinet avatar Aug 29 '22 09:08 Jerome-Herbinet

@Jerome-Herbinet @Simplenuity can either of you post some logs?

Instructions here: https://github.com/nextcloud/android#getting-debug-info-via-logcat-mag

Feel free to search and replace the server URL, username and other file names in the output.

Sorry for the delay, @AlvaroBrey Would it still be helpful to provide some logs?

Simplenuity avatar Sep 09 '22 08:09 Simplenuity

@Simplenuity yes please, the most probable thing is that it's the same error as the one above, but it may be the case that it's not

AlvaroBrey avatar Sep 12 '22 12:09 AlvaroBrey

@AlvaroBrey, please find logcat attached logcat.txt

Simplenuity avatar Sep 13 '22 12:09 Simplenuity

Same here:

`10-12 17:32:20.023  7328  7512 I ICS_SaveCalendar: Save id 1 to file /data/user/0/com.nextcloud.client/cache/calendar_displayname_local_2022-10-12_17-32-20.ics
10-12 17:32:20.026  7328  7512 I Configurator: ical4j.properties not found.
10-12 17:32:20.031  7328  7383 E WM-WorkerWrapper: Work [ id=e9ac781b-46c0-44b4-bb01-2280387cd706, tags={ name:immediate_calendar_backup [email protected]@xxxx.xxxx timestamp:1665588739952, *, user:[email protected]@xxxx.xxx, com.nextcloud.client.jobs.CalendarBackupWork } ] failed because it threw an exception/error
10-12 17:32:20.031  7328  7383 E WM-WorkerWrapper: java.util.concurrent.ExecutionException: net.fortuna.ical4j.model.ValidationException: Calendar must contain at least one component
10-12 17:32:20.031  7328  7383 E WM-WorkerWrapper: 	at androidx.work.impl.utils.futures.AbstractFuture.getDoneValue(AbstractFuture.java:516)
10-12 17:32:20.031  7328  7383 E WM-WorkerWrapper: 	at androidx.work.impl.utils.futures.AbstractFuture.get(AbstractFuture.java:475)
10-12 17:32:20.031  7328  7383 E WM-WorkerWrapper: 	at androidx.work.impl.WorkerWrapper$2.run(WorkerWrapper.java:311)
10-12 17:32:20.031  7328  7383 E WM-WorkerWrapper: 	at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91)
10-12 17:32:20.031  7328  7383 E WM-WorkerWrapper: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
10-12 17:32:20.031  7328  7383 E WM-WorkerWrapper: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
10-12 17:32:20.031  7328  7383 E WM-WorkerWrapper: 	at java.lang.Thread.run(Thread.java:1012)
10-12 17:32:20.031  7328  7383 E WM-WorkerWrapper: Caused by: net.fortuna.ical4j.model.ValidationException: Calendar must contain at least one component
10-12 17:32:20.031  7328  7383 E WM-WorkerWrapper: 	at net.fortuna.ical4j.model.Calendar.validate(Calendar.java:287)
10-12 17:32:20.031  7328  7383 E WM-WorkerWrapper: 	at net.fortuna.ical4j.model.Calendar.validate(Calendar.java:257)
10-12 17:32:20.031  7328  7383 E WM-WorkerWrapper: 	at net.fortuna.ical4j.data.CalendarOutputter.output(CalendarOutputter.java:96)
10-12 17:32:20.031  7328  7383 E WM-WorkerWrapper: 	at net.fortuna.ical4j.data.CalendarOutputter.output(CalendarOutputter.java:83)
10-12 17:32:20.031  7328  7383 E WM-WorkerWrapper: 	at third_parties.sufficientlysecure.SaveCalendar.start(SaveCalendar.java:193)
10-12 17:32:20.031  7328  7383 E WM-WorkerWrapper: 	at com.nextcloud.client.jobs.CalendarBackupWork.doWork(CalendarBackupWork.kt:69)
10-12 17:32:20.031  7328  7383 E WM-WorkerWrapper: 	at androidx.work.Worker$1.run(Worker.java:86)
10-12 17:32:20.031  7328  7383 E WM-WorkerWrapper: 	... 3 more
10-12 17:32:20.031  7328  7383 I WM-WorkerWrapper: Worker result FAILURE for Work [ id=e9ac781b-46c0-44b4-bb01-2280387cd706,`

snetAT avatar Oct 12 '22 16:10 snetAT

Hi, calendar backup still doesn't work for me either.

Need logs ?

CelianGdfrd avatar Oct 15 '22 20:10 CelianGdfrd

Screenshot_20221022-143039 Fixed ! 🔥

CelianGdfrd avatar Oct 22 '22 12:10 CelianGdfrd

Still not working here Android 12 Nextcloud client 3.22.1

Not all calendars are saved, some are still missing

repsorp avatar Oct 22 '22 15:10 repsorp

Still not working for me : Android 12 on a Xiami 11T Nextcloud Android client : 3.22.1 Nextcloud server : 24.0.6 Calendar app : 3.5.1 Contacts app : 4.2.2

Jerome-Herbinet avatar Oct 22 '22 18:10 Jerome-Herbinet

@repsorp @Jerome-Herbinet Have you tried going into the settings and activating calendar backup ? It seems to reset with 3.22

CelianGdfrd avatar Oct 22 '22 19:10 CelianGdfrd

@repsorp @Jerome-Herbinet Have you tried going into the settings and activating calendar backup ? It seems to reset with 3.22

Already tried before writing my comment 😟

Jerome-Herbinet avatar Oct 22 '22 19:10 Jerome-Herbinet