thinkshout / bene-project

Starting point for site builds based on Bene
GNU General Public License v2.0
1 stars 0 forks source link

Fatal error mid-install #4

Open megclaypool opened 6 years ago

megclaypool commented 6 years ago

Hey there, I'm trying to follow the instructions and install bene on my local.

I'm on a Mac running 10.12.6.

$ composer --version
Composer version 1.5.2 2017-09-11 16:59:25

Here's what I get when I run the install command:

$ composer create-project thinkshout/bene-project:master rootid-bene --stability dev --no-interaction
Installing thinkshout/bene-project (dev-master 07495bf12a1aee6e1e1ab1ecb018fd5832d8bd3e)
  - Installing thinkshout/bene-project (dev-master master): Cloning master from cache
Created project in rootid-bene
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)                
Package operations: 123 installs, 0 updates, 0 removals
  - Installing cweagans/composer-patches (1.6.4): Loading from cache
  - Installing composer/installers (v1.4.0): Loading from cache
  - Installing symfony/yaml (v3.2.14): Loading from cache
  - Installing composer/semver (1.4.2): Loading from cache
  - Installing symfony/finder (v3.4.2): Loading from cache
  - Installing drupal-composer/drupal-scaffold (2.4.0): Loading from cache
  - Installing drupal/console-extend-plugin (0.9.2): Loading from cache
  - Installing squizlabs/php_codesniffer (2.9.1): Loading from cache
  - Installing drupal/coder (8.2.12): Cloning 984c54a7b1 from cache
  - Installing zendframework/zend-stdlib (3.1.0): Loading from cache
  - Installing zendframework/zend-escaper (2.5.2): Loading from cache
  - Installing zendframework/zend-feed (2.9.0): Loading from cache
  - Installing psr/http-message (1.0.1): Loading from cache
  - Installing zendframework/zend-diactoros (1.6.1): Loading from cache
  - Installing twig/twig (v1.35.0): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.6.0): Loading from cache
  - Installing symfony/translation (v3.2.14): Loading from cache
  - Installing symfony/validator (v3.2.14): Loading from cache
  - Installing symfony/serializer (v3.2.14): Loading from cache
  - Installing symfony/routing (v3.2.14): Loading from cache
  - Installing paragonie/random_compat (v2.0.11): Loading from cache
  - Installing symfony/http-foundation (v3.2.14): Loading from cache
  - Installing symfony/psr-http-message-bridge (v1.0.2): Loading from cache
  - Installing symfony/process (v3.2.14): Loading from cache
  - Installing symfony/polyfill-iconv (v1.6.0): Loading from cache
  - Installing symfony/event-dispatcher (v3.2.14): Loading from cache
  - Installing psr/log (1.0.2): Loading from cache
  - Installing symfony/debug (v3.4.2): Loading from cache
  - Installing symfony/http-kernel (v3.2.14): Loading from cache
  - Installing symfony/dependency-injection (v3.2.14): Loading from cache
  - Installing symfony/console (v3.2.14): Loading from cache
  - Installing symfony/class-loader (v3.2.14): Loading from cache
  - Installing symfony-cmf/routing (1.4.1): Loading from cache
  - Installing stack/builder (v1.0.5): Loading from cache
  - Installing masterminds/html5 (2.3.0): Loading from cache
  - Installing guzzlehttp/psr7 (1.4.2): Loading from cache
  - Installing guzzlehttp/promises (v1.3.1): Loading from cache
  - Installing guzzlehttp/guzzle (6.3.0): Loading from cache
  - Installing doctrine/lexer (v1.0.1): Loading from cache
  - Installing egulias/email-validator (1.2.14): Loading from cache
  - Installing easyrdf/easyrdf (0.9.1): Loading from cache
  - Installing doctrine/inflector (v1.2.0): Loading from cache
  - Installing doctrine/collections (v1.4.0): Loading from cache
  - Installing doctrine/cache (v1.6.2): Loading from cache
  - Installing doctrine/annotations (v1.4.0): Loading from cache
  - Installing doctrine/common (v2.7.3): Loading from cache
  - Installing asm89/stack-cors (1.2.0): Loading from cache
  - Installing drupal/core (8.4.3): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing symfony/polyfill-apcu (v1.6.0): Loading from cache
  - Installing symfony/dom-crawler (v3.4.2): Loading from cache
  - Installing symfony/css-selector (v3.4.2): Loading from cache
  - Installing webmozart/assert (1.2.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (2.0.5): Loading from cache
  - Installing drupal/video_embed_field (1.5.0): Loading from cache
  - Installing drupal/token (1.0.0): Loading from cache
  - Installing drupal/simple_sitemap (2.5.0): Loading from cache
  - Installing drupal/r4032login (dev-1.x 391f10d): Cloning 391f10d69b from cache

  [RuntimeException]                                                                                                             
  Failed to execute git checkout '391f10d69b9b8c466a2fddac2a6b99f1289e7781' -- && git reset --hard '391f10d69b9b8c466a2fddac2a6  
  b99f1289e7781' --                                                                                                              
  fatal: Not a git repository (or any of the parent directories): .git                                                           

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]

Is there any further info I can give you to help you troubleshoot? And do you have any advice for me to enable me to install bene on my local?

ruscoe commented 6 years ago

Hi @megclaypool,

I wasn't able to reproduce this one, but would you mind running the same command again to see if it still stops at Installing drupal/r4032login (dev-1.x 391f10d): Cloning 391f10d69b from cache?

I'm wondering if it might have been a temporarily unavailable repository.

megclaypool commented 6 years ago

Hey there, I deleted the directory and tried again; same error. I also tried:

$ rm -rf rootid-bene/
$ composer clearcache
$ composer create-project thinkshout/bene-project:master rootid-bene --stability dev --no-interaction
Installing thinkshout/bene-project (dev-master 07495bf12a1aee6e1e1ab1ecb018fd5832d8bd3e)
  - Installing thinkshout/bene-project (dev-master master): Cloning master from cache
Created project in rootid-bene
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)                
Package operations: 123 installs, 0 updates, 0 removals
  - Installing cweagans/composer-patches (1.6.4): Downloading (100%)         
  - Installing composer/installers (v1.4.0): Downloading (100%)         
  - Installing symfony/yaml (v3.2.14): Downloading (100%)         
  - Installing composer/semver (1.4.2): Downloading (100%)         
  - Installing symfony/finder (v3.4.2): Downloading (100%)         
  - Installing drupal-composer/drupal-scaffold (2.4.0): Downloading (100%)         
  - Installing drupal/console-extend-plugin (0.9.2): Downloading (100%)         
  - Installing squizlabs/php_codesniffer (2.9.1): Downloading (100%)         
  - Installing drupal/coder (8.2.12): Cloning 984c54a7b1 from cache
  - Installing zendframework/zend-stdlib (3.1.0): Downloading (100%)         
  - Installing zendframework/zend-escaper (2.5.2): Downloading (100%)         
  - Installing zendframework/zend-feed (2.9.0): Downloading (100%)         
  - Installing psr/http-message (1.0.1): Downloading (100%)         
  - Installing zendframework/zend-diactoros (1.6.1): Downloading (100%)         
  - Installing twig/twig (v1.35.0): Downloading (100%)         
  - Installing symfony/polyfill-mbstring (v1.6.0): Downloading (100%)         
  - Installing symfony/translation (v3.2.14): Downloading (100%)         
  - Installing symfony/validator (v3.2.14): Downloading (100%)         
  - Installing symfony/serializer (v3.2.14): Downloading (100%)         
  - Installing symfony/routing (v3.2.14): Downloading (100%)         
  - Installing paragonie/random_compat (v2.0.11): Downloading (100%)         
  - Installing symfony/http-foundation (v3.2.14): Downloading (100%)         
  - Installing symfony/psr-http-message-bridge (v1.0.2): Downloading (100%)         
  - Installing symfony/process (v3.2.14): Downloading (100%)         
  - Installing symfony/polyfill-iconv (v1.6.0): Downloading (100%)         
  - Installing symfony/event-dispatcher (v3.2.14): Downloading (100%)         
  - Installing psr/log (1.0.2): Downloading (100%)         
  - Installing symfony/debug (v3.4.2): Downloading (100%)         
  - Installing symfony/http-kernel (v3.2.14): Downloading (100%)         
  - Installing symfony/dependency-injection (v3.2.14): Downloading (100%)         
  - Installing symfony/console (v3.2.14): Downloading (100%)         
  - Installing symfony/class-loader (v3.2.14): Downloading (100%)         
  - Installing symfony-cmf/routing (1.4.1): Downloading (100%)         
  - Installing stack/builder (v1.0.5): Downloading (100%)         
  - Installing masterminds/html5 (2.3.0): Downloading (100%)         
  - Installing guzzlehttp/psr7 (1.4.2): Downloading (100%)         
  - Installing guzzlehttp/promises (v1.3.1): Downloading (100%)         
  - Installing guzzlehttp/guzzle (6.3.0): Downloading (100%)         
  - Installing doctrine/lexer (v1.0.1): Downloading (100%)         
  - Installing egulias/email-validator (1.2.14): Downloading (100%)         
  - Installing easyrdf/easyrdf (0.9.1): Downloading (100%)         
  - Installing doctrine/inflector (v1.2.0): Downloading (100%)         
  - Installing doctrine/collections (v1.4.0): Downloading (100%)         
  - Installing doctrine/cache (v1.6.2): Downloading (100%)         
  - Installing doctrine/annotations (v1.4.0): Downloading (100%)         
  - Installing doctrine/common (v2.7.3): Downloading (100%)         
  - Installing asm89/stack-cors (1.2.0): Downloading (100%)         
  - Installing drupal/core (8.4.3): Downloading (100%)         
  - Installing psr/container (1.0.0): Downloading (100%)         
  - Installing symfony/polyfill-apcu (v1.6.0): Downloading (100%)         
  - Installing symfony/dom-crawler (v3.4.2): Downloading (100%)         
  - Installing symfony/css-selector (v3.4.2): Downloading (100%)         
  - Installing webmozart/assert (1.2.0): Downloading (100%)         
  - Installing phpdocumentor/reflection-docblock (2.0.5): Downloading (100%)         
  - Installing drupal/video_embed_field (1.5.0): Downloading (100%)         
  - Installing drupal/token (1.0.0): Downloading (100%)         
  - Installing drupal/simple_sitemap (2.5.0): Downloading (100%)         
  - Installing drupal/r4032login (dev-1.x 391f10d): Cloning 391f10d69b from cache

  [RuntimeException]                                                                                                           
  Failed to execute git checkout '391f10d69b9b8c466a2fddac2a6b99f1289e7781' -- && git reset --hard '391f10d69b9b8c466a2fddac2  
  a6b99f1289e7781' --                                                                                                          
  fatal: Not a git repository (or any of the parent directories): .git                                                         

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]

I'm not sure what's going on with the drupal/r4032login package, or why it's still trying to clone that particular package from cache even after I cleared the cache, but the install consistently dies on that package :(

megclaypool commented 6 years ago

I did a little more googling, and found some reports of similar errors. Following the advice of davidgil on composer create-project fails with "Failed to execute git checkout" #17, after the install crapped out again, I changed into my project directory (which had been created and had a composer.json file) and ran composer update. Here's what I got:

$ composer update
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)                
Package operations: 66 installs, 0 updates, 0 removals
  - Installing drupal/r4032login (dev-1.x 391f10d): Cloning 391f10d69b from cache
  - Installing drupal/ctools (3.0.0): Downloading (100%)         
  - Installing drupal/pathauto (1.0.0): Downloading (100%)         
  - Installing drupal/metatag (1.1.0): Downloading (100%)         
  - Installing drupal/entity (1.0.0-beta1): Downloading (100%)         
  - Installing drupal/media_entity (1.6.0): Downloading (100%)         
  - Installing j7mbo/twitter-api-php (1.0.6): Downloading (100%)         
  - Installing drupal/media_entity_twitter (1.3.0): Downloading (100%)         
  - Installing drupal/media_entity_slideshow (1.2.0): Downloading (100%)         
  - Installing drupal/media_entity_image (1.2.0): Downloading (100%)         
  - Installing drupal/media_entity_instagram (1.4.0): Downloading (100%)         
  - Installing drupal/layout_plugin (1.0.0-alpha22): Downloading (100%)         
  - Installing drupal/linkit (4.3.0): Downloading (100%)         
  - Installing drupal/inline_entity_form (1.0.0-beta1): Downloading (100%)         
  - Installing drupal/google_analytics (2.0.0): Downloading (100%)         
  - Installing drupal/crop (1.3.0): Downloading (100%)         
  - Installing drupal/focal_point (1.0.0-beta5): Downloading (100%)         
  - Installing drupal/config_update (1.5.0): Downloading (100%)         
  - Installing drupal/features (3.5.0): Downloading (100%)         
  - Installing drupal/email_registration (1.0.0-rc5): Downloading (100%)         
  - Installing drupal/embed (1.0.0): Downloading (100%)         
  - Installing drupal/entity_embed (1.0.0-beta2): Downloading (100%)         
  - Installing drupal/entity_browser (1.4.0): Downloading (100%)         
  - Installing drupal/ds (2.3.0): Downloading (100%)         
  - Installing drupal/dropzonejs (1.0.0-alpha8): Downloading (100%)         
  - Installing drupal/default_content (1.0.0-alpha6): Downloading (100%)         
  - Installing drupal/contact_storage (1.0.0-beta2): Downloading (100%)         
  - Installing drupal/admin_toolbar (1.19.0): Downloading (100%)         
  - Installing drupal/bene (dev-master 4b4bcf5): Cloning 4b4bcf54a8 from cache
  - Installing symfony/filesystem (v3.4.2): Downloading (100%)         
  - Installing container-interop/container-interop (1.2.0): Downloading (100%)         
  - Installing league/container (2.4.1): Downloading (100%)         
  - Installing dflydev/dot-access-data (v1.1.0): Downloading (100%)         
  - Installing grasmash/yaml-expander (1.4.0): Downloading (100%)         
  - Installing consolidation/output-formatters (3.1.13): Downloading (100%)         
  - Installing consolidation/log (1.0.5): Downloading (100%)         
  - Installing symfony/config (v3.2.14): Downloading (100%)         
  - Installing consolidation/annotated-command (2.8.2): Downloading (100%)         
  - Installing grasmash/expander (1.0.0): Downloading (100%)         
  - Installing consolidation/config (1.0.9): Downloading (100%)         
  - Installing consolidation/robo (1.2.0): Downloading (100%)         
  - Installing vlucas/phpdotenv (v2.4.0): Downloading (100%)         
  - Installing thinkshout/robo-drupal (dev-master d4fc090): Cloning d4fc090a3e from cache
  - Installing webmozart/path-util (2.3.0): Downloading (100%)         
  - Installing symfony/var-dumper (v3.4.2): Downloading (100%)         
  - Installing jakub-onderka/php-console-color (0.1): Downloading (100%)         
  - Installing jakub-onderka/php-console-highlighter (v0.3.2): Downloading (100%)         
  - Installing dnoegel/php-xdg-base-dir (0.1): Downloading (100%)         
  - Installing nikic/php-parser (v3.1.3): Downloading (100%)         
  - Installing psy/psysh (v0.8.16): Downloading (100%)         
  - Installing pear/console_table (v1.3.0): Downloading (100%)         
  - Installing drush/drush (8.1.15): Downloading (100%)         
  - Installing psr/simple-cache (1.0.0): Downloading (100%)         
  - Installing psr/cache (1.0.1): Downloading (100%)         
  - Installing symfony/cache (v3.4.2): Downloading (100%)         
  - Installing symfony/expression-language (v3.4.2): Downloading (100%)         
  - Installing gabordemooij/redbean (v4.3.4): Downloading (100%)         
  - Installing drupal/console-dotenv (0.3.0): Downloading (100%)         
  - Installing webflo/drupal-finder (1.1.0): Downloading (100%)         
  - Installing stecman/symfony-console-completion (0.7.0): Downloading (100%)         
  - Installing drupal/console-en (1.3.1): Downloading (100%)         
  - Installing dflydev/placeholder-resolver (v1.0.2): Downloading (100%)         
  - Installing dflydev/dot-access-configuration (v1.0.2): Downloading (100%)         
  - Installing drupal/console-core (1.3.1): Downloading (100%)         
  - Installing alchemy/zippy (0.4.3): Downloading (100%)         
  - Installing drupal/console (1.3.1): Downloading (100%)         
drupal/dropzonejs suggests installing enyo/dropzone (Required to user drupal/dropzonejs. Dropzone is an easy to use drag'n'drop library.)
consolidation/robo suggests installing pear/archive_tar (Allows tar archives to be created and extracted in taskPack and taskExtract, respectively.)
consolidation/robo suggests installing henrikbjorn/lurker (For monitoring filesystem changes in taskWatch)
consolidation/robo suggests installing patchwork/jsqueeze (For minifying JS files in taskMinify)
consolidation/robo suggests installing natxet/CssMin (For minifying CSS files in taskMinify)
symfony/var-dumper suggests installing ext-intl (To show region name in time zone dump)
symfony/var-dumper suggests installing ext-symfony_debug ()
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)
pear/console_table suggests installing pear/Console_Color2 (>=0.1.2)
drush/drush suggests installing drush/config-extra (Provides configuration workflow commands, such as config-merge.)
alchemy/zippy suggests installing guzzle/guzzle (To use the GuzzleTeleporter with Guzzle 3)
Writing lock file
Generating autoload files
Creating packages services cache file: 
/Users/noxlady/Sites/rootid-bene/vendor/drupal/console/extend.console.uninstall.services.yml
> DrupalProject\composer\ScriptHandler::createRequiredFiles
Create a sites/default/files directory with chmod 0777
 20:21:50  ~/Sites/rootid-bene

So, it's a workaround, but I think my project might have successfully installed now. Do you have any advice on how I can verify whether everything is as it should be?

megclaypool commented 6 years ago

I'm noticing that the instructions say to git init, but before doing so, I tried

$ git status
On branch master
Your branch is up to date with 'composer/master'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)

    composer.lock
    web/

nothing added to commit but untracked files present (use "git add" to track)

So I checked

$ git remote -v
composer    https://github.com/thinkshout/bene-project.git (fetch)
composer    https://github.com/thinkshout/bene-project.git (push)
origin  https://github.com/thinkshout/bene-project.git (fetch)
origin  git@github.com:thinkshout/bene-project.git (push)

Would those remotes and that git project normally be deleted during the install process? Should I just delete the git folder and reinitialize?

ruscoe commented 6 years ago

Having the git remotes already there is unusual. I'm not 100% sure what happened there.

Step by step, what I've been doing is:

composer create-project thinkshout/bene-project:master ~/Sites/benetest --stability dev --no-interaction

(Building the project in ~/Sites/benetest)

cd ~/Sites/benetest
git remote -v
fatal: Not a git repository (or any of the parent directories): .git

That's what I'd expect to see as I haven't initialized the git repository yet. You definitely shouldn't see the thinkshout/bene-project remotes in there.

What I'd suggest next is, inside the directory you have Bene in, run the following:

robo config
robo install

By default, the install command expects a local MySQL database named "bene" and a user named "root" with the password "root". Check out these directions if you need to customize those values.

Then test the site locally by setting up your virtual host, host file, and anything you normally do to run a local site. If you can get to the Bene site locally after that, then you're good and you can delete the .git file and initialize it again with your own repo.

If not, let me know and I'll see where we can go from there. I hope you have a great new year :)