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 -
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | Bildschirmfoto 2012-03-28 um 11.09.19.png | 36.91 KB | C.H.Riss |
| #2 | watchdog_server.xls | 12 KB | C.H.Riss |
| #2 | watchdog_client.xls | 13 KB | C.H.Riss |
Comments
Comment #1
aspilicious commentedCan you provide your logs on source and destination site.
Be sure to enable debugging on every settings page.
Comment #2
C.H.Riss commentedYes, debugging is enabled - i attached the watchdog tables of server and client as xls!
Comment #3
aspilicious commentedDid you enter services/rest in the end or our url and in the configuration of the endpoint?
Comment #4
aspilicious commentedcrosspost lol
Comment #5
aspilicious commentedHmm 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?
Comment #6
C.H.Riss commented- 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
Comment #7
C.H.Riss commented... 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...
Comment #8
C.H.Riss commentedah - 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"
Comment #9
aspilicious commentedWhen you use queue api you need to run cron. SHouldn't make a difference in the end.
Comment #10
aspilicious commentedYou 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.
Comment #11
C.H.Riss commentedYes 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"
Comment #12
aspilicious commentedHmmm, 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...
Comment #13
C.H.Riss commentedAll 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?
Comment #14
aspilicious commentedif server == source and client == destination (yes)
Comment #15
C.H.Riss commentedOk - 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?
Comment #16
aspilicious commentedIt'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
Comment #17
stongo commentedI 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:
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.
Comment #18
amirdt22 commentedOk, 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
Comment #19
stongo commentedamirdt22, 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!
Comment #20
aspilicious commentedFOUND THE ISSUE!
(because I had the same problems)
you need to download the latest DEV from entity dependency.
Comment #21
stongo commentedaspilicious++
that fixes it for me, too!
you rock!
Comment #22
aspilicious commented:D