New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way too damn many ownCloud server connection error windows #950

Closed
zingmars opened this Issue Jun 25, 2018 · 18 comments

Comments

Projects
None yet
2 participants
@zingmars

zingmars commented Jun 25, 2018

Expected behaviour

Sometimes connection to an owncloud server can go down for multiple reasons. In those instances QOwnNotes displays a warning/error dialogue to reflect that. The expected behaviour is for the errors to not create dozen dialogues all of which lock the main UI and need to be closed in sequence because each subsequent window also locks each previous dialogue.

Actual behaviour

image

As you can see, every failure creates a new error dialogue.

Steps to reproduce

Have the connection to nextcloud be a bit weird (best way to trigger these - try killing the web server for the cloud host with qownnotes running). In my case sometimes the 'connection to web server' status in the settings will become 'not found', but I suspect this is a server issue and not relevant to qownnotes at all.
image

Output from the debug section in the settings dialog

QOwnNotes Debug Information

General Info

Current Date: pirmd. jūn. 25 15:02:25 2018
Version: 18.06.6
Build date: Jun 24 2018
Build number: 3665
Platform: windows
Operating System: Windows 10 (10.0)
Build architecture: i386
Current architecture: x86_64
Release: AppVeyor
Qt Version (build): 5.10.1
Qt Version (runtime): 5.10.1
Portable mode: no
Settings path / key: \HKEY_CURRENT_USER\Software\PBE\QOwnNotes
Application database path: C:\Users\zingmars\AppData\Roaming\PBE\QOwnNotes\QOwnNotes.sqlite
Application arguments: C:\Program Files (x86)\QOwnNotes, \QOwnNotes.exe, --after-update, C:\Users\zingmars\AppData\Local\Temp\QOwnNotes-OfQtCP-updater.bat
Qt Debug: 0
Locale (system): en_US
Locale (interface): en
Icon theme: breeze-dark-qownnotes
Notes in current note folder: 4
Enabled scripts: 0

Server Info

serverUrl: <removed>
appIsValid: yes
notesPathExists: yes
serverVersion: 13.0.4.0
appVersion: 17.5.0

Note folders

currentNoteFolderId: 1

Note folder default

id: 1
isCurrent: yes
activeTagId: -1
localPath: E:\Storage\ownCloud\Notes
remotePath: Notes
isShowSubfolders: yes
isUseGit: yes
activeNoteSubFolder name: empty
database file: E:\Storage\ownCloud\Notes\notes.sqlite

Enabled scripts

Settings

AboutDialog/geometry: <binary data>
ActiveNoteHistoryItem: empty
Debug/fakeOldVersionNumber: false
Debug/fileLogging: false
DistractionFreeMode/isEnabled: false
DistractionFreeMode/menuBarGeometry: <binary data>
DistractionFreeMode/menuBarHeight: 21
DistractionFreeMode/windowState: <binary data>
Editor/CurrentSchemaKey: EditorColorSchema-cdbf28fc-1ddc-4d13-bb21-6a4043316a2f
Editor/autoBracketClosing: true
Editor/autoBracketRemoval: true
Editor/editorWidthInDFMOnly: true
Editor/highlightCurrentLine: true
LastUpdateCheck: 2018-06-25T14:47:48
MainWindow/geometry: <binary data>
MainWindow/mainToolBar.iconSize: 24
MainWindow/menuBarGeometry: <binary data>
MainWindow/noteTextEdit.code.font: Courier New,9,-1,2,50,0,0,0,0,0
MainWindow/noteTextEdit.font: MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0
MainWindow/noteTextView.code.font: Courier New,9,-1,2,50,0,0,0,0,0
MainWindow/noteTextView.font: MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0
MainWindow/noteTextView.rtl: false
MainWindow/showNotesFromAllNoteSubFolders: true
NoteDiffDialog/geometry: <binary data>
PasswordDialog/geometry: <binary data>
PiwikClientId: <hidden>
SearchEngineId: 0
SettingsDialog/geometry: <binary data>
SettingsDialog/mainSplitterState: <binary data>
ShowSystemTray: true
StartHidden: true
TodoDialog/geometry: <binary data>
TodoDialog/mainSplitterState: <binary data>
TodoDialog/showCompletedItems: 2
TodoDialog/todoListSelectorSelectedItem: Universitāte
UpdateDialog/geometry: <binary data>
VersionDialog/geometry: <binary data>
WelcomeDialog/geometry: <binary data>
acceptAllExternalModifications: false
allowDifferentNoteFileName: true
allowNoteEditing: true
allowOnlyOneAppInstance: true
appMetrics/disableAppHeartbeat: true
appMetrics/disableTracking: true
appMetrics/notificationShown: true
closeTodoListAfterSave: false
cryptoKey: <hidden>
currentNoteFolderId: 1
currentWorkspace: cbae1bff-9bd8-4773-96a3-4cb5528a49b2
cursorWidth: 1
customNoteFileExtensionList: empty
darkMode: true
darkModeColors: true
darkModeTrayIcon: true
defaultNoteFileExtension: md
demoNotesCreated: true
disableAutomaticUpdateDialog: false
dockWasInitializedOnce: true
externalEditorPath: empty
fullyHighlightedBlockquotes: false
gitCommitInterval: 30
gitExecutablePath: empty
gitLogCommand: empty
ignoreAllExternalModifications: false
ignoreAllExternalNoteFolderChanges: false
imageScaleDown: false
imageScaleDownMaximumHeight: 1024
imageScaleDownMaximumWidth: 1024
insertTimeFormat: empty
interfaceLanguage: en
internalIconTheme: false
itemHeight: 15
localTrash/autoCleanupDays: 30
localTrash/autoCleanupEnabled: true
localTrash/supportEnabled: true
markdownHighlightingEnabled: true
networking/ignoreSSLErrors: false
networking/proxyType: 2
newNoteAskHeadline: false
noteEditIsCentralWidget: false
noteSaveIntervalTime: 10
noteSubfoldersPanelDisplayAsFullTree: true
noteSubfoldersPanelHideSearch: false
noteSubfoldersPanelOrder: 0
noteSubfoldersPanelShowFullPath: false
noteSubfoldersPanelShowNotesRecursively: false
noteSubfoldersPanelShowRootFolderName: true
noteSubfoldersPanelSort: 0
notesPanelOrder: 0
notesPanelSort: 0
notesPath: E:/Storage/ownCloud/Notes
notifyAllExternalModifications: false
ownCloud/ignoreNonTodoCalendars: true
ownCloud/password: <hidden>
ownCloud/serverUrl: https://<removed>
ownCloud/supportEnabled: true
ownCloud/todoCalendarBackend: 3
ownCloud/todoCalendarCalDAVPassword: <hidden>
ownCloud/todoCalendarCalDAVServerUrl: empty
ownCloud/todoCalendarCalDAVUsername: empty
ownCloud/todoCalendarDisplayNameList: <removed>
ownCloud/todoCalendarEnabledList: empty
ownCloud/todoCalendarEnabledUrlList: empty
ownCloud/todoCalendarUrlList: <removed>
ownCloud/userName: <removed>
previousWorkspace: b22bd724-fe07-46b5-adae-1128c17661e8
recentNoteFolders: C:/Users/zingmars/ownCloud/Notes
restoreCursorPosition: true
savedSearches/noteFolder-1: <removed>
showMenuBar: true
showStatusBar: true
taggingShowNotesRecursively: false
tagsPanelHideSearch: false
tagsPanelOrder: 0
tagsPanelSort: 0
toolbar/1/items: action_New_note, action_Find_note, action_Remove_note, action_Open_note_in_external_editor, , 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: mainToolBar
toolbar/1/title: main toolbar
toolbar/2/items: actionFormat_text_bold, actionFormat_text_italic, actionStrike_out_text, actionInsert_code_block, actionInsert_block_quote
toolbar/2/name: formattingToolbar
toolbar/2/title: formatting toolbar
toolbar/3/items: actionInsert_Link_to_note, actionInsert_image, actionInsert_current_time
toolbar/3/name: insertingToolbar
toolbar/3/title: inserting toolbar
toolbar/4/items: action_Encrypt_note, actionEdit_encrypted_note, actionDecrypt_note
toolbar/4/name: encryptionToolbar
toolbar/4/title: encryption toolbar
toolbar/5/items: 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: windowToolbar
toolbar/5/title: window toolbar
toolbar/6/items: action_Quit
toolbar/6/name: quitToolbar
toolbar/6/title: quit toolbar
toolbar/size: 6
useUNIXNewline: true
versionSplitterSizes: <binary data>
workspace-058bd370-cda7-4c52-a675-dc3797474228/name: full
workspace-058bd370-cda7-4c52-a675-dc3797474228/noteSubFolderDockWidgetVisible: true
workspace-058bd370-cda7-4c52-a675-dc3797474228/windowState: <binary data>
workspace-b22bd724-fe07-46b5-adae-1128c17661e8/name: minimal
workspace-b22bd724-fe07-46b5-adae-1128c17661e8/noteSubFolderDockWidgetVisible: true
workspace-b22bd724-fe07-46b5-adae-1128c17661e8/windowState: <binary data>
workspace-cbae1bff-9bd8-4773-96a3-4cb5528a49b2/name: normal
workspace-cbae1bff-9bd8-4773-96a3-4cb5528a49b2/noteSubFolderDockWidgetVisible: true
workspace-cbae1bff-9bd8-4773-96a3-4cb5528a49b2/windowState: <binary data>
workspaces: 058bd370-cda7-4c52-a675-dc3797474228, b22bd724-fe07-46b5-adae-1128c17661e8, cbae1bff-9bd8-4773-96a3-4cb5528a49b2

