Hi there, i have a question about your docker sdk ...
# docker
b
Hi there, i have a question about your docker sdk for an existing project, on bootstrap everything looks good, but when i try to start the docker environment i get the following error:
Copy code
-> % docker/sdk up                      
*** DEVELOPMENT MODE
========================================================================================================================
Install docker environment                                                                                              
========================================================================================================================

                                                                                                                        
 Section build                                                                                                          
                                                                                                                        

Command generate-transfers [vendor/bin/console transfer:generate] (In progress...)
PHP Fatal error:  Uncaught Error: Undefined class constant 'GLUE_APPLICATION_DOMAIN' in /data/config/Shared/config_default-docker.php:434
Stack trace:
#0 /data/vendor/spryker/config/src/Spryker/Shared/Config/Config.php(210): include()
#1 /data/vendor/spryker/config/src/Spryker/Shared/Config/Config.php(165): Spryker\Shared\Config\Config::buildConfig('default-docker', Object(ArrayObject))
#2 /data/vendor/spryker/config/src/Spryker/Shared/Config/Config.php(62): Spryker\Shared\Config\Config::init()
#3 /data/vendor/spryker/error-handler/src/Spryker/Shared/ErrorHandler/ErrorHandlerEnvironment.php(18): Spryker\Shared\Config\Config::get('ERROR_LEVEL')
#4 /data/vendor/spryker/console/src/Spryker/Zed/Console/Business/Model/Environment.php(34): Spryker\Shared\ErrorHandler\ErrorHandlerEnvironment->__construct()
#5 /data/vendor/spryker/console/src/Spryker/Zed/Console/Communication/ConsoleBootstrap.php(38): Spryker\Zed\Console\Business\Model\Environment::initialize()
#6 /data/vendor/spryker/console/bin/console(20): Spryker\Zed\Console\Commu in /data/config/Shared/config_default-docker.php on line 434

In CommandLineExecutable.php line 101:
                      
  Aborted install...  
                      

install [-r|--recipe RECIPE] [-d|--dry-run] [-s|--sections SECTIONS] [-g|--groups GROUPS] [-x|--exclude EXCLUDE] [-e|--include-excluded INCLUDE-EXCLUDED] [-i|--interactive] [-b|--breakpoint] [-a|--ask-before-continue] [-l|--log] [--] [<store>]
a
Have you followed the integration guide? Do you have mentioned config? Do you have mentioned class imported in this config?
b
Yes i followed the integration guide I have mentioned the config, but i didn't understand what do you mean with class imported in this config?
a
Do you have
use Spryker\Shared\GlueApplication\GlueApplicationConstants;
at the beginning of the
config_default-docker.php
?
b
Yes
s
is
spryker/glue-application
in your
composer.lock
?
no, wait stupid me, the class exists, but doesn't have that particular constant in this case
can you maybe paste us the contents of the class?
cat vendor/spryker/glue-application/src/Spryker/Shared/GlueApplication/GlueApplicationConstants.php
should do 🙂
b
Sure 😉
Copy code
-> % cat vendor/spryker/glue-application/src/Spryker/Shared/GlueApplication/GlueApplicationConstants.php
<?php

/**
 * Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
 */

namespace Spryker\Shared\GlueApplication;

/**
 * Declares global environment configuration keys. Do not use it for other class constants.
 */
interface GlueApplicationConstants
{
    /**
     * Specification:
     *   The domain name used for glue application.
     *
     * @api
     */
    public const GLUE_APPLICATION_DOMAIN = 'GLUE_APPLICATION_DOMAIN';

    /**
     *  Specification:
     *    If rest debug is enabled, will show exception stack traces instead of 500 errors.
     *
     * @api
     */
    public const GLUE_APPLICATION_REST_DEBUG = 'GLUE_APPLICATION_REST_DEBUG';

    /**
     * Specification:
     *  - The domain name returned as allowed in 'access-control-allow-origin' CORS headers.
     *  - Ether '*' or single domain should be passed, due to CORS policy.
     *
     * @api
     */
    public const GLUE_APPLICATION_CORS_ALLOW_ORIGIN = 'GLUE_APPLICATION_CORS_ALLOW_ORIGIN';
}
h
Hi Christoph, 1. Make sure you have no
GlueApplicationConstants
interface on project level. 2. It could be autoload stuff. Try to run
composer install
or remove
vendor
folder and run
up
again
b
Hi Mike, thanks, i tried everything you suggested but i still get the same error
h
Please try
vendor/bin/console transfer:generate
on your host if you have PHP installed.
b
I do, same error:
Copy code
-> % APPLICATION_ENV=docker vendor/bin/console transfer:generate
PHP Fatal error:  Uncaught Error: Undefined class constant 'GLUE_APPLICATION_DOMAIN' in /tmp/spryker-helu/spryker/config/Shared/config_default-docker.php:434
Stack trace:
#0 /tmp/spryker-helu/spryker/vendor/spryker/config/src/Spryker/Shared/Config/Config.php(210): include()
#1 /tmp/spryker-helu/spryker/vendor/spryker/config/src/Spryker/Shared/Config/Config.php(165): Spryker\Shared\Config\Config::buildConfig('default-docker', Object(ArrayObject))
#2 /tmp/spryker-helu/spryker/vendor/spryker/config/src/Spryker/Shared/Config/Config.php(62): Spryker\Shared\Config\Config::init()
#3 /tmp/spryker-helu/spryker/vendor/spryker/error-handler/src/Spryker/Shared/ErrorHandler/ErrorHandlerEnvironment.php(18): Spryker\Shared\Config\Config::get('ERROR_LEVEL')
#4 /tmp/spryker-helu/spryker/vendor/spryker/console/src/Spryker/Zed/Console/Business/Model/Environment.php(34): Spryker\Shared\ErrorHandler\ErrorHandlerEnvironment->__construct()
#5 /tmp/spryker-helu/spryker/vendor/spryker/console/src/Spryker/Zed/Console/Communication/ConsoleBootstrap.php( in /tmp/spryker-helu/spryker/config/Shared/config_default-docker.php on line 434
h
use Spryker\Shared\GlueApplication\GlueApplicationConstants;
exactly the same? Would you try to search for files that contains
interface GlueApplicationConstants
?
b
Thanks for the input, some modules had the wrong version so ja updated the version and run composer again, now the error with the GlueApplicationConstants colud be solve, but now i'm getting this:
Copy code
PHP Fatal error:  Uncaught Error: Class 'Pyz\Shared\Scheduler\SchedulerConfig' not found in /data/config/Shared/config_default-docker.php:462
Stack trace:
#0 /data/vendor/spryker/config/src/Spryker/Shared/Config/Config.php(189): include()
#1 /data/vendor/spryker/config/src/Spryker/Shared/Config/Config.php(144): Spryker\Shared\Config\Config::buildConfig('default-docker', Object(ArrayObject))
#2 /data/vendor/spryker/config/src/Spryker/Shared/Config/Config.php(57): Spryker\Shared\Config\Config::init()
#3 /data/vendor/spryker/error-handler/src/Spryker/Shared/ErrorHandler/ErrorHandlerEnvironment.php(18): Spryker\Shared\Config\Config::get('ERROR_LEVEL')
#4 /data/vendor/spryker/console/src/Spryker/Zed/Console/Business/Model/Environment.php(34): Spryker\Shared\ErrorHandler\ErrorHandlerEnvironment->__construct()
#5 /data/vendor/spryker/console/src/Spryker/Zed/Console/Communication/ConsoleBootstrap.php(44): Spryker\Zed\Console\Business\Model\Environment::initialize()
#6 /data/vendor/spryker/console/bin/console(20): Spryker\Zed\Console\C in /data/config/Shared/config_default-docker.php on line 462

In CommandLineExecutable.php line 105:
Did i miss some?