BlackbitDigitalCommerce / pimcore-data-director

Import Bundle for Pimcore
16 stars 3 forks source link

Dependent dataport step 1 canceled #176

Closed betterapp closed 2 months ago

betterapp commented 2 months ago

I have two dataports. Here is the log from First one:

Logs for Rawdata Processing (complete) (Dataport Id: 7, Resource: 
file: type = 'image' AND  path LIKE '/Automap/SKU/%'

locale: en

parameters: [] by admin)
[INFO] --- Importing next raw data item
[INFO] Value for key field "path": /Products/123456/
[INFO] Value for key field "filename": 240806-143637-123456_1.png
[INFO] No item found by key fields path=/Products/123456/, filename=240806-143637-123456_1.png
[INFO] Importing object /-Products-123456-_240806-143637-123456_1.png
[INFO] Value for field path: /Products/123456/
[INFO] Value for field filename: 240806-143637-123456_1.png
[INFO] Value for field Stream: /home/pim/web/var/assets/Automap/SKU/123456_1.png
[INFO] Value for field __virtual_DEPENDENT DATAPORT ID: 8
[INFO] Value for field __virtual_DEPENDENT DATAPORT PARAMETERS: {
    "SKU": "123456",
    "assetFilename": "240806-143637-123456_1.png",
    "assetPath": "/Products/123456/",
    "oldAssetFile": "/home/pim/web/var/assets/Automap/SKU/123456_1.png"
}
[INFO] Value for field __virtual_DEPENDENT DATAPORT WAIT UNTIL FINISHED: true
[INFO] Reason for saving: Object is new
[INFO] asset /Products/123456/240806-143637-123456_1.png queued for saving
[INFO] Successfully saved asset #88 /Products/123456/240806-143637-123456_1.png (version #2603)
[INFO] Executing command "dd:complete "8" --locale=en --user=2 -f --parameters="{\"SKU\":\"123456\",\"assetFilename\":\"240806-143637-123456_1.png\",\"assetPath\":\"\/Products\/123456\/\",\"oldAssetFile\":\"\/pim\/web\/var\/assets\/Automap\/SKU\/123456_1.png\"}""

The second DataPort ID = 8 have such configuration: image

But as I see the second dataport is "canceled" image

When I click on "Execute again" the source have some additional conditions ? image

Why it does not work ?

DD: 3.6.36

betterapp commented 2 months ago

@BlackbitDevs

The same with: 3.6.53

Jan-Walther-Blackbit commented 2 months ago

Can you please try 3.7.x-dev? Will be released this or next week.

betterapp commented 2 months ago

@BlackbitDevs

have the same issue with 3.7.0

It is try to make something every 2-3 seconds

image

BlackbitDevs commented 2 months ago

Can you execute the follow-up call manually via CLI: bin/console dd:complete "8" --locale=en --user=2 -f --parameters="{\"SKU\":\"123456\",\"assetFilename\":\"240806-143637-123456_1.png\",\"assetPath\":\"\/Products\/123456\/\",\"oldAssetFile\":\"\/pim\/web\/var\/assets\/Automap\/SKU\/123456_1.png\"}" -vv? (With the -vv at the end you will see the logs on CLI)

betterapp commented 2 months ago
daniel@bettr:~/Web/pim$ ./bin/console dd:complete "8" --locale=en --user=2 -f --parameters="{\"SKU\":\"123456\",\"assetFilename\":\"240821-092356-123456_1.png\",\"assetPath\":\"\/Products\/123456\/\",\"oldAssetFile\":\"\/home\/daniel\/Web\/pim\/web\/var\/assets\/Automap\/SKU\/123456_1.png\"}" -vv
09:25:21 INFO      [php] User Deprecated: The "Blackbit\DataDirectorBundle\Tools\Installer" class implements "Pimcore\Extension\Bundle\Installer\MigrationInstallerInterface" that is deprecated will be removed in Pimcore 10, use InstallerInterface instead. ["exception" => ErrorException { …}]
Starting complete import for dataport "Automap - SKU - Assign Asset to Product Object" (#8)
Using default file
09:25:21 INFO      [php] User Deprecated: Calling static methods on Pimcore\Model\DataObject\AbstractObject is deprecated, please use Pimcore\Model\DataObject::setHideUnpublished instead. ["exception" => ErrorException { …}]
09:25:21 INFO      [php] User Deprecated: Calling static methods on Pimcore\Model\DataObject\AbstractObject is deprecated, please use Pimcore\Model\DataObject::setGetInheritedValues instead. ["exception" => ErrorException { …}]     
09:25:21 INFO      [php] User Deprecated: Calling static methods on Pimcore\Model\DataObject\AbstractObject is deprecated, please use Pimcore\Model\DataObject::getGetInheritedValues instead. ["exception" => ErrorException { …}]
09:25:21 INFO      [php] User Deprecated: Calling static methods on Pimcore\Model\DataObject\AbstractObject is deprecated, please use Pimcore\Model\DataObject::setGetInheritedValues instead. ["exception" => ErrorException { …}]     
09:25:21 INFO      [php] User Deprecated: Calling static methods on Pimcore\Model\DataObject\AbstractObject is deprecated, please use Pimcore\Model\DataObject::getGetInheritedValues instead. ["exception" => ErrorException { …}]     
09:25:21 INFO      [php] User Deprecated: Calling static methods on Pimcore\Model\DataObject\AbstractObject is deprecated, please use Pimcore\Model\DataObject::setGetInheritedValues instead. ["exception" => ErrorException { …}]     

In FileObject.php line 46:

  [ErrorException]                                                  
  Warning: fwrite() expects parameter 1 to be resource, bool given  

Exception trace:
  at /home/daniel/Web/pim/vendor/blackbit/data-director/lib/Pim/Logger/FileObject.php:46
 Blackbit\DataDirectorBundle\lib\Pim\Logger\FileObject->__construct() at /home/daniel/Web/pim/vendor/blackbit/data-director/model/ImportStatus.php:130
 Blackbit\DataDirectorBundle\model\ImportStatus->create() at /home/daniel/Web/pim/vendor/blackbit/data-director/lib/Pim/RawData/Importmanager.php:343
 Blackbit\DataDirectorBundle\lib\Pim\RawData\Importmanager->importDataport() at /home/daniel/Web/pim/vendor/blackbit/data-director/Command/ImportCompleteCommand.php:335
 Blackbit\DataDirectorBundle\Command\ImportCompleteCommand::import() at /home/daniel/Web/pim/vendor/blackbit/data-director/Command/ImportCompleteCommand.php:241
 Blackbit\DataDirectorBundle\Command\ImportCompleteCommand->execute() at /home/daniel/Web/pim/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /home/daniel/Web/pim/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:1027
 Symfony\Component\Console\Application->doRunCommand() at /home/daniel/Web/pim/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:97
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /home/daniel/Web/pim/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:273
 Symfony\Component\Console\Application->doRun() at /home/daniel/Web/pim/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:83
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /home/daniel/Web/pim/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:149
 Symfony\Component\Console\Application->run() at /home/daniel/Web/pim/bin/console:36

data-director:complete [-p|--parameters PARAMETERS] [--dry-run] [-f|--force] [--ignore-hash-check] [--clear-file-after-import] [--rm] [--status-key STATUS-KEY] [--monitoring-item-id MONITORING-ITEM-ID] [--dataport-resource-id DATAPO
RT-RESOURCE-ID] [--locale LOCALE] [--limit LIMIT] [--user USER] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [--ignore-maintenance-mode] [--maintenance-mode] [-e|--env ENV] [--no-debug] [--] <command> <dataport> [<filename>]

[ERROR] Process got aborted

Looks like permission error. I will check it.

betterapp commented 2 months ago

image

Have no idea why I have root user here. Fixed.

Working now!!!!