System environment

ALLUSERSPROFILE: C:\ProgramData
APPDATA: C:\Users\zingmars\AppData\Roaming
CommonProgramFiles: C:\Program Files (x86)\Common Files
CommonProgramFiles(x86): C:\Program Files (x86)\Common Files
CommonProgramW6432: C:\Program Files\Common Files
COMPUTERNAME: PC
ComSpec: C:\WINDOWS\system32\cmd.exe
destination: "C:\Program Files (x86)\QOwnNotes"
DISPLAY: :0
DriverData: C:\Windows\System32\Drivers\DriverData
FPS_BROWSER_APP_PROFILE_STRING: Internet Explorer
FPS_BROWSER_USER_PROFILE_STRING: Default
GOROOT: C:\Go\
HOMEDRIVE: C:
HOMEPATH: \Users\zingmars
LANG: en_US.UTF-8
LOCALAPPDATA: C:\Users\zingmars\AppData\Local
LOGONSERVER: \\PC
NUMBER_OF_PROCESSORS: 4
OneDrive: C:\Users\zingmars\OneDrive
OS: Windows_NT
Path: <removed>
PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
PROCESSOR_ARCHITECTURE: x86
PROCESSOR_ARCHITEW6432: AMD64
PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
PROCESSOR_LEVEL: 6
PROCESSOR_REVISION: 3c03
ProgramData: C:\ProgramData
ProgramFiles: C:\Program Files (x86)
ProgramFiles(x86): C:\Program Files (x86)
ProgramW6432: C:\Program Files
PROMPT: $P$G
PSModulePath: C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
PUBLIC: C:\Users\Public
qownnotesCommand: "C:\Program Files (x86)\QOwnNotes"\QOwnNotes.exe --after-update C:\Users\zingmars\AppData\Local\Temp\QOwnNotes-OfQtCP-updater.bat
SESSIONNAME: Console
source: C:\Users\zingmars\AppData\Local\Temp\QOwnNotes-OfQtCP.zip
SystemDrive: C:
SystemRoot: C:\WINDOWS
TEMP: C:\Users\zingmars\AppData\Local\Temp
TMP: C:\Users\zingmars\AppData\Local\Temp
unzipCommand: C:\Users\zingmars\AppData\Local\Temp\QOwnNotes-OfQtCP-unzip.exe -o C:\Users\zingmars\AppData\Local\Temp\QOwnNotes-OfQtCP.zip -d "C:\Program Files (x86)\QOwnNotes"
unzipExecutable: C:\Users\zingmars\AppData\Local\Temp\QOwnNotes-OfQtCP-unzip.exe
USERDOMAIN: PC
USERDOMAIN_ROAMINGPROFILE: PC
USERNAME: zingmars
USERPROFILE: C:\Users\zingmars
VXIPNPPATH: C:\Program Files (x86)\IVI Foundation\VISA\
windir: C:\WINDOWS

Relevant log output in the Log panel

There's nothing in the logs except for warnings about the notes folder being changed externally (probably because I sometimes edit the files through the nextcloud web app).

@pbek

This comment has been minimized.

Owner

pbek commented Jun 25, 2018

Thank you for your suggestion.

@pbek pbek added the enhancement label Jun 25, 2018

@zingmars

This comment has been minimized.

zingmars commented Jul 13, 2018

image
image
Just started a PC that had outdated credentials and left for a minute... That's A LOT of windows open...
And as QOwnNotes kept making new ones, resetting the credentials was a pain in the ass as well.

@pbek

This comment has been minimized.

Owner

pbek commented Jul 13, 2018

Those standard dialogs don't know of each other and I never had any case where so many were spawned... I'll have to do something about them.

@pbek

This comment has been minimized.

Owner

pbek commented Jul 17, 2018

I first thought the background todo item checking did that, but this isn't the case. I wasn't so far able to reproduce the behavior you got.

@pbek

This comment has been minimized.

Owner

pbek commented Jul 17, 2018

Are you able to spawn this many dialogs manually too? No automatic background action should be able to spawn this dialog so I'm not sure how you got even one of them...

@pbek

This comment has been minimized.

Owner

pbek commented Jul 17, 2018

And are there no debug messages in the Log panel? (please turn on all messages in the Log panel)

@zingmars

This comment has been minimized.

zingmars commented Jul 17, 2018

I can recreate this behaviour by breaking the connection with nextcloud in some way (i.e. temporarily turning off PHP on the server).

Debug log:

[21:00:16] [warning] "QNetworkReply error 499 from url https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Bad Gateway"
[21:00:16] [warning] "QNetworkReply error 499 from url https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Bad Gateway"
[21:00:17] [warning] "QNetworkReply error 499 from url https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Bad Gateway"
[21:00:18] [warning] "QNetworkReply error 499 from url https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Bad Gateway"
[21:00:18] [warning] "QNetworkReply error 499 from url https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Bad Gateway"
[21:00:18] [warning] "QNetworkReply error 499 from url https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Bad Gateway"
[21:00:18] [warning] "QNetworkReply error 499 from url https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Bad Gateway"
[21:00:19] [warning] "QNetworkReply error 499 from url https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Bad Gateway"
[21:00:19] [warning] "QNetworkReply error 499 from url https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Bad Gateway"

(Basically a log entry for each of the failed connection attempt; nothing else).

@pbek

This comment has been minimized.

Owner

pbek commented Jul 17, 2018

no debug messages?

@zingmars

This comment has been minimized.

zingmars commented Jul 17, 2018

woops,

[21:10:26] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[21:10:26] [warning] "QNetworkReply error 499 from url https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Bad Gateway"
[21:10:26] [debug] Reply from share api
[21:10:26] [debug] updateNoteShareStatusFromShare - 'status': ""
[21:10:26] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[21:10:26] [warning] "QNetworkReply error 499 from url https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Bad Gateway"
[21:10:26] [debug] Reply from share api
[21:10:26] [debug] updateNoteShareStatusFromShare - 'status': ""
[21:10:26] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[21:10:26] [warning] "QNetworkReply error 499 from url https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Bad Gateway"
[21:10:26] [debug] Reply from share api
[21:10:26] [debug] updateNoteShareStatusFromShare - 'status': ""
[21:10:26] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[21:10:26] [warning] "QNetworkReply error 499 from url https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Bad Gateway"
[21:10:26] [debug] Reply from share api
[21:10:26] [debug] updateNoteShareStatusFromShare - 'status': ""
[21:10:27] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[21:10:27] [warning] "QNetworkReply error 499 from url https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Bad Gateway"
[21:10:27] [debug] Reply from share api
[21:10:27] [debug] updateNoteShareStatusFromShare - 'status': ""
[21:10:27] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[21:10:27] [warning] "QNetworkReply error 499 from url https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Bad Gateway"
[21:10:27] [debug] Reply from share api
[21:10:27] [debug] updateNoteShareStatusFromShare - 'status': ""
[21:10:27] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[21:10:27] [warning] "QNetworkReply error 499 from url https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Bad Gateway"
[21:10:27] [debug] Reply from share api
[21:10:27] [debug] updateNoteShareStatusFromShare - 'status': ""
[21:10:43] [debug] notesDirectoryWasModified: "C:/OwnCloud/Notes"
[21:10:43] [status] Notes directory was modified externally
[21:10:43] [debug] buildNotesIndex - 'noteSubFolderId': 0
[21:10:43] [debug] setupNoteFolderTables - 'database version': 13
[21:10:43] [debug] fetchShares - 'url': QUrl("https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares")
[21:10:43] [debug] updateNoteText: false
[21:10:43] [debug] setCurrentNote - 'note': Note: <id>5 <name>"<scrubbed>" <fileName>"<scrubbed>.md" <noteSubFolderId>0 <relativePath>"" <hasDirtyData>false - 'updateNoteText': false - 'updateSelectedNote': true
[21:10:43] [debug] added to history: NoteHistoryItem: <noteName>"<scrubbed>" <noteSubFolderPathData>"" <cursorPosition>128 <relativeScrollBarPosition>0
[21:10:43] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[21:10:43] [debug] Reply from share api
[21:10:43] [debug] updateNoteShareStatusFromShare - 'status': "ok\n"
[21:10:55] [debug] notesDirectoryWasModified: "C:/OwnCloud/Notes"
[21:10:55] [status] Notes directory was modified externally
[21:10:55] [debug] buildNotesIndex - 'noteSubFolderId': 0
[21:10:55] [debug] setupNoteFolderTables - 'database version': 13
[21:10:55] [debug] fetchShares - 'url': QUrl("https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares")
[21:10:55] [debug] updateNoteText: false
[21:10:55] [debug] setCurrentNote - 'note': Note: <id>5 <name>"<scrubbed>" <fileName>"<scrubbed>.md" <noteSubFolderId>0 <relativePath>"" <hasDirtyData>false - 'updateNoteText': false - 'updateSelectedNote': true
[21:10:55] [debug] added to history: NoteHistoryItem: <noteName>"<scrubbed>" <noteSubFolderPathData>"" <cursorPosition>128 <relativeScrollBarPosition>0
[21:10:55] [debug] notesDirectoryWasModified: "C:/OwnCloud/Notes"
[21:10:55] [status] Notes directory was modified externally
[21:10:55] [debug] buildNotesIndex - 'noteSubFolderId': 0
[21:10:55] [debug] setupNoteFolderTables - 'database version': 13
[21:10:55] [debug] fetchShares - 'url': QUrl("https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares")
[21:10:55] [debug] updateNoteText: false
[21:10:55] [debug] setCurrentNote - 'note': Note: <id>5 <name>"<scrubbed>" <fileName>"<scrubbed>.md" <noteSubFolderId>0 <relativePath>"" <hasDirtyData>false - 'updateNoteText': false - 'updateSelectedNote': true
[21:10:55] [debug] added to history: NoteHistoryItem: <noteName>"<scrubbed>" <noteSubFolderPathData>"" <cursorPosition>128 <relativeScrollBarPosition>0
[21:10:55] [debug] notesDirectoryWasModified: "C:/OwnCloud/Notes"
[21:10:55] [status] Notes directory was modified externally
[21:10:55] [debug] buildNotesIndex - 'noteSubFolderId': 0
[21:10:55] [debug] setupNoteFolderTables - 'database version': 13
[21:10:55] [debug] fetchShares - 'url': QUrl("https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares")
[21:10:55] [debug] updateNoteText: false
[21:10:55] [debug] setCurrentNote - 'note': Note: <id>5 <name>"<scrubbed>" <fileName>"<scrubbed>.md" <noteSubFolderId>0 <relativePath>"" <hasDirtyData>false - 'updateNoteText': false - 'updateSelectedNote': true
[21:10:55] [debug] added to history: NoteHistoryItem: <noteName>"<scrubbed>" <noteSubFolderPathData>"" <cursorPosition>128 <relativeScrollBarPosition>0
[21:10:55] [debug] notesDirectoryWasModified: "C:/OwnCloud/Notes"
[21:10:55] [status] Notes directory was modified externally
[21:10:55] [debug] buildNotesIndex - 'noteSubFolderId': 0
[21:10:55] [debug] setupNoteFolderTables - 'database version': 13
[21:10:55] [debug] fetchShares - 'url': QUrl("https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares")
[21:10:55] [debug] updateNoteText: false
[21:10:55] [debug] setCurrentNote - 'note': Note: <id>5 <name>"<scrubbed>" <fileName>"<scrubbed>.md" <noteSubFolderId>0 <relativePath>"" <hasDirtyData>false - 'updateNoteText': false - 'updateSelectedNote': true
[21:10:55] [debug] added to history: NoteHistoryItem: <noteName>"<scrubbed>" <noteSubFolderPathData>"" <cursorPosition>128 <relativeScrollBarPosition>0
[21:10:55] [debug] notesDirectoryWasModified: "C:/OwnCloud/Notes"
[21:10:55] [status] Notes directory was modified externally
[21:10:55] [debug] buildNotesIndex - 'noteSubFolderId': 0
[21:10:55] [debug] setupNoteFolderTables - 'database version': 13
[21:10:55] [debug] fetchShares - 'url': QUrl("https://cloud/ocs/v1.php/apps/files_sharing/api/v1/shares")
[21:10:55] [debug] updateNoteText: false
[21:10:55] [debug] setCurrentNote - 'note': Note: <id>5 <name>"<scrubbed>" <fileName>"<scrubbed>.md" <noteSubFolderId>0 <relativePath>"" <hasDirtyData>false - 'updateNoteText': false - 'updateSelectedNote': true
[21:10:55] [debug] added to history: NoteHistoryItem: <noteName>"<scrubbed>" <noteSubFolderPathData>"" <cursorPosition>128 <relativeScrollBarPosition>0
[21:10:55] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[21:10:55] [debug] Reply from share api
[21:10:55] [debug] updateNoteShareStatusFromShare - 'status': "ok\n"
[21:10:55] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[21:10:55] [debug] Reply from share api
[21:10:55] [debug] updateNoteShareStatusFromShare - 'status': "ok\n"
[21:10:55] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[21:10:55] [debug] Reply from share api
[21:10:55] [debug] updateNoteShareStatusFromShare - 'status': "ok\n"
[21:10:55] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[21:10:55] [debug] Reply from share api
[21:10:55] [debug] updateNoteShareStatusFromShare - 'status': "ok\n"
[21:10:55] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[21:10:56] [debug] Reply from share api
[21:10:56] [debug] updateNoteShareStatusFromShare - 'status': "ok\n"

( I re-started PHP at the end there )

@pbek

This comment has been minimized.

Owner

pbek commented Jul 18, 2018

thank you, that may give me a clue. but I still cannot reproduce the behavior :)

@zingmars

This comment has been minimized.

zingmars commented Jul 18, 2018

Interesting.

I had some time to kill, so I set up some virtual machines. When trying to recreate, the log file was effectively the same (dozen connections failing all at once), but there was no error dialogue at all - it just failed silently.

Also, where is the configuration stored? I thought it would be the sqlite db in %appdata%/PBE/, but deleting/copying it over didn't reset nextCloud credentials and the layout.

Log from the VM after killing mysqld on the server -

[06:38:22] [warning] "QNetworkReply error 401 from url https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Internal Server Error"
[06:38:22] [debug] Reply from share api
[06:38:22] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[06:38:22] [warning] "QNetworkReply error 401 from url https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Internal Server Error"
[06:38:22] [debug] Reply from share api
[06:38:22] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[06:38:22] [warning] "QNetworkReply error 401 from url https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Internal Server Error"
[06:38:22] [debug] Reply from share api
[06:38:22] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[06:38:22] [warning] "QNetworkReply error 401 from url https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Internal Server Error"
[06:38:22] [debug] Reply from share api
[06:38:22] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[06:38:22] [warning] "QNetworkReply error 401 from url https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Internal Server Error"
[06:38:22] [debug] Reply from share api
[06:38:22] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[06:38:22] [warning] "QNetworkReply error 401 from url https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Internal Server Error"
[06:38:22] [debug] Reply from share api
[06:38:22] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[06:38:22] [warning] "QNetworkReply error 401 from url https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Internal Server Error"
[06:38:22] [debug] Reply from share api
[06:38:22] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[06:38:22] [warning] "QNetworkReply error 401 from url https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Internal Server Error"
[06:38:22] [debug] Reply from share api
[06:38:22] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[06:38:22] [warning] "QNetworkReply error 401 from url https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Internal Server Error"
[06:38:22] [debug] Reply from share api
[06:38:22] [debug] Reply from "/ocs/v1.php/apps/files_sharing/api/v1/shares"
[06:38:22] [warning] "QNetworkReply error 401 from url https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares: " "Error transferring https://192.168.43.5/ocs/v1.php/apps/files_sharing/api/v1/shares - server replied: Internal Server Error"
@pbek

This comment has been minimized.

Owner

pbek commented Jul 18, 2018

Also, where is the configuration stored?

you can see that in the Debug settings

there also is a button to delete all settings in the General settings

@zingmars

This comment has been minimized.

zingmars commented Jul 18, 2018

Well, while I can't get the "failed to connect to owncloud" warning on the VM to show up at all, I did find that I can recreate the behaviour (multiple windows popping up blocking everything) with the CalDAV error by spamming the reload button https://youtu.be/l23pjKGH1Ig.

So the question is - why do I get the "cannot connect to the owncloud server" on one machine and it simply does not appear at all on another? I bet if we figure that out we can recreate the issue.

pbek added a commit that referenced this issue Jul 18, 2018

@pbek

This comment has been minimized.

Owner

pbek commented Jul 18, 2018

18.07.4

  • the error dialog for errors while talking to your ownCloud server will not
    be shown a 2nd time if it is already present on the screen

@pbek pbek added this to the 18.07.4 milestone Jul 18, 2018

@pbek

This comment has been minimized.

Owner

pbek commented Jul 18, 2018

This should fix your issue.

@pbek

This comment has been minimized.

Owner

pbek commented Jul 18, 2018

There now is a new release, could you please test it and report if it works for you?

@zingmars

This comment has been minimized.

zingmars commented Jul 18, 2018

Yup, now I only get a single error message as expected. Thanks!

@zingmars zingmars closed this Jul 18, 2018

@pbek

This comment has been minimized.

Owner

pbek commented Jul 18, 2018

Great, thank you for testing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment