Skip to content

Cannot sync two AEM 6.4 instances #226

@dandinu

Description

@dandinu

Hi guys,

I've been trying to sync two AEM systems using Grabbit and everything seems to be installed properly and active in the bundles on both systems. I can succesfully trigger a job, but after I check /CRX/DE, the content is not synced. Here is my info and what I am trying to do.

What version of AEM are you running?
AEM 6.4.1 with Grabbit 7.1.5

How do you produce the issue?
I installed Grabbit 7.1.5 on both machines and I configured the following config.json on the server:

{
    "serverUsername" : "admin",
    "serverPassword" : "admin",
    "serverHost" : "test-server",
    "serverScheme" : "https",
    "serverPort" : "443",
    "batchSize" : 150,
    "deltaContent" : false,
    "pathConfigurations" :  [
        {
            "path" : "/etc/designs/test-server/clienlibs/test",
            "batchSize" : 50
        }
    ]
}

I run the following command on the same server where the config.json is, and I succesfully trigger a job:
curl -v -X PUT --header 'Content-Type: text/plain' --data-binary @/mnt/crx/author/grabbit/config.json -u admin:admin http://test-client:4502/grabbit/job

* About to connect() to test-client port 4502 (#0)
*   Trying 35.167.4.193...
* Connected to test-client (35.167.4.193) port 4502 (#0)
* Server auth using Basic with user 'admin'
> PUT /grabbit/job HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.29.0
> Host: test-client:4502
> Accept: */*
> Content-Type: text/plain
> Content-Length: 421
>
* upload completely sent off: 421 out of 421 bytes
< HTTP/1.1 200 OK
< Date: Wed, 17 Apr 2019 16:24:00 GMT
< X-Content-Type-Options: nosniff
< Set-Cookie: cq-authoring-mode=TOUCH;Path=/;Expires=Wed, 24-Apr-2019 16:24:00 GMT;Max-Age=604800
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Content-Type: application/json
< GRABBIT_TRANSACTION_ID: 3497236261045048571
< Content-Length: 21
<
* Connection #0 to host test-client left intact

This is what the test-client reports after receiving the config.json:

17.04.2019 11:54:08.481 *INFO* [18.144.0.58 [1555516448434] PUT /grabbit/job HTTP/1.1] com.twcable.grabbit.client.batch.ClientBatchJob Kicked off job with ID : 6678845723766088911
17.04.2019 11:54:08.481 *INFO* [18.144.0.58 [1555516448434] PUT /grabbit/job HTTP/1.1] com.twcable.grabbit.client.servlets.GrabbitJobServlet Jobs started : [6678845723766088911]
17.04.2019 11:54:08.481 *INFO* [18.144.0.58 [1555516448434] PUT /grabbit/job HTTP/1.1] com.twcable.grabbit.client.servlets.GrabbitJobServlet Transaction started 4251115638747771147
17.04.2019 11:54:08.486 *INFO* [clientJobLauncherTaskExecutor-1] com.twcable.grabbit.client.batch.ClientBatchJobExecutionListener Starting job : JobExecution: id=6678845723766088911, version=1, startTime=Wed Apr 17 11:54:08 EDT 2019, endTime=null, lastUpdated=Wed Apr 17 11:54:08 EDT 2019, status=STARTED, exitStatus=exitCode=UNKNOWN;exitDescription=, job=[JobInstance: id=11, version=0, Job=[clientJob]], jobParameters=[{serverPassword=admin, deleteBeforeWrite=false, scheme=https, port=443, transactionID=4251115638747771147, clientUsername=admin, excludePaths=, workflowConfigIds=, batchSize=50, timestamp=1555516448467, serverUsername=admin, host=test-server, pathDeltaContent=false, path=/etc/designs/test-server/clienlibs/test}]


17.04.2019 11:54:08.508 *INFO* [clientJobLauncherTaskExecutor-1] com.twcable.grabbit.client.batch.steps.workflows.WorkflowOffTasklet WorkflowConfig : 
17.04.2019 11:54:08.508 *INFO* [clientJobLauncherTaskExecutor-1] com.twcable.grabbit.client.batch.steps.workflows.WorkflowOffTasklet Nothing to process...
17.04.2019 11:54:08.528 *INFO* [clientJobLauncherTaskExecutor-1] com.twcable.grabbit.client.batch.steps.workspace.DeleteBeforeWriteDecider Will retain nodes under job path for 6678845723766088911...
17.04.2019 11:55:08.645 *INFO* [clientJobLauncherTaskExecutor-1] com.twcable.grabbit.client.batch.ClientBatchJobExecutionListener Cleanup : JobExecution: id=6678845723766088911, version=1, startTime=Wed Apr 17 11:54:08 EDT 2019, endTime=Wed Apr 17 11:55:08 EDT 2019, lastUpdated=Wed Apr 17 11:54:08 EDT 2019, status=FAILED, exitStatus=exitCode=FAILED;exitDescription=, job=[JobInstance: id=11, version=0, Job=[clientJob]], jobParameters=[{serverPassword=admin, deleteBeforeWrite=false, scheme=https, port=443, transactionID=4251115638747771147, clientUsername=admin, excludePaths=, workflowConfigIds=, batchSize=50, timestamp=1555516448467, serverUsername=admin, host=test-server, pathDeltaContent=false, path=/etc/designs/test-server/clienlibs/test}] . Job Complete. Releasing session, and input stream
17.04.2019 11:55:08.649 *INFO* [clientJobLauncherTaskExecutor-1] com.twcable.grabbit.client.batch.ClientBatchJobExecutionListener Grab from test-server for Current Path /etc/designs/test-server/clienlibs/test took : 60164 milliseconds


17.04.2019 12:00:42.695 *INFO* [18.144.0.58 [1555516842644] PUT /grabbit/job HTTP/1.1] com.twcable.grabbit.client.batch.ClientBatchJob Kicked off job with ID : 6569392098779498180
17.04.2019 12:00:42.695 *INFO* [18.144.0.58 [1555516842644] PUT /grabbit/job HTTP/1.1] com.twcable.grabbit.client.servlets.GrabbitJobServlet Jobs started : [6569392098779498180]
17.04.2019 12:00:42.695 *INFO* [18.144.0.58 [1555516842644] PUT /grabbit/job HTTP/1.1] com.twcable.grabbit.client.servlets.GrabbitJobServlet Transaction started 6876129364447537021
17.04.2019 12:00:42.701 *INFO* [clientJobLauncherTaskExecutor-2] com.twcable.grabbit.client.batch.ClientBatchJobExecutionListener Starting job : JobExecution: id=6569392098779498180, version=1, startTime=Wed Apr 17 12:00:42 EDT 2019, endTime=null, lastUpdated=Wed Apr 17 12:00:42 EDT 2019, status=STARTED, exitStatus=exitCode=UNKNOWN;exitDescription=, job=[JobInstance: id=12, version=0, Job=[clientJob]], jobParameters=[{serverPassword=admin, deleteBeforeWrite=false, scheme=https, port=443, transactionID=6876129364447537021, clientUsername=admin, excludePaths=, workflowConfigIds=, batchSize=50, timestamp=1555516842680, serverUsername=aem_admin, host=test-server, pathDeltaContent=false, path=/etc/designs/test-server/clienlibs/test}]


17.04.2019 12:00:42.724 *INFO* [clientJobLauncherTaskExecutor-2] com.twcable.grabbit.client.batch.steps.workflows.WorkflowOffTasklet WorkflowConfig : 
17.04.2019 12:00:42.724 *INFO* [clientJobLauncherTaskExecutor-2] com.twcable.grabbit.client.batch.steps.workflows.WorkflowOffTasklet Nothing to process...
17.04.2019 12:00:42.744 *INFO* [clientJobLauncherTaskExecutor-2] com.twcable.grabbit.client.batch.steps.workspace.DeleteBeforeWriteDecider Will retain nodes under job path for 6569392098779498180...
17.04.2019 12:01:42.808 *INFO* [clientJobLauncherTaskExecutor-2] com.twcable.grabbit.client.batch.ClientBatchJobExecutionListener Cleanup : JobExecution: id=6569392098779498180, version=1, startTime=Wed Apr 17 12:00:42 EDT 2019, endTime=Wed Apr 17 12:01:42 EDT 2019, lastUpdated=Wed Apr 17 12:00:42 EDT 2019, status=FAILED, exitStatus=exitCode=FAILED;exitDescription=, job=[JobInstance: id=12, version=0, Job=[clientJob]], jobParameters=[{serverPassword=admin, deleteBeforeWrite=false, scheme=https, port=443, transactionID=6876129364447537021, clientUsername=admin, excludePaths=, workflowConfigIds=, batchSize=50, timestamp=1555516842680, serverUsername=aem_admin, host=test-server, pathDeltaContent=false, path=/etc/designs/test-server/clienlibs/test}] . Job Complete. Releasing session, and input stream
17.04.2019 12:01:42.812 *INFO* [clientJobLauncherTaskExecutor-2] com.twcable.grabbit.client.batch.ClientBatchJobExecutionListener Grab from test-server for Current Path /etc/designs/test-server/clienlibs/test took : 60112 milliseconds

The job is reported as FAILED and I do not know why.

Does the issue occur consistently?
Yes, I am not able to sync the folder at all. here is what it looks like in ./grabbit.sh:

Job when running:

{
    "endTime": null,
    "exitStatus": {
        "exitCode": "UNKNOWN",
        "exitDescription": "",
        "running": true
    },
    "jcrNodesWritten": -1,
    "jobExecutionId": 6281385809563395306,
    "path": "/etc/designs/test-server/clienlibs/test",
    "startTime": "2019-04-17T16:57:29+0000",
    "timeTaken": -1,
    "transactionID": 1245169299603729269
}

Job when FAILED:

{
    "endTime": "2019-04-17T16:58:29+0000",
    "exitStatus": {
        "exitCode": "FAILED",
        "exitDescription": "",
        "running": false
    },
    "jcrNodesWritten": -1,
    "jobExecutionId": 6281385809563395306,
    "path": "/etc/designs/test-server/clienlibs/test",
    "startTime": "2019-04-17T16:57:29+0000",
    "timeTaken": 60161,
    "transactionID": 1245169299603729269
}

Help pointing in the right direction
Do you guys have any idea what I should be looking at? I have been poking at this for about two days and I can't figure out what's wrong. I'm really hoping someone can point me in the right direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions