OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: xupetas on August 02, 2018, 05:23:16 pm

Title: Nextcloud backup woops?
Post by: xupetas on August 02, 2018, 05:23:16 pm
Hello all,

I'm having issues getting the nextcloud backup plugin to work. I am having this errors:

config[76475]: Error while fetching filelist from Nextcloud
config[93176]: {"url":"https:\/\/cloud.blablabla.com\/remote.php\/dav\/files\/config\/OPNsense-Backup\/config-pfsense01.net.xpto-2018-08-02_15:53:53.xml","content_type":"text\/html; charset=iso8859-1","http_code":403,"header_size":480,"request_size":326,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":1.293437,"namelookup_time":7.6e-5,"connect_time":0.003817,"pretransfer_time":0.029171,"size_upload":878690,"size_download":295,"speed_download":228,"speed_upload":679574,"download_content_length":-1,"upload_content_length":878690,"starttransfer_time":0.032878,"redirect_time":0,"redirect_url":"","primary_ip":"104.28.6.80","certinfo":[],"primary_port":443,"local_ip":"192.168.1.20","local_port":38604}

For what i am able to notice i am getting a 403 http error.
However i am able to upload to the nextcloud  instance with that user using either the browser or the native nextcloud client.
 
The nextcloud IS able to create the destination dir, so it appears not to be permission related. I just am not able to upload the xml file.

I can also see the opnsense logging in with success to the nextcloud instance:

{"reqId":"W2MlzKwQACkAAE3Xt7QAAAAC","level":1,"time":"2018-08-02T15:39:56+00:00","remoteAddr":"172.16.3.161","user":"config","app":"admin_audit","method":"PROPFIND","url":"\/remote.php\/dav\/files\/config\/","message":"Login successful: \"config\"","userAgent":"OPNsense Firewall","version":"13.0.5.2"}

Can you shed some light on this? What am i missing?

Nuno
Title: Re: Nextcloud backup woops?
Post by: fabian on August 02, 2018, 10:28:39 pm
Can you try to use a WebDAV client as it should act like OPNsense (for example accessing via a local file manager). PROPFIND is the request, which queries a list of elements (more or less a directory listing).
Title: Re: Nextcloud backup woops?
Post by: xupetas on August 03, 2018, 10:55:23 am
Hello Fabian.

I CAN upload data using a regular webdav client
The path nextcloud forces me to use on the  webdav client is cloud.blablabla.com/remote.php/dav/files/USERNAME/

Thanks for your help.
Nuno
Title: Re: Nextcloud backup woops?
Post by: Fatmouse69 on March 11, 2019, 08:33:59 am
Hi there, has the issue been solved? If so, I am curious how. Kind regards.