Comments (13)
Just adding a bit more detail... I have a CentOS 7 machine at home running Docker now and tried this build sequence there today... Same result as noted above. I get lots of these...
Drush was attempting to connect to:
Drupal version : 7.56
Site URI : http://default
PHP executable : /usr/bin/php
PHP configuration : /etc/php5/cli/php.ini
PHP OS : Linux
Drush script : /opt/drush-7.x/vendor/drush/drush/drush.php
Drush version : 7.4.0
Drush temp directory : /tmp
Drush configuration :
Drush alias files :
Drupal root : /var/www/html
Site path : sites/default
Going to try my hand at making some local modifications to work around this. I'll report back whatever the outcome.
from isle.
Looks like the issue actually occurs earlier in the process...
root@6a66cf21f72b:/tmp# ./install_site.sh
Installing all Islandora modules
Installing Drupal Site
exception 'Drush\Sql\SqlException' with message 'Unable to find a matching SQL Class. Drush cannot find your database connection details.' in [error]
/opt/drush-7.x/vendor/drush/drush/commands/sql/sql.drush.inc:597
Stack trace:
#0 /opt/drush-7.x/vendor/drush/drush/commands/core/site_install.drush.inc(109): drush_sql_get_class()
from isle.
OK, so maybe the problem here is not what I thought? I see that the $databases array in my settings.php file is empty...
$databases = array();
from isle.
So I killed my terminal session and found that customize/linux_settings.php did indeed have an empty $databases = array(); statement. I edited the file and copied the $databases section from macosx_settings.php and then picked up the process from ,/install_site.sh... and it appears to be working.
from isle.
Confirmed. With the addition of the $databases definition lifted from macosx_settings.php transplanted into linux_settings.php the build appears to work properly. I'm logged in to an Islandora instance on my CentOS 7 machine here at home.
from isle.
@McFateM Thanks for this update and feedback. Per @br2490 's recent email, you're confirming that the settings.php file used during the build process doesn't work as expected. I'll be able to review tomorrow (Tuesday, Nov 21) and patch.
from isle.
Looks like linux_settings.php have already been updated? I pulled a new copy of ISLE this morning for installation on my DGDocker1 platform and that new copy looks right.
from isle.
Hmmm... I haven't changed anything since last Friday... Good that it is working though. Thanks for the update. Are we closing this ticket? Or should @br2490 retest?
from isle.
Yes, I think this can be closed. I guess last week I pulled code sometime BEFORE the Linux settings change was made? In any case I think this issue is resolved now. Now having very odd issues documented in #33 so I'm focusing there right now.
from isle.
Oops... need to re-open this issue. While the $databases statement appears to be correct in customize/web/site/linux_settings.php, in my case those statements are NOT finding their way into /var/www/html/sites/default/settings.php. And I find this to be the case in both of my Linux (on my DGDocker1 VM) and Mac (on my MacBook) copies.
I doubled checked the 'web' section of docker-compose.yml and verified in the case of Linux...
volumes:
- ./customize/web/apache/site.conf:/etc/apache2/sites-available/site.conf
- ./customize/web/site/linux_settings.php:/var/www/html/sites/default/settings.php
#- ./customize/web/site/macosx_settings.php:/var/www/html/sites/default/settings.php
- ./customize/web/site:/home/islandora/site
I checked my local copy of linux_settings.php and the $database definition looks correct there, but again, that definition is NOT in my /var/www/html/sites/default/settings.php file. However, if I add the definition to the file and run './install_site.sh' it appears to be working!
from isle.
Oops...forgot to re-open above.
from isle.
@McFateM Thanks for the update. I'll be reviewing the web build process today on a Centos 7 vagrant vm. I'll see if I can replicate and then patch this.
from isle.
Okay @McFateM Thanks for finding this issue. I've patched and resolved it via this commit I had an erroneous blank settings.php copy overwriting the mounted one. D'ouh. Thus no drush connections etc. I've since tested on a CentOS 7 vm and working correctly now. Apologies for your sub-optimal experience but glad you caught it! Closing ticket.
from isle.
Related Issues (20)
- Staging install instructions: clarify or improve "commit locally to git" HOT 2
- Documentation: How to build a Multisite in ISLE HOT 3
- Drush crashes due to IMI use of Composer in install-local-migrate process at Step 10 HOT 5
- Development needed for Cantaloupe upgrade from 4.0.3 to 4.1.5 HOT 2
- Restore production `/var/www/html/sites/default/files` in `install-local-migrate.md` HOT 1
- Run standalone fedora image with AWS RDS configuration.
- Documentation: small fixes to install-environments.md HOT 1
- Documentation: update the final terminal output of install_solution_packs.sh HOT 1
- Error Message needs attention HOT 1
- Insufficient TemporaryStore disk space halting FEDORA HOT 4
- WARC tools missing from ISLE-apache Dockerfile HOT 4
- No documentation about configuring to send mail HOT 13
- Documentation update: docs/update/update.md needs "master" changed to "main" HOT 3
- Traefik should get an upgrade to 2.0
- Removing forced permissions check on ISLE apache image every time container restarts HOT 1
- Migration instructions have an odd step. HOT 5
- cache.server.source.ttl_seconds set twice in cantaloupe.properties HOT 1
- Tailing fedoragsearch logs: path needs correction HOT 4
- Staging Migration: Software Dependencies for both Ubuntu and CentOS are missing two steps HOT 1
- Should there be a warning that the docs are for ISLE7 / Islandora 7 and not for ISLE2 / Islandora 2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from isle.