Fedora (Obsolete)
This page is about Fedora 4, as used by the Digital Collections site. The focus is on important or frequently-used paths, scripts, log files and URLs on the fedora-stage and fedora-prod servers, as well as recipes helpful in development and troubleshooting.
AWS servers
The two EC2 servers that run Fedora are named fedora1-prod and fedora1-stage, respectively. See https://console.aws.amazon.com/ec2/v2/home?region=us-east-1#Instances for more info, such as IP addresses and server status.
Tomcat
Tomcat is the servlet container used in the production and staging environments. ( The dev and test environments use Jetty.) It is a Java program.
Version
- We're running version 7.0.52.0 .
- For more details:
/usr/share/tomcat7/bin/catalina.sh version
Source
- /usr/share/tomcat7/
Scripts
- /usr/share/tomcat7/bin/catalina.sh stop # stops Tomcat
- /usr/share/tomcat7/bin/catalina.sh start # starts Tomcat
Logs
- /var/lib/tomcat7/logs/catalina.out
- /var/lib/tomcat7/logs/localhost_access_log.2018-09-11.txt
- Settings /var/lib/tomcat7/conf/logging.properties
Basic settings:
- Users: /var/lib/tomcat7/conf/tomcat-users.xml
- Ports: /var/lib/tomcat7/conf/server.xml
Java
- Version: openjdk "1.8.0_171"
- Installed at /usr/lib/jvm/java-8-openjdk-amd64/
Fedora
- We're running Fedora version 4.7.3 .
- Installed in the Tomcat webapps directory: /var/lib/tomcat7/webapps/fedora
- Data directory: fcrepo.home=/opt/fedora-data
- The REST API is documented at https://wiki.duraspace.org/display/FEDORA4x/RESTful+HTTP+API
- Sample call to the API:
- (this assumes you are logged in to either fedora1-prod or fedora1-stage)
curl -u fedoraAdmin:PASSWORD http://localhost:8080/fedora/rest/prod/kk/91/fk/64/kk91fk644
- Locating files on the filesystem
- The actual binaries are stored in /opt/fedora-data/fcrepo.binary.directory based on the premis:hasMessageDigest of the file.
- Thus, for fileset
- you can run
curl -u fedoraAdmin:PASSWORD "http://localhost:8080/fedora/rest/prod/bn/99/97/57/bn999757z/files/17734b07-d5e4-4d0e-abd3-02b55e9fa0db/fcr:metadata" | grep premis:hasMessageDigest
- which returns
premis:hasMessageDigest <urn:sha1:1e2498bb705ed62cd63ad64284dcda67ce14d4ee> ;
- which means you will find the actual binary on the filesystem at
/opt/fedora-data/fcrepo.binary.directory/1e/24/98/1e2498bb705ed62cd63ad64284dcda67ce14d4ee .