Super-productivity: WebDAV Nextcloud sync not working, continual upload try, but fails.

Created on 21 Oct 2020  Â·  26Comments  Â·  Source: johannesjo/super-productivity

Your Environment

  • Version used: deb - 6.0.0.rc.5
  • Operating System and version: Pop_OS! 20.04
  • Desktop Environment: GNOME
  • Browser Name and version: Desktop version

Expected Behavior

Webdav should sync to Nextcloud

Current Behavior

Can't sync the file. Say's No remote data found. Upload local to Remote when selecting ok, error: An Error occurred while uploading your local data, try to force the update and just hitting ok, loops the process.

Steps to Reproduce (for bugs)

  1. Setup SYNC with the follwing info and it presents these errors.

image

Console Output

main.8b59fe120f7989f6bc26.js:1 Persistence already allowed
main.8b59fe120f7989f6bc26.js:1 0 out of 206572 MiB used (0%)
main.8b59fe120f7989f6bc26.js:1 Migrating model "Task" to version from undefined to 3.3334 Object
main.8b59fe120f7989f6bc26.js:1 Migrating model "TaskRepeat" to version from undefined to 1 Object
main.8b59fe120f7989f6bc26.js:1 Migrating model "Task" to version from undefined to 3.3334 Object
main.8b59fe120f7989f6bc26.js:1 Migrating model "TaskRepeat" to version from undefined to 1 Object
main.8b59fe120f7989f6bc26.js:1 Migrating model "Tag" to version from undefined to 1 Object
main.8b59fe120f7989f6bc26.js:1 Migrating model "SimpleCounter" to version from undefined to 2 Object
main.8b59fe120f7989f6bc26.js:1 Object
main.8b59fe120f7989f6bc26.js:1 true Object
main.8b59fe120f7989f6bc26.js:1 WebDAV
main.8b59fe120f7989f6bc26.js:1 backupMeta Object
main.8b59fe120f7989f6bc26.js:1 backupData {"bookmark":{},"note":{},"metric":{},"improvement":{},"obstruction":{},"globalConfig":{"lang":{"lng":null},"misc":{"isDarkMode":true,"isConfirmBeforeExit":false,"isNotifyWhenTimeEstimateExceeded":false,"isAutMarkParentAsDone":false,"isAutoStartNextTask":true,"isTurnOffMarkdown":false,"isAutoAddWorkedOnToToday":false,"isDisableInitialDialog":false,"defaultProjectId":null,"firstDayOfWeek":0},"evaluation":{"isHideEvaluationSheet":false},"idle":{"isOnlyOpenIdleWhenCurrentTask":false,"isEnableIdleTimeTracking":true,"minIdleTime":300000,"isUnTrackedIdleResetsBreakTimer":true},"takeABreak":{"isTakeABreakEnabled":false,"isLockScreen":false,"isFocusWindow":false,"takeABreakMessage":"Take a break! You have been working for ${duration} without one. Go away from the computer! Take a short walk! Makes you more productive in the long run!","takeABreakMinWorkingTime":3600000,"motivationalImg":null},"pomodoro":{"isEnabled":false,"duration":1500000,"breakDuration":300000,"longerBreakDuration":900000,"cyclesBeforeLongerBreak":4,"isStopTrackingOnBreak":true,"isStopTrackingOnLongBreak":true,"isManualContinue":false,"isPlaySound":true,"isPlaySoundAfterBreak":false,"isPlayTick":false},"keyboard":{"globalShowHide":"Ctrl+Shift+X","globalToggleTaskStart":null,"globalAddNote":null,"globalAddTask":null,"addNewTask":"Shift+A","addNewNote":"n","openProjectNotes":"Shift+N","openDistractionPanel":"Shift+D","showHelp":"?","toggleBookmarks":"Shift+V","toggleBacklog":"b","goToWorkView":"w","goToSettings":null,"zoomIn":"Ctrl++","zoomOut":"Ctrl+-","zoomDefault":"Ctrl+0","taskEditTitle":"e","taskToggleAdditionalInfoOpen":"i","taskOpenEstimationDialog":"t","taskSchedule":"s","taskToggleDone":"d","taskAddSubTask":"a","taskDelete":"Delete","taskMoveToProject":null,"selectPreviousTask":"k","selectNextTask":"j","moveTaskUp":"Ctrl+Shift+ArrowUp","moveTaskDown":"Ctrl+Shift+ArrowDown","moveToBacklog":"Shift+B","moveToTodaysTasks":"Shift+T","expandSubTasks":null,"collapseSubTasks":null,"togglePlay":"y"},"localBackup":{"isEnabled":true},"sound":{"volume":75,"isPlayDoneSound":true,"isIncreaseDoneSoundPitch":true,"doneSound":"done2.mp3"},"trackingReminder":{"isEnabled":true,"isShowOnMobile":false,"minTime":120000},"sync":{"isEnabled":true,"syncProvider":"WebDAV","syncInterval":60000,"dropboxSync":{"authCode":null,"accessToken":null},"googleDriveSync":{"isAutoSyncToRemote":false,"isNotifyOnSync":false,"isLoadRemoteDataOnStartup":false,"isAutoLogin":false,"isCompressData":true,"syncFileName":"SUPER_PRODUCTIVITY_SYNC.json","_syncFileNameForBackupDocId":null,"_backupDocId":null},"webDav":{"baseUrl":"https://cloud.NEXTCLOUD.net/remote.php/dav/files/C_B/","userName":"C_B","password":"password","syncFilePath":"super-sync.json"}},"googleDriveSync":{"isEnabled":false,"isAutoLogin":false,"isAutoSyncToRemote":false,"isNotifyOnSync":false,"isLoadRemoteDataOnStartup":false,"isCompressData":true,"syncInterval":300000,"syncFileName":"SUPER_PRODUCTIVITY_SYNC.json","_backupDocId":null},"dropboxSync":{"isEnabled":false,"syncInterval":60000,"authCode":null,"accessToken":null,"_backupDocId":null},"__modelVersion":2},"reminders":[],"project":{"ids":["DEFAULT"],"entities":{"DEFAULT":{"id":"DEFAULT","title":"Super Productivity","isArchived":false,"issueIntegrationCfgs":{"JIRA":{"isEnabled":false,"_isBlockAccess":false,"host":null,"userName":null,"password":null,"isWonkyCookieMode":false,"isAutoPollTickets":true,"searchJqlQuery":"","isAutoAddToBacklog":true,"autoAddBacklogJqlQuery":"assignee = currentUser() AND sprint in openSprints() AND resolution = Unresolved","isWorklogEnabled":true,"isAutoWorklog":false,"isAddWorklogOnSubTaskDone":true,"isAllowSelfSignedCertificate":false,"isUpdateIssueFromLocal":false,"isShowComponents":true,"isCheckToReAssignTicketOnTaskStart":false,"storyPointFieldId":null,"isTransitionIssuesEnabled":true,"availableTransitions":[],"transitionConfig":{"OPEN":"DO_NOT","IN_PROGRESS":"ALWAYS_ASK","DONE":"ALWAYS_ASK"},"userToAssignOnDone":null},"GITHUB":{"repo":null,"token":null,"isSearchIssuesFromGithub":false,"isAutoPoll":false,"isAutoAddToBacklog":false,"filterUsername":null},"GITLAB":{"project":null,"token":null,"isSearchIssuesFromGitlab":false,"isAutoPoll":false,"isAutoAddToBacklog":false,"filterUsername":null}},"taskIds":[],"backlogTaskIds":[],"advancedCfg":{"worklogExportSettings":{"cols":["DATE","START","END","TIME_CLOCK","TITLES_INCLUDING_SUB"],"roundWorkTimeTo":null,"roundStartTimeTo":null,"roundEndTimeTo":null,"separateTasksBy":" | ","groupBy":"DATE"}},"theme":{"isAutoContrast":true,"isDisableBackgroundGradient":false,"primary":"#29a1aa","huePrimary":"500","accent":"#ff4081","hueAccent":"500","warn":"#e11826","hueWarn":"500"},"workStart":{},"workEnd":{},"breakTime":{},"breakNr":{}}},"__modelVersion":5.1},"tag":{"ids":[],"entities":{}},"simpleCounter":{"ids":["STANDING_DESK_ID","COFFEE COUNTER"],"entities":{"STANDING_DESK_ID":{"id":"STANDING_DESK_ID","title":"Standing Desk Timer","isEnabled":false,"icon":"airline_seat_recline_normal","iconOn":"directions_walk","type":"StopWatch","triggerOnActions":[],"triggerOffActions":[],"countOnDay":{},"isOn":false},"COFFEE COUNTER":{"id":"COFFEE COUNTER","title":"Coffee Counter","isEnabled":false,"icon":"free_breakfast","type":"ClickCounter","triggerOnActions":[],"triggerOffActions":[],"countOnDay":{},"isOn":false}}},"task":{"ids":[],"entities":{},"currentTaskId":null,"selectedTaskId":null,"taskAdditionalInfoTargetPanel":"Default","lastCurrentTaskId":null,"isDataLoaded":false},"taskArchive":{"ids":[],"entities":{}},"taskRepeatCfg":{"ids":[],"entities":{}},"lastActiveTime":1603267303704,"lastLocalSyncModelChange":1603267303704}
main.8b59fe120f7989f6bc26.js:1 IMPORT---> Object
main.8b59fe120f7989f6bc26.js:1 Migrating model "Tag" to version from undefined to 1 Object
main.8b59fe120f7989f6bc26.js:1 Migrating model "SimpleCounter" to version from undefined to 2 Object
main.8b59fe120f7989f6bc26.js:1 Migrating model "TaskRepeat" to version from undefined to 1 Object
main.8b59fe120f7989f6bc26.js:1 Migrating model "Task" to version from undefined to 3.3334 Object
main.8b59fe120f7989f6bc26.js:1 sync(effect)..... SYNC_DBX_AFTER_ENABLE
cloud.NEXTCLOUD.net/remote.php/dav/files/C_B/super-sync.json:1 Failed to load resource: the server responded with a status of 404 (Not Found)
main.8b59fe120f7989f6bc26.js:1 WebDAV ↑ Update Remote after no getRevAndLastClientUpdate()
main.8b59fe120f7989f6bc26.js:1 Refused to set unsafe header "Content-Length"
(anonymous) @ main.8b59fe120f7989f6bc26.js:1
main.8b59fe120f7989f6bc26.js:1 sync(effect)..... I_FOCUS_THROTTLED
cloud.NEXTCLOUD.net/remote.php/dav/files/C_B/super-sync.json:1 Failed to load resource: the server responded with a status of 503 (Service Unavailable)
main.8b59fe120f7989f6bc26.js:1 Error: Request failed with status code 503
at t.exports (main.8b59fe120f7989f6bc26.js:1)
at t.exports (main.8b59fe120f7989f6bc26.js:1)
at XMLHttpRequest.p.onreadystatechange [as __zone_symbol__ON_PROPERTYreadystatechange] (main.8b59fe120f7989f6bc26.js:1)
at XMLHttpRequest.D (polyfills.250ebd3af63450554a58.js:1)
at l.invokeTask (polyfills.250ebd3af63450554a58.js:1)
at Object.onInvokeTask (main.8b59fe120f7989f6bc26.js:1)
at l.invokeTask (polyfills.250ebd3af63450554a58.js:1)
at i.runTask (polyfills.250ebd3af63450554a58.js:1)
at u.invokeTask [as invoke] (polyfills.250ebd3af63450554a58.js:1)
at _ (polyfills.250ebd3af63450554a58.js:1)
(anonymous) @ main.8b59fe120f7989f6bc26.js:1
main.8b59fe120f7989f6bc26.js:1 WebDAV X Upload Request Error
main.8b59fe120f7989f6bc26.js:1 Refused to set unsafe header "Content-Length"
(anonymous) @ main.8b59fe120f7989f6bc26.js:1
cloud.NEXTCLOUD.net/remote.php/dav/files/C_B/super-sync.json:1 Failed to load resource: the server responded with a status of 503 (Service Unavailable)
main.8b59fe120f7989f6bc26.js:1 Error: Request failed with status code 503
at t.exports (main.8b59fe120f7989f6bc26.js:1)
at t.exports (main.8b59fe120f7989f6bc26.js:1)
at XMLHttpRequest.p.onreadystatechange [as __zone_symbol__ON_PROPERTYreadystatechange] (main.8b59fe120f7989f6bc26.js:1)
at XMLHttpRequest.D (polyfills.250ebd3af63450554a58.js:1)
at l.invokeTask (polyfills.250ebd3af63450554a58.js:1)
at Object.onInvokeTask (main.8b59fe120f7989f6bc26.js:1)
at l.invokeTask (polyfills.250ebd3af63450554a58.js:1)
at i.runTask (polyfills.250ebd3af63450554a58.js:1)
at u.invokeTask [as invoke] (polyfills.250ebd3af63450554a58.js:1)
at _ (polyfills.250ebd3af63450554a58.js:1)
(anonymous) @ main.8b59fe120f7989f6bc26.js:1
main.8b59fe120f7989f6bc26.js:1 WebDAV X Upload Request Error
main.8b59fe120f7989f6bc26.js:1 Service worker registration failed with: TypeError: Failed to register a ServiceWorker for scope ('file:///opt/superProductivity/resources/app.asar/dist/') with script ('file:///opt/superProductivity/resources/app.asar/dist/ngsw-worker.js'): An unknown error occurred when fetching the script.
(anonymous) @ main.8b59fe120f7989f6bc26.js:1
DevTools failed to load SourceMap: Could not load content for file:///opt/superProductivity/resources/app.asar/dist/runtime.076604685350bc36956d.js.map:
DevTools failed to load SourceMap: Could not load content for file:///opt/superProductivity/resources/app.asar/dist/polyfills.250ebd3af63450554a58.js.map:
DevTools failed to load SourceMap: Could not load content for file:///opt/superProductivity/resources/app.asar/dist/main.8b59fe120f7989f6bc26.js.map:
DevTools failed to load SourceMap: Could not load content for file:///opt/superProductivity/resources/app.asar/dist/styles.e1c786d55963a75bdeca.css.map:
DevTools failed to load SourceMap: Could not load content for file:///opt/superProductivity/resources/app.asar/dist/reminder.5b0fa13d8ca10813efca.worker.js.map:
DevTools failed to load SourceMap: Could not load content for file:///opt/superProductivity/resources/app.asar/dist/lz.5d2c2359e92f65d00e61.worker.js.map:

Error Log (Desktop only)