Backup: Nextcloud configuration

Started by baqwas, July 31, 2020, 10:09:02 PM

Previous topic - Next topic
I get the following error(s). Does anybody know what to do to fix it/them?

{"url":"https:\/\/nextcloud.alnas.myds.me\/remote.php\/dav\/files\/Alex\/","content_type":"application\/xml; charset=utf-8","http_code":401,"header_size":1498,"request_size":183,"filetime":-1,"ssl_verify_result":20,"redirect_count":0,"total_time":0.269697,"namelookup_time":0.000562,"connect_time":0.201475,"pretransfer_time":0.204676,"size_upload":0,"size_download":299,"speed_download":1108,"speed_upload":0,"download_content_length":299,"upload_content_length":0,"starttransfer_time":0.269635,"redirect_time":0,"redirect_url":"","primary_ip":"10.0.0.2","certinfo":[],"primary_port":443,"local_ip":"10.0.0.1","local_port":56185,"http_version":2,"protocol":2,"ssl_verifyresult":0,"scheme":"HTTPS","appconnect_time_us":204594,"connect_time_us":201475,"namelookup_time_us":562,"pretransfer_time_us":204676,"redirect_time_us":0,"starttransfer_time_us":269635,"total_time_us":269697}

and

Error while fetching filelist from Nextcloud '/.' path

Quote from: Vexz on October 23, 2022, 08:51:15 PM
I get the following error(s). Does anybody know what to do to fix it/them?

{"url":"https:\/\/nextcloud.alnas.myds.me\/remote.php\/dav\/files\/Alex\/","content_type":"application\/xml; charset=utf-8","http_code":401,"header_size":1498,"request_size":183,"filetime":-1,"ssl_verify_result":20,"redirect_count":0,"total_time":0.269697,"namelookup_time":0.000562,"connect_time":0.201475,"pretransfer_time":0.204676,"size_upload":0,"size_download":299,"speed_download":1108,"speed_upload":0,"download_content_length":299,"upload_content_length":0,"starttransfer_time":0.269635,"redirect_time":0,"redirect_url":"","primary_ip":"10.0.0.2","certinfo":[],"primary_port":443,"local_ip":"10.0.0.1","local_port":56185,"http_version":2,"protocol":2,"ssl_verifyresult":0,"scheme":"HTTPS","appconnect_time_us":204594,"connect_time_us":201475,"namelookup_time_us":562,"pretransfer_time_us":204676,"redirect_time_us":0,"starttransfer_time_us":269635,"total_time_us":269697}

and

Error while fetching filelist from Nextcloud '/.' path
I figured it out now. Nextcloud is a bit tricky.
You have to create an app password and use that instead of the password of your username. To create it you need to go to your user settings in your Nextcloud account and there to the security tab. Scroll all the way down. On the bottom you'll see a text field for an app-name and a button to create the password. Choose a speaking app-name. I named mine "OPNsense".
Now on your OPNsense you have to use your username and instead of your password from your login credentials you need to use the app-password you've just created.

I hope this helps a lost soul.

November 07, 2022, 10:29:11 PM #47 Last Edit: November 07, 2022, 10:33:22 PM by ChrisChros
deleted
XSK NUC Intel Celeron J3160 aka Protectli FW4B, 8GB RAM
OPNsense 22.1

I'm having similar issues. I was running opnsense 21 and nextcloud backup was working without issue when it was a default option in the backup GUI. I just updated to 23 and installed the nextcloud plugin, now it doesn't work with the same settings.

I have a nextcloud instance that is working correctly with a lets encrypt certificate. I remade the app password incase that was the issue. I also told it to use another directory since the default backup directory is what was previously being used and had lots of backup files already. None of these options worked.

2023-02-02T05:40:53-08:00 Error php-cgi Check Nextcloud configuration parameters
2023-02-02T05:40:53-08:00 Error php-cgi {"url":"https:\/\/nextcloud.redacted.ca:8443\/remote.php\/dav\/files\/apps\/","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":60.01651,"namelookup_time":0.000639,"connect_time":0,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"","certinfo":[],"primary_port":0,"local_ip":"","local_port":0,"http_version":0,"protocol":0,"ssl_verifyresult":0,"scheme":"","appconnect_time_us":0,"connect_time_us":0,"namelookup_time_us":639,"pretransfer_time_us":0,"redirect_time_us":0,"starttransfer_time_us":0,"total_time_us":60016510}
2023-02-02T05:40:53-08:00 Error php-cgi Error while fetching filelist from Nextcloud '/.' path


anyone know why it would be working before but not with the new nextcloud plugin?

Quote from: olafj on April 20, 2022, 08:14:59 PM
Same here. Nextcloud runs in Proxmox in the home network. A solution would be very nice.

did you ever find a solution?