How I Successfully Installed DSpace 9.2 on VirtualBox โ A Personal Journey
Setting the Stage
As a library science student, I had always heard about DSpace โ the world’s most popular open-source Institutional Repository platform used by universities, libraries, and research institutes worldwide. But setting it up seemed intimidating. Recently, I decided to take the plunge and install DSpace 9.2 on my own machine.
This blog post is about that journey โ the challenges, the learning, and the joy of finally seeing it work!
My Setup
Since I do not have a dedicated Linux machine, I used Oracle VirtualBox on my Windows laptop to create a virtual Ubuntu 24.04 LTS environment. For the Ubuntu installation inside VirtualBox, I referred to a helpful tutorial by Saksham Choudhary โ a clear and practical guide that gave me a good understanding of how to get Ubuntu running inside VirtualBox.
Koha Was Already Installed!
Here is where things got interesting. I had already installed Koha 25.11 (Library Management System) in the same VirtualBox environment. This meant limited disk space and careful port management to avoid conflicts between the two systems. For Koha installation, I followed a step-by-step tutorial by RAFLIMTS โ though the video is about a year old, it worked perfectly well for Koha on Ubuntu 24.04.
Since this was my first time working with VirtualBox and Ubuntu, I did not even think of creating a separate VM for DSpace โ a lesson I learned along the way! I also used Claude AI to help me with VM-specific troubleshooting whenever I got stuck.
The Tutorial That Made It Possible
I came across an excellent tutorial by Sukhdev Singh Sir on his YouTube channel AI for Librarians (@AI4LIB). The tutorial covers the COMPLETE DSpace 9.2 installation โ from Backend to Frontend โ explained in Hindi with all commands clearly demonstrated.
What truly sets this tutorial apart is the accompanying step-by-step PDF installation manual available on his website sukhdevsingh.com.
What the Tutorial Covers
- โ Install Java 17, Maven, Ant, Git โ all prerequisites
- โ Set up PostgreSQL 16 โ database creation and authentication
- โ Configure Apache Solr 9.x โ search cores and ICU fix
- โ Deploy Apache Tomcat 10 โ web server configuration
- โ Build DSpace 9.2 Backend โ Maven build and Spring Boot deployment
- โ Build DSpace 9.2 Frontend โ Angular UI build and systemd service
6 Real Errors Documented & Solved
What makes this tutorial exceptional โ it documents and fixes real errors encountered during actual installation:
- JavaScript heap out of memory โ Angular production build crash FIXED โ
- YAML duplicate key/indentation error in config.yml FIXED โ
- CORS 500 Service Unavailable โ frontend cannot reach backend FIXED โ
- sudo chmod *.sh glob expansion failure FIXED โ
- PostgreSQL apt repo 404 โ Linux Mint codename not recognised FIXED โ
- Port 4000 in use โ systemd Restart=always trap FIXED โ
The Tech Stack Used
The Final Result โ Everything Working!
Both Koha 25.11 and DSpace 9.2 are now fully working on my VirtualBox, with all services configured to auto-start on every boot:
| Service | URL | Status |
|---|---|---|
| Koha Staff Interface | http://127.0.0.1:8080 |
โ Running |
| Koha OPAC | http://127.0.0.1:80 |
โ Running |
| DSpace Backend REST API | http://127.0.0.1:8082/server |
โ Running |
| DSpace Frontend Angular UI | http://127.0.0.1:4000 |
โ Running |
What I Learned Along the Way
- Always create a separate VM for each major software installation
- Swap memory is critical for Angular production builds on low-RAM machines
- Port management is crucial when running multiple services
- systemd services make life much easier for auto-starting applications
- A good tutorial manual is worth more than hours of random searching!
- Do not blindly go for the latest version of software โ always check if it has been tested and verified. Compatibility with your stack matters more than being on the cutting edge!
๐ Useful Links
๐ฅThis has been one of the most rewarding learning experiences in my LIS journey. Working through the challenges, solving errors, and finally seeing DSpace and Koha fully running gave me tremendous confidence. I hope this blog post encourages other LIS students to explore open-source library technologies.
Happy installing! ๐
