iCalendar file on webdav network drive hangs on shutdown
Categories
(Calendar :: General, defect)
Tracking
(Not tracked)
People
(Reporter: tim, Unassigned)
Details
(Keywords: hang)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0
Steps to reproduce:
OS: Windows 10 (Pro, Enterprise, Home)
I have an iCalendar file '*.ics' on a webdav networkdrive.
I use it from different computers as a 'synced' calendar under Thunderbird (TB) since 2013.
It worked well until TB 68.12.
Under TB 78.2.2 there is this strange behavior (i don't checked under TB78.x.y.):
After you try to change something in the calendar (date, task) or make a new date or task, no change or new date/task is visible.
When you close Thunderbird only the window is closed, the thunderbird task (in the taskmanager) is not closed.
When you now restart Thunderbird you are not asked for your main password at start and there are no changes in the calendar.
When you close the Thunderbird-task in the taskmanager before restart and you start Thunderbird, it behaves normal at start (you will be asked for your password) and in the calendar the first modification that you have done in the TB-session before is now visible. (TB behaves now like before, no modification in the calendar is visible, the first modification is visible after a full restart (kill the TB task in the taskmanager before)).
Thanks for your help,
best regards,
tim
Actual results:
working with an iCalendar file on a Webdav networkdrive is not working any more [since update to Version 78.2.2 (?)] , thunderbird task is not closed correctly when you try to work with your calendar.
Updated•5 years ago
|
Comment 1•5 years ago
|
||
(In reply to tim@pakendorf.de from comment #0)
After you try to change something in the calendar (date, task) or make a new date or task, no change or new date/task is visible.
Just to clarify, you have a Webdav network drive mounted in File Explorer on which you have a calendar.ics file saved on it that you subscribed to directly in Thunderbird correct? If you look in Calendar Properties can you provide the URL that show (you can change any personal data just need to see the format of the URL that show or simply copy paste as you wish)
Or is it a caldav calendar hosted on a calendar server?
If in the first case, when this issue occurs are you still able to create new file/folder in the Weddav networking drive via Windows File Explorer?
My understanding from https://support.mozilla.org/en-US/kb/creating-new-calendars#w_icalendar-ics and my recent experience in Bug 1666036 is that calendar detected/set as ICS calendar in Thunderbird are read-only. For them to be read-write they need to be detected/set as CALDAV type calendar but that would require a calendar server to handle the CalDAV network requests...
Do you get any error on screen or in console (CTRL+SHIFT+J) when you try to save your changes in the calendar?
Comment 2•5 years ago
|
||
Comment 3•5 years ago
|
||
Hi Tim,
FYI,
On my Windows 10 machine I mapped a webdav network drive in File Explorer accessible in read-write mode.
With TB 81.0b4 (64-bit) I did the following
- Add New Calendar > on My Computer name "Test"
- Added a "Test" event
- Exported calendar as test.ics to the webdav network drive
- Remove the "Test" calendar in TB
- Subscribe to the test.ics calendar file on webdav network drive via File > Open > Calendar file...
Result:
I can read and write to the calendar - Add items, modify items, remove items without error...
With 78.2.2 (64-bit) I did the following
- Subscribe to the test.ics calendar file on webdav network drive via File > Open > Calendar file...
Result:
I can read and write to the calendar - Add items, modify items, remove items without error...
So maybe the problem is either linked to the calendar itself or a webdav network/storage issue perhaps?
If you reproduce those steps above with TB 78.2.2 what result do you get at your end with your webdav network drive?
This may help to confirm if the issue is with the pre-existing calendar or the webdav network drive perhaps...
Regards,
Richard
| Reporter | ||
Comment 4•5 years ago
|
||
Hi Richard,
here are the informations to your first post:
(In reply to Richard Leger from comment #1)
(In reply to tim@pakendorf.de from comment #0)
After you try to change something in the calendar (date, task) or make a new date or task, no change or new date/task is visible.
Just to clarify, you have a Webdav network drive mounted in File Explorer on which you have a calendar.ics file saved on it that you subscribed to directly in Thunderbird correct? If you look in Calendar Properties can you provide the URL that show (you can change any personal data just need to see the format of the URL that show or simply copy paste as you wish)
https://webdav.onlinestorage.1and1.com/users/myusername/iCal/calendarname.ics
Or is it a caldav calendar hosted on a calendar server?
No
If in the first case, when this issue occurs are you still able to create new file/folder in the Weddav networking drive via Windows File Explorer?
Yes, this is possible (create folder; copy file to webdav-directory; change file; delete file, folder)
My understanding from https://support.mozilla.org/en-US/kb/creating-new-calendars#w_icalendar-ics and my recent experience in Bug 1666036 is that calendar detected/set as ICS calendar in Thunderbird are read-only. For them to be read-write they need to be detected/set as CALDAV type calendar but that would require a calendar server to handle the CalDAV network requests...
My Laptop was yesterday evening on TB Version 68.12 so i tested the ics-calendar and the calendar worked with read/write access.
Then i started the update (help/about thunderbird/...) to Version TB78.2.2 and after the update the strange behavior in accessing the ics-calendar starts. So my experience is that the ics-calendar in a webdav-folder with read/write-access works until TB68.12.
Do you get any error on screen or in console (CTRL+SHIFT+J) when you try to save your changes in the calendar?
Yes, when i start the syncronization or make a date in the webdav calendar i get a lot of errors in the console but i can't find a systematic in it and i dont know which errors are importent for you. I list the different errors here and estimate the incidence:
Very often:
TypeError: impl is null 14 network-response-listener.js:104:7
_forwardNotification resource://devtools/server/actors/network-monitor/network-response-listener.js:104
onStatus resource://devtools/server/actors/network-monitor/network-response-listener.js:395
TypeError: impl is null network-response-listener.js:104:7
_forwardNotification resource://devtools/server/actors/network-monitor/network-response-listener.js:104
onProgress resource://devtools/server/actors/network-monitor/network-response-listener.js:391
often:
NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "impl is null" {file: "resource://devtools/server/actors/network-monitor/network-response-listener.js" line: 104}]'[JavaScript Error: "impl is null" {file: "resource://devtools/server/actors/network-monitor/network-response-listener.js" line: 104}]' when calling method: [nsIProgressEventSink::onStatus] network-response-listener.js:104
_forwardNotification resource://devtools/server/actors/network-monitor/network-response-listener.js:104
onStatus resource://devtools/server/actors/network-monitor/network-response-listener.js:395
sometimes:
Lightning: [calStorageCalendar] Message: executeSyncItemStatement exception
Connection Ready: true
Last DB Error Number: 6
Last DB Error Message: database table is locked
Database File: C:\Users\Tim\AppData\Roaming\Thunderbird\Profiles\yzmbng4o.tim\calendar-data\cache.sqlite
Last DB Statement: [object AsyncStatementJSHelper]
Exception: [Exception... "Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [mozIStorageStatement.executeStep]" nsresult: "0x8052000e (NS_ERROR_FILE_IS_LOCKED)" location: "JS frame :: resource:///modules/CalStorageCalendar.jsm :: executeSyncItemStatement :: line 241" data: no]
1: [resource:///modules/CalStorageCalendar.jsm:2591] logError
2: [resource:///modules/CalStorageCalendar.jsm:243] executeSyncItemStatement
3: [resource:///modules/CalStorageCalendar.jsm:2478] setMetaData
4: [resource:///modules/CalDavCalendar.jsm:213] saveCalendarProperties
5: [resource:///modules/CalDavCalendar.jsm:1860] completeCheckServerInfo
6: [resource:///modules/CalDavCalendar.jsm:1837] checkPrincipalsNameSpace/<
CalStorageCalendar.jsm:2591
NS_ERROR_FILE_IS_LOCKED: Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [mozIStorageStatement.executeStep] CalStorageCalendar.jsm:241
executeSyncItemStatement resource:///modules/CalStorageCalendar.jsm:241
setMetaData resource:///modules/CalStorageCalendar.jsm:2478
saveCalendarProperties resource:///modules/CalDavCalendar.jsm:213
completeCheckServerInfo resource:///modules/CalDavCalendar.jsm:1860
checkPrincipalsNameSpace resource:///modules/CalDavCalendar.jsm:1837
NS_NOINTERFACE: CalICSCalendar.jsm:1068
getInterface resource:///modules/CalICSCalendar.jsm:1068
prepHttpChannel resource:///modules/calendar/utils/calProviderUtils.jsm:49
onAfterPut resource:///modules/CalICSCalendar.jsm:1043
onStopRequest resource:///modules/CalICSCalendar.jsm:457
Lightning: [calStorageCalendar] Message: executeSyncItemStatement exception
Connection Ready: true
Last DB Error Number: 6
Last DB Error Message: database table is locked
Database File: C:\Users\Tim\AppData\Roaming\Thunderbird\Profiles\yzmbng4o.tim\calendar-data\cache.sqlite
Last DB Statement: [object AsyncStatementJSHelper]
Exception: [Exception... "Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [mozIStorageStatement.executeStep]" nsresult: "0x8052000e (NS_ERROR_FILE_IS_LOCKED)" location: "JS frame :: resource:///modules/CalStorageCalendar.jsm :: executeSyncItemStatement :: line 241" data: no]
1: [resource:///modules/CalStorageCalendar.jsm:2591] logError
2: [resource:///modules/CalStorageCalendar.jsm:243] executeSyncItemStatement
3: [resource:///modules/CalStorageCalendar.jsm:2478] setMetaData
4: [resource:///modules/CalDavCalendar.jsm:213] saveCalendarProperties
5: [resource:///modules/caldav/CalDavRequestHandlers.jsm:513] endDocument
6: [resource:///modules/caldav/CalDavRequestHandlers.jsm:437] onStopRequest
7: [resource:///modules/caldav/CalDavRequest.jsm:550] get listener/get/<
CalStorageCalendar.jsm:2591
NS_ERROR_FILE_IS_LOCKED: Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [mozIStorageStatement.executeStep] 2 CalStorageCalendar.jsm:241
executeSyncItemStatement resource:///modules/CalStorageCalendar.jsm:241
setMetaData resource:///modules/CalStorageCalendar.jsm:2478
saveCalendarProperties resource:///modules/CalDavCalendar.jsm:213
endDocument resource:///modules/caldav/CalDavRequestHandlers.jsm:513
onStopRequest resource:///modules/caldav/CalDavRequestHandlers.jsm:437
get listener/get/< resource:///modules/caldav/CalDavRequest.jsm:550
Thanks for your help,
Best regards,
tim
(In reply to Richard Leger from comment #3)
Hi Tim,
FYI,
On my Windows 10 machine I mapped a webdav network drive in File Explorer accessible in read-write mode.
With TB 81.0b4 (64-bit) I did the following
- Add New Calendar > on My Computer name "Test"
- Added a "Test" event
- Exported calendar as test.ics to the webdav network drive
- Remove the "Test" calendar in TB
- Subscribe to the test.ics calendar file on webdav network drive via File > Open > Calendar file...
Result:
I can read and write to the calendar - Add items, modify items, remove items without error...With 78.2.2 (64-bit) I did the following
- Subscribe to the test.ics calendar file on webdav network drive via File > Open > Calendar file...
Result:
I can read and write to the calendar - Add items, modify items, remove items without error...So maybe the problem is either linked to the calendar itself or a webdav network/storage issue perhaps?
If you reproduce those steps above with TB 78.2.2 what result do you get at your end with your webdav network drive?
This may help to confirm if the issue is with the pre-existing calendar or the webdav network drive perhaps...Regards,
Richard
Comment 5•5 years ago
•
|
||
It looks like there are lockfile issues on cache file and possibly your calendar file or its related storage in TB...
I would try the following:
- right click calendar and see if you can disable it (not sure available for ICS)
- restart computer (this should clear all lock files)
- check that there is no tmp or lock file related yo TB or calendar in you webdav drive (you may need to display hidden files in File Explorer) it is likely to start with a tild ~ prefix and be small size like 1KB just move it off the drive if present
- then run thunderbird.exe -p to show profiles and tick offline mode before starting you profile...
- clear TB cache
- re-enable online mode
- re-enable your calendar
The idea here is to try to clear the cache before your calendar is accessed again...
Alternative options may be:
- close TB and move out the
C:\Users\Tim\AppData\Roaming\Thunderbird\Profiles\yzmbng4o.tim\calendar-data\cache.sqlite file out of your profile. - Unsbscribe from Calendar and re-open it in TB
- Run TB in safe-mode and try again
Those are just suggestions... none of them may work but perhaps worth a try...
If I have time later I'll try subscribe to ics in 68 and update to 72 see if I can reproduce your issue...
| Reporter | ||
Comment 6•5 years ago
|
||
Hi Richard,
my results are in your text below.
(In reply to Richard Leger from comment #3)
Hi Tim,
FYI,
On my Windows 10 machine I mapped a webdav network drive in File Explorer accessible in read-write mode.
With TB 81.0b4 (64-bit) I did the following
- Add New Calendar > on My Computer name "Test"
- Added a "Test" event
- Exported calendar as test.ics to the webdav network drive
- Remove the "Test" calendar in TB
- Subscribe to the test.ics calendar file on webdav network drive via File > Open > Calendar file...
Result:
I can read and write to the calendar - Add items, modify items, remove items without error...With 78.2.2 (64-bit) I did the following
- Subscribe to the test.ics calendar file on webdav network drive via File > Open > Calendar file...
Result:
I can read and write to the calendar - Add items, modify items, remove items without error...
I did the same under TB78.2.2 it worked without errors,
the difference to my setup is, that i don't need to map the webdav-directory under windows before TB78.
and there is a difference in the calendar address in the properties of the calendar:
My setup calendar address:
https://webdav.onlinestorage.1and1.com/users/username/iCal/usercalendar.ics
Your setup with maped drive calendar address:
file://///webdav.onlinestorage.1and1.com@SSL/DavWWWRoot/users/username/iCal/usercalendar.ics
Up to and including TB68.12 it worked to get access to the webdav-ics-calendar with the following steps:
(Maybe the naming is not correct i have a german TB)
Calendar-Tab -> left side under calendar right MB -> new calendar
choose networkcalendar
next
format: iCalendar (ICS)
address: fill in the webdav-address (in my case: https://webdav.onlinestorage.1and1.com/users/username/iCal/usercalendar.ics)
(i choose offline support)
next
Name: ....
colour ...
email: i choose my normal email
next
now a window pops up for your username and password for the webdav-folder (i choose to remember my password)
calendar is generated(?) window
finish
This worked fine under TB68.12
So maybe the problem is either linked to the calendar itself or a webdav network/storage issue perhaps?
If you reproduce those steps above with TB 78.2.2 what result do you get at your end with your webdav network drive?
This may help to confirm if the issue is with the pre-existing calendar or the webdav network drive perhaps...Regards,
Richard
In the next experiment i conected my old calendar file over a maped webdav-folder like in your setup.
I have now the same old calenderfile connected in TB two times ((1)over a maped drive and the old way (2)direct-address in TB)
Result:
maped drive calendar:
I can read and write to the calendar - Add items, modify items, remove items without error..
(The changes are shown in the old direct-address calendar [it looks like read access works])
But when i try to do a modification in the old direct-address-calendar also the read-access stops
(Now modifications that were done in the maped drive calendar are not shown in the old direct access-calendar)
I have to close TB, kill the TB-task in the taskmanager and restart TB, then the modifications are visible in the old direct access-calendar too.
Hopefully my informations are assistend,
best regards,
tim
Comment 7•5 years ago
|
||
If you add calendar via Location:
https://webdav.onlinestorage.1and1.com/users/username/iCal/usercalendar.ics
...then you add a Network Calendar of type ICS (as you choose yourself during setup) those are read-only according to doc https://support.mozilla.org/en-US/kb/creating-new-calendars#w_icalendar-ics
In 72 and 81 branch ICS calendar are read-only as per recent testing in Bug 1666036 and I believe that has always been the case...
Have you tried to change Calendar Type to CalDAV assuming the iCal server from 1and1 support it?
Only Local Computer .ics calendar are read-write/editable... to my knowledge...
But maybe Wayne or Paul can clarify on this...
| Reporter | ||
Comment 8•5 years ago
|
||
(In reply to Richard Leger from comment #5)
It looks like there are lockfile issues on cache file and possibly your calendar file or its related storage in TB...
I would try the following:
- right click calendar and see if you can disable it (not sure available for ICS)
- restart computer (this should clear all lock files)
- check that there is no tmp or lock file related yo TB or calendar in you webdav drive (you may need to display hidden files in File Explorer) it is likely to start with a tild ~ prefix and be small size like 1KB just move it off the drive if present
- then run thunderbird.exe -p to show profiles and tick offline mode before starting you profile...
- clear TB cache
- re-enable online mode
- re-enable your calendar
The idea here is to try to clear the cache before your calendar is accessed again...
Alternative options may be:
- close TB and move out the
C:\Users\Tim\AppData\Roaming\Thunderbird\Profiles\yzmbng4o.tim\calendar-data\cache.sqlite file out of your profile.- Unsbscribe from Calendar and re-open it in TB
- Run TB in safe-mode and try again
Those are just suggestions... none of them may work but perhaps worth a try...
If I have time later I'll try subscribe to ics in 68 and update to 72 see if I can reproduce your issue...
Hi Richard,
i tried both, but no change in behavior.
Best regards,
Tim
| Reporter | ||
Comment 9•5 years ago
|
||
(In reply to Richard Leger from comment #7)
If you add calendar via Location:
https://webdav.onlinestorage.1and1.com/users/username/iCal/usercalendar.ics...then you add a Network Calendar of type ICS (as you choose yourself during setup) those are read-only according to doc https://support.mozilla.org/en-US/kb/creating-new-calendars#w_icalendar-ics
The doc is for TB 68 when i read right?
My experience is: under TB68.12 i had read/write access to my older ics calendar in my webdav (but i did not try to add a new calendar under TB68)
In 72 and 81 branch ICS calendar are read-only as per recent testing in Bug 1666036 and I believe that has always been the case...
Have you tried to change Calendar Type to CalDAV assuming the iCal server from 1and1 support it?
I have only a hosted Webdav-folder and no server (to expensive and only for business customers avaiable), so caldav is no Option.
Only Local Computer .ics calendar are read-write/editable... to my knowledge...
But maybe Wayne or Paul can clarify on this...
Best regards,
Tim
Updated•5 years ago
|
Comment 10•5 years ago
|
||
(In reply to Richard Leger from comment #2)
Could this bug also be somewhat related to the work in bug 1663399.
Possibly, but seems unlikely.
| Reporter | ||
Comment 11•5 years ago
|
||
Hello Richard,
today i get the update to Thunderbird 78.3.2 and in this version the old functionality (i named it direct-access-calendar above) works again:
I have (again) read and write access to my ics-calendar-file which is placed in my webdav-drive and i have not maped the webdav-drive on my computer.
(I add my calendar via Location: https://webdav.onlinestorage.1and1.com/users/username/iCal/usercalendar.ics direct in Thunderbird)
What ever changed in Version 78.3.2 it solved my Problem.
Best regards,
Tim
Comment 12•5 years ago
|
||
I suspect bug 1650925 may have fixed.
Comment 13•5 years ago
|
||
Resolving as WORKSFORME per comment#11.
Description
•