Owncloud: notes path found on server => not found
Hello, I try to use QownNotes with my Owncloud server... but I get "notes path found on server" not found.
I saw this link (=> https://www.qownnotes.org/Knowledge-base/QOwnNotes-settings-are-reporting-a-problem-with-my-ownCloud-path) but "main ownCloud sync folder" parameter no longer exists
Expected behaviour
The owncloud connection seems good.
Apache log :
X.X.X.X - - [02/May/2020:15:54:13 +0200] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0" X.X.X.X - jean.testeur [02/May/2020:15:54:13 +0200] "GET /ocs/v1.php/cloud/capabilities HTTP/1.1" 200 2922 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a3pre) Gecko/20070330" X.X.X.X - jean.testeur [02/May/2020:15:54:13 +0200] "GET /index.php/apps/qownnotesapi/api/v1/note/app_info?format=json¬es_path=/Notes/ HTTP/1.1" 200 133 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a3pre) Gecko/20070330"
And when, l try directly in a web browser : https://box-dev.mondomaine.fr/index.php/apps/qownnotesapi/api/v1/note/app_info?format=json¬es_path=/Notes/
I get a correct answer :
{"versions_app":true,"trash_app":true,"versioning":true,"app_version":"19.1.0","server_version":"10.3.2.2","notes_path_exists":true}
Actual behaviour
Note folder path: /home/jean.testeur/Documents/Box-dev/Notes Use note sub-folders : check Path on your Nextcloud /owncloud server: Notes (I find it in the trees)
The last check failed :
Connection status ok connection to web server ok Nextcloud /ownCloud server detected ok username and password correct ok connection to QOwnNotesAPI ok versions app enabled on server ok trash app enabled on server not found notes path found on server
The connection was made successfully! Server version: 10.3.2.2 QOwnNotesAPI version: 19.1.0
Steps to reproduce
OS client : Ubuntu 18.04 LTS QOwnNotes - version 20.5.1 - Launchpad PPA - build 709 Owncloud 10.3.2.2 (CentOS7) with QOwnNotesAPI version: 19.1.0
Output from the debug section in the settings dialog
QOwnNotes Debug Information
General Info
Current Date: sam. mai 2 15:56:14 2020
Version: 20.5.1
Build date: May 1 2020
Build number: 709
Platform: linux
Operating System: Ubuntu 18.04.4 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/jean.testeur/.config/PBE/QOwnNotes.conf
Application database path: /home/jean.testeur/.local/share/PBE/QOwnNotes/QOwnNotes.sqlite
Application arguments: QOwnNotes
Qt Debug: 0
Locale (system): fr_FR
Locale (interface): en
Primary screen resolution: 1680x1050
Screen resolution(s): 1680x1050, 1680x1050
Icon theme: ubuntu-mono-light
Notes in current note folder: 27
Calendar items: 0
Enabled scripts: 0
Server Info
serverUrl: https://box-dev.mondomaine.fr
appIsValid: yes
notesPathExists: not found
serverVersion: 10.3.2.2
appVersion: empty
Spellchecking
Enabled: true
Selected language: auto
Language codes: en_US, fr, fr_BE, fr_CA, fr_CH, fr_FR, fr_LU, fr_MC
Language names: American English (United States), français, français (Belgique), français canadien (Canada), français suisse (Suisse), français (France), français (Luxembourg), français (Monaco)
Application dictionaries path: /home/jean.testeur/.local/share/PBE/QOwnNotes/dicts
Note folders
currentNoteFolderId: 2
Note folder ``
id: 2
isCurrent: yes
activeTagId: -1
localPath: /home/jean.testeur/Documents/Box-dev/Notes
remotePath: Notes
cloudConnectionId: 1
isShowSubfolders: yes
isUseGit: no
activeNoteSubFolder name: empty
database file: /home/jean.testeur/Documents/Box-dev/Notes/notes.sqlite
Cloud connections
Cloud connection Box-dev
id: 1
isCurrent: yes
serverUrl: https://box-dev.mondomaine.fr
username: jean.testeur
Enabled scripts
Settings
...
notesPath (QString): /home/jean.testeur/Documents/Box-dev
...
ownCloudInfo/appIsValid (bool): true
ownCloudInfo/connectionErrorMessage (QString): Erreur inconnue
ownCloudInfo/notesPathExistsText (QString): not found
ownCloudInfo/serverVersion (QString): 10.3.2.2
...
I find strange that "notesPath" parameter is "/home/jean.testeur/Documents/Box-dev" instead of "/home/jean.testeur/Documents/Box-dev/Notes" (like "localPath")
But when i set "/home/jean.testeur/Documents/Box-dev" in "Note folder path" (and "Notes" or "
Thanks for your help
I saw this link (=> https://www.qownnotes.org/Knowledge-base/QOwnNotes-settings-are-reporting-a-problem-with-my-ownCloud-path) but "main ownCloud sync folder" parameter no longer exists
Thank you, that article is really outdated. 😁
Your settings look ok, did you sync your notes with your Nextcloud sync client to your server? See: https://docs.qownnotes.org/en/latest/getting-started/concept/
It's indeed strange how your notesPath is set, it normally is overwritten by your note folder settings. Maybe your first note folder (id 1, you may have deleted it) had that set. Can you please try to create a new note folder setting (your current one will be cloned) and see if notesPath will be set to the same directory as your note folder.
I sync my notes with Owncloud sync client (2.5.1).
I create a new note folder..( and I deleted all the others) and now notesPath = localPath = "/home/jean.testeur/Documents/Box-dev/Notes"
but i alway get "notes path found on server" => not found
Thank you
- Can you please try to create a new note folder setting (your current one will be cloned) and see if notesPath will be set to the same directory as your note folder.
- And is there any useful log output if you enable the log panel (see Window / Panels) while you get the error message? Please make sure you also enable debug logging in the log panel.
-
Yes, when i create a new note folder (it's cloned), now, "notesPath" it set to the same directory as my note folder ("/home/jean.testeur/Documents/Box-dev/Notes")
-
I have put log in debug. In the log panel, there is nothing special (no error)
When, I do "Connect To NC / oC Server" (in the Nextcloud / ownCloud settings, I always have "notes path found on server" with "not found" and at the same time I have this in the logs (/home/jean.testeur/.local/share/PBE/QOwnNotes/QOwnNotes.log) :
[mai 03 14:26:36] [debug]: Set proxy configuration to use NO proxy
[mai 03 14:26:37] [debug]: cloudConnection: CloudConnection:
===
why, as already indicated, when, l try directly in a web browser (after authentification) : https://box-dev.mondomaine.fr/index.php/apps/qownnotesapi/api/v1/note/app_info?format=json¬es_path=/Notes/ (it's what i found in apache log) I get this : {"versions_app":true,"trash_app":true,"versioning":true,"app_version":"19.1.0","server_version":"10.3.2.2","notes_path_exists":true}
and and especially : "notes_path_exists":true, does it look good though?
Thank you for help
What does https://box-dev.mondomaine.fr/apps/files/?dir=/Notes show you? (I get a box-dev.mondomaine.fr’s server IP address could not be found.)
And do you have a screenshot where you get the error "not found"?

"https://box-dev.mondomaine.fr/apps/files/?dir=/Notes" refers to the Notes / directory of my owncloud account (with user jean.testeur)
It is the owncloud of my company, I voluntarily hide the real name and replaced by "mondomaine.fr". Besides, it's the preprod owncloud, it's not open.
Thank you.
What happens if you click on this button:

And there should be a log-output in the log panel...


nothing in log panel :

yet I put the logs in debug :

In file "/home/jean.testeur/.local/share/PBE/QOwnNotes/QOwnNotes.log" (when i get the error notes path found on server "not found") :
[mai 04 09:55:06] [debug]: Set proxy configuration to use NO proxy
[mai 04 09:55:07] [debug]: cloudConnection: CloudConnection:
nothing in log panel
It's easier to turn on debug logs in that panel (right mouse click on it to get the menu)
[mai 04 09:55:07] [debug]: Reply from capabilities page
It seems like that QOwnNotesAPI on your ownCloud server reports that the note folder is not found, I'll add some more debug info for you in the next release.
The notes_path_exists value should be set here:
https://github.com/pbek/qownnotesapi/blob/d3cab4bd7c6961a7b8bb28450d0653e600a99934/controller/noteapicontroller.php#L107-L130
ok, thank you for the right mouse click on log panel, sorry.
"notes_path_exists" seems yet OK..
https://box-dev.mondomaine.fr/index.php/apps/qownnotesapi/api/v1/note/app_info?format=json¬es_path=/Notes/ => {"versions_app":true,"trash_app":true,"versioning":true,"app_version":"19.1.0","server_version":"10.3.2.2","notes_path_exists":true}
https://box-dev.mondomaine.fr/index.php/apps/qownnotesapi/api/v1/note/app_info?format=json¬es_path=/Whatever-other/ => {"versions_app":true,"trash_app":true,"versioning":true,"app_version":"19.1.0","server_version":"10.3.2.2","notes_path_exists":false}
Anyway, I don't know what else to do :-)
Thank you
20.5.3
- added more debug output in case note folder was not found on server
There now is a new release, could you please test it and report the output in the log panel while you are opening the settings dialog?
with 20.5.3 :
[22:00:40] [debug] Set proxy configuration to use NO proxy [22:00:40] [debug] cloudConnection: CloudConnection:
1 "box-dev" "https://box-dev.mondomaine.fr" "jean.testeur" 1 [22:00:41] [debug] Reply from "" [22:00:41] [debug] Reply from main server url [22:00:41] [debug] Reply from "/ocs/v1.php/cloud/capabilities" [22:00:41] [debug] Reply from capabilities page [22:00:41] [debug] Reply from "/index.php/apps/qownnotesapi/api/v1/note/app_info" [22:00:41] [debug] Reply from app info [22:00:41] [debug] checkAppInfo - 'data': "[{"versions_app":true,"trash_app":true,"versioning":true,"app_version":"19.1.0","server_version":"10.3.2.2","notes_path_exists":false}]" [22:00:41] [debug] Reply from "/ocs/v1.php"
Shouldn't it be "/index.php/apps/qownnotesapi/api/v1/note/app_info?notes_path=/Notes" instead of "/index.php/apps/qownnotesapi/api/v1/note/app_info" ? (according my "remotePath")
Because in a browser for "https://box-dev.mondomaine.fr/index.php/apps/qownnotesapi/api/v1/note/app_info?notes_path=/Notes" => "notes_path_exists":true while "https://box-dev.mondomaine.fr/index.php/apps/qownnotesapi/api/v1/note/app_info" => "notes_path_exists":false
Shouldn't it be "/index.php/apps/qownnotesapi/api/v1/note/app_info?notes_path=/Notes" instead of "/index.php/apps/qownnotesapi/api/v1/note/app_info" ? (according my "remotePath")
"Get parameters" are not shown in the reply.
Do you have access to your server logs? What requests did you get on [22:00:41]?
actually the parameter is well returned .. here are the log
Apache : apache_access_log.txt
Owncloud : owncloud_log.txt
Everything seems fine. I really don't understand why your server returns "notes_path_exists":false when you make the app_info request in QOwnNotes. Maybe some special permissions that are set on your server for your files or the Notes directory? Maybe access to the \OC\Files\View ownCloud api is restricted on your server when authenticated by "basic auth"...
What happens if you share a note in QOwnNotes (Note menu)? Does that work?