Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JobException in ERROR Failed to start a transfer #554

Closed
Tracked by #537
mkanal opened this issue Apr 23, 2024 · 8 comments
Closed
Tracked by #537

JobException in ERROR Failed to start a transfer #554

mkanal opened this issue Apr 23, 2024 · 8 comments
Assignees
Labels
bug Something isn't working R24.5 release-hot-fix pbi is relevant for current release and for hotfix path

Comments

@mkanal
Copy link
Contributor

mkanal commented Apr 23, 2024

Description

  • Job in error

Current behavior

  • Job in error
{
	"job": {
		"id": "f228d4f5-c3c7-434e-8ec7-4b6c0b5f8432",
		"globalAssetId": "urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d",
		"state": "ERROR",
		"exception": {
			"exception": "org.eclipse.tractusx.irs.connector.job.JobException",
			"errorDetail": "Failed to start a transfer",
			"exceptionDate": "2024-04-23T09:42:02.269209736Z"
		},
		"createdOn": "2024-04-23T09:35:55.543464314Z",
		"startedOn": "2024-04-23T09:35:55.543581713Z",
		"lastModifiedOn": "2024-04-23T09:42:02.269206036Z",
		"completedOn": "2024-04-23T09:42:02.269204837Z",

Expected behavior

  • IRS Job returns JobReponse without ERROR

Steps to reproduce the Bug

  • DEV Environment
  • globalAssetID urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d
  • BPN BPNL00000003AVTH
  • asBuilt
@mkanal mkanal added this to IRS Apr 23, 2024
@mkanal mkanal moved this to next in IRS Apr 23, 2024
@mkanal mkanal moved this from next to backlog in IRS Apr 23, 2024
@mkanal mkanal moved this from backlog to next in IRS Apr 23, 2024
@mkanal mkanal added the bug Something isn't working label Apr 25, 2024
@dsmf dsmf self-assigned this Apr 30, 2024
@dsmf dsmf moved this from next to wip in IRS Apr 30, 2024
@dsmf
Copy link
Contributor

dsmf commented Apr 30, 2024

@mkanal :

  • Could not reproduce on DEV with the parameters from the description, see my job 7ef831c1-5616-4e66-9b7f-2c4fd2600d47 on DEV which looks good to me?!
  • Cannot find the failed job with this ID? Which ENV is this from?
  • Which aspects? collectAspects? direction? lookupBPNs? depth?

@mkanal
Copy link
Contributor Author

mkanal commented Apr 30, 2024

@dsmf
Env is DEV:
Note: There was a reset since then so job might not be present any more.

There are multiple Jobs in ERROR state please get in contact with Jaro.

Given I register an IRS job for globalAssetId "urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d" and BPN "BPNL00000003AVTH"
And collectAspects "true"
And depth 10
And direction "downward"
And bomLifecycle "asBuilt"
And lookupBPNs "false"
And aspects :
  | urn:samm:io.catenax.batch:3.0.0#Batch |
When I get the job-id

@mkanal mkanal removed their assignment Apr 30, 2024
@dsmf
Copy link
Contributor

dsmf commented May 2, 2024

Not reproducible on DEV with the above parameters:

{
	"job": {
		"id": "5510dc66-0edc-44af-b867-33bb507c76c8",
		"globalAssetId": "urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d",
		"state": "COMPLETED",
		"exception": null,
		"createdOn": "2024-05-02T10:49:32.909494162Z",
		"startedOn": "2024-05-02T10:49:32.909575763Z",
		"lastModifiedOn": "2024-05-02T10:59:56.474404223Z",
		"completedOn": "2024-05-02T10:59:56.474405223Z",
		"summary": {
			"asyncFetchedItems": {
				"running": 0,
				"completed": 175,
				"failed": 0
			},
			"bpnLookups": {
				"completed": 0,
				"failed": 0
			}
		},
		"parameter": {
			"bomLifecycle": "asBuilt",
			"aspects": [
				"urn:samm:io.catenax.batch:3.0.0#Batch"
			],
			"depth": 10,
			"bpn": "BPNL00000003AVTH",
			"direction": "downward",
			"collectAspects": true,
			"lookupBPNs": false,
			"auditContractNegotiation": true,
			"callbackUrl": null
		}
	},
...

@dsmf
Copy link
Contributor

dsmf commented May 6, 2024

another trial with "lookupBPNs": true,
job id 2fc94e5c-95f6-4b41-9d42-0bba45e5f984
=>

{
	"job": {
		"id": "2fc94e5c-95f6-4b41-9d42-0bba45e5f984",
		"globalAssetId": "urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d",
		"state": "RUNNING",
		"exception": null,
		"createdOn": "2024-05-02T16:31:44.714228824Z",
		"startedOn": "2024-05-02T16:31:44.714352826Z",
		"lastModifiedOn": "2024-05-02T16:31:44.728810932Z",
		"completedOn": null,
		"summary": {
			"asyncFetchedItems": {
				"running": 1,
				"completed": 0,
				"failed": 0
			},
			"bpnLookups": {
				"completed": 0,
				"failed": 0
			}
		},
		"parameter": {
			"bomLifecycle": "asBuilt",
			"aspects": [
				"urn:samm:io.catenax.batch:3.0.0#Batch"
			],
			"depth": 10,
			"bpn": "BPNL00000003AVTH",
			"direction": "downward",
			"collectAspects": true,
			"lookupBPNs": true,
			"auditContractNegotiation": true,
			"callbackUrl": null
		}
	},
	"relationships": [],
	"shells": [],
	"tombstones": [],
	"submodels": [],
	"bpns": []
}

Here the job seems to stay in state RUNNING forever. But this is another issue which should be resolved by #568

@dsmf
Copy link
Contributor

dsmf commented May 6, 2024

https://jira.catena-x.net/secure/XrayExecuteTest!default.jspa?testExecIssueKey=TRI-1977&testIssueKey=TRI-767

{
	"job": {
		"id": "db05b66d-c6f5-45a9-957c-b1f37e52ba7c",
		"globalAssetId": "urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d",
		"state": "ERROR",
		"exception": {
			"exception": "org.eclipse.tractusx.irs.connector.job.JobException",
			"errorDetail": "Failed to start a transfer",
			"exceptionDate": "2024-05-02T16:16:46.580252951Z"
		},
		"createdOn": "2024-05-02T16:07:58.34393778Z",
		"startedOn": "2024-05-02T16:07:58.344037282Z",
		"lastModifiedOn": "2024-05-02T16:16:46.58024925Z",
		"completedOn": "2024-05-02T16:16:46.58024825Z",
		"summary": {
	            ...
		},
		"parameter": {
			"bomLifecycle": "asBuilt",
			"aspects": [
				"urn:samm:io.catenax.serial_part:3.0.0#SerialPart",
				"urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt",
				"urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart",
				"urn:samm:io.catenax.batch:3.0.0#Batch"
			],
			"depth": 100,
			"bpn": "BPNL00000003AVTH",
			"direction": "downward",
			"collectAspects": true,
			"lookupBPNs": false,
			"auditContractNegotiation": false,
			"callbackUrl": null
		}
	},
...

Started again with same parameters:



{
	"aspects": [
				"urn:samm:io.catenax.serial_part:3.0.0#SerialPart",
				"urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt",
				"urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart",
				"urn:samm:io.catenax.batch:3.0.0#Batch"
	],
	"bomLifecycle": "asBuilt",
	"depth": 100,
	"key": {
		"globalAssetId": "urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d",
		"bpn": "BPNL00000003AVTH"
	},

	"direction": "downward",
	"collectAspects": true,
	"lookupBPNs": false,
	"auditContractNegotiation": false,
	"callbackUrl": null
}

result:

{
	"job": {
		"id": "ad47683d-ad8d-4464-85b3-ef1e1dc3cc20",
		"globalAssetId": "urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d",
		"state": "COMPLETED",
		"exception": null,
		"createdOn": "2024-05-06T16:42:07.014071046Z",
		"startedOn": "2024-05-06T16:42:07.014284649Z",
		"lastModifiedOn": "2024-05-06T16:43:16.134983085Z",
		"completedOn": "2024-05-06T16:43:16.134986385Z",
		"summary": {
			"asyncFetchedItems": {
				"running": 0,
				"completed": 1,
				"failed": 1
			},
			"bpnLookups": {
				"completed": 0,
				"failed": 0
			}
		},
		"parameter": {
			"bomLifecycle": "asBuilt",
			"aspects": [
				"urn:samm:io.catenax.serial_part:3.0.0#SerialPart",
				"urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt",
				"urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart",
				"urn:samm:io.catenax.batch:3.0.0#Batch"
			],
			"depth": 100,
			"bpn": "BPNL00000003AVTH",
			"direction": "downward",
			"collectAspects": true,
			"lookupBPNs": false,
			"auditContractNegotiation": false,
			"callbackUrl": null
		}
	},
	"relationships": [],
	"shells": [],
	"tombstones": [
		{
			"catenaXId": "urn:uuid:8724338c-5c85-4c34-91eb-e2735d58fb0d",
			"endpointURL": null,
			"businessPartnerNumber": null,
			"processingError": {
				"processStep": "DigitalTwinRequest",
				"errorDetail": "Unable to find any of the requested shells",
				"lastAttempt": "2024-05-06T16:43:14.652723014Z",
				"retryCounter": 3
			},
			"policy": null
		}
	],
	"submodels": [],
	"bpns": []
}

=> not reproducible

@dsmf
Copy link
Contributor

dsmf commented May 6, 2024

Hi @mkanal, not reproducible, ready for test.

@dsmf dsmf assigned ds-jhartmann and unassigned ds-jhartmann May 6, 2024
@dsmf dsmf moved this from wip to test in IRS May 7, 2024
@mkanal
Copy link
Contributor Author

mkanal commented May 7, 2024

Tested is not reproducible on DEV in the current setup. Ready for review.

@mkanal mkanal moved this from test to review in IRS May 7, 2024
@mkanal
Copy link
Contributor Author

mkanal commented May 8, 2024

PO acceptance in representation of @jzbmw .
According to multiple code changes, this is not reproducible anymore. If this issues remains, the bug will be reopened.

@mkanal mkanal moved this from review to done in IRS May 8, 2024
@mkanal mkanal closed this as completed May 8, 2024
@mkanal mkanal unassigned jzbmw May 8, 2024
@mkanal mkanal removed their assignment May 8, 2024
@mkanal mkanal added R24.5 release-hot-fix pbi is relevant for current release and for hotfix path labels May 13, 2024
ds-jhartmann pushed a commit to ds-jhartmann/item-relationship-service that referenced this issue Jun 13, 2024
…663-unify-ess-into-irs

feat(impl):[TRI-1663] unify ess into irs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working R24.5 release-hot-fix pbi is relevant for current release and for hotfix path
Projects
Status: done
Development

No branches or pull requests

4 participants