ONLYOFFICE / docker-onlyoffice-nextcloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't enter URL in NextCloud settings (cURL error 3)

opened this issue · comments

I have OnlyOffice running in a docker, with the NextCloud app. It was working well until around NextCloud 18.0.2 and then suddenly it stopped working (my only time reference is around a NextCloud release, I'm not saying it's related).

At some point it stopped being able to open documents. It would display an error on screen saying "office.domain.uk%C%20%office.domain.uk cannot get server IP address".

I wiped the docker container and re-pulled it, completely fresh install, and then uninstalled and re-installed the NextCloud app. However, once I did this I found I could no longer enter a URL for the server in the OnlyOffice NextCloud settings and received the error this issue ticket relates to.

It was working fine and I assume there has been an update at some point that broke things. Maybe OnlyOffice, maybe NextCloud.

Any help appreciated. I would love to give more detail but I don't know where to start.

Steps to reproduce

Go to NextCloud OnlyOffice settings and attempt to enter a url: https://cloud.domain.uk
Error displayed: Error when trying to connect (cURL error 3: (see http://curl.haxx.se/libcurl/c/libcurl-errors.html))
Error logged: "GuzzleHttp\Exception\RequestException: cURL error 3: (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)"

Expected behaviour

URL should be accepted.

Actual behaviour

URL is rejected.

Server configuration detail

Operating system: Linux 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64

Webserver: Apache/2.4.38 (Debian) (apache2handler)

Database: mysql 10.3.22

PHP version:

7.3.14-1~deb10u1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, sodium, standard, apache2handler, mysqlnd, PDO, xml, apcu, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, imagick, intl, json, exif, mysqli, pdo_mysql, pdo_sqlite, apc, posix, readline, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Phar, Zend OPcache

Nextcloud version: 18.0.5 - 18.0.5.1

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status

Array
(
)

List of activated apps
Enabled:
 - accessibility: 1.4.0
 - activity: 2.11.0
 - apporder: 0.10.0
 - breezedark: 18.0.18
 - bruteforcesettings: 1.6.0
 - camerarawpreviews: 0.7.3
 - cloud_federation_api: 1.1.0
 - comments: 1.8.0
 - dav: 1.14.0
 - deck: 1.0.2
 - drawio: 0.9.5
 - emlviewer: 0.0.12
 - extract: 1.2.4
 - federatedfilesharing: 1.8.0
 - files: 1.13.1
 - files_external: 1.9.0
 - files_pdfviewer: 1.7.0
 - files_rightclick: 0.15.2
 - files_sharing: 1.10.1
 - files_trashbin: 1.8.0
 - files_videoplayer: 1.7.0
 - firstrunwizard: 2.7.0
 - issuetemplate: 0.6.0
 - jsloader: 1.0.2
 - logreader: 2.3.0
 - lookup_server_connector: 1.6.0
 - metadata: 0.11.1
 - nextcloud_announcements: 1.7.0
 - notifications: 2.6.0
 - oauth2: 1.6.0
 - ocr: 6.0.42
 - onlyoffice: 4.2.0
 - password_policy: 1.8.0
 - previewgenerator: 2.3.0
 - provisioning_api: 1.8.0
 - settings: 1.0.0
 - sharebymail: 1.8.0
 - suspicious_login: 3.1.0
 - text: 2.0.0
 - theming: 1.9.0
 - theming_customcss: 1.6.0
 - twofactor_backupcodes: 1.7.0
 - updatenotification: 1.8.0
 - uploaddetails: 0.1.3
 - video_converter: 0.1.4
 - viewer: 1.2.0
 - workflowengine: 2.0.0
Disabled:
 - admin_audit
 - encryption
 - federation
 - files_versions
 - photos
 - privacy
 - recommendations
 - serverinfo
 - support
 - survey_client
 - systemtags
 - user_ldap

Configuration (config/config.php)
{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "***REMOVED SENSITIVE VALUE***",
        "***REMOVED SENSITIVE VALUE***"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "18.0.5.1",
    "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "maintenance": false,
    "theme": "",
    "loglevel": 2,
    "mail_smtpmode": "smtp",
    "mail_smtpsecure": "ssl",
    "mail_sendmailmode": "smtp",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtpauth": 1,
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "465",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "memcache.local": "\\OC\\Memcache\\APCu",
    "preview_max_x": "2048",
    "preview_max_y": "2048",
    "jpeg_quality": "60",
    "updater.release.channel": "stable",
    "app_install_overwrite": [
        "jsloader",
        "bruteforcesettings",
        "ocr",
        "uploaddetails",
        "breezedark"
    ]
}

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption:

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

Client configuration

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Operating system: Windows 10

Logs

Web server error log

Nextcloud log

Browser log

Do you include the protocol in the address?

I get the same issue when trying to set up Onlyoffice with Nextcloud 19.0.1. On the Onlyoffice side, I am using the docker-compose.yml from ONLYOFFICE/Docker-DocumentServer behind a reverse proxy and my Nextcloud is running on the same host.

Onlyoffice seems to work, at least in principle and from the network perspective: If I open it in my browser or curl it directly from the host where it is running, I get a redirect to /welcome and a message that the server is running. If I now try entering the server's URL into the Nextcloud settings, I get the same curl error as @a1pilot above.

Not including the protoco will cause Nextcloud to automatially prepend the hostname with "http://". Using that on a Nextcloud served via HTTPS will not produce the curl error 3 but will instead complain about mixed content being not allowed.

When I look at the traffic between Nextcloud and Onlyoffice, Nextcloud calls /healthcheck, /coauthoring/CommanService.ashx and /ConvertService.ashx, each returning a code 200. However, the last request returns an XML with a URL. When I try to open that manually, it returns an error 403. But I have no idea if that might be expected here.

I have attached the Nextcloud debug log from the moment when clicking on the save button to configure the Onlyoffice URL: nextcloud.log. I also had a look at the logs of the document server but did not find anything useful there.

Let me know if you need anything else.