Skip to content

Decision importer fails for a upload with regular clearing  #2402

@shaheemazmalmmd

Description

@shaheemazmalmmd

Description

Actually the decision importer agent fails when i tried to import the data. please check the below screenshot and error message

Database query with both the uploads having Pfile

ScreenShot74

Error message from decision importer.

2023-03-16 16:44:52 decisionimporter [0] :: JOB[58].decisionimporter[7915.localhost]: "Caught exception while processing uploadId=7: Can't find item with pfile '44' in upload '7'#0 /usr/local/share/fossology/decisionimporter/agent/DecisionImporterIdFetcher.php(118): Fossology\DecisionImporter\DecisionImporterIdFetcher->updateUploadTreeIds()"
2023-03-16 16:44:52 decisionimporter [0] :: JOB[58].decisionimporter[7915.localhost]: "#1 /usr/local/share/fossology/decisionimporter/agent/DecisionImporterAgent.php(129): Fossology\DecisionImporter\DecisionImporterIdFetcher->getOrCreateIds()"
2023-03-16 16:44:52 decisionimporter [0] :: JOB[58].decisionimporter[7915.localhost]: "#2 /usr/local/share/fossology/lib/php/Agent/Agent.php(328): Fossology\DecisionImporter\DecisionImporterAgent->processUploadId()"
2023-03-16 16:44:52 decisionimporter [0] :: JOB[58].decisionimporter[7915.localhost]: "#3 /usr/local/share/fossology/decisionimporter/agent/decisionimporter.php(18): Fossology\Lib\Agent\Agent->run_scheduler_event_loop()"
2023-03-16 16:44:52 decisionimporter [0] :: JOB[58].decisionimporter[7915.localhost]: "#4 /usr/local/lib/fossology/fo_wrapper(65): require('...')"
2023-03-16 16:44:52 decisionimporter [0] :: JOB[58].decisionimporter[7915.localhost]: "#5 {main}agent failed on uploadId=7#0 /usr/local/share/fossology/lib/php/Agent/Agent.php(339): Fossology\Lib\Agent\Agent->bail()"
2023-03-16 16:44:52 decisionimporter [0] :: JOB[58].decisionimporter[7915.localhost]: "#1 /usr/local/share/fossology/decisionimporter/agent/decisionimporter.php(18): Fossology\Lib\Agent\Agent->run_scheduler_event_loop()"
2023-03-16 16:44:52 decisionimporter [0] :: JOB[58].decisionimporter[7915.localhost]: "#2 /usr/local/lib/fossology/fo_wrapper(65): require('...')"
2023-03-16 16:44:52 decisionimporter [0] :: JOB[58].decisionimporter[7915.localhost]: agent failed with error code 1
2023-03-16 16:44:53 decisionimporter [0] :: JOB[58].decisionimporter[7915.localhost]: agent failed, code: 0

How to reproduce

  • Upload a package and do clearing using bulk and file base clearing.
  • Clear copyrights, ecc and ipra and then generate a export report.
  • Go to some other machine upload the same cleared package without selecting any agents.
  • Not goto browse and in actions select decision import and select the previous export report.
  • Without changing any option execute decisionimporter.

Versions

  • Latest Master

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions