Hello everyone
As the title implies, Iâm currently trying to get the Nextcloud client running in a docker container on a Synology NAS. That is, because I want to sync a folder on my NAS with university-related stuff to the Nextcloud-server which is provided by the university. Running an additional Nextcloud server on the NAS proves difficult, because itâs behind a DualStack-Lite internet connection. I also donât want to run the Nextcloud client on another PC in the NASâ network to minimize the required devices. A possible solution would be a VM on the NAS with NAS-folders mapped into it, but with Docker it should be possible to achieve the same thing without the VM overhead (e.g. increased RAM and CPU usage). Also, this should be a good project for me to learn Docker
I started with this Dockerfile and was able to create an image from it, as well as to start the container on the NAS. Currently thereâs no network storage mapped into the container (and Iâm unsure how to exactly achieve this, maybe like here?), but I think I should be able to sync even a folder from within the container (for testing purposes). So I created a folder (/home/sync/) in the container and executed nextcloudcmd /home/sync/ ABCD
and was promted to provide my login credentials (with ABCD as my universityâs website âhttps://box.uni-xxxx.deâ and EFGH as my username there). The login seems to work (I get a quick error with wrong credentials), but it doesnât sync anything.
Iâve added the output at the end of this post.
So it would be great if anyone knows why this failed, how nextcloudcmd behaves inside Docker and which environmental variables I have to map.
Thanks in advance
#####Terminal-Output#####
root@nc_client1:/home/sync# nextcloudcmd /home/sync/ ABCD
Please enter user name: EFGH
Password for user EFGH:
06-25 12:13:56:147 [ info nextcloud.sync.accessmanager ]: 2 ââ âABCD/ocs/v1.php/cloud/capabilities?format=jsonâ has X-Request-ID âbb76ee1f-3b64-4c9f-a6cc-3993a6ecc94bâ
06-25 12:13:56:147 [ info nextcloud.sync.networkjob ]: OCC::JsonApiJob created for âABCDâ + âocs/v1.php/cloud/capabilitiesâ ââ
06-25 12:13:57:197 [ info nextcloud.sync.networkjob.jsonapi ]: JsonApiJob of QUrl(âABCD/ocs/v1.php/cloud/capabilities?format=jsonâ) FINISHED WITH STATUS âOKâ
06-25 12:13:57:197 [ debug default ] [ main(int, char**)::<lambda ]: Server capabilities QJsonObject({âcoreâ:{âpollintervalâ:60,âwebdav-rootâ:âremote.php/webdavâ},âdavâ:{âchunkingâ:â1.0â},âfilesâ:{âbigfilechunkingâ:true,âblacklisted_filesâ:[".htaccess"],âundeleteâ:true,âversioningâ:true},âfiles_sharingâ:{âapi_enabledâ:true,âfederationâ:{âincomingâ:false,âoutgoingâ:false},âgroup_sharingâ:true,âpublicâ:{âenabledâ:true,âexpire_dateâ:{âenabledâ:false},âpasswordâ:{âenforcedâ:false},âsend_mailâ:false,âuploadâ:true,âupload_files_dropâ:true},âresharingâ:true,âuserâ:{âsend_mailâ:false}},âthemingâ:{âbackgroundâ:âABCD/themes/unimr/core/img/background.jpgâ,âcolorâ:"#745bca",âlogoâ:âABCD/themes/unimr/core/img/logo.svgâ,ânameâ:âSync&Shareâ,âsloganâ:âSync&Share - sicherer Datenaustauschâ,âurlâ:âhttps://nextcloud.comâ}})
06-25 12:13:57:228 [ info nextcloud.sync.database ]: sqlite3 version â3.22.0â
06-25 12:13:57:228 [ info nextcloud.sync.database ]: sqlite3 journal_mode= âwalâ
06-25 12:13:57:229 [ info nextcloud.sync.engine ]: There are 44420710400 bytes available at â/home/sync/â
06-25 12:13:57:229 [ info nextcloud.sync.engine ]: Sync with existing sync journal
06-25 12:13:57:229 [ info nextcloud.sync.engine ]: âUsing Qt 5.9.5 SSL library OpenSSL 1.1.1 11 Sep 2018 on Ubuntu 18.04.2 LTSâ
06-25 12:13:57:229 [ info nextcloud.sync.engine ]: NOT Using Selective Sync
06-25 12:13:57:229 [ info nextcloud.sync.engine ]: #### Discovery start ####################################################
06-25 12:13:57:230 [ info nextcloud.sync.engine ]: Server ââ
06-25 12:13:57:230 [ info sync.csync.utils ]: Memory: 544720K total size, 23436K resident, 20856K shared
06-25 12:13:57:230 [ info sync.csync.csync ]: ## Starting local discovery ##
06-25 12:13:57:230 [ info nextcloud.sync.csync.updater ]: ._sync_caf7bb9e6616.db excluded (1)
06-25 12:13:57:230 [ info nextcloud.sync.csync.updater ]: ._sync_caf7bb9e6616.db-wal excluded (1)
06-25 12:13:57:230 [ info nextcloud.sync.csync.updater ]: ._sync_caf7bb9e6616.db-shm excluded (1)
06-25 12:13:57:231 [ info nextcloud.sync.csync.updater ]: <= Closing walk for /home/sync with read_from_db 0
06-25 12:13:57:231 [ info sync.csync.csync ]: Update detection for local replica took 0 seconds walking 0 files
06-25 12:13:57:231 [ info sync.csync.utils ]: Memory: 544720K total size, 23436K resident, 20856K shared
06-25 12:13:57:231 [ info sync.csync.csync ]: ## Starting remote discovery ##
06-25 12:13:57:231 [ info nextcloud.sync.accessmanager ]: 6 âPROPFINDâ âABCD/remote.php/dav/files/EFGH/â has X-Request-ID â0c9e7ddb-6f68-4abf-84b2-940560313667â
06-25 12:13:57:231 [ info nextcloud.sync.networkjob ]: OCC::LsColJob created for âABCDâ + ââ âOCC::DiscoverySingleDirectoryJobâ
06-25 12:13:57:843 [ warning nextcloud.sync.networkjob ]: QNetworkReply::NetworkError(ContentNotFoundError) âServer replied â404 Not Foundâ to âPROPFIND ABCD/remote.php/dav/files/EFGH/ââ QVariant(int, 404)
06-25 12:13:57:843 [ info nextcloud.sync.networkjob.lscol ]: LSCOL of QUrl(âABCD/remote.php/dav/files/EFGH/â) FINISHED WITH STATUS âContentNotFoundError Server replied â404 Not Foundâ to âPROPFIND ABCD/remote.php/dav/files/EFGH/ââ
06-25 12:13:57:843 [ warning nextcloud.sync.discovery ]: LSCOL job error âError transferring ABCD/remote.php/dav/files/EFGH/ - server replied: Not Foundâ 404 QNetworkReply::NetworkError(ContentNotFoundError)
06-25 12:13:57:843 [ warning nextcloud.sync.engine ]: ERROR during csync_update : "File or directory not found: "
06-25 12:13:57:843 [ info nextcloud.sync.database ]: Closing DB â/home/sync/._sync_caf7bb9e6616.dbâ
06-25 12:13:57:844 [ info nextcloud.sync.engine ]: CSync run took 614 ms
06-25 12:13:57:844 [ info nextcloud.sync.database ]: Closing DB â/home/sync/._sync_caf7bb9e6616.dbâ