core: Nextcloud backup does not work

Important notices Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug I’m trying to setup backups with running Nextcloud 18.0.7

No matter what I try it always fails with error : `The following input errors were detected:

Saved settings, but remote backup failed.`

To Reproduce Steps to reproduce the behavior: 1.Follow the instructions here: https://wiki.opnsense.org/manual/how-tos/cloud_backup.html 2. Try all possible URLs 3. Read a lot of forum posts 4. It wont’ work

Expected behavior Nextcloud backups should work

Screenshots If applicable, add screenshots to help explain your problem.

Relevant log files

2020-07-31T13:50:51 | config[91089]: {"url":"https:\/\/here_is_hostname\/ocs\/v1.php\/cloud\/user","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":18,"redirect_count":0,"total_time":0.295404,"namelookup_time":0.109668,"connect_time":0.155559,"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":"10.36.92.50","certinfo":[],"primary_port":443,"local_ip":"192.168.200.1","local_port":59776,"http_version":0,"protocol":2,"ssl_verifyresult":0,"scheme":"HTTPS","appconnect_time_us":0,"connect_time_us":155559,"namelookup_time_us":109668,"pretransfer_time_us":0,"redirect_time_us":0,"starttransfer_time_us":0,"total_time_us":295404}
-- | --
2020-07-31T13:50:51 | config[91089]: Cannot get real username

Additional context Add any other context about the problem here.

Environment Nextcloud 18.0.7 OPNsense 20.7-amd64 FreeBSD 12.1-RELEASE-p7-HBSD OpenSSL 1.1.1g 21 Apr 2020

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 23 (4 by maintainers)

Commits related to this issue

Most upvoted comments

@fichtner You’re right, it’s the same problem with any SSL certificates. My point is that most nextcloud instances are “self made” so in a lot of cases they have selfsigned or cheap ssl certificates, so it’s useful to add a friendly reminder for making those certs work. Making backups to google drive obviously won’t need the same type of documentation.

This issue has been automatically timed-out (after 180 days of inactivity).

For more information about the policies for this repository, please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.

If someone wants to step up and work on this issue, just let us know, so we can reopen the issue and assign an owner to it.

Still not working on OPNsense 21.1.

@async-it not sure as it gives the same error message on trying to execute the backup.

error

2020-10-12T13:10:22	config[31766]	{"url":"https:\/\/nextcloud.test.com\/ocs\/v1.php\/cloud\/user","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":60.006735,"namelookup_time":0.00526,"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":5260,"pretransfer_time_us":0,"redirect_time_us":0,"starttransfer_time_us":0,"total_time_us":60006735}
2020-10-12T13:10:22	config[31766]	Cannot get real username

You could only tell if this is related or not when executing the nextcloud command directly on the not working instance and if it results in another error (instead of timeout).