pbek / QOwnNotes

QOwnNotes is a plain-text file notepad and todo-list manager with Markdown support and Nextcloud / ownCloud integration.
https://www.qownnotes.org/
GNU General Public License v2.0
4.6k stars 409 forks source link

Adding secondary Todo Nextcloud Calendar via "Other CalDAV Server" #1196

Closed sunjam closed 5 years ago

sunjam commented 5 years ago

Hi, I'm attempting to add todos using Other CalDAV Server for a remote Nextcloud stable instance that does not have QownnotesAPI installed.

Remote server is running Tasks and Calendars apps.

I added the Calendar base url as Primary CalDAV address listed in Nextcloud calendar app. Reads as https://cloud.example.com/remote.php/dav/ Added user name and one time password.

I select Reload calendar list, but no calendars or tasks show up despite having multiple available from the webui.

Thanks!

QOwnNotes Debug Information

General Info

Current Date: Fri Apr 26 11:32:53 2019 Version: 19.4.3 Build date: Apr 19 2019 Build number: 531 Platform: linux Operating System: Ubuntu 18.04.2 LTS Build architecture: x86_64 Current architecture: x86_64 Release: Launchpad PPA Qt Version (build): 5.9.5 Qt Version (runtime): 5.9.5 Portable mode: no Settings path / key: /home/name/.config/PBE/QOwnNotes.conf Application database path: /home/name/.local/share/PBE/QOwnNotes/QOwnNotes.sqlite Application arguments: QOwnNotes Qt Debug: 0 Locale (system): en_US Locale (interface): empty Icon theme: breeze-dark-qownnotes Notes in current note folder: 3 Enabled scripts: 0

Server Info

serverUrl: xxx.xxx.xxx.xxx appIsValid: yes notesPathExists: yes serverVersion: 15.0.6.1 appVersion: empty

Note folders

currentNoteFolderId: 1

Note folder default

id: 1 isCurrent: yes activeTagId: 0 localPath: /home/name/Nextcloud/Notes remotePath: Notes isShowSubfolders: no isUseGit: no activeNoteSubFolder name: empty database file: /home/name/Nextcloud/Notes/notes.sqlite

Enabled scripts

Settings

