๐Ÿ“– Personal Experience ยท Open Source ยท Library Technology

How I Successfully Installed DSpace 9.2 on VirtualBox โ€” A Personal Journey

By Anjali Sanjay  ยท  University of Madras, Chennai
Library Digital Repository

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!

“The journey of a thousand miles begins with a single step โ€” and for me, that step was opening Oracle VirtualBox for the very first time.”

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.

๐Ÿ“บ Ubuntu Installation in VirtualBox โ€” by Saksham Choudhary
๐Ÿง
OS
Ubuntu 24.04 LTS
๐Ÿ’พ
RAM
5 GB + 2 GB Swap
๐Ÿ’ฟ
Storage
30 GB
๐Ÿ–ฅ๏ธ
Host
Windows Laptop

Koha Was Already Installed!

Server and virtual machines
Managing multiple systems in a single VirtualBox environment presented unique challenges

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.

๐Ÿ“บ Installing Koha 24.05 on Ubuntu 24.04 โ€” by RAFLIMTS

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.

“In hindsight, a separate VM for DSpace would have saved a lot of hassle. But working through those challenges turned out to be a great learning experience!”

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.

“I have never come across such a detailed and well-structured installation manual. It felt like having a mentor guiding me at every step โ€” every warning, every note was so thoughtful and helpful. It truly reflects the painstaking effort and dedication behind it.”

What truly sets this tutorial apart is the accompanying step-by-step PDF installation manual available on his website sukhdevsingh.com.

๐Ÿ“บ DSpace 9.2 Complete Installation Guide โ€” by Sukhdev Singh (AI for Librarians)

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

๐Ÿง Ubuntu 24.04 LTS โ˜• Java 17 (OpenJDK) ๐Ÿฑ Apache Tomcat 10 ๐Ÿƒ Spring Boot 3.x ๐Ÿ˜ PostgreSQL 16 ๐Ÿ” Apache Solr 9.x ๐ŸŸฉ Node.js 20.x LTS ๐Ÿ…ฐ๏ธ Angular SSR

The Final Result โ€” Everything Working!

Successful server setup
Both Koha and DSpace fully operational with auto-start on boot

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

  1. Always create a separate VM for each major software installation
  2. Swap memory is critical for Angular production builds on low-RAM machines
  3. Port management is crucial when running multiple services
  4. systemd services make life much easier for auto-starting applications
  5. A good tutorial manual is worth more than hours of random searching!
  6. 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!

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! ๐Ÿ˜Š

โ€” Anjali Sanjay
University of Madras, Chennai

By Anjali Sanjay

Hi, I am Anjali Sanjay, a Library and Information Science student based in Chennai. As an LIS enthusiast, I am passionate about everything that the world of library science has to offer. This blog is my space to explore and share thoughts on: ๐Ÿ“š Books and reading ๐Ÿ› ๏ธ LIS skills and professional development ๐ŸŽ“ Education practices and pedagogy in LIS ๐Ÿ’ก New ideas and innovations in library science ๐Ÿ” Analysis and reflections on LIS trends ๐Ÿ’ป Library technologies ๐ŸŒ Digital libraries and community information services ๐Ÿ›๏ธ Library management and Information Organisation I also administer Chennai Info Hub โ€” a community information service on: ๐Ÿ“ฑ Telegram: t.me/chennaicommunityinfohub ๐Ÿ’ฌ WhatsApp: https://whatsapp.com/channel/0029Vb7n2UkCMY0Ge5mj8Y0t Come along on this journey of learning, exploring and growing in the world of Library and Information Science!

Leave a Reply

Your email address will not be published. Required fields are marked *