After we started trying deployment on a complex site - and failed - we stripped down everything to a brandnew installation with only the needed modules.
We now get a "Plan Deploymentplan has been deployed and published to deployment-target." message on the server, and can see the deployment user logging in on the target's log messages.
To be sure that we didnt' miss something, every possible option is activated (services/resources, rest formatters and parsing, deployment user has admin rights).

Some things seem strange in the log:
On deploy target:
- Passed and called arguments arrays are both empty
- last entry is "results: 1 Anonymous (not verified)"

On deploy source:
in the Authentication response there is a line "[connection] => close" - looks like the server logs out right after authentifiction.

Any help/ideas are appreciated -

Comments

aspilicious’s picture

Can you provide your logs on source and destination site.
Be sure to enable debugging on every settings page.

C.H.Riss’s picture

StatusFileSize
new13 KB
new12 KB

Yes, debugging is enabled - i attached the watchdog tables of server and client as xls!

aspilicious’s picture

Status: Active » Postponed (maintainer needs more info)

Did you enter services/rest in the end or our url and in the configuration of the endpoint?

aspilicious’s picture

Status: Postponed (maintainer needs more info) » Active

crosspost lol

aspilicious’s picture

Hmm strange...
Don't see any errors...

I just pushed some fixes for views aggregator but I don't think that's your problem. What did you add to the deployment plan? What kinda entity and how did you do that?

C.H.Riss’s picture

- not the first time i tried to set it up (i calles it /deployservice); after that i changed it ... but the result was the same.

Strange thing: when i called ./services/rest via browser i got something like "services set up correct" - today i get "page not found" - mh; i gonna check that

C.H.Riss’s picture

StatusFileSize
new36.91 KB

... and for you comment nr 5: i have only one node (content type "article" from drupal standard installation); i added it on the content overview via dropdown "update options". It appears on the deployment plan (/structure/deploy), so i think that should be fine...

C.H.Riss’s picture

ah - one more thing: different to your documentation "Installing Deploy" i use Memory processor. I also tried Queue API - but then i get "processing" when i try to deploy instead of "published"

aspilicious’s picture

When you use queue api you need to run cron. SHouldn't make a difference in the end.

aspilicious’s picture

You can't switch processors just like that. You need to reconfigure every step. If you switch processors it's best to delete the previous one if you want to be sure.

C.H.Riss’s picture

Yes i know that i have to run cron ... i run it several times but it kept saying "processing"
I created a new plan with queue from the very beginning - same result; it keeps saying "processing"

aspilicious’s picture

Hmmm, and ar eyou sure you enabled debugging on every screen? I had the sale problems a few weeks ago and than I saw a lot of errors in the logs.

I rly don't have a clue what else can go wrong...

C.H.Riss’s picture

All in all there are three debug options to be checked:

2x Server: on Deployment/Edit Plan & on Deployment/Edit endpoint
1x Client: on Service/Edit endpoint
- right? or did i miss some?

aspilicious’s picture

if server == source and client == destination (yes)

C.H.Riss’s picture

Ok - so you say it should work as it is (or at least give us some more / clearer error messages).

... allow some question before i try to set it up from scratch again then:

from my first post - log file on destination:
- Passed and called arguments arrays are both empty
- last entry is "results: 1 Anonymous (not verified)"

log on source:
in the Authentication response there is a line "[connection] => close" - looks like the server logs out right after authentifiction

--> is that all ok?

And:
- both source and destination are running on localhost in different subdirectories - ok?
- i'm running mac os x 10.7.3 with xampp; should't be a problem ...?
- anything special for apache needed?

aspilicious’s picture

It's normal that anonymous gets passed and that user is logged out but between logging in and logging out a node shoukd be passed... And you got every possible resource enabled....

I can't create clearer messages if *nothing* seems to fail... :s

stongo’s picture

I have the same issue. I created my own watchdog message in services/servers/rest_server/includes/RESTserver.inc in the Services module on the destination server:

private function parseRequest($method, $controller) {
    switch ($method) {
      case 'POST':
        watchdog('services', '$_SERVER: <pre>@server</pre>', array('@server' => print_r($_SERVER, true)), WATCHDOG_DEBUG);
      ...

It only sets two messages, one during Login and one during Logout. Watchdog should log my debug message for each operation, so I think this confirms no node "create" is being attempted at all.
Here's a paste of the pertinent output of $_SERVER during login (I removed some of the output) in case there's anything helpful here.

[REDIRECT_STATUS] => 200
[CONTENT_TYPE] => application/json
[HTTP_HOST] => dev.mysite-production.me
[HTTP_USER_AGENT] => Drupal (+http://drupal.org/)
[CONTENT_LENGTH] => 44
[SCRIPT_FILENAME] => /srv/www/dev.mysite-production.me/html/index.php
[REDIRECT_URL] => /services/rest/user/login
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.0
[REQUEST_METHOD] => POST
[QUERY_STRING] =>
[REQUEST_URI] => /services/rest/user/login
[SCRIPT_NAME] => /index.php
[PHP_SELF] => /index.php
[REQUEST_TIME] => 1333647389
[HTTP_REFERER] =>

amirdt22’s picture

Ok, I was having the same problem - it would login,logout but not deploy anything. (Also see this red herring: http://drupal.org/node/1511296)

I followed these instructions:
http://drupal.org/node/1406134
and applied this patch:
http://drupal.org/node/1511152#comment-5822528

and I've gotten it to deploy.

Deployment Deployment (deploy) Module Enabled 7.x-2.x-dev
Deployment Deployment UI (deploy_ui) Module Enabled 7.x-2.x-dev
Deployment Views deployment aggregator (deploy_aggregator_views) Module Not installed 7.x-2.x-dev
Features Deploy Example (deploy_example) Module Enabled 7.x-2.x-dev
Features UUID default entities example (uuid_default_entities_example) Module Not installed 7.x-1.0-alpha3+31-dev
Features UUID Features (uuid_features) Module Enabled 7.x-1.0-alpha1
Features UUID Services Example (uuid_services_example) Module Not installed 7.x-1.0-alpha3+31-dev
Services Services (services) Module Enabled 7.x-3.1+44-dev
Services - authentication OAuth Authentication (services_oauth) Module Not installed 7.x-3.1+44-dev
Services - resources UUID Services (uuid_services) Module Enabled 7.x-1.0-alpha3+31-dev
UUID Universally Unique ID (uuid) Module Enabled 7.x-1.0-alpha3+31-dev

stongo’s picture

amirdt22, I don't think it's the same issue. I only have one endpoint configured, and don't receive any errors or notices at all.
I applied the patch you recommended anyway, just in case, and still have the same issue. Only logs in and out.
Thanks though!

aspilicious’s picture

FOUND THE ISSUE!

(because I had the same problems)

you need to download the latest DEV from entity dependency.

stongo’s picture

aspilicious++
that fixes it for me, too!
you rock!

aspilicious’s picture

Status: Active » Fixed

:D

Status: Fixed » Closed (fixed)

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