Hello!
I have setup Nextcloud running on TrueNAS as a Plugin (all at their latest version to date). Truenas-12.0-U7 and Nextcloud plugin Version: 23.0.0
TrueNAS is running on Proxmox hypervisor. I have a domain setup with cloudflare + NGINX Proxy Manager so I can access my instance outside my LAN and using SSL
Now the problem comes when I try to sync my 2 clients I have. Both are running on macOS Monterrey M1 and app desktop version is 3.4.1 and both are show the same problem, it seems
At some point in the sync it starts to show “Connection Closed” and the sync stops, so basically it never syncs all the files it has to
The output of your Nextcloud log in Admin > Logging:
{"reqId":"8YhCW97xEXSlsaoWgVOM","level":3,"time":"2022-01-03T19:01:12+00:00","remoteAddr":"10.0.1.36","user":"jonatan","app":"no app in context","method":"POST","url":"/ocs/v2.php/apps/files_sharing/api/v1/shares","message":"Share notification mail could not be sent","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"23.0.0.10","exception":{"Exception":"Swift_TransportException","Message":"Connection could not be established with host 127.0.0.1 :stream_socket_client(): unable to connect to 127.0.0.1:25 (Connection refused)","Code":0,"Trace":[{"function":"{closure}","class":"Swift_Transport_StreamBuffer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/usr/local/www/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php","line":264,"function":"stream_socket_client","args":["127.0.0.1:25",61,"Connection refused",10,4,null]},{"file":"/usr/local/www/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php","line":58,"function":"establishSocketConnection","class":"Swift_Transport_StreamBuffer","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php","line":143,"function":"initialize","class":"Swift_Transport_StreamBuffer","type":"->","args":[{"0":"And 3 more entries, set log level to debug to see all entries","protocol":"","host":"127.0.0.1","port":25,"timeout":10,"blocking":1}]},{"file":"/usr/local/www/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php","line":65,"function":"start","class":"Swift_Transport_AbstractSmtpTransport","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/private/Mail/Mailer.php","line":204,"function":"send","class":"Swift_Mailer","type":"->","args":[{"__class__":"Swift_Message"},[]]},{"file":"/usr/local/www/nextcloud/lib/private/Share20/Manager.php","line":942,"function":"send","class":"OC\\Mail\\Mailer","type":"->","args":[{"__class__":"OC\\Mail\\Message"}]},{"file":"/usr/local/www/nextcloud/lib/private/Share20/Manager.php","line":855,"function":"sendMailNotification","class":"OC\\Share20\\Manager","type":"->","args":[{"__class__":"OC\\L10N\\LazyL10N"},"Midtone (1)","https://sync.jonatancastro.com/apps/files_sharing/accept/ocinternal:4","jonatan","rebecagonzalez11@gmail.com",null]},{"file":"/usr/local/www/nextcloud/apps-pkg/files_sharing/lib/Controller/ShareAPIController.php","line":657,"function":"createShare","class":"OC\\Share20\\Manager","type":"->","args":[{"__class__":"OC\\Share20\\Share"}]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"createShare","class":"OCA\\Files_Sharing\\Controller\\ShareAPIController","type":"->","args":[{"__class__":"OC\\Files\\Node\\Folder"},31,0,"rebeca","false","",null,"",""]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareAPIController"},"createShare"]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareAPIController"},"createShare"]},{"file":"/usr/local/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_Sharing\\Controller\\ShareAPIController","createShare",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.files_sharing.ShareAPI.createShare"}]},{"file":"/usr/local/www/nextcloud/ocs/v1.php","line":62,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/apps/files_sharing/api/v1/shares"]},{"file":"/usr/local/www/nextcloud/ocs/v2.php","line":23,"args":["/usr/local/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php","Line":261,"CustomMessage":"Share notification mail could not be sent"},"id":"61d36fbdd1add"}
{"reqId":"kOcZYHd0sfK9A97GDMmf","level":3,"time":"2022-01-03T16:56:44+00:00","remoteAddr":"10.0.1.36","user":"rebeca","app":"no app in context","method":"POST","url":"/remote.php/dav/bulk","message":"Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.4.1git (build 8596) (Nextcloud, osx-21.2.0 ClientArchitecture: arm64 OsArchitecture: arm64)","version":"23.0.0.10","exception":{"Exception":"Doctrine\\DBAL\\Exception","Message":"Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory","Code":2002,"Trace":[{"file":"/usr/local/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1519,"function":"connect","class":"OC\\DB\\Connection","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1041,"function":"getWrappedConnection","class":"Doctrine\\DBAL\\Connection","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/private/DB/Connection.php","line":236,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->","args":["SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `name`, `mimetype`, `mimepart`, `size`, `mtime`, `storage_mtime`, `encrypted`, `etag`, `permissions`, `checksum`, `metadata_etag`, `creation_time`, `upload_time` FROM `oc_filecache` `filecache` LEFT JOIN `oc_filecache_extended` `fe` ON `filecache`.`fileid` = `fe`.`fileid` WHERE (`storage` = :dcValue1) AND (`path_hash` = :dcValue2)",{"dcValue1":4,"dcValue2":"d576335d9309ef39fb960e85a7c10716"},{"dcValue1":1,"dcValue2":2},null]},{"file":"/usr/local/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php","line":345,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->","args":["SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `name`, `mimetype`, `mimepart`, `size`, `mtime`, `storage_mtime`, `encrypted`, `etag`, `permissions`, `checksum`, `metadata_etag`, `creation_time`, `upload_time` FROM `oc_filecache` `filecache` LEFT JOIN `oc_filecache_extended` `fe` ON `filecache`.`fileid` = `fe`.`fileid` WHERE (`storage` = :dcValue1) AND (`path_hash` = :dcValue2)",{"dcValue1":4,"dcValue2":"d576335d9309ef39fb960e85a7c10716"},{"dcValue1":1,"dcValue2":2}]},{"file":"/usr/local/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":287,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/private/Files/Cache/Cache.php","line":164,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/private/Files/Cache/HomeCache.php","line":85,"function":"get","class":"OC\\Files\\Cache\\Cache","type":"->","args":["files/Amazon/Products/Faja lumbar - FL-A/Inspección Belt/Inspecion 2019:2020/#2 Inspection 21:05:2020 - 3000pcs/Archive/Photos/Def/00052.jpg"]},{"file":"/usr/local/www/nextcloud/lib/private/Files/View.php","line":1338,"function":"get","class":"OC\\Files\\Cache\\HomeCache","type":"->","args":["files/Amazon/Products/Faja lumbar - FL-A/Inspección Belt/Inspecion 2019:2020/#2 Inspection 21:05:2020 - 3000pcs/Archive/Photos/Def/00052.jpg"]},{"file":"/usr/local/www/nextcloud/lib/private/Files/View.php","line":1393,"function":"getCacheEntry","class":"OC\\Files\\View","type":"->","args":[{"__class__":"OCA\\Files_Trashbin\\Storage","cache":null,"scanner":{"__class__":"OC\\Files\\Cache\\Scanner"},"watcher":null,"propagator":null,"updater":{"__class__":"OC\\Files\\Cache\\Updater"}},"files/Amazon/Products/Faja lumbar - FL-A/Inspección Belt/Inspecion 2019:2020/#2 Inspection 21:05:2020 - 3000pcs/Archive/Photos/Def/00052.jpg","/Amazon/Products/Faja lumbar - FL-A/Inspección Belt/Inspecion 2019:2020/#2 Inspection 21:05:2020 - 3000pcs/Archive/Photos/Def/00052.jpg"]},{"file":"/usr/local/www/nextcloud/lib/private/Files/Node/HookConnector.php","line":227,"function":"getFileInfo","class":"OC\\Files\\View","type":"->","args":["/rebeca/files/Amazon/Products/Faja lumbar - FL-A/Inspección Belt/Inspecion 2019:2020/#2 Inspection 21:05:2020 - 3000pcs/Archive/Photos/Def/00052.jpg"]},{"file":"/usr/local/www/nextcloud/lib/private/Files/Node/HookConnector.php","line":104,"function":"getNodeForPath","class":"OC\\Files\\Node\\HookConnector","type":"->","args":["/Amazon/Products/Faja lumbar - FL-A/Inspección Belt/Inspecion 2019:2020/#2 Inspection 21:05:2020 - 3000pcs/Archive/Photos/Def/00052.jpg"]},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_Hook.php","line":106,"function":"write","class":"OC\\Files\\Node\\HookConnector","type":"->","args":[{"run":true,"path":"/Amazon/Products/Faja lumbar - FL-A/Inspección Belt/Inspecion 2019:2020/#2 Inspection 21:05:2020 - 3000pcs/Archive/Photos/Def/00052.jpg"}]},{"file":"/usr/local/www/nextcloud/lib/private/Files/View.php","line":1284,"function":"emit","class":"OC_Hook","type":"::","args":["OC_Filesystem","write",{"run":true,"path":"/Amazon/Products/Faja lumbar - FL-A/Inspección Belt/Inspecion 2019:2020/#2 Inspection 21:05:2020 - 3000pcs/Archive/Photos/Def/00052.jpg"}]},{"file":"/usr/local/www/nextcloud/lib/private/Files/View.php","line":1154,"function":"runHooks","class":"OC\\Files\\View","type":"->","args":[["create","write"],"/Amazon/Products/Faja lumbar - FL-A/Inspección Belt/Inspecion 2019:2020/#2 Inspection 21:05:2020 - 3000pcs/Archive/Photos/Def/00052.jpg"]},{"file":"/usr/local/www/nextcloud/lib/private/Files/View.php","line":706,"function":"basicOperation","class":"OC\\Files\\View","type":"->","args":["file_put_contents","/rebeca/files/Amazon/Products/Faja lumbar - FL-A/Inspección Belt/Inspecion 2019:2020/#2 Inspection 21:05:2020 - 3000pcs/Archive/Photos/Def/00052.jpg",["create","write"],null]},{"file":"/usr/local/www/nextcloud/lib/private/Files/Node/Folder.php","line":198,"function":"file_put_contents","class":"OC\\Files\\View","type":"->","args":["/rebeca/files/Amazon/Products/Faja lumbar - FL-A/Inspección Belt/Inspecion 2019:2020/#2 Inspection 21:05:2020 - 3000pcs/Archive/Photos/Def/00052.jpg",null]},{"file":"/usr/local/www/nextcloud/apps-pkg/dav/lib/BulkUpload/BulkUploadPlugin.php","line":81,"function":"newFile","class":"OC\\Files\\Node\\Folder","type":"->","args":["/Amazon/Products/Faja lumbar - FL-A/Inspección Belt/Inspecion 2019:2020/#2 Inspection 21:05:2020 - 3000pcs/Archive/Photos/Def/00052.jpg",null]},{"file":"/usr/local/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPost","class":"OCA\\DAV\\BulkUpload\\BulkUploadPlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:POST",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/apps-pkg/dav/lib/Server.php","line":339,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/apps-pkg/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/remote.php","line":166,"args":["/usr/local/www/nextcloud/apps-pkg/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/lib/private/DB/Connection.php","Line":87,"CustomMessage":"--"},"id":"61d36fbdd2879"}
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!). The only thing I changed from original config.php that comes with TrueNAS is that I added another trusted domain