ActiveNoteHistoryItem (NoteHistoryItem): <binary data> Debug/fakeOldVersionNumber (bool): false Debug/fileLogging (bool): true Editor/CurrentSchemaKey (QString): EditorColorSchema-9c24397c-3122-4a0d-bc05-1989bdc7fa01 Editor/autoBracketClosing (bool): true Editor/autoBracketRemoval (bool): true Editor/editorWidthInDFMOnly (bool): true Editor/highlightCurrentLine (bool): true Editor/vimMode (bool): false LastUpdateCheck (QDateTime): 2019-04-26T11:26:57 MainWindow/mainToolBar.iconSize (int): 24 MainWindow/noteTextEdit.code.font (QString): monospace,11,-1,2,50,0,0,0,0,0 MainWindow/noteTextEdit.font (QString): Ubuntu,11,-1,5,50,0,0,0,0,0 MainWindow/noteTextView.code.font (QString): monospace,11,-1,2,50,0,0,0,0,0 MainWindow/noteTextView.font (QString): Ubuntu,11,-1,5,50,0,0,0,0,0 MainWindow/noteTextView.rtl (bool): false MainWindow/noteTextView.underline (bool): true MainWindow/showNotesFromAllNoteSubFolders (bool): true NoteHistory-1 (QVariantList): <variant list with 3 item(s)> NoteHistoryCurrentIndex-1 (int): 2 PiwikClientId (QString): <hidden> ScriptRepositoryDialog/geometry (QByteArray): <binary data> ScriptRepositoryDialog/mainSplitterState (QByteArray): <binary data> SearchEngineId (int): 2 SettingsDialog/geometry (QByteArray): <binary data> SettingsDialog/mainSplitterState (QByteArray): <binary data> ShowSystemTray (bool): false StartHidden (bool): false WelcomeDialog/geometry (QByteArray): <binary data> acceptAllExternalModifications (bool): false allowDifferentNoteFileName (bool): false allowNoteEditing (bool): true allowOnlyOneAppInstance (bool): true appMetrics/disableAppHeartbeat (bool): true appMetrics/disableTracking (bool): false appMetrics/notificationShown (QString): true automaticNoteFolderDatabaseClosing (bool): false closeTodoListAfterSave (bool): false cryptoKey (QString): <hidden> currentNoteFolderId (QString): 1 currentWorkspace (QString): initial cursorWidth (int): 1 customNoteFileExtensionList (QStringList): empty darkMode (bool): true darkModeColors (bool): true darkModeTrayIcon (bool): false defaultNoteFileExtension (QString): md demoNotesCreated (QString): true disableAutomaticUpdateDialog (bool): true disableSavedSearchesAutoCompletion (bool): false dockWasInitializedOnce (QString): true enableSocketServer (bool): true externalEditorPath (QString): empty fullyHighlightedBlockquotes (bool): false gitCommitInterval (int): 30 gitExecutablePath (QString): empty gitLogCommand (QString): empty guiFirstRunInit (bool): true ignoreAllExternalModifications (bool): false ignoreAllExternalNoteFolderChanges (bool): false ignoreNoteSubFolders (QString): ^\. imageScaleDown (bool): false imageScaleDownMaximumHeight (int): 1024 imageScaleDownMaximumWidth (int): 1024 initialLayoutIdentifier (QString): minimal insertTimeFormat (QString): empty interfaceFontSize (int): 11 interfaceLanguage (QString): empty internalIconTheme (bool): false itemHeight (int): 17 localTrash/autoCleanupDays (int): 30 localTrash/autoCleanupEnabled (bool): true localTrash/supportEnabled (bool): true markdownHighlightingEnabled (bool): true navigationPanelHideSearch (bool): false networking/ignoreSSLErrors (bool): true networking/proxyType (int): 2 newNoteAskHeadline (bool): false noteEditIsCentralWidget (bool): true noteListPreview (bool): false noteSaveIntervalTime (int): 10 noteSubfoldersPanelDisplayAsFullTree (bool): true noteSubfoldersPanelHideSearch (bool): false noteSubfoldersPanelOrder (int): 0 noteSubfoldersPanelShowFullPath (bool): false noteSubfoldersPanelShowNotesRecursively (bool): false noteSubfoldersPanelShowRootFolderName (bool): true noteSubfoldersPanelSort (int): 0 notesPanelOrder (int): 0 notesPanelSort (int): 1 notesPath (QString): /home/name/Nextcloud/Notes notifyAllExternalModifications (bool): false overrideInterfaceFontSize (bool): false ownCloud/ignoreNonTodoCalendars (QString): false ownCloud/password (QString): <hidden> ownCloud/serverUrl (QString): https://xxx.xxx.xxx ownCloud/supportEnabled (bool): true ownCloud/todoCalendarBackend (int): 2 ownCloud/todoCalendarCalDAVPassword (QString): <hidden> ownCloud/todoCalendarCalDAVServerUrl (QString): https://xxx.xxx.xxx/remote.php/dav/ ownCloud/todoCalendarCalDAVUsername (QString): name ownCloud/todoCalendarDisplayNameList (QStringList): empty ownCloud/todoCalendarEnabledList (QStringList): empty ownCloud/todoCalendarEnabledUrlList (QStringList): empty ownCloud/todoCalendarUrlList (QStringList): empty ownCloud/userName (QString): ncp ownCloudInfo/appIsValid (bool): true ownCloudInfo/connectionErrorMessage (QString): Unknown error ownCloudInfo/notesPathExistsText (QString): yes ownCloudInfo/serverVersion (QString): 15.0.6.1 restoreCursorPosition (bool): true showMenuBar (bool): true showStatusBar (bool): true systemIconTheme (bool): false taggingShowNotesRecursively (bool): false tagsPanelHideSearch (bool): false tagsPanelOrder (int): 0 tagsPanelSort (int): 0 toolbar/1/items (QStringList): action_New_note, action_Find_note, action_Remove_note, action_Open_note_in_external_editor, actionShow_local_trash, actionAllow_note_editing, , action_Back_in_note_history, action_Forward_in_note_history, , action_Find_text_in_note, actionReplace_in_current_note, , actionShow_versions, actionShow_trash, actionShare_note, , actionOpen_List toolbar/1/name (QString): mainToolBar toolbar/1/title (QString): main toolbar toolbar/2/items (QStringList): actionFormat_text_bold, actionFormat_text_italic, actionStrike_out_text, actionInsert_code_block, actionInsert_block_quote toolbar/2/name (QString): formattingToolbar toolbar/2/title (QString): formatting toolbar toolbar/3/items (QStringList): actionInsert_Link_to_note, actionInsert_image, actionInsert_current_time toolbar/3/name (QString): insertingToolbar toolbar/3/title (QString): inserting toolbar toolbar/4/items (QStringList): action_Encrypt_note, actionEdit_encrypted_note, actionDecrypt_note toolbar/4/name (QString): encryptionToolbar toolbar/4/title (QString): encryption toolbar toolbar/5/items (QStringList): actionWorkspaceComboBox, actionStore_as_new_workspace, actionRemove_current_workspace, actionRename_current_workspace, actionSwitch_to_previous_workspace, actionUnlock_panels, , actionToggle_distraction_free_mode, action_Increase_note_text_size, action_Decrease_note_text_size, action_Reset_note_text_size toolbar/5/name (QString): windowToolbar toolbar/5/title (QString): window toolbar toolbar/6/items (QStringList): action_Quit toolbar/6/name (QString): quitToolbar toolbar/6/title (QString): quit toolbar toolbar/size (int): 6 useUNIXNewline (bool): false webSocketServerService/bookmarksNoteName (QString): Bookmarks webSocketServerService/bookmarksTag (QString): bookmarks webSocketServerService/port (int): 22222 workspace-initial/name (QString): Minimal workspace-initial/noteSubFolderDockWidgetVisible (QString): true workspace-initial/windowState (QByteArray): <binary data> workspaces (QString): initial

System environment

USER: name LANGUAGE: en_US XDG_SEAT: seat0 XDG_SESSION_TYPE: x11 SSH_AGENT_PID: 1157 SHLVL: 0 HOME: /home/name DESKTOP_SESSION: Lubuntu XDG_SEAT_PATH: /org/freedesktop/DisplayManager/Seat0 DBUS_SESSION_BUS_ADDRESS: unix:abstract=/tmp/dbus-ltcoDIWhg5,guid=070497e853013ca11ad73db95cc33433 MANDATORY_PATH: /usr/share/gconf/Lubuntu.mandatory.path LOGNAME: name DEFAULTS_PATH: /usr/share/gconf/Lubuntu.default.path XDG_SESSION_ID: c2 PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin GDM_LANG: en_US XDG_RUNTIME_DIR: /run/user/1000 XDG_SESSION_PATH: /org/freedesktop/DisplayManager/Session0 DISPLAY: :0.0 LANG: en_US.UTF-8 XDG_SESSION_DESKTOP: Lubuntu XAUTHORITY: /home/name/.Xauthority XDG_GREETER_DATA_DIR: /var/lib/lightdm-data/name SSH_AUTH_SOCK: /tmp/ssh-eYcPkQ6PXYdO/agent.1091 SHELL: /bin/bash GDMSESSION: Lubuntu GPG_AGENT_INFO: /run/user/1000/gnupg/S.gpg-agent:0:1 XDG_VTNR: 7 PWD: /home/name XDG_DATA_DIRS: /etc/xdg/lubuntu:/usr/share/gdm:/var/lib/menu-xdg:/usr/share/Lubuntu:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_CONFIG_DIRS: /etc/xdg/lubuntu:/etc/xdg/xdg-Lubuntu:/etc/xdg XDG_CURRENT_DESKTOP: LXDE _LXSESSION_PID: 1091 XDG_CONFIG_HOME: /home/name/.config XDG_MENU_PREFIX: lxde- GTK_OVERLAY_SCROLLING: 0 QT_STYLE_OVERRIDE: gtk QT_PLATFORM_PLUGIN: lxqt QT_QPA_PLATFORMTHEME: lxqt

sunjam commented 5 years ago

Log Output

[Apr 26 11:32:21] [debug]: Set proxy configuration to use NO proxy [Apr 26 11:32:24] [debug]: Set proxy configuration to use NO proxy [Apr 26 11:32:35] [debug]: Reply from "/remote.php/dav/" [Apr 26 11:32:35] [debug]: Reply from ownCloud calendar page "<?xml version=\"1.0\"?>\n<d:multistatus xmlns:d=\"DAV:\" xmlns:s=\"http://sabredav.org/ns\" xmlns:oc=\"http://owncloud.org/ns\" xmlns:nc=\"http://nextcloud.org/ns\">/remote.php/dav/</d:href></d:resourcetype></d:prop>HTTP/1.1 200 OK</d:status></d:propstat><x1:supported-calendar-component-set xmlns:x1=\"urn:ietf:params:xml:ns:caldav\"/></d:prop>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response>/remote.php/dav/principals/</d:href></d:resourcetype></d:prop>HTTP/1.1 200 OK</d:status></d:propstat><x1:supported-calendar-component-set xmlns:x1=\"urn:ietf:params:xml:ns:caldav\"/></d:prop>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response>/remote.php/dav/files/</d:href></d:resourcetype></d:prop>HTTP/1.1 200 OK</d:status></d:propstat><x1:supported-calendar-component-set xmlns:x1=\"urn:ietf:params:xml:ns:caldav\"/></d:prop>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response>/remote.php/dav/calendars/</d:href></d:resourcetype></d:prop>HTTP/1.1 200 OK</d:status></d:propstat><s:ge/home/name/.local/share/PBE/QOwnNotes/QOwnNotes.log

pbek commented 5 years ago

Hi, I'm attempting to add todos using Other CalDAV Server for a remote Nextcloud stable instance

why don't you use the default setting? do you have two nextcloud servers?

sunjam commented 5 years ago

Yes, I am using two Nextcloud servers. I'm trying to keep todos on the one I already use for Calendars and Tasks rather than the server with QownnotesAPI.

On Fri, Apr 26, 2019 at 1:16 PM Patrizio Bekerle notifications@github.com wrote:

Hi, I'm attempting to add todos using Other CalDAV Server for a remote Nextcloud stable instance

why don't you use the default setting? do you have two nextcloud servers?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pbek/QOwnNotes/issues/1196#issuecomment-487187787, or mute the thread https://github.com/notifications/unsubscribe-auth/AANUKZWRGGWNMFZQJBRD5D3PSNPLXANCNFSM4HIZM64Q .

pbek commented 5 years ago

The caldav path to your calendar should be something like "/remote.php/dav/calendars/" + userName, not /remote.php/dav/