Heya gonna bump this: <https://sprykercommunity.s...
# docker
nuked the docker dir and re-cloned from GH ran a hard reset:
Copy code
docker/sdk trouble && rm -rf vendor && rm -rf src/Generated && docker/sdk sync && docker/sdk up
ran
docker/sdk clean
Copy code
unison:2.51.2.1 /usr/local/bin/precopy_appsync
doing initial sync with unison
Seems like using unison, but at this point think that might be a red herring
Copy code
lled in /data/vendor/zendframework/zend-config/src/Factory.php on line 127 
in /data/vendor/zendframework/zend-config/src/Config.php (55)

Command: vendor/bin/console transfer:entity:generate
Looks like this error is happening inside the container... fails after fresh install on both mac and linux: āÆ docker -v Docker version 20.10.2, build 2291f61 āÆ docker-compose -v docker-compose version 1.27.4, build 40524192
not sure if this is a problem with my config files or the docker repo itself...
Copy code
CONTAINER ID   NAME                              CPU %     MEM USAGE / LIMIT     MEM %     NET I/O          BLOCK I/O       PIDS
bff59d0c6235   spryker_b2c_dev_cli_1             0.00%     56.83MiB / 3.846GiB   1.44%     24.4MB / 294kB   86kB / 69.8MB   11
6baef6b0ca17   spryker_b2c_dev_cli_ssh_relay_1   0.00%     892KiB / 3.846GiB     0.02%     1.51kB / 0B      0B / 0B         1
199fceaad53b   spryker_b2c_dev_dev_data_sync     0.09%     138.2MiB / 3.846GiB   3.51%     1.12kB / 0B      6.4MB / 926kB   5
the first couple containers seem to get going
a
Seems like one of the {some-name}.schema.xml files has no table definition. Finding out which file caused the error and viewing its content could point out what to do next
Usually the content of these Files look something like this
Copy code
<?xml version="1.0"?>
<database xmlns:xsi="<http://www.w3.org/2001/XMLSchema-instance>" name="zed" xsi:noNamespaceSchemaLocation="<http://static.spryker.com/schema-01.xsd>" namespace="Orm\Zed\ProductGroup\Persistence" package="src.Orm.Zed.ProductGroup.Persistence">

    <table name="some_table_name">
        ...
    </table>

</database>
i was able to reproduce this "Argument 1 passed to Zend\Config\Config::__construct() must be of the type array, string given" Exception by removing the <table>-Tags and its content
Copy code
<?xml version="1.0"?>
<database xmlns:xsi="<http://www.w3.org/2001/XMLSchema-instance>" name="zed" xsi:noNamespaceSchemaLocation="<http://static.spryker.com/schema-01.xsd>" namespace="Orm\Zed\ProductGroup\Persistence" package="src.Orm.Zed.ProductGroup.Persistence">

   <!-- no table-tag here -->

</database>
q
Good morning! This is most likely the one created with the code generator! There is a to-do tag inside that schema definition. At this point I usually like to bring up the book 'Pragmatic Programmer' which says to that situation 'Don't trust the evil wizard'! šŸ§™ā€ā™‚ļøšŸ˜Š
šŸ˜„ 1
šŸ˜‚ 1
Totally agreed that we need to improve the error message here
a
Alright found it... it was the string reverser data... locally it is in
src/Orm/Propel/Schema/pyz_string_reverser.schema.xml
, but the error is occurring on
docker/sdk up --build --assets --data
I'm assuming in the same space only
/data/...
the containers must share volumes or something... Don't seem to be able to un-generate this file with the docker commands, tried
docker/sdk clean-data
&&
docker/sdk clean
reset
so it's local? but then if it's local why is it not working when clone both things fresh on a new environment... I did shell into the container and edit some things... but that shouldn't matter, doesn't the container get nuked each time?
src/Orm/Propel/Schema
is gitignored so I'm guessing it's generated... ?
so where is it building the incorrect data from... ? I need to scrub something... but it must be stashed in the image or the container somewhere...
so it must have an incorrect record from the last image stored in... one of these...
Copy code
spryker_b2c_dev_frontend                        dev            56cf85947fdf   About an hour ago   22.4MB
spryker_b2c_dev_frontend                        dev-frontend   56cf85947fdf   About an hour ago   22.4MB
spryker_b2c_dev_base_frontend                   dev            56cf85947fdf   About an hour ago   22.4MB
spryker_docker_sdk                              latest         0120e65a52c8   About an hour ago   246MB
spryker_b2c_dev_run_cli                         dev            4ddfbd785f5f   2 days ago          310MB
spryker_b2c_dev_cli                             dev            a4dc244be7f3   2 days ago          310MB
spryker_b2c_dev_base_cli                        dev            55346a9df947   2 days ago          310MB
spryker_b2c_dev_run_app                         dev            d96a67d0eb04   2 days ago          291MB
spryker_b2c_dev_run_app                         dev-glue_eu    d96a67d0eb04   2 days ago          291MB
spryker_b2c_dev_run_app                         dev-glue_us    d96a67d0eb04   2 days ago          291MB
spryker_b2c_dev_run_app                         dev-yves_eu    d96a67d0eb04   2 days ago          291MB
spryker_b2c_dev_run_app                         dev-yves_us    d96a67d0eb04   2 days ago          291MB
spryker_b2c_dev_run_app                         dev-zed_eu     d96a67d0eb04   2 days ago          291MB
spryker_b2c_dev_run_app                         dev-zed_us     d96a67d0eb04   2 days ago          291MB
spryker_b2c_dev_local_app                       dev            25c5386c80c0   2 days ago          244MB
spryker_b2c_dev_app                             dev            95c9713ab7a1   2 days ago          244MB
spryker_b2c_dev_app                             dev-glue_eu    95c9713ab7a1   2 days ago          244MB
spryker_b2c_dev_app                             dev-glue_us    95c9713ab7a1   2 days ago          244MB
spryker_b2c_dev_app                             dev-yves_eu    95c9713ab7a1   2 days ago          244MB
spryker_b2c_dev_app                             dev-yves_us    95c9713ab7a1   2 days ago          244MB
spryker_b2c_dev_app                             dev-zed_eu     95c9713ab7a1   2 days ago          244MB
spryker_b2c_dev_app                             dev-zed_us     95c9713ab7a1   2 days ago          244MB
spryker_b2c_dev_base_app                        dev            28da5cfb429a   2 days ago          244MB
rediscommander/redis-commander                  latest         bd77d21043ee   7 days ago          90MB
ok so If I go into
docker/sdk cli
I can see the file, but if I edit that then it gets regenerated, so this is being written from somewhere else... the database I'm guessing? How do I delete the incorrect record in the db?
hm... so maybe I need to login through psql? There isn't a better way like nuke the db and rewrite from the xml files? or step teh container back...
OMG think I got it, that was a bit painful. The evil wizard was def at work here, but Saruman shall not triumph. It was a generated file from a few commits back, I hadn't run the generate command at the time, but when I ran it later it wrote it in... It was a bit confusing to debug because StringReverser and StringReverser both occurred, one was from the architecture walkthrough the other was from TDD
Ok, with the help of Treebeard and the Ent Moot we've banished Saruman to the Necromancers old tower. All tests green. thanks for your help @quick-account-45953 @acceptable-restaurant-76335 šŸ™
q
Next stop Mordor? šŸ§™ā€ā™‚ļø
šŸ˜„ 1