Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yxq477 opened this issue Sep 4, 2023 · 5 comments

Comments

@yxq477
Copy link

yxq477 commented Sep 4, 2023

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
Copy link

fishfree commented Sep 8, 2023

I have the same error using the latest cloned repo.

@kayakr
Copy link

kayakr commented Oct 12, 2023

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
Copy link

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
Copy link
Contributor

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 #384

@joecorall
Copy link
Contributor

#384 merged so closing this issue. If there is still an issue please reopen a new issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants