Hello all,

Am trying to setup this module and am running into some issues setting up the cloudsearch service details.

In my aws account I have created a new domain called 'consumersearch' in the 'eu-west-1' region and see this this domain is now active in my aws dashboard.

I've installed this module along with the awssdk module (version 7.x-5.4) and library.

Attached are my config settings. I have used the root access and secret keys to make sure it wasn't the keys that were wrong (I intend to use IAM user keys if I can get them working).

aws config

Also attached are the error messages I am getting and the dpm-ed $response variable. My status = 401 which indicates "that there was a problem with the client request. Common client request errors include providing invalid credentials and omitting required parameters. When you get a 4xx error, you need to correct the problem and resubmit a properly formed client request."
https://docs.aws.amazon.com/cloudsearch/latest/developerguide/error-hand...
I am pretty sure the access and secret keys are correct because they are being used on another site without a problem.

error message
response var

Any help would be greatly appreciated!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

farse’s picture

Issue summary: View changes
jslatts’s picture

The last released version needs to be taken down. AWS has changed their API and I believe they deprecated the version that you are trying to use.

The latest commit in the repo should work. We are using it in production. We have not had time to really test beyond our very specific use case (we run multiple sites with a single cloudsearch backend) or vet it for general release, but you are welcome to give it a shot.

If you update to that version and still have issues, let us know.

Justin

farse’s picture

do you mean the libraries/awssdk that I need to get the latest version? https://github.com/amazonwebservices/aws-sdk-for-php (as in the readme) or https://github.com/aws/aws-sdk-php?
as I have taken the latest version of Search API Amazon-CloudSearch (downloaded today) and 5.4 in the https://www.drupal.org/project/awssdk module seems to be the latest version there.

farse’s picture

sorry jslatts, got confused by what you meant by 'taken down' (thought you meant i need to use it).
looks like the latest two commits are just readme updates. can you specify what commit I use please?
thanks!

jslatts’s picture

Farse,

Sorry, I meant this module release should be removed since it is broken.

Just use the latest commit, the readme changes should not affect anything.

Justin

farse’s picture

FileSize
28.71 KB
26.1 KB

Hi,

Just so I get this straight, the version I had been on was the latest 7.x-1.x version (4371456)
https://www.drupal.org/node/2097621/commits
and the last commit from that one was 0825a2a. I tried that and no change, same errors.

Then I tried the latest commit on the develop branch which was beb4282 and using the new awssdk2 (which I cloned from https://github.com/aws/aws-sdk-php). I disabled and uninstalled the module and then reenabled it, just in case..
Now getting an error that library isn't installed.
awssdk2
But you can see that I have the awssdk2 folder there
awssdks

Am I missing something more?

farse’s picture

Just an update on what I've tried thus far..
To make sure it's not the credentials that are giving me trouble, I installed the CLI and made the same request in command line. I didn't have any problems returning data this way and so am a bit stuck with the module.
The errors I am getting (first one in the thread) seem to have to be traced back to the authentication in the sdk (using v1).

If you could specify maybe what commit you have working along with the version of sdk you are using maybe I could get a working version up!

Thanks.

jslatts’s picture

@farse

I see the issue. You can't clone the AWSSDK2 repo and use that directly as a drupal library, you need to actually build it, or, preferably, get it from the release page: https://github.com/aws/aws-sdk-php/releases/download/2.7.21/aws.zip

Replace the libraries/awssdk2 folder with the contents of that zip file and let me know what happens!

Justin

farse’s picture

farse’s picture

FileSize
17.51 KB
30.26 KB

I've done that (+ using the latest develop branch commit) and am not getting the awssdk not found anymore, which seems like a step in the right direction, but a new error has creeped up when I submit the details.

Have you seen this before?

add server error

this happens regardless of ticking the 'Show debug info' or not.

These are the log messages
aws logs

Also using drupal 7.34 if that helps at all.

jslatts’s picture

@farse,

I haven't seen that before. Unfortunately at this point, you are going to have to debug it yourself. One of the reasons we haven't released any versions of this module is that it hasn't been used by anyone outside of our specific use case.

I would start by turning off dblog and seeing if that gets you any farther.

J

dhavaljani1990’s picture

Hello sir, same problem is here...I have been trying to solve that problem since 2 3 days, but still getting that problem, Can you elaborate how i can solve it?

Thanks