Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GuzzleHttp\Exception\RequestException: cURL error 3: <url> malformed #3626

Closed
enoch85 opened this issue Feb 26, 2017 · 18 comments
Closed

GuzzleHttp\Exception\RequestException: cURL error 3: <url> malformed #3626

enoch85 opened this issue Feb 26, 2017 · 18 comments
Labels

Comments

@enoch85
Copy link
Member

enoch85 commented Feb 26, 2017

Steps to reproduce

N/A

Expected behaviour

No error

Actual behaviour

Check nextcloud.log

Server configuration

Operating system:
Ubuntu 16.04.2
Web server:
Apache 2.4
Database:
MySQL 5,7
PHP version:
7.0.15
Nextcloud version: (see Nextcloud admin page)
11.0.1
Updated from an older Nextcloud/ownCloud or fresh install:
Clean install with old DB
Where did you install Nextcloud from:
Nextcloud
Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
Enabled:
  - activity: 2.4.1
  - calendar: 1.4.1
  - comments: 1.1.0
  - contacts: 1.5.2
  - dav: 1.1.1
  - federatedfilesharing: 1.1.1
  - federation: 1.1.1
  - files: 1.6.1
  - files_pdfviewer: 1.0.1
  - files_sharing: 1.1.1
  - files_texteditor: 2.2
  - files_trashbin: 1.1.0
  - files_versions: 1.4.0
  - files_videoplayer: 1.0.0
  - firstrunwizard: 2.0
  - gallery: 16.0.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.0.0
  - nextcloud_announcements: 1.0
  - notifications: 1.0.1
  - password_policy: 1.1.0
  - provisioning_api: 1.1.0
  - serverinfo: 1.1.1
  - sharebymail: 1.0.1
  - survey_client: 0.1.5
  - systemtags: 1.1.3
  - theming: 1.1.1
  - twofactor_backupcodes: 1.0.0
  - updatenotification: 1.1.1
  - workflowengine: 1.1.1
Disabled:
  - admin_audit
  - encryption
  - external
  - files_accesscontrol
  - files_automatedtagging
  - files_external
  - files_retention
  - templateeditor
  - user_external
  - user_ldap
  - user_saml

The content of config/config.php:

Config report
{
    "system": {
        "instanceid": "ocdd06e12069",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.fsgo.se",
            "192.168.6.100"
        ],
        "datadirectory": "\/var\/ncdata",
        "overwrite.cli.url": "https:\/\/cloud.fsgo.se\/",
        "dbtype": "mysql",
        "version": "11.0.1.2",
        "dbname": "nextcloud",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "preview_libreoffice_path": "\/usr\/bin\/libreoffice",
        "default_language": "sv",
        "allow_user_to_change_display_name": true,
        "mail_smtpmode": "smtp",
        "mail_smtpauth": 1,
        "mail_smtphost": "mail.citynetwork.se",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "admin",
        "mail_domain": "fsgo.se",
        "forcessl": true,
        "mail_smtpsecure": "tls",
        "mail_smtpauthtype": "LOGIN",
        "maintenance": false,
        "secret": "***REMOVED SENSITIVE VALUE***",
        "forceSSLforSubdomains": true,
        "loglevel": 2,
        "app.mail.server-side-cache.enabled": true,
        "app.mail.imaplog.enabled": true,
        "logtimezone": "Europe\/Stockholm",
        "appstore.experimental.enabled": true,
        "trashbin_retention_obligation": "30",
        "updatechecker": false,
        "memcache.local": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": "true",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "\/var\/run\/redis\/redis.sock",
            "port": 0,
            "timeout": 0,
            "dbindex": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "htaccess.RewriteBase": "\/",
        "mysql.utf8mb4": true
    }
}

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

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

Client configuration

Browser:
Chrome

Operating system:
Ubuntu 16.04.2

Logs

Web server error log

Web server error log
No errors

Nextcloud log (data/nextcloud.log)

Nextcloud log
GuzzleHttp\Exception\RequestException: cURL error 3: <url> malformed
/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RequestFsm.php - line 103: GuzzleHttp\Exception\RequestException wrapException(Object(GuzzleHttp\Message\Request), Object(GuzzleHttp\Ring\Exception\RingException))
/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RequestFsm.php - line 132: GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
/var/www/nextcloud/3rdparty/react/promise/src/FulfilledPromise.php - line 25: GuzzleHttp\RequestFsm->GuzzleHttp\{closure}(Array)
/var/www/nextcloud/3rdparty/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php - line 55: React\Promise\FulfilledPromise->then(Object(Closure), NULL, NULL)
/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Message/FutureResponse.php - line 43: GuzzleHttp\Ring\Future\CompletedFutureValue->then(Object(Closure), NULL, NULL)
/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RequestFsm.php - line 134: GuzzleHttp\Message\FutureResponse proxy(Object(GuzzleHttp\Ring\Future\CompletedFutureArray), Object(Closure))
/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 165: GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 125: GuzzleHttp\Client->send(Object(GuzzleHttp\Message\Request))
/var/www/nextcloud/lib/private/Http/Client/Client.php - line 137: GuzzleHttp\Client->get('/ocs-provider/', Array)
/var/www/nextcloud/apps/federatedfilesharing/lib/DiscoveryManager.php - line 92: OC\Http\Client\Client->get('/ocs-provider/', Array)
/var/www/nextcloud/apps/federatedfilesharing/lib/DiscoveryManager.php - line 141: OCA\FederatedFileSharing\DiscoveryManager->discover(NULL)
/var/www/nextcloud/apps/files_sharing/lib/External/Manager.php - line 263: OCA\FederatedFileSharing\DiscoveryManager->getShareEndpoint(NULL)
/var/www/nextcloud/apps/files_sharing/lib/External/Manager.php - line 359: OCA\Files_Sharing\External\Manager->sendFeedbackToRemote(NULL, NULL, NULL, 'decline')
/var/www/nextcloud/apps/files_sharing/lib/External/Storage.php - line 218: OCA\Files_Sharing\External\Manager->removeShare('/files/back.jpg')
[internal function] OCA\Files_Sharing\External\Storage->checkStorageAvailability()
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 501: call_user_func_array(Array, Array)
[internal function] OC\Files\Storage\Wrapper\Wrapper->__call('checkStorageAva...', Array)
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 501: call_user_func_array(Array, Array)
/var/www/nextcloud/apps/files_sharing/lib/External/Scanner.php - line 89: OC\Files\Storage\Wrapper\Wrapper->__call('checkStorageAva...', Array)
/var/www/nextcloud/apps/files_sharing/lib/External/Scanner.php - line 44: OCA\Files_Sharing\External\Scanner->scanAll()
/var/www/nextcloud/lib/private/Files/Cache/Scanner.php - line 489: OCA\Files_Sharing\External\Scanner->scan('', true, 1)
/var/www/nextcloud/lib/private/Files/Cache/Scanner.php - line 506: OC\Files\Cache\Scanner->OC\Files\Cache\{closure}()
/var/www/nextcloud/lib/private/Files/Cache/Scanner.php - line 490: OC\Files\Cache\Scanner->runBackgroundScanJob(Object(Closure), '')
/var/www/nextcloud/lib/private/Files/Utils/Scanner.php - line 144: OC\Files\Cache\Scanner->backgroundScan()
/var/www/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php - line 88: OC\Files\Utils\Scanner->backgroundScan('')
/var/www/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php - line 112: OCA\Files\BackgroundJob\ScanFiles->runScanner(Object(OC\User\User))
/var/www/nextcloud/lib/private/BackgroundJob/Job.php - line 53: OCA\Files\BackgroundJob\ScanFiles->run(NULL)
/var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php - line 54: OC\BackgroundJob\Job->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
/var/www/nextcloud/cron.php - line 128: OC\BackgroundJob\TimedJob->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
{main}
2017-02-26T02:00:02+0100

@enoch85 enoch85 added the bug label Feb 26, 2017
@enoch85
Copy link
Member Author

enoch85 commented Mar 8, 2017

@MorrisJobke @LukasReschke Anyone?

@MorrisJobke
Copy link
Member

3 means malformed URL https://curl.haxx.se/libcurl/c/libcurl-errors.html

Without the URL we have no idea, how it is malformed.

@enoch85
Copy link
Member Author

enoch85 commented Mar 8, 2017

@MorrisJobke Ok, then let's find it. :)

I have seen this on at least 3 Nextcloud servers that I maintain and it happended after the update to 11.0.2. Where should I start looking? What could trigger this?

@MorrisJobke
Copy link
Member

Where should I start looking? What could trigger this?

In the log file ;) The error message you wrote has the "malformed URL" included, but you removed it 😉 Feel free to send this log line to me via email or so if it should not be publicly visible 😉

@enoch85
Copy link
Member Author

enoch85 commented Mar 9, 2017

@MorrisJobke Hmm, nah that's how I received it. Will check my backend logs (this was from the logreader) on the server to see if that's more detailed.

Will get back to you. :)

@enoch85
Copy link
Member Author

enoch85 commented Mar 13, 2017

Nope, it's <url> in the logs as well:

screenshot from 2017-03-13 07-43-40

@MorrisJobke
Copy link
Member

cc @icewind1991 and @schiessle for federated sharing

@beauraF
Copy link

beauraF commented Mar 20, 2017

Same issue here in fresh install on Archlinux.

@enoch85
Copy link
Member Author

enoch85 commented Apr 3, 2017

Some more output regarding Guzzle:

	GuzzleHttp\Exception\ClientException: Client error response [url] https://techandmese.owncube.com/ocs/v2.php/apps/federation/api/v1/request-shared-secret?format=json [status code] 400 [reason phrase] Bad request
/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Subscriber/HttpError.php - line 32: GuzzleHttp\Exception\RequestException create(Object(GuzzleHttp\Message\Request), Object(GuzzleHttp\Message\Response))
/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Event/Emitter.php - line 108: GuzzleHttp\Subscriber\HttpError->onComplete(Object(GuzzleHttp\Event\CompleteEvent), 'complete')
/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RequestFsm.php - line 91: GuzzleHttp\Event\Emitter->emit('complete', Object(GuzzleHttp\Event\CompleteEvent))
/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RequestFsm.php - line 132: GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
/var/www/nextcloud/3rdparty/react/promise/src/FulfilledPromise.php - line 25: GuzzleHttp\RequestFsm->GuzzleHttp\{closure}(Array)
/var/www/nextcloud/3rdparty/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php - line 55: React\Promise\FulfilledPromise->then(Object(Closure), NULL, NULL)
/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Message/FutureResponse.php - line 43: GuzzleHttp\Ring\Future\CompletedFutureValue->then(Object(Closure), NULL, NULL)
/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RequestFsm.php - line 134: GuzzleHttp\Message\FutureResponse proxy(Object(GuzzleHttp\Ring\Future\CompletedFutureArray), Object(Closure))
/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 165: GuzzleHttp\RequestFsm->__invoke(Object(GuzzleHttp\Transaction))
/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php - line 150: GuzzleHttp\Client->send(Object(GuzzleHttp\Message\Request))
/var/www/nextcloud/lib/private/Http/Client/Client.php - line 203: GuzzleHttp\Client->post('https //techand...', Array)
/var/www/nextcloud/apps/federation/lib/BackgroundJob/RequestSharedSecret.php - line 154: OC\Http\Client\Client->post('https //techand...', Array)
/var/www/nextcloud/lib/private/BackgroundJob/Job.php - line 53: OCA\Federation\BackgroundJob\RequestSharedSecret->run(Array)
/var/www/nextcloud/apps/federation/lib/BackgroundJob/RequestSharedSecret.php - line 135: OC\BackgroundJob\Job->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
/var/www/nextcloud/apps/federation/lib/BackgroundJob/RequestSharedSecret.php - line 120: OCA\Federation\BackgroundJob\RequestSharedSecret->parentExecute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
/var/www/nextcloud/cron.php - line 128: OCA\Federation\BackgroundJob\RequestSharedSecret->execute(Object(OC\BackgroundJob\JobList), Object(OC\Log))
{main}

@MorrisJobke
Copy link
Member

Cc @schiessle

@schiessle
Copy link
Member

Should be fixed in 11.0.3, see #4029

in particular: e2656c6

Note: hat you need to remove the trusted server on both sides and re-add it after the fix was applied.

I will close it. Feel free to re-open if this fix doesn't solve the issue for you

@enoch85
Copy link
Member Author

enoch85 commented Apr 3, 2017

Note: hat you need to remove the trusted server on both sides and re-add it after the fix was applied.

Please put this in the release notes.

@MorrisJobke
Copy link
Member

Please put this in the release notes.

cc @jospoortvliet

@timdreier
Copy link

Got the same Error in a fresh install of Version 13. Any Ideas how to fix this?

@charlesyorke
Copy link

Same error in version 13, Collabora Online 2.0.2

@0xelion
Copy link

0xelion commented Feb 21, 2018

Same issue with

  • Nextcloud 13
  • Nginx
  • MariaDB
  • Debian 9

Edit : Fixed ! In Nextcloud 13, if you have this error you need to setup Collabora properly : https://www.collaboraoffice.com/code/

@EljakimHerrewijnen
Copy link

I had the same issue when I added the Office Online plugin (https://apps.nextcloud.com/apps/officeonline) under Nextcloud 19 without setting up the document server. I fixed it by disabling the Office Online plugin.

@RyanXu11
Copy link

I had the same issue when I added the Office Online plugin (https://apps.nextcloud.com/apps/officeonline) under Nextcloud 19 without setting up the document server. I fixed it by disabling the Office Online plugin.

Thank you!
I met the same issue today when I sent a document via nextcloud talk, and fixed it by disabling the "Office Online integration".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants