Could not call service background error

Created on 16 May 2016, over 9 years ago
Updated 5 July 2017, over 8 years ago

Hi

I have bunch of background jobs for running various reports by fetching data from database and writing onto file. while batch job is initiated bunch of below errors are logged in watchdog.

I have checked ssl cert and service from host is also accesable. I have recently upgraded drupal 7 core from 35 to 43.
Any help /suggestions around the issue is more appriciated

Could not call service background_batch:11076 for callback _background_batch_process: stdClass Object ( [url] => https://localhost/bgp-start/background_batch%253A11076/3f1f608150798e829... [options] => Array ( [method] => POST [headers] => Array ( [Authorization] => [User-Agent] => Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0 [Accept] => application/json, text/javascript, */*; q=0.01 [Accept-Language] => en-US,en;q=0.5 [X-Requested-With] => XMLHttpRequest [Referer] => https://localhost/batch?op=start&id=11076 [Cookie] => biauth=IavtgOa62wgrnjJxLoab+3IVqnydeLgiNVQmZK4y0V6Tc3tPZKBVat6H3zYblMzaICGnhxpSzydCpBNooBmGT5wAYZzZZHP8tSMnhA3C+jvHLElLybEjA6vzl2C0BLRf; AMCV_16AD4362526701720A490D45%40AdobeOrg=1256414278%7CMCMID%7C49001150562072617433533025803548290065%7CMCAAMLH-1441131445%7C7%7CMCAAMB-1441131445%7CcIBAx_aQzFEHcPoEv0GwcQ%7CMCAID%7CNONE; __gads=ID=9de38b006fe00e6d:T=1440526645:S=ALNI_MaUN4EHV0IaRAPSFW31skxAyWTivw; _ga=GA1.2.1824877881.1440684943; Drupal.tableDrag.showWeight=0; has_js=1; _gat=1; SESS017bd53270e4c5a5f2097168d75b1ee7=0oMyxtM1WNTOwnx-jD-RYurqYqwASbI5w4xlrd-_Jp4; Drupal_visitor_first_login=1 [Pragma] => no-cache [Cache-Control] => no-cache [X-Medis-Https] => true [Client-Ip] => XXXXX [Host] => localhost:80 [Connection] => close ) [data] => [max_redirects] => 3 [timeout] => 2 [context] => [blocking] => [postpone] => ) [code] => 0 [uri] => Array ( [scheme] => https [host] => localhost [path] => /bgp-start/background_batch%253A11076/3f1f608150798e8293a16c3cf2bd9b21 ) [socket] => ssl://localhost:443 [postponed] => [start] => 1463432229.3997 [data_ready] => 1 [error] => Error opening socket ssl://localhost:443 [end] => 1463432229.4211 )

Thanks in advance

🐛 Bug report
Status

Active

Version

1.16

Component

Code

Created by

🇺🇸United States sjf_ddev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇹Italy LeoLopre

    Configuring 'background_process_service_hosts' in the settings.php solved this problem:

    $conf['background_process_service_hosts'] = array(
      'default' => array(
        'base_url' => 'https://example.mysite.it',
        'http_host' => 'example.mysite.it',
      ),
    );

    the problem was also caused by the wrong port he was listening to SSL on

Production build 0.71.5 2024