Hello,
I
am trying to Install the Islandora Stack onto a Ubuntu Server.
I am
following the instructions in Islandora 7.x-1.9 – Enterprise –
Option 1 as found at:
https://wiki.duraspace.org/display/ISLANDORA715/Option+1%3A+Installing+the+Minimum+Islandora+Stack
Here
is what I’ve installed:
- Ubuntu Server 16.04 (w/ LAMP
16.04 )
- Java
JDK 8
- Maven
3.3.9
-
Fedora 3.8.1
- Drupal 7.56
- fcrepo-drupalauthfilter-3.8.
1
-
Tuque 1.5
-
Islandora Core Module for Drupal:
islandora-7.x-1.5.zip
My
issue occurs in Milestone 5. When
attempting to configure the Islandora Core
Moduleon my Drupal Website,I
keep getting this error from
the Islandora
configuration page.
Fedora base URL *
http://localhost:8080/fedora
“Unable
to authenticate when connecting to to Fedora Server (Version 3.8.1).
Please configure the Drupal Filter.”
-
I am following the milestones exactly to the writing, using the above
versions of Fedora and Drupal.
- I have worked through
milestones 1 and 2 with no problems. I can login to both the Fedora
repository
and drupal site through admin accounts, and operate each.
-
This is my filter-drupal.xml (located in
$FEDORA_HOME/server/config/filter-drupal.xml) which contains values
that are listed in drupal's settings.php
file:
<FilterDrupal_Connection>
<connection server="localhost" dbname="drupal" user="drupalAdmin" password="ttpNewRupal" port="3306">
<sql>
<!--Different sql statement for each connection. This is for drupal
multisites that are setup using one database with table prefixes.
We don't do this but some people might.-->
SELECT DISTINCT u.uid AS userid, u.name AS Name, u.pass AS Pass,r.name AS Role FROM (users u LEFT JOIN users_roles ON u.uid=users_roles.$
</sql>
</connection>
-
The logs found in $FEDORA_HOME/server/logs/fedora.log print the
following, in regards to the connection attempt
ERROR
2017-07-05 14:51:09.396 [http-bio-8080-exec-21] (DrupalAuthModule)
Error retrieving user info Parameter index out of range (2 >
number of parameters, which is 0).
ERROR
2017-07-05 14:51:09.396 [http-bio-8080-exec-21] (AuthFilterJAAS)
javax.security.auth.login.LoginException: Login Failure: all modules
ignored
- Using the drupal_filter_validator to test the
filter-drupal.xml file gave successful connection
results:
user@server:~/drupal_filter_validator$
sudo ./test_db_connection.py
$FEDORA_HOME/server/config/filter-drupal.xml
Connection
1 - OK: connection to Drupal database successful, and user
drupalAdmin has select,insert,update privileges on the users table.
- Inserting incorrect values in filter-drupal.xml give
different errors in the logs, which complained about incorrect
credentials, so the values are not wrong. I am able to login to mysql
with the same user and password found in settings.php
ERROR
2017-07-05 16:08:40.075 [http-bio-8080-exec-1] (DrupalAuthModule)
SQLException: Access denied for user 'drupalAdmin'@'localhost' (using
password: YES)
ERROR 2017-07-05 16:08:40.075 [http-bio-8080-exec-1] (DrupalAuthModule) SQLState: 28000
ERROR 2017-07-05 16:08:40.075 [http-bio-8080-exec-1] (DrupalAuthModule) VendorError: 1045
ERROR 2017-07-05 16:08:40.075 [http-bio-8080-exec-1] (DrupalAuthModule) Error Connecting to Database server jdbc:mysql://localhost:3306/drupal?user=drupalAdmin&password=ttpNewRupallll
ERROR
2017-07-05 16:08:40.075 [http-bio-8080-exec-1] (AuthFilterJAAS)
javax.security.auth.login.LoginException: Login Failure: all modules
ignored
- Running the drupal testing
module onto Islandora (as per later instruction) produces this
exception 12
times:
RepositoryException:
Unauthorized in RepositoryConnection->parseFedoraExceptions()
(line 229 of
/var/www/html/drupal/sites/all/libraries/tuque/RepositoryConnection.php).
-
I've tried
* Making the filter-drupal.xml file executable
* Changing ownership of tuque library to www-data
* Restarting
fedora, mysql, etc.
* Rebooting the Ubuntu server
- Even
reinstalling the whole server up to milestone 5 lead to no
success.
- I've documented and retraced every step I took, but
I've got no clue whats wrong at this point.
- If anyone can
provide suggestions or a solution, I'd highly appreciate
it!
Brendan
The Drupal Filter does not currently escape the database url before attempting to connect to the Mysql database, which can cause problems if the user name or password has '%' symbol within it.
<FilterDrupal_Connection>
<connection server="localhost" dbname="drupal" user="drupalAdmin" password="ttpNewRupal" port="3306">
<sql>
<!--Different sql statement for each connection. This is for drupal
multisites that are setup using one database with table prefixes.
We don't do this but some people might.-->
SELECT DISTINCT u.uid AS userid, u.name AS Name, u.pass AS Pass,r.name AS Role FROM (users u LEFT JOIN users_roles ON u.uid=users_roles.$
</sql>
</connection>
Rosie++
Oh... Yep, I was the last person to edit those docs, and I am so, so sorry. Thanks for pointing that out, and I'll update them now.
--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.
Visit this group at https://groups.google.com/group/islandora.
To view this discussion on the web visit https://groups.google.com/d/msgid/islandora/28e3bac9-f368-4c8d-8e4a-59f545cf1280%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.