Islandora-Devops / isle-dc

ISLE 8 - Dockerized Islandora 8 Deployment orchestrated with docker-compose
MIT License
23 stars 60 forks source link

cp: can't stat '/var/www/drupal/web/sites/default/default.settings.php': No such file or directory #357

Closed yxq477 closed 7 months ago

yxq477 commented 1 year ago

when I excute make demo I alaways get this err. I checked this respositry https://github.com/islandora-devops/islandora-sandbox it's really not exist default/default.setting.php file. so I don't understand what wrong i did, and how to fix it.

this is part of output of terminal

mkdir -p /Users/xinqi/temp/isle-dc/codebase
if [ -z "$(ls -A "/Users/xinqi/temp/isle-dc"/codebase)" ]; then \
                docker container run --rm -v /Users/xinqi/temp/isle-dc/codebase:/home/root islandora/nginx:1.0.10 with-contenv bash -lc 'git clone -b main https://github.com/islandora-devops/islandora-sandbox /tmp/codebase; mv /tmp/codebase/* /home/root;'; \
        fi
/Library/Developer/CommandLineTools/usr/bin/make set-files-owner SRC=/Users/xinqi/temp/isle-dc/codebase ENVIRONMENT=local
Password:
docker compose up -d --remove-orphans
[+] Running 17/0
 ✔ Container isle-dc-houdini-1     Running                                                                                                                                                0.0s 
 ✔ Container isle-dc-solr-1        Running                                                                                                                                                0.0s 
 ✔ Container isle-dc-activemq-1    Running                                                                                                                                                0.0s 
 ✔ Container isle-dc-milliner-1    Running                                                                                                                                                0.0s 
 ✔ Container isle-dc-blazegraph-1  Running                                                                                                                                                0.0s 
 ✔ Container isle-dc-alpaca-1      Running                                                                                                                                                0.0s 
 ✔ Container isle-dc-fcrepo-1      Running                                                                                                                                                0.0s 
 ✔ Container isle-dc-mariadb-1     Running                                                                                                                                                0.0s 
 ✔ Container isle-dc-hypercube-1   Running                                                                                                                                                0.0s 
 ✔ Container isle-dc-recast-1      Running                                                                                                                                                0.0s 
 ✔ Container isle-dc-fits-1        Running                                                                                                                                                0.0s 
 ✔ Container isle-dc-homarus-1     Running                                                                                                                                                0.0s 
 ✔ Container isle-dc-crayfits-1    Running                                                                                                                                                0.0s 
 ✔ Container traefik               Running                                                                                                                                                0.0s 
 ✔ Container isle-dc-matomo-1      Running                                                                                                                                                0.0s 
 ✔ Container isle-dc-cantaloupe-1  Running                                                                                                                                                0.0s 
 ✔ Container isle-dc-drupal-1      Running                                                                                                                                                0.0s 
docker compose exec -T drupal with-contenv bash -lc 'composer install; chown -R nginx:nginx .'
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
Package operations: 259 installs, 0 updates, 0 removals
  - Syncing dflydev/dot-access-configuration (dev-master 2e6eb0c) into cache
  - Syncing drupal/context (dev-4.x 86f2ca4) into cache
  - Syncing mjordan/islandora_workbench_integration (dev-main 686ede7) into cache
  - Syncing islandora/openseadragon (2.x-dev 8f9eeff) into cache
  - Syncing islandora/islandora_base_theme (dev-main 7518ac4) into cache
  - Syncing islandora/islandora_starter_theme (dev-main 99da80e) into cache
  - Syncing islandora/controlled_access_terms (2.x-dev 9598fca) into cache
  - Syncing islandora/islandora_defaults (2.x-dev 4ade118) into cache
  - Syncing islandora-rdm/islandora_fits (dev-8.x-1.x f03b4ee) into cache
  - Syncing drupal/views_block_area (dev-1.x 732ecfb) into cache
  - Syncing drupal/tmgmt_google (dev-1.x 99d24ae) into cache
  - Syncing drupal/simple_sitemap (dev-3.x 3711a37) into cache
  - Downloading drupal/search_api_solr (4.2.9)
  - Syncing drupal/groupmedia (dev-2.x d642b31) into cache
  - Syncing drupal/console (dev-master 7027117) into cache
  - Syncing islandora/islandora_install_profile_demo (dev-main e20dd33) into cache
  - Downloading library/pdf.js (2.4.456)
 0/2 [>---------------------------]   0%  - Downloading library/pdf.js (2.4.456)
  - Downloading library/pdf.js (2.4.456)
  - Downloading library/pdf.js (2.4.456)

 1/2 [==============>-------------]  50%
 2/2 [============================] 100%
 2/2 [============================] 100%

  [Composer\Downloader\TransportException]                                                                                                                
  curl error 28 while downloading https://github.com/mozilla/pdf.js/releases/download/v2.4.456/pdfjs-2.4.456-dist.zip: Connection timeout after 10000 ms  

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-scripts] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>]...

/Library/Developer/CommandLineTools/usr/bin/make remove_standard_profile_references_from_config drupal-database update-settings-php ENVIRONMENT=local
Waiting for up to 300 seconds to connect to Database mariadb:3306
Waiting for 3306 on mariadb to open.
Database found
Validating Database credentials
mysqld is alive
Credentials are valid
cp: can't stat '/var/www/drupal/web/sites/default/default.settings.php': No such file or directory
make[2]: *** [update-settings-php] Error 1
make[1]: *** [local] Error 2
make: *** [demo] Error 2
fishfree commented 1 year ago

I have the same error using the latest cloned repo.

kayakr commented 1 year ago

I get a similar issue. After "Credentials are valid", I get

In SiteProcess.php line 214:

  The command "/var/www/drupal/vendor/bin/drush core-status --project=root '-  
  -fields=%paths' --format=json --uri=default --root=/var/www/drupal/web" fai  
  led.                                                                         

  Exit Code: 1(General error)                                                  

  Working directory:                                                           

  Output:                                                                      
  ================                                                             

  Error Output:                                                                
  ================                                                             
   [warning] Drush command terminated abnormally.                              

realpath: /sites/default: No such file or directory

In SiteProcess.php line 214:

  The command "/var/www/drupal/vendor/bin/drush core-status --project=root '-  
  -fields=%paths' --format=json --uri=default --root=/var/www/drupal/web" fai  
  led.                                                                         

  Exit Code: 1(General error)                                                  

  Working directory:                                                           

  Output:                                                                      
  ================                                                             

  Error Output:                                                                
  ================                                                             
   [warning] Drush command terminated abnormally.                              

realpath: /sites/default: No such file or directory
/etc/islandora/utilities.sh: line 352: site_directory: parameter null or not set
/etc/islandora/utilities.sh: line 417: site_directory: parameter null or not set
make[1]: *** [update-settings-php] Error 127
make: *** [local] Error 2
illyriab commented 10 months ago

How, did you figure it out? (@kayakr @fishfree @yxq477). I'm getting the same error with both make demo and make starter, also I'm using M1 Mac, I hope it doesn't add complexity...

joecorall commented 7 months ago

The make demo command has been replaced by documentation.

$ make demo
make demo has been removed. To create a demo site, please follow the instructions at https://islandora.github.io/documentation/installation/docker-local/

But make starter should be working properly after this PR merges https://github.com/Islandora-Devops/isle-dc/pull/384

joecorall commented 7 months ago

https://github.com/Islandora-Devops/isle-dc/pull/384 merged so closing this issue. If there is still an issue please reopen a new issue