Testing with the latest dev, I get an error on the remote server using 7.x-3.0-rc1

Exception: DRD Library not available in _drd_get_lib() (Zeile 57 von /www/htdocs/username/testinstall/sites/all/modules/contrib/drd_agent/drd_agent.module).

any ideas? it seems it tries to download the .phar library but cant do it.

Comments

marcoka created an issue. See original summary.

jurgenhaas’s picture

Sorry you're having problems. It's hard to tell, I'm using it on many different hosting environments without any such problem. Can you debug the code and see the exact url it wants to load? And then maybe try on that host with a simple php script top download that url? Maybe the php settings are preventing the download? Anything in the error Log?

marcoka’s picture

I debuggedit.

drd_agent.moudule creates the url like this:
$response = drupal_http_request('http://cgit.drupalcode.org/drd/plain/build/drd.phar?h=' . $_SERVER['HTTP_X_DRD_VERSION']);

The url that will be created is: http://cgit.drupalcode.org/drd/plain/build/drd.phar?h=8.x-3.0-rc2+0-dev
There is no file/branch there.

jurgenhaas’s picture

Thanks a lot for the details. That's in text different from my environment where I'm working with the dev release. Your analysis is very helpful. I will dig into this and fix that tomorrow, I hope.

jurgenhaas’s picture

Assigned: Unassigned » jurgenhaas
Category: Support request » Bug report
Priority: Normal » Critical

OK, so the problem is the version string. What we get is 8.x-3.0-rc2+0-dev and what's expected is 8.x-3.0-rc2, so the trailing +0-dev is the issue. I'm not sure yet, how to resolve that. Maybe the library should get their own versioning and we should be more explicit about it, even in the filename such that a remote domain can even handle more than one version of the library if DRDs have access by using different versions.

I'll explore the options and get back in a couple of hours.

  • jurgenhaas committed 0a799b0 on 8.x-3.x
    Issue #2840768 by jurgenhaas: Move the phar library into own project and...

  • jurgenhaas committed 00ae6ea on 8.x-3.x
    Issue #2840768 by jurgenhaas: Move the phar library into own project and...
jurgenhaas’s picture

Status: Active » Fixed

This is now fixed in a way that the DRD library is called drd-#.#.#.phar and DRD is sending the required version as #.#.# with every request so that the remote site can explicitly download and use the correct one, regardless of the Drupal packaging version scheme. The phra files are in a project DRD Agent Library and the phar files gets loaded from there.

You need to upgrade as followed:

  • DRD RC3
  • DRD Agent v8: RC3
  • DRD Agent v7: RC2
  • DRD Agent v6: RC2

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.