Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

NOID resolver apache configuration no longer works

44 views
Skip to first unread message

Karl Holten

unread,
Oct 24, 2024, 3:44:05 PM10/24/24
to ARKs
Hello,

The University of Wisconsin-Milwaukee has been issuing identifiers using NOID but recently had to migrate to a new operating system. The previously working configuration for NOID is no longer redirecting and I am not sure why. The ability to bind and issue ARKs is still working however, so it seems as though the issue is mostly redirecting.

<VirtualHost *:443>
  ServerName digilib.uwm.edu
  DocumentRoot /var/www/noid/gmgs/gmgs_public
  ErrorLog /var/log/noid/public_error_log
  CustomLog /var/log/noid/public_access_log common

SSLCertificateFile /etc/httpd/conf.d/ssl/current/liblamp8.cer
SSLCertificateKeyFile /etc/httpd/conf.d/ssl/current/liblamp8.key

ScriptAliasMatch ^/noidu(.*) "/var/www/noid/gmgs/gmgs_public/noidu$1"
ScriptAliasMatch ^/noidr(.*) "/var/www/noid/gmgs/gmgs_public/noidr$1"

RewriteEngine on
##NOTE: If you would like to create a new shoulder do the following:
## 1. Make a directory for the new shoulder named after it. Run the command to create a new database and move it into public.
## 2. Create copies of the noid binary called noidu and noidr followed by the binary.
## 3. Copy the rewrite map and rules in apache, replacing shoulder where needed.
# External resolution; start program once on server start
RewriteMap  rslv           prg:/var/www/noid/gmgs/gmgs_public/noidr_gmgs

# Main lookup; add artificial prefix for subsequent testing
RewriteRule "^/ark:/(77981/.*)$" "_rslv_${rslv:get $1 where}"

# Test: redirect [R] if it looks like a redirect
RewriteRule ^_rslv_([^:]*://.*)$    $1 [R]
# Test: strip prefix; pass through [PT] if intended for us
RewriteRule ^_rslv_(/.*)$           $1 [PT]
# Test: restore value if lookup failed; let come what may
RewriteRule ^_rslv_$                %{REQUEST_URI}
# Alternative: redirect failed lookup to a global resolver
</VirtualHost>

URL #1:

Returns:
id: 77981/gmgsh44j2g5 hold 
Circ: i|20241018101356|@10.62.92.248 apache/apache|6 

Returns: 404 Error


John Kunze

unread,
Oct 25, 2024, 1:01:12 PM10/25/24
to arks-...@googlegroups.com
Maybe a certificate problem at www.uwm.edu (or uwm.edu)? Below is what the curl CLI client returns.

$ curl -I https://www.uwm.edu/ark:/77981/gmgsh44j2g5
curl: (60) SSL: no alternative certificate subject name matches target host name 'www.uwm.edu'

--
You received this message because you are subscribed to the Google Groups ARKs group. To post to this group, send email to arks-...@googlegroups.com. To unsubscribe from this group, send email to arks-forum+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/arks-forum?hl=en
---
You received this message because you are subscribed to the Google Groups "ARKs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arks-forum+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/arks-forum/0648428d-b9ab-4b88-b4c9-f01ab272d48en%40googlegroups.com.

John Kunze

unread,
Oct 25, 2024, 1:20:21 PM10/25/24
to arks-...@googlegroups.com
It's often helpful to look at the resolver logs to debug what's happening.

Karl Holten

unread,
Oct 25, 2024, 2:10:09 PM10/25/24
to arks-...@googlegroups.com

There does appear to be an issue with the SSL cert at the destination, but the main problem I'm concerned with is that the redirect is not occurring. I've changed the where value to https://www.yahoo.com so we don't need to worry about the destination URL. It still does not work.

[root@liblamp8 noid]# pwd
/var/log/noid

[root@liblamp8 noid]# tail public_access_log
10.254.2.66 - - [25/Oct/2024:13:01:38 -0500] "GET /noidu_gmgs?bind+replace+77981/gmgsh44j2g5+where+https://www.yahoo.com HTTP/1.1" 200 110
10.254.2.66 - - [25/Oct/2024:13:03:53 -0500] "GET /ark:/77981/gmgsh44j2g5 HTTP/1.1" 404 196

[root@liblamp8 noid]# tail public_error_log
[Fri Oct 25 13:00:04.787008 2024] [cgid:error] [pid 228979:tid 139989828433664] [client 10.254.2.66:61113] Use of uninitialized value in split at /var/www/noid/gmgs/gmgs_public/noidu_gmgs line 74.: /var/www/noid/gmgs/gmgs_public/noidu_gmgs
[Fri Oct 25 13:00:04.872757 2024] [cgid:error] [pid 228979:tid 139989828433664] [client 10.254.2.66:61113] Use of uninitialized value $ENV{"PERL5LIB"} in concatenation (.) or string at /var/www/noid/gmgs/gmgs_public/noidu_gmgs line 71.: /var/www/noid/gmgs/gmgs_public/noidu_gmgs
[Fri Oct 25 13:00:55.272077 2024] [cgid:error] [pid 229356:tid 139990088476416] [client 10.254.2.66:61172] Use of uninitialized value in split at /var/www/noid/gmgs/gmgs_public/noidu_gmgs line 74.: /var/www/noid/gmgs/gmgs_public/noidu_gmgs
[Fri Oct 25 13:00:55.316319 2024] [cgid:error] [pid 229356:tid 139990088476416] [client 10.254.2.66:61172] Use of uninitialized value $ENV{"PERL5LIB"} in concatenation (.) or string at /var/www/noid/gmgs/gmgs_public/noidu_gmgs line 71.: /var/www/noid/gmgs/gmgs_public/noidu_gmgs
[Fri Oct 25 13:01:08.416871 2024] [cgid:error] [pid 229356:tid 139990222759680] [client 10.254.2.66:61181] Use of uninitialized value in split at /var/www/noid/gmgs/gmgs_public/noidu_gmgs line 74.: /var/www/noid/gmgs/gmgs_public/noidu_gmgs
[Fri Oct 25 13:01:08.453614 2024] [cgid:error] [pid 229356:tid 139990222759680] [client 10.254.2.66:61181] Use of uninitialized value $ENV{"PERL5LIB"} in concatenation (.) or string at /var/www/noid/gmgs/gmgs_public/noidu_gmgs line 71.: /var/www/noid/gmgs/gmgs_public/noidu_gmgs
[Fri Oct 25 13:01:38.907608 2024] [cgid:error] [pid 228980:tid 139989954324224] [client 10.254.2.66:61186] Use of uninitialized value in split at /var/www/noid/gmgs/gmgs_public/noidu_gmgs line 74.: /var/www/noid/gmgs/gmgs_public/noidu_gmgs
[Fri Oct 25 13:01:38.945105 2024] [cgid:error] [pid 228980:tid 139989954324224] [client 10.254.2.66:61186] Use of uninitialized value $ENV{"PERL5LIB"} in concatenation (.) or string at /var/www/noid/gmgs/gmgs_public/noidu_gmgs line 71.: /var/www/noid/gmgs/gmgs_public/noidu_gmgs



You received this message because you are subscribed to a topic in the Google Groups "ARKs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/arks-forum/iP3ntyP9LEg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to arks-forum+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/arks-forum/CAOmcTKh6XF5OUdP5sq12pvX3prh2_E-%2B0WHWZORCi65aLo7w2Q%40mail.gmail.com.

John Kunze

unread,
Oct 26, 2024, 11:01:00 AM10/26/24
to arks-...@googlegroups.com
Right. So I think you'll want to follow the instructions in Noid-0.424/README to make sure that the PERL5LIB environment variable is set correctly in your new environment.

Reply all
Reply to author
Forward
0 new messages