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

logger/system.WARNING: Directory var/importexport/media/catalog/product doesn't exist #262

Open
Morgy93 opened this issue Feb 22, 2021 · 1 comment

Comments

@Morgy93
Copy link

Morgy93 commented Feb 22, 2021

Describe the bug
An unexpected warning is thrown upon product:import for not found directory.
Even if it's configured otherwise.

To Reproduce

  1. Download/Install Pacemaker - Community Console Tool 3.8.42
  2. Create [magento]/var/importexport/product-import_20210222-082945_01.csv:
sku,attribute_set_code,product_type,base_image,base_image_position,small_image,small_image_position,thumbnail_image,thumbnail_image_position,additional_images,additional_image_positions
1337,default,configurable,/1337/general/base_image.jpg,1,/1337/general/base_image.jpg,1,/1337/general/base_image.jpg,1,"/1337/additional/additional_image_1.jpg,/1337/additional/additional_image_2.jpg,/1337/additional/additional_image_3.jpg,/1337/additional/additional_image_4.jpg","2,3,4,5"
  1. Create [magento]/app/etc/configuration/operations.json:
{
    "operations": {
        "ce": {
            "catalog_product": {
                "add-update": {
                    "plugins": {
                        "subject": {
                            "id": "import.plugin.subject",
                            "subjects": [{
                                "id": "import_product.subject.bunch",
                                "file-resolver": {
                                    "prefix": "product-import"
                                },
                                "params": {
                                    "copy-images": false,
                                    "media-directory": "pub/media/catalog/product",
                                    "images-file-directory": "var/importexport/images",
                                    "update-url-key-from-name": false,
                                    "clean-up-variants": false,
                                    "clean-up-links": false,
                                    "clean-up-media-gallery": true,
                                    "clean-up-empty-image-columns": true,
                                    "clean-up-website-product-relations": false,
                                    "clean-up-category-product-relations": false,
                                    "clean-up-empty-columns": []
                                },
                                "observers": [{
                                    "import": [
                                        "import_product.observer.composite.base.add_update"
                                    ]
                                }]
                            }]
                        }
                    }
                }
            }
        }
    }
}
  1. Run [magento]/vendor/bin/import-simple import:create:ok-file --installation-dir [magento]
  2. Run [magento]/vendor/bin/import-simple import:products --installation-dir [magento]
  3. See warning like: [2021-02-22 09:29:40] logger/system.WARNING: Directory var/importexport/media/catalog/product doesn't exist {"serial":"32aaf790-42ae-4e25-b620-b48ae1392da7","memory_peak_usage":"89.52 MB"}

Expected behavior
No warning, because images-file-directory is configured to another directory and copy-images is false, so it should not check at all. (Images are already in place for media-directory)

Server(please complete the following information):

  • OS: Ubuntu 18.04.5 LTS
  • Browser: bash cli
  • Version GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu) 😁
@pathmissing
Copy link
Member

Hi @Morgy93! Thank you for reporting this issue. We will have a look!
Issue tracked internally as PAC-361.

@wagnert wagnert added this to Clarification in Pacemaker Community Feb 26, 2021
Mardl added a commit to techdivision/import-attribute that referenced this issue Mar 26, 2021
Mardl added a commit to techdivision/import-category that referenced this issue Mar 26, 2021
Mardl added a commit to techdivision/import-product that referenced this issue Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Pacemaker Community
  
Clarification
Development

No branches or pull requests

2 participants