Details

      Description

      When trying to index contents in Solr it fails with the following error:

      Full stack trace:

      [eZ\Publish\Core\IO\Exception\InvalidBinaryFileIdException]                                                                                            
        Argument 'BinaryFile::id' is invalid: 'var/ezdemo_site/storage/images/media/images/funel/512-1-eng-GB/funel.png' is wrong value in class 'BinaryFile'
       
      () at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/IO/UrlDecorator/Prefix.php:57
       eZ\Publish\Core\IO\UrlDecorator\Prefix->undecorate() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/IO/UrlRedecorator.php:37
       eZ\Publish\Core\IO\UrlRedecorator->redecorateFromTarget() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/ImageConverter.php:205
       eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\ImageConverter->parseLegacyXml() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/ImageConverter.php:173
       eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\ImageConverter->toFieldValue() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php:419
       eZ\Publish\Core\Persistence\Legacy\Content\Mapper->extractFieldValueFromRow() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php:382
       eZ\Publish\Core\Persistence\Legacy\Content\Mapper->extractFieldFromRow() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php:212
       eZ\Publish\Core\Persistence\Legacy\Content\Mapper->extractContentFromRows() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Handler.php:327
       eZ\Publish\Core\Persistence\Legacy\Content\Handler->load() at /var/www/html/ezpublish52/ezpublish/cache/dev/ezpublishDevDebugProjectContainer.php:46788
       eZPublishCorePersistenceLegacyContentHandler_000000000be21d18000000009a607a1b701b3ea8c4d40e4949797ef14332339d->load() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Cache/ContentHandler.php:70
       eZ\Publish\Core\Persistence\Cache\ContentHandler->load() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishSolrSearchEngineBundle/Command/SolrCreateIndexCommand.php:91
       eZ\Bundle\EzPublishSolrSearchEngineBundle\Command\SolrCreateIndexCommand->execute() at /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:259
       Symfony\Component\Console\Command\Command->run() at /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:886
       Symfony\Component\Console\Application->doRunCommand() at /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:195
       Symfony\Component\Console\Application->doRun() at /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:96
       Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /var/www/html/ezpublish52/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Console/Application.php:41
       eZ\Bundle\EzPublishCoreBundle\Console\Application->doRun() at /var/www/html/ezpublish52/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:126
       Symfony\Component\Console\Application->run() at /var/www/html/ezpublish52/ezpublish/console:27
      

      this exception happens in the ezpublish indexing script and in the Solr output nothing is shown

      It always fails if there are any images in ezpublish and images only, videos and other media don't seem to be causing this. I managed to index the contents only after deleting all the images

        Issue Links

          Activity

          Hide
          Bertrand Dunogier added a comment -

          How is your var_dir configured precisely ? The main thing I'm interested in is the level of the setting (global or per siteaccess).

          Show
          Bertrand Dunogier added a comment - How is your var_dir configured precisely ? The main thing I'm interested in is the level of the setting (global or per siteaccess).
          Hide
          Miguel das Neves Jacinto (Inactive) added a comment -

          Bertrand Dunogier It happened in a normal out of the box master installation using create-project composer command I did not extra configurations to anything beside adding Solr, this also happened before and after I added legacy bridge in ezdemo with and without demo content. I did everything as before when using Solr engine being the only difference the new multicore configurations. Don't know if I made it clear but the only thing that is failing is the indexing of the contents apart from that ezpublish works normally.

          Show
          Miguel das Neves Jacinto (Inactive) added a comment - Bertrand Dunogier It happened in a normal out of the box master installation using create-project composer command I did not extra configurations to anything beside adding Solr, this also happened before and after I added legacy bridge in ezdemo with and without demo content. I did everything as before when using Solr engine being the only difference the new multicore configurations. Don't know if I made it clear but the only thing that is failing is the indexing of the contents apart from that ezpublish works normally.
          Hide
          Miguel das Neves Jacinto (Inactive) added a comment -

          doctrine:
              dbal:
                  connections:
                      eng_repository_connection:
                          driver: pdo_mysql
                          host: localhost
                          user: ezp
                          password: ezp
                          dbname: ezp2
                          charset: UTF8
          ez_publish_legacy:
              enabled: true
              system:
                  ezdemo_site_admin:
                      legacy_mode: true
          ezpublish:
              imagemagick:
                  enabled: true
                  path: /usr/bin/convert
              repositories:
                  eng_repository:
                      storage:
                          engine: legacy
                          connection: default
                      search:
                          engine: solr
                          connection: connection1
              siteaccess:
                  default_siteaccess: eng
                  list:
                      - ezdemo_site
                      - eng
                      - fre
                      - ezdemo_site_admin
                  groups:
                      ezdemo_site_group:
                          - ezdemo_site
                          - eng
                          - fre
                          - ezdemo_site_admin
                  match:
                      URIElement: '1'
              system:
                  ezdemo_site_group:
                      repository: eng_repository
                      var_dir: var/ezdemo_site
                  eng:
                      languages:
                          - eng-GB
                      session:
                          name: eZSESSID
                  ezdemo_site_admin:
                      languages:
                          - eng-GB
                          - fre-FR
                  ezdemo_site:
                      languages:
                          - eng-GB
                          - fre-FR
                      session:
                          name: eZSESSID
                  fre:
                      languages:
                          - fre-FR
                          - eng-GB
                      session:
                          name: eZSESSID
          stash:
              caches:
                  default:
                      drivers:
                          - FileSystem
                      inMemory: true
                      registerDoctrineAdapter: false
           
          ez_search_engine_solr:
              endpoints:
                  endpoint1:
                      dsn: http://localhost:8983/solr
                      core: collection1
                  endpoint2:
                      dsn: http://localhost:8983/solr
                      core: collection2
              connections:
                  connection1:
                      entry_endpoints:
                          content:
                              - endpoint1
                          location:
                              - endpoint2
                      cluster:
                          content:
                              fre-FR: endpoint1
                              eng-GB: endpoint2
                          location:
                              fre-FR: endpoint1
                              eng-GB: endpoint2
          

          Show
          Miguel das Neves Jacinto (Inactive) added a comment - doctrine: dbal: connections: eng_repository_connection: driver: pdo_mysql host: localhost user: ezp password: ezp dbname: ezp2 charset: UTF8 ez_publish_legacy: enabled: true system: ezdemo_site_admin: legacy_mode: true ezpublish: imagemagick: enabled: true path: /usr/bin/convert repositories: eng_repository: storage: engine: legacy connection: default search: engine: solr connection: connection1 siteaccess: default_siteaccess: eng list: - ezdemo_site - eng - fre - ezdemo_site_admin groups: ezdemo_site_group: - ezdemo_site - eng - fre - ezdemo_site_admin match: URIElement: '1' system: ezdemo_site_group: repository: eng_repository var_dir: var/ezdemo_site eng: languages: - eng-GB session: name: eZSESSID ezdemo_site_admin: languages: - eng-GB - fre-FR ezdemo_site: languages: - eng-GB - fre-FR session: name: eZSESSID fre: languages: - fre-FR - eng-GB session: name: eZSESSID stash: caches: default: drivers: - FileSystem inMemory: true registerDoctrineAdapter: false   ez_search_engine_solr: endpoints: endpoint1: dsn: http://localhost:8983/solr core: collection1 endpoint2: dsn: http://localhost:8983/solr core: collection2 connections: connection1: entry_endpoints: content: - endpoint1 location: - endpoint2 cluster: content: fre-FR: endpoint1 eng-GB: endpoint2 location: fre-FR: endpoint1 eng-GB: endpoint2
          Hide
          Bertrand Dunogier added a comment -

          Thank you Miguel.

          Show
          Bertrand Dunogier added a comment - Thank you Miguel.
          Hide
          Bertrand Dunogier added a comment -

          Thank you [~miguel.jacinto@ez.no].

          What I'm thinking is that for some reason, the var_dir doesn't have the right value in the UrlRedecorator where the exception happens. And it could be because no siteaccess is set or something.

          Show
          Bertrand Dunogier added a comment - Thank you [~miguel.jacinto@ez.no] . What I'm thinking is that for some reason, the var_dir doesn't have the right value in the UrlRedecorator where the exception happens. And it could be because no siteaccess is set or something.
          Hide
          Bertrand Dunogier added a comment - - edited

          I have just tried a simple Command script that dumps an Image content. Works without errors, even with verbose mode enabled (I'm pretty much on demobundle content as well, but my config has evolved a bit).

          What else could we do during indexing that is leading to this error ?

          Show
          Bertrand Dunogier added a comment - - edited I have just tried a simple Command script that dumps an Image content. Works without errors, even with verbose mode enabled (I'm pretty much on demobundle content as well, but my config has evolved a bit). What else could we do during indexing that is leading to this error ?
          Hide
          Rui Silva (Inactive) added a comment - - edited

          Issue was neither reproducible on 5.4 nor on master, now. It seems it no longer happens.
          Closing this.

          Show
          Rui Silva (Inactive) added a comment - - edited Issue was neither reproducible on 5.4 nor on master, now. It seems it no longer happens. Closing this.
          Hide
          Rui Silva (Inactive) added a comment -

          Issue no longer happening neither on 5.4 nor on master, as of currently.
          Approved by QA for 5.4 and master.

          Show
          Rui Silva (Inactive) added a comment - Issue no longer happening neither on 5.4 nor on master, as of currently. Approved by QA for 5.4 and master.

            People

            • Assignee:
              Unassigned
              Reporter:
              Miguel das Neves Jacinto (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: