UofS-Pulse-Binfo / nd_genotypes

Drupal/Tripal: Tripal interface for Chado Natural Diversity Genotypic data.
https://nd-genotypes.readthedocs.io/en/latest/index.html
GNU General Public License v2.0
4 stars 1 forks source link

error on install #26

Closed bradfordcondon closed 5 years ago

bradfordcondon commented 5 years ago

On a freshly wiped site:

rush pm-enable -y nd_genotypes
Directory /Users/bc/.drush/cache/default exists, but is not writable. Please check directory permissions.                      [error]
The following extensions will be enabled: nd_genotypes, trpdownload_api
Do you really want to continue? (y/n): y
Cannot modify header information - headers already sent by (output started at                                                  [warning]
/Users/bc/.composer/vendor/drush/drush/includes/output.inc:40) common.inc:706
Drush command terminated abnormally due to an unrecoverable error.                                                             [error]
________________________________________________________________________________
| bc:~/tripal/sites/all/modules/custom$
| => drush pm-enable -y nd_genotypes
Directory /Users/bc/.drush/cache/default exists, but is not writable. Please check directory permissions.                      [error]
nd_genotypes is already enabled.                                                                                               [ok]
There were no extensions that could be enabled.                                                                                [ok]
________________________________________________________________________________
| bc:~/tripal/sites/all/modules/custom$
| => drush pm-disable nd_genotypes -y
Directory /Users/bc/.drush/cache/default exists, but is not writable. Please check directory permissions.                      [error]
The following extensions will be disabled: nd_genotypes
Do you really want to continue? (y/n): y
nd_genotypes was disabled successfully.                                                                                        [ok]
________________________________________________________________________________
| bc:~/tripal/sites/all/modules/custom$
| => drush pm-enable -y nd_genotypes
Directory /Users/bc/.drush/cache/default exists, but is not writable. Please check directory permissions.                      [error]
The following extensions will be enabled: nd_genotypes
Do you really want to continue? (y/n): y
[site http://default] [TRIPAL ERROR] [GENOTYPES_LOADER] Incompatible postgresql version detected. You are using 9.2 and this module requires at least 9.3.
nd_genotypes was enabled successfully.                                                                                         [ok]
nd_genotypes defines the following permissions: access nd_genotypes, download nd_genotype_matrix
This module requires PostgreSQL 9.3 or higher.                                                                                 [error]
Your postgresql version is: 9.2                                                                                                [status]
________________________________________________________________________________
| bc:~/tripal/sites/all/modules/custom$

so error on first install, legitimate warning upon disabling/renabled

bradfordcondon commented 5 years ago

Also Drupal reports me as being on postgres 10.5 (so why is it complaining about my postgres being at 9.2?)

Screen Shot 2019-03-17 at 12 07 21 PM

psql -V
psql (PostgreSQL) 10.5
_____________________________
laceysanderson commented 5 years ago

Oops, this module doesn't yet support PostgreSQL 10+ due to this line:

  // Pull it out via REGEX.
  if (preg_match('/PostgreSQL (9\.\d+)\.\d+/', $version_string, $matches)) {
    $version = $matches[1];
  }

https://github.com/UofS-Pulse-Binfo/nd_genotypes/blob/7.x-3.x/api/nd_genotypes.api.inc#L120

bradfordcondon commented 5 years ago

OK thats probably also why its failing without message on the Docker build.

FYI I seem to remember that the header error i report above is from redirects. Maybe using drupal_set_message in the install is the problem - drupal_set_message(t('This module requires PostgreSQL 9.3 or higher.'), 'error');

bradfordcondon commented 5 years ago

This error is also occurring on genotypes_loader for the same reason