"Host not found" appears and disappears intermittently, unfortunately more off- than online. No DNS problem, server works ok with browser access. If one searches you will see that the "Host not found" error is not confined to FreeBSD but I thought I would just check if someone here had a solution. Restart sometimes will resume sync, likewise do "No proxy" -> "Use system Proxy" and back to "No proxy". Problem is present over several versions of FreeBSD and Qt. Some logging: 2022-09-07 12:29:39:372 [ debug nextcloud.sync.database.sql /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/common/ownsql.h:145 ] [ OCC::SqlQuery::bindValue ]: SQL bind 1 3 2022-09-07 12:29:39:372 [ debug nextcloud.sync.database.sql /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/common/ownsql.cpp:295 ] [ OCC::SqlQuery::exec ]: SQL exec "SELECT path FROM selectivesync WHERE type=?1" 2022-09-07 12:29:39:373 [ debug nextcloud.sync.database.sql /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/common/ownsql.h:145 ] [ OCC::SqlQuery::bindValue ]: SQL bind 1 3 2022-09-07 12:29:39:373 [ debug nextcloud.sync.database.sql /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/common/ownsql.cpp:295 ] [ OCC::SqlQuery::exec ]: SQL exec "SELECT path FROM selectivesync WHERE type=?1" 2022-09-07 12:29:39:373 [ info nextcloud.gui.account.state /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/gui/accountstate.cpp:331 ]:connection retry count 2 2022-09-07 12:29:39:373 [ debug nextcloud.sync.networkjob /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/libsync/abstractnetworkjob.cpp:298 ] [ OCC::AbstractNetworkJob::slotFinished ]: Network job OCC::CheckServerJob finished for "status.php" 2022-09-07 12:29:42:652 [ info nextcloud.sync.clientproxy /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/libsync/clientproxy.cpp:98 ]:Set proxy configuration to use NO proxy 2022-09-07 12:29:42:652 [ info nextcloud.gui.account.state /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/gui/accountstate.cpp:270 ]:check connectivity 2022-09-07 12:29:42:652 [ debug nextcloud.sync.account /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/libsync/account.cpp:339 ] [ OCC::Account::resetNetworkAccessManager ]: Resetting QNAM 2022-09-07 12:29:42:652 [ info nextcloud.sync.credentials.webflow /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/gui/creds/webflowcredentials.cpp:117 ]: Get QNAM 2022-09-07 12:29:42:652 [ debug nextcloud.sync.connectionvalidator /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/gui/connectionvalidator.cpp:54 ] [ OCC::ConnectionValidator::checkServerAndAuth ]: Checking server and authentication 2022-09-07 12:29:42:652 [ info nextcloud.gui.account.state /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/gui/accountstate.cpp:270 ]:check connectivity 2022-09-07 12:29:42:653 [ debug nextcloud.sync.account /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/libsync/account.cpp:339 ] [ OCC::Account::resetNetworkAccessManager ]: Resetting QNAM 2022-09-07 12:29:42:653 [ info nextcloud.sync.credentials.webflow /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/gui/creds/webflowcredentials.cpp:117 ]: Get QNAM 2022-09-07 12:29:42:653 [ debug nextcloud.sync.connectionvalidator /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/gui/connectionvalidator.cpp:54 ] [ OCC::ConnectionValidator::checkServerAndAuth ]: Checking server and authentication 2022-09-07 12:29:42:653 [ info nextcloud.sync.accessmanager /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/libsync/accessmanager.cpp:78 ]: 2 "" "https://correct-host-name/status.php" has X-Request-ID "471c5e23-7929-4abf-a8d3-aef8bc110113" 2022-09-07 12:29:42:653 [ debug nextcloud.sync.cookiejar /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/libsync/cookiejar.cpp:90 ] [ OCC::CookieJar::cookiesForUrl ]: QUrl("https://correct-host-name/status.php") requests: (QNetworkCookie("__Host-nc_sameSiteCookielax=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=correct-host-name; path=/"), QNetworkCookie("__Host-nc_sameSiteCookiestrict=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=correct-host-name; path=/")) 2022-09-07 12:29:42:654 [ info nextcloud.sync.networkjob /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/libsync/abstractnetworkjob.cpp:361 ]: OCC::CheckServerJob created for "https://correct-host-name" + "status.php" "OCC::ConnectionValidator" 2022-09-07 12:29:42:654 [ info nextcloud.sync.accessmanager /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/libsync/accessmanager.cpp:78 ]: 2 "" "https://correct-host-name/status.php" has X-Request-ID "3d3b3a90-8332-460b-bca9-3b2b739f85a3" 2022-09-07 12:29:42:654 [ debug nextcloud.sync.cookiejar /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/libsync/cookiejar.cpp:90 ] [ OCC::CookieJar::cookiesForUrl ]: QUrl("https://correct-host-name/status.php") requests: (QNetworkCookie("__Host-nc_sameSiteCookielax=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=correct-host-name; path=/"), QNetworkCookie("__Host-nc_sameSiteCookiestrict=true; secure; HttpOnly; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=correct-host-name; path=/")) 2022-09-07 12:29:42:655 [ info nextcloud.sync.networkjob /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/libsync/abstractnetworkjob.cpp:361 ]: OCC::CheckServerJob created for "https://correct-host-name" + "status.php" "OCC::ConnectionValidator" 2022-09-07 12:29:42:655 [ info nextcloud.sync.credentials.webflow /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/gui/creds/webflowcredentials.cpp:425 ]: request finished 2022-09-07 12:29:42:655 [ warning nextcloud.sync.networkjob /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/libsync/abstractnetworkjob.cpp:224 ]: QNetworkReply::HostNotFoundError "Host correct-host-name not found" QVariant(Invalid) 2022-09-07 12:29:42:655 [ warning nextcloud.sync.credentials.webflow /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/gui/creds/webflowcredentials.cpp:227 ]: QNetworkReply::HostNotFoundError 2022-09-07 12:29:42:655 [ warning nextcloud.sync.credentials.webflow /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/gui/creds/webflowcredentials.cpp:228 ]: "Host correct-host-name not found" 2022-09-07 12:29:42:655 [ warning nextcloud.sync.networkjob.checkserver /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/libsync/networkjobs.cpp:542 ]: error: status.php replied 0 "" 2022-09-07 12:29:42:655 [ warning nextcloud.sync.connectionvalidator /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/gui/connectionvalidator.cpp:139 ]: QNetworkReply::HostNotFoundError "Host correct-host-name not found" "Host correct-host-name not found" "" 2022-09-07 12:29:42:655 [ warning nextcloud.sync.credentials.webflow /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/gui/creds/webflowcredentials.cpp:227 ]: QNetworkReply::HostNotFoundError 2022-09-07 12:29:42:655 [ warning nextcloud.sync.credentials.webflow /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/gui/creds/webflowcredentials.cpp:228 ]: "Host correct-host-name not found" 2022-09-07 12:29:42:656 [ info nextcloud.gui.folder.manager /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/gui/folderman.cpp:721 ]: Account "peonet@correct-host-name" disconnected or paused, terminating or descheduling sync folders 2022-09-07 12:29:42:656 [ debug nextcloud.gui.account.settings /usr/ports/deskutils/nextcloudclient/work/desktop-3.5.3/src/gui/accountsettings.cpp:963 ] [ OCC::AccountSettings::showConnectionLabel ]: "No connection to Nextcloud at <a href=\"https://correct-host-name\">https://correct-host-name</a>.\nHost correct-host-name not found"
Just made a new install with 13.1p2 and quarterly packages, same thing, "Host not found" after successfully syncing around 35 out of 80GB. As before, going from "No Proxy" to "Use system proxy" makes the sync restart but then dies again.
I, too, am experiencing this KDE Plasma on 13.2 fresh install. It’s in a VM. Will try on bare metal as I get time.
Well, happy to hear I am not alone. Something is clearly wrong with Qtnetwork-> nextcloudclient but beats me what. Only thing I discovered is that it works better if started from a terminal window than from a menu. It would be great to have advise on how to drill down to the real problem...
I've cloned and built the latest from https://github.com/nextcloud/desktop (which built quite cleanly, I may add!) Once I ran it from the build directory I'm getting the same errors. My uneducated guess would seem that the error would either lie in abstractnetworkjob or the interface between abstractnetworkjob and the OS resolver. I do find it strange that the call has a URL, but the abstractnetworkjob debug line has an empty url. Man I wish I had more experience with QT to track this down.
Also for "giggles" I added my nextcloud server to /etc/hosts and got the same error, so it's not an external dns resolver issue
Good news / Bad News on my tests. I installed it on real hardware, and I'm not getting the error (same OS version, same basic install). In my experience so far it's *got* to be a VMWare/OpenVM Network Driver issue. I have heck with Desktop integration in a VM box anyways.
I was mistaken. It took *much* longer to get to the error, but it, indeed, gave the same "hostname not found" error as we've been experiencing.
(In reply to peo from comment #0) > … the "Host not found" error is not confined to FreeBSD … Your next step might be an upstream bug report – if there's not one already, and if you can provide steps to reproduce. <https://github.com/nextcloud/desktop/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+host+not+found>
I have had the problem now for years through several FreeBSd and port versions, no change. Since I now reverted to starting the client in a terminal, a simple Ctrl+C/Arrow+Up/Enter a couple of times a day fixes it, Unfortunately at the moment I do not have the time to pursue the issue. Thanks, Per
Great news. 3.9.3 in ports (updated on Aug 26th?) seems to have fixed the problem. 10gb transferred so far with no failure notices. Thank you, madpilot!
(In reply to peo from comment #3) I have the same problem since over a year with GhostBSD.
(In reply to Jeffrey Gordon from comment #10) I still have this issue with version 3.9.3. :-( Only with FreeBSD (GhostBSD). Windows, Linux and Mac clients have no issue (Same network, same nc server).
(In reply to Manfred Usselmann from comment #12) Btw. syncing with nextcloudcmd works without issues. At least if you do it for the top level folders one by one. E.g. nextcloudcmd -u (user) -p (password) --path /(Folder1)/ (local/path/)(Folder1)/ https://(nc_server).(tld) nextcloudcmd -u (user) -p (password) --path /(Folder2)/ (local/path/)(Folder2)/ https://(nc_server).(tld) To me this shows that there is no real network problem but something is wrong with the combination of the nextcloud client, qt5 and FreeBSD.
Again I was mistaken. It takes too long for this error to raise its ugly head sometimes. I've created an Issue at Nextcloud's Desktop Client github. https://github.com/nextcloud/desktop/issues/6024
The same problem persists in 14.0-BETA2
I repeat my previous comment that if you do not include nectcloudclient with X startup, just start from a shell, it will stay up longer, not forever, but longer. A mysterious one this is. We really need someone with Qt knowledge to sort this.
Ep, kinda double posting from upstream issue in case it is actionable on this side: Checking v3.10.0 release notes, I see https://github.com/nextcloud/desktop/pull/5036/files which could happen to address these issues or, at least from the looks of the code: help with the debugging because it has more detailed error logging. I sadly lack the time now to check this hypothesis (building QT takes ages), is there a chance we could update the port on the tree so it eventually gets built?
I'm getting the same problem with compiled from the latest github source still ----------------------------------------------------------- jeff@freebsd140 ~/Downloads/desktop/build/bin (master) $ ./nextcloud --version QML debugging is enabled. Only use this in a safe environment. nextcloud.gui.application: Migrating old config from "/home/jeff/.local/share/Nextcloud" to "/home/jeff/.config/Nextcloud" nextcloud.gui.application: Failed to move the old config directory to its new location ( "/home/jeff/.local/share/Nextcloud" to "/home/jeff/.config/Nextcloud" ) nextcloud.gui.application: Will move the individual files ("Nextcloud_sync.log") nextcloud.gui.application: Fallback move of "Nextcloud_sync.log" also failed Nextcloud version 3.10.50git Git revision 29e8c8918100f0c071aac25e4fdf4facaa3c4c10 Using Qt 5.15.8, built against Qt 5.15.8 Using Qt platform plugin 'xcb' Using 'OpenSSL 3.0.10 1 Aug 2023' Running on FreeBSD 14.0-BETA2, x86_64 jeff@freebsd140 ~/Downloads/desktop/build/bin (master) $
Continuing on my observatsions as I test, I've noticed that some remote folders work just fine and some just fail with Host Not Found. Most of these errors stem from a long URL path such as deep into a .git repository folder. I wonder if it could be a variable CONST size issue in the QT abstractnetworkjob or other library which is cutting the variable off. Thoughts? I'm mirroring this brainstorm at https://github.com/nextcloud/desktop/issues/6024
Here's my latest addition to this mystery. fstatat(AT_FDCWD,"/etc/ssl/certs//8d33f237.0",0x2b4ce807cfa0,0x0) ERR#2 'No such file or directory' fstatat(AT_FDCWD,"/usr/lib/ssl/certs//8d33f237.0",0x2b4ce807cfa0,0x0) ERR#2 'No such file or directory' fstatat(AT_FDCWD,"/usr/share/ssl//8d33f237.0",0x2b4ce807cfa0,0x0) ERR#2 'No such file or directory' fstatat(AT_FDCWD,"/usr/local/ssl//8d33f237.0",0x2b4ce807cfa0,0x0) ERR#2 'No such file or directory' fstatat(AT_FDCWD,"/var/ssl/certs//8d33f237.0",0x2b4ce807cfa0,0x0) ERR#2 'No such file or directory' fstatat(AT_FDCWD,"/usr/local/ssl/certs//8d33f237.0",0x2b4ce807cfa0,0x0) ERR#2 'No such file or directory' fstatat(AT_FDCWD,"/etc/openssl/certs//8d33f237.0",0x2b4ce807cfa0,0x0) ERR#2 'No such file or directory' fstatat(AT_FDCWD,"/opt/openssl/certs//8d33f237.0",0x2b4ce807cfa0,0x0) ERR#2 'No such file or directory' fstatat(AT_FDCWD,"/etc/ssl//8d33f237.0",0x2b4ce807cfa0,0x0) ERR#2 'No such file or directory' Which cert is 0x2b4ce807cfa0 that apparently not found?
What we need here is that somebody with the right knowledge steps in and provide what debuging info is needed to be able to sort this years long problem. Where is this precious person? With Nextcloud Gmbh?