During the site install section of the latest version (2.23) of Lightning distribution install the installation failed with the following error:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /core/install.php?rewrite=ok&profile=lightning&langcode=en&id=1&op=do_nojs&op=do
StatusText: OK
ResponseText: 
Fatal error:  Interface 'League\OAuth2\Server\Repositories\ClientRepositoryInterface' not found in /home/du3fr/www/profiles/lightning/modules/contrib/simple_oauth/src/Repositories/ClientRepository.php on line 10

Reloading the installation page in the browser several times with more errors, the installation finally finishes but with errors that display:

Error
The website encountered an unexpected error. Please try again later.
Drupal\Core\Entity\EntityStorageException: The "oauth2_token" entity type does not exist. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 805 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object) (Line: 377)
Drupal\Core\Entity\Entity->save() (Line: 293)
Drupal\Core\Installer\Form\SiteConfigureForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 585)
Drupal\Core\Form\FormBuilder->processForm('install_configure_form', Array, Object) (Line: 314)
Drupal\Core\Form\FormBuilder->buildForm('Drupal\Core\Installer\Form\SiteConfigureForm', Object) (Line: 904)
install_get_form('Drupal\Core\Installer\Form\SiteConfigureForm', Array) (Line: 598)
install_run_task(Array, Array) (Line: 554)
install_run_tasks(Array) (Line: 117)
install_drupal(Object) (Line: 44)

I also tried the install previously with several older versions that also failed in the same way.

Thanks in advance for looking into this!
Frederick

CommentFileSizeAuthor
Selection_519.png572.75 KBfrederickjh

Comments

frederickjh created an issue. See original summary.

mattstein’s picture

My attempt to initiate the Lightning distribution 2.25 also failed. Same issue.

chintan4u’s picture

Lightning 8.x-2.26 installation failed with below error

Error
The website encountered an unexpected error. Please try again later.
Drupal\Core\Entity\EntityStorageException: The "oauth2_token" entity type does not exist. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 805 of core\lib\Drupal\Core\Entity\Sql\SqlContentEntityStorage.php).
Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object) (Line: 377)
Drupal\Core\Entity\Entity->save() (Line: 293)
Drupal\Core\Installer\Form\SiteConfigureForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 585)
nerdstein’s picture

Assigned: Unassigned » nerdstein

I've fixed this issue but running into others. Assigning self to finish this up.

phenaproxima’s picture

This problem is happening because Lightning has Composer dependencies, and the tarball generated by drupal.org (i.e., the one you can download on Lightning's project page) doesn't include them because drupal.org doesn't packaging distributions' Composer dependencies. It should, because Composer is the Way Things Are Now and other distributions will do the same thing...therefore this problem is likely to get worse. Lightning was a relatively early adopter of "Composer for distributions", so it might be one of the more visible examples of this problem.

In Lightning's case, the solution is to use an alternate tarball that we generate for every release, and which does include the correct Composer dependencies. We generate these tarballs for Acquia Cloud, but they should work here too. They are hosted on GitHub and follow a regular naming pattern, such as https://github.com/acquia/lightning/releases/download/3.1.4/lightning-8.... (they are named just like they would be on drupal.org). So if simplytest can grab those tarballs, rather than the broken ones on drupal.org, people should be able to spin up Lightning on simplytest.

@nerdstein has invited me to submit a patch to correct this, so I'll give it a shot.

rachel_norfolk’s picture

Version: 8.x-3.0-alpha1 » 8.x-4.x-dev
Status: Active » Closed (outdated)

As the Lightning distribution is now unsupported/obsolete, I think we can close this as Outdated.

So long, and thanks for all the fish…