Skip to content
This repository was archived by the owner on Apr 17, 2024. It is now read-only.
This repository was archived by the owner on Apr 17, 2024. It is now read-only.

Problems installing #210

Closed
Closed
@magick93

Description

@magick93

Hello

I am trying to install contenta on OpenShift. To do this I use a custom s2i docker image (source-to-image) that is designed for taking a drupal git repository and making a docker image. This image is working successfully for OpenSocial and Lightning drupal distrubutions.

However, when I use this repository as the source, then try to install, the installation fails.

Firstly I tried with drush:

drush -y -v site-install --db-url=$DB_VENDOR://$DB_USER:$DB_PASS@$DB_HOST/$DB_DATABASE

I also tried the above cmd from the web directory.

This failed with:

Command site-install needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to run this command.                   [error]    

Then I tried with drupal-console:

drupal site:install  standard --langcode="en"  --db-type=$DB_VENDOR --db-host=$DB_HOST  --db-name=$DB_DATABASE --db-user=$DB_USER --db-pass=$DB_PASS --site-name="Drupal 8"  --
site-mail="[email protected]"  --account-name="admin"  --account-mail="[email protected]"   --account-pass="p455w0rd" 

This failed with:

Drupal\Console\Application->doRun(Object, Object) (Line: 125)                                                                                                                       
Symfony\Component\Console\Application->run() (Line: 87)                                                                                                                             
require('/opt/app-root/src/vendor/drupal/console/bin/drupal.php') (Line: 4)                                                                                                  
</pre>Error: Call to a member function addPsr4() on boolean in /opt/app-root/src/web/core/lib/Drupal/Core/DrupalKernel.php on line 1475 #0 /opt/app-root/src/web/core/lib/Drupal/Core/D
rupalKernel.php(1204): Drupal\Core\DrupalKernel->classLoaderAddMultiplePsr4(Array)                                                                                                     
#1 /opt/app-root/src/web/core/lib/Drupal/Core/DrupalKernel.php(909): Drupal\Core\DrupalKernel->attachSynthetic(Object(Drupal\Core\DependencyInjection\ContainerBuilder))               
#2 /opt/app-root/src/web/core/lib/Drupal/Core/Installer/InstallerKernel.php(18): Drupal\Core\DrupalKernel->initializeContainer()                                                       
#3 /opt/app-root/src/web/core/lib/Drupal/Core/DrupalKernel.php(466): Drupal\Core\Installer\InstallerKernel->initializeContainer()                                                      
#4 /opt/app-root/src/web/core/includes/install.core.inc(418): Drupal\Core\DrupalKernel->boot()                                                                                         
#5 /opt/app-root/src/web/core/includes/install.core.inc(118): install_begin_request(false, Array)                                                                                      
#6 /opt/app-root/src/vendor/drupal/console/src/Command/Site/InstallCommand.php(549): install_drupal(false, Array)                                                                      
#7 /opt/app-root/src/vendor/drupal/console/src/Command/Site/InstallCommand.php(438): Drupal\Console\Command\Site\InstallCommand->runInstaller(Object(Drupal\Console\Core\Style\DrupalSt
yle), Object(Symfony\Component\Console\Input\ArgvInput), Array, 'default')                                                                                                             
#8 /opt/app-root/src/vendor/symfony/console/Command/Command.php(264): Drupal\Console\Command\Site\InstallCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Sym
fony\Component\Console\Output\ConsoleOutput))                                                                                                                                          
#9 /opt/app-root/src/vendor/symfony/console/Application.php(859): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Comp
onent\Console\Output\ConsoleOutput))                                                                                                                                                   
#10 /opt/app-root/src/vendor/symfony/console/Application.php(206): Symfony\Component\Console\Application->doRunCommand(Object(Drupal\Console\Command\Site\InstallCommand), Object(Symfo
ny\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))                                                                                         
#11 /opt/app-root/src/vendor/drupal/console-core/src/Application.php(160): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfo
ny\Component\Console\Output\ConsoleOutput))                                                                                                                                            
#12 /opt/app-root/src/vendor/drupal/console/src/Application.php(71): Drupal\Console\Core\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component
\Console\Output\ConsoleOutput))                                                                                                                                                        
#13 /opt/app-root/src/vendor/symfony/console/Application.php(125): Drupal\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Consol
e\Output\ConsoleOutput))                                                                                                                                                               
#14 /opt/app-root/src/vendor/drupal/console/bin/drupal.php(87): Symfony\Component\Console\Application->run()                                                                           
#15 /opt/app-root/src/vendor/drupal/console/bin/drupal(4): require('/opt/app-root/s...')                                                                                               
#16 {main}                                                                                                                                                                             
Error: Call to a member function addPsr4() on boolean in Drupal\Core\DrupalKernel->classLoaderAddMultiplePsr4() (line 1475 of /opt/app-root/src/web/core/lib/Drupal/Core/DrupalKernel.p
hp).    

Do you have any suggestions as to what the problem might be?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions