ServerHandbook live check: run log
------------------------------------------------------------------------------
Check scripts/live/checks/install-dspace-ubuntu.mjs (sha256 85d8a8f692d8a7520595826aaad42221ac365878848a4bf6d40113faec1ef42c)
Ran at 2026-11-20T02:58:20Z (1546 s)
Result PASS, all 57 claims held
Tested on
System Ubuntu 24.04.5 LTS
Kernel 6.8.0-149-generic
Package openjdk-21-jdk-headless 21.0.13.1+2-1~24.04.1
Package ant 1.10.14-1
Package postgresql-16 16.15-0ubuntu0.24.04.1
Package dspace 10.1
Package solr 9.11.0
Package maven 3.9.12
Package nodejs 22.22.1
Setup A fresh Ubuntu 24.04 server with 8 GB of memory as a provider hands it over, reached over SSH as a sudo user.
Every version above was read from the server at run time. Passwords used on the
throwaway test server are shown as [password]. How we test: https://serverhandbook.com/how-we-test
------------------------------------------------------------------------------
What the steps changed on the server (recorded before the first step and after the last)
Packages added (39)
alsa-topology-conf 1.2.5.1-2
alsa-ucm-conf 1.2.10-1ubuntu5.16
ant 1.10.14-1
ant-optional 1.10.14-1
ca-certificates-java 20240118ubuntu0.24.04.2
fontconfig-config 2.15.0-1.1ubuntu2
fonts-dejavu-core 2.37-8
fonts-dejavu-mono 2.37-8
java-common 0.75+exp1
libasound2-data 1.2.11-1ubuntu0.3
libasound2t64 1.2.11-1ubuntu0.3
libavahi-client3 0.8-13ubuntu6.2
libavahi-common-data 0.8-13ubuntu6.2
libavahi-common3 0.8-13ubuntu6.2
libcommon-sense-perl 3.75-3build3
libcups2t64 2.4.7-1.2ubuntu7.14
libfontconfig1 2.15.0-1.1ubuntu2
libgraphite2-3 1.3.14-2ubuntu0.24.04.1
libharfbuzz0b 8.3.0-2build2
libjpeg-turbo8 2.1.5-2ubuntu2
libjpeg8 8c-2ubuntu11
libjson-perl 4.10000-1
libjson-xs-perl 4.040-0ubuntu0.24.04.1
liblcms2-2 2.14-2ubuntu0.1
libllvm17t64 1:17.0.6-9ubuntu1
libnspr4 2:4.35-1.1build1
libnss3 2:3.98-1ubuntu0.3
libpcsclite1 2.0.3-1build1
libpq5 16.15-0ubuntu0.24.04.1
libtypes-serialiser-perl 1.01-1
openjdk-21-jdk-headless 21.0.13.1+2-1~24.04.1
openjdk-21-jre-headless 21.0.13.1+2-1~24.04.1
postgresql 16+257build1.1
postgresql-16 16.15-0ubuntu0.24.04.1
postgresql-client-16 16.15-0ubuntu0.24.04.1
postgresql-client-common 257build1.1
postgresql-common 257build1.1
ssl-cert 1.1.2ubuntu1
unzip 6.0-28ubuntu4.1
Packages upgraded (0)
Packages removed (0)
Services enabled at boot (4)
dspace-ui.service
dspace.service
postgresql.service
ssl-cert.service
Services disabled (0)
Listening sockets opened (6)
tcp 127.0.0.1:4000 node
tcp 127.0.0.1:5432 postgres
tcp [::1]:5432 postgres
tcp [::ffff:127.0.0.1]:7983 java
tcp [::ffff:127.0.0.1]:8080 java
tcp [::ffff:127.0.0.1]:8983 java
Listening sockets closed (0)
Files added in /etc (391)
/etc/.java/.systemPrefs/.system.lock
/etc/.java/.systemPrefs/.systemRootModFile
/etc/alternatives/ABORT.7.gz
/etc/alternatives/ALTER_AGGREGATE.7.gz
/etc/alternatives/ALTER_COLLATION.7.gz
/etc/alternatives/ALTER_CONVERSION.7.gz
/etc/alternatives/ALTER_DATABASE.7.gz
/etc/alternatives/ALTER_DEFAULT_PRIVILEGES.7.gz
/etc/alternatives/ALTER_DOMAIN.7.gz
/etc/alternatives/ALTER_EVENT_TRIGGER.7.gz
/etc/alternatives/ALTER_EXTENSION.7.gz
/etc/alternatives/ALTER_FOREIGN_DATA_WRAPPER.7.gz
/etc/alternatives/ALTER_FOREIGN_TABLE.7.gz
/etc/alternatives/ALTER_FUNCTION.7.gz
/etc/alternatives/ALTER_GROUP.7.gz
/etc/alternatives/ALTER_INDEX.7.gz
/etc/alternatives/ALTER_LANGUAGE.7.gz
/etc/alternatives/ALTER_LARGE_OBJECT.7.gz
/etc/alternatives/ALTER_MATERIALIZED_VIEW.7.gz
/etc/alternatives/ALTER_OPERATOR.7.gz
/etc/alternatives/ALTER_OPERATOR_CLASS.7.gz
/etc/alternatives/ALTER_OPERATOR_FAMILY.7.gz
/etc/alternatives/ALTER_POLICY.7.gz
/etc/alternatives/ALTER_PROCEDURE.7.gz
/etc/alternatives/ALTER_PUBLICATION.7.gz
/etc/alternatives/ALTER_ROLE.7.gz
/etc/alternatives/ALTER_ROUTINE.7.gz
/etc/alternatives/ALTER_RULE.7.gz
/etc/alternatives/ALTER_SCHEMA.7.gz
/etc/alternatives/ALTER_SEQUENCE.7.gz
/etc/alternatives/ALTER_SERVER.7.gz
/etc/alternatives/ALTER_STATISTICS.7.gz
/etc/alternatives/ALTER_SUBSCRIPTION.7.gz
/etc/alternatives/ALTER_SYSTEM.7.gz
/etc/alternatives/ALTER_TABLE.7.gz
/etc/alternatives/ALTER_TABLESPACE.7.gz
/etc/alternatives/ALTER_TEXT_SEARCH_CONFIGURATION.7.gz
/etc/alternatives/ALTER_TEXT_SEARCH_DICTIONARY.7.gz
/etc/alternatives/ALTER_TEXT_SEARCH_PARSER.7.gz
/etc/alternatives/ALTER_TEXT_SEARCH_TEMPLATE.7.gz
/etc/alternatives/ALTER_TRIGGER.7.gz
/etc/alternatives/ALTER_TYPE.7.gz
/etc/alternatives/ALTER_USER.7.gz
/etc/alternatives/ALTER_USER_MAPPING.7.gz
/etc/alternatives/ALTER_VIEW.7.gz
/etc/alternatives/ANALYZE.7.gz
/etc/alternatives/BEGIN.7.gz
/etc/alternatives/CALL.7.gz
/etc/alternatives/CHECKPOINT.7.gz
/etc/alternatives/CLOSE.7.gz
/etc/alternatives/CLUSTER.7.gz
/etc/alternatives/COMMENT.7.gz
/etc/alternatives/COMMIT.7.gz
/etc/alternatives/COMMIT_PREPARED.7.gz
/etc/alternatives/COPY.7.gz
/etc/alternatives/CREATE_ACCESS_METHOD.7.gz
/etc/alternatives/CREATE_AGGREGATE.7.gz
/etc/alternatives/CREATE_CAST.7.gz
/etc/alternatives/CREATE_COLLATION.7.gz
/etc/alternatives/CREATE_CONVERSION.7.gz
/etc/alternatives/CREATE_DATABASE.7.gz
/etc/alternatives/CREATE_DOMAIN.7.gz
/etc/alternatives/CREATE_EVENT_TRIGGER.7.gz
/etc/alternatives/CREATE_EXTENSION.7.gz
/etc/alternatives/CREATE_FOREIGN_DATA_WRAPPER.7.gz
/etc/alternatives/CREATE_FOREIGN_TABLE.7.gz
/etc/alternatives/CREATE_FUNCTION.7.gz
/etc/alternatives/CREATE_GROUP.7.gz
/etc/alternatives/CREATE_INDEX.7.gz
/etc/alternatives/CREATE_LANGUAGE.7.gz
/etc/alternatives/CREATE_MATERIALIZED_VIEW.7.gz
/etc/alternatives/CREATE_OPERATOR.7.gz
/etc/alternatives/CREATE_OPERATOR_CLASS.7.gz
/etc/alternatives/CREATE_OPERATOR_FAMILY.7.gz
/etc/alternatives/CREATE_POLICY.7.gz
/etc/alternatives/CREATE_PROCEDURE.7.gz
/etc/alternatives/CREATE_PUBLICATION.7.gz
/etc/alternatives/CREATE_ROLE.7.gz
/etc/alternatives/CREATE_RULE.7.gz
/etc/alternatives/CREATE_SCHEMA.7.gz
/etc/alternatives/CREATE_SEQUENCE.7.gz
/etc/alternatives/CREATE_SERVER.7.gz
/etc/alternatives/CREATE_STATISTICS.7.gz
/etc/alternatives/CREATE_SUBSCRIPTION.7.gz
/etc/alternatives/CREATE_TABLE.7.gz
/etc/alternatives/CREATE_TABLESPACE.7.gz
/etc/alternatives/CREATE_TABLE_AS.7.gz
/etc/alternatives/CREATE_TEXT_SEARCH_CONFIGURATION.7.gz
/etc/alternatives/CREATE_TEXT_SEARCH_DICTIONARY.7.gz
/etc/alternatives/CREATE_TEXT_SEARCH_PARSER.7.gz
/etc/alternatives/CREATE_TEXT_SEARCH_TEMPLATE.7.gz
/etc/alternatives/CREATE_TRANSFORM.7.gz
/etc/alternatives/CREATE_TRIGGER.7.gz
/etc/alternatives/CREATE_TYPE.7.gz
/etc/alternatives/CREATE_USER.7.gz
/etc/alternatives/CREATE_USER_MAPPING.7.gz
/etc/alternatives/CREATE_VIEW.7.gz
/etc/alternatives/DEALLOCATE.7.gz
/etc/alternatives/DECLARE.7.gz
/etc/alternatives/DELETE.7.gz
/etc/alternatives/DISCARD.7.gz
/etc/alternatives/DO.7.gz
/etc/alternatives/DROP_ACCESS_METHOD.7.gz
/etc/alternatives/DROP_AGGREGATE.7.gz
/etc/alternatives/DROP_CAST.7.gz
/etc/alternatives/DROP_COLLATION.7.gz
/etc/alternatives/DROP_CONVERSION.7.gz
/etc/alternatives/DROP_DATABASE.7.gz
/etc/alternatives/DROP_DOMAIN.7.gz
/etc/alternatives/DROP_EVENT_TRIGGER.7.gz
/etc/alternatives/DROP_EXTENSION.7.gz
/etc/alternatives/DROP_FOREIGN_DATA_WRAPPER.7.gz
/etc/alternatives/DROP_FOREIGN_TABLE.7.gz
/etc/alternatives/DROP_FUNCTION.7.gz
/etc/alternatives/DROP_GROUP.7.gz
/etc/alternatives/DROP_INDEX.7.gz
/etc/alternatives/DROP_LANGUAGE.7.gz
/etc/alternatives/DROP_MATERIALIZED_VIEW.7.gz
/etc/alternatives/DROP_OPERATOR.7.gz
/etc/alternatives/DROP_OPERATOR_CLASS.7.gz
/etc/alternatives/DROP_OPERATOR_FAMILY.7.gz
/etc/alternatives/DROP_OWNED.7.gz
/etc/alternatives/DROP_POLICY.7.gz
/etc/alternatives/DROP_PROCEDURE.7.gz
/etc/alternatives/DROP_PUBLICATION.7.gz
/etc/alternatives/DROP_ROLE.7.gz
/etc/alternatives/DROP_ROUTINE.7.gz
/etc/alternatives/DROP_RULE.7.gz
/etc/alternatives/DROP_SCHEMA.7.gz
/etc/alternatives/DROP_SEQUENCE.7.gz
/etc/alternatives/DROP_SERVER.7.gz
/etc/alternatives/DROP_STATISTICS.7.gz
/etc/alternatives/DROP_SUBSCRIPTION.7.gz
/etc/alternatives/DROP_TABLE.7.gz
/etc/alternatives/DROP_TABLESPACE.7.gz
/etc/alternatives/DROP_TEXT_SEARCH_CONFIGURATION.7.gz
/etc/alternatives/DROP_TEXT_SEARCH_DICTIONARY.7.gz
/etc/alternatives/DROP_TEXT_SEARCH_PARSER.7.gz
/etc/alternatives/DROP_TEXT_SEARCH_TEMPLATE.7.gz
/etc/alternatives/DROP_TRANSFORM.7.gz
/etc/alternatives/DROP_TRIGGER.7.gz
/etc/alternatives/DROP_TYPE.7.gz
/etc/alternatives/DROP_USER.7.gz
/etc/alternatives/DROP_USER_MAPPING.7.gz
/etc/alternatives/DROP_VIEW.7.gz
/etc/alternatives/END.7.gz
/etc/alternatives/EXECUTE.7.gz
/etc/alternatives/EXPLAIN.7.gz
/etc/alternatives/FETCH.7.gz
/etc/alternatives/GRANT.7.gz
/etc/alternatives/IMPORT_FOREIGN_SCHEMA.7.gz
/etc/alternatives/INSERT.7.gz
/etc/alternatives/LISTEN.7.gz
/etc/alternatives/LOAD.7.gz
/etc/alternatives/LOCK.7.gz
/etc/alternatives/MERGE.7.gz
/etc/alternatives/MOVE.7.gz
/etc/alternatives/NOTIFY.7.gz
/etc/alternatives/PREPARE.7.gz
/etc/alternatives/PREPARE_TRANSACTION.7.gz
/etc/alternatives/REASSIGN_OWNED.7.gz
/etc/alternatives/REFRESH_MATERIALIZED_VIEW.7.gz
/etc/alternatives/REINDEX.7.gz
/etc/alternatives/RELEASE_SAVEPOINT.7.gz
/etc/alternatives/RESET.7.gz
/etc/alternatives/REVOKE.7.gz
/etc/alternatives/ROLLBACK.7.gz
/etc/alternatives/ROLLBACK_PREPARED.7.gz
/etc/alternatives/ROLLBACK_TO_SAVEPOINT.7.gz
/etc/alternatives/SAVEPOINT.7.gz
/etc/alternatives/SECURITY_LABEL.7.gz
/etc/alternatives/SELECT.7.gz
/etc/alternatives/SELECT_INTO.7.gz
/etc/alternatives/SET.7.gz
/etc/alternatives/SET_CONSTRAINTS.7.gz
/etc/alternatives/SET_ROLE.7.gz
/etc/alternatives/SET_SESSION_AUTHORIZATION.7.gz
/etc/alternatives/SET_TRANSACTION.7.gz
/etc/alternatives/SHOW.7.gz
/etc/alternatives/START_TRANSACTION.7.gz
/etc/alternatives/TABLE.7.gz
/etc/alternatives/TRUNCATE.7.gz
/etc/alternatives/UNLISTEN.7.gz
/etc/alternatives/UPDATE.7.gz
/etc/alternatives/VACUUM.7.gz
/etc/alternatives/VALUES.7.gz
/etc/alternatives/WITH.7.gz
/etc/alternatives/clusterdb.1.gz
/etc/alternatives/createdb.1.gz
/etc/alternatives/createuser.1.gz
/etc/alternatives/dropdb.1.gz
/etc/alternatives/dropuser.1.gz
/etc/alternatives/initdb.1.gz
/etc/alternatives/jar
/etc/alternatives/jar.1.gz
/etc/alternatives/jarsigner
/etc/alternatives/jarsigner.1.gz
/etc/alternatives/java
/etc/alternatives/java.1.gz
/etc/alternatives/javac
/etc/alternatives/javac.1.gz
/etc/alternatives/javadoc
/etc/alternatives/javadoc.1.gz
/etc/alternatives/javap
/etc/alternatives/javap.1.gz
/etc/alternatives/jcmd
/etc/alternatives/jcmd.1.gz
/etc/alternatives/jdb
/etc/alternatives/jdb.1.gz
/etc/alternatives/jdeprscan
/etc/alternatives/jdeprscan.1.gz
/etc/alternatives/jdeps
/etc/alternatives/jdeps.1.gz
/etc/alternatives/jexec
/etc/alternatives/jexec-binfmt
/etc/alternatives/jfr
/etc/alternatives/jfr.1.gz
/etc/alternatives/jhsdb
/etc/alternatives/jhsdb.1.gz
/etc/alternatives/jimage
/etc/alternatives/jinfo
/etc/alternatives/jinfo.1.gz
/etc/alternatives/jlink
/etc/alternatives/jlink.1.gz
/etc/alternatives/jmap
/etc/alternatives/jmap.1.gz
/etc/alternatives/jmod
/etc/alternatives/jmod.1.gz
/etc/alternatives/jpackage
/etc/alternatives/jpackage.1.gz
/etc/alternatives/jps
/etc/alternatives/jps.1.gz
/etc/alternatives/jrunscript
/etc/alternatives/jrunscript.1.gz
/etc/alternatives/jshell
/etc/alternatives/jshell.1.gz
/etc/alternatives/jstack
/etc/alternatives/jstack.1.gz
/etc/alternatives/jstat
/etc/alternatives/jstat.1.gz
/etc/alternatives/jstatd
/etc/alternatives/jstatd.1.gz
/etc/alternatives/jwebserver
/etc/alternatives/jwebserver.1.gz
/etc/alternatives/keytool
/etc/alternatives/keytool.1.gz
/etc/alternatives/oid2name.1.gz
/etc/alternatives/pg_amcheck.1.gz
/etc/alternatives/pg_archivecleanup.1.gz
/etc/alternatives/pg_basebackup.1.gz
/etc/alternatives/pg_checksums.1.gz
/etc/alternatives/pg_controldata.1.gz
/etc/alternatives/pg_ctl.1.gz
/etc/alternatives/pg_dump.1.gz
/etc/alternatives/pg_dumpall.1.gz
/etc/alternatives/pg_isready.1.gz
/etc/alternatives/pg_receivewal.1.gz
/etc/alternatives/pg_recvlogical.1.gz
/etc/alternatives/pg_resetwal.1.gz
/etc/alternatives/pg_restore.1.gz
/etc/alternatives/pg_rewind.1.gz
/etc/alternatives/pg_test_fsync.1.gz
/etc/alternatives/pg_test_timing.1.gz
/etc/alternatives/pg_upgrade.1.gz
/etc/alternatives/pg_verifybackup.1.gz
/etc/alternatives/pg_waldump.1.gz
/etc/alternatives/pgbench.1.gz
/etc/alternatives/postgres.1.gz
/etc/alternatives/psql.1.gz
/etc/alternatives/reindexdb.1.gz
/etc/alternatives/rmiregistry
/etc/alternatives/rmiregistry.1.gz
/etc/alternatives/serialver
/etc/alternatives/serialver.1.gz
/etc/alternatives/vacuumdb.1.gz
/etc/alternatives/vacuumlo.1.gz
/etc/apt/apt.conf.d/02autoremove-postgresql
/etc/ca-certificates/update.d/jks-keystore
/etc/default/cacerts
/etc/default/solr.in.sh
/etc/fonts/conf.avail/20-unhint-small-dejavu-lgc-sans-mono.conf
/etc/fonts/conf.avail/20-unhint-small-dejavu-lgc-sans.conf
/etc/fonts/conf.avail/20-unhint-small-dejavu-lgc-serif.conf
/etc/fonts/conf.avail/20-unhint-small-dejavu-sans-mono.conf
/etc/fonts/conf.avail/20-unhint-small-dejavu-sans.conf
/etc/fonts/conf.avail/20-unhint-small-dejavu-serif.conf
/etc/fonts/conf.avail/57-dejavu-sans-mono.conf
/etc/fonts/conf.avail/57-dejavu-sans.conf
/etc/fonts/conf.avail/57-dejavu-serif.conf
/etc/fonts/conf.avail/58-dejavu-lgc-sans-mono.conf
/etc/fonts/conf.avail/58-dejavu-lgc-sans.conf
/etc/fonts/conf.avail/58-dejavu-lgc-serif.conf
/etc/fonts/conf.d/10-hinting-slight.conf
/etc/fonts/conf.d/10-scale-bitmap-fonts.conf
/etc/fonts/conf.d/10-sub-pixel-rgb.conf
/etc/fonts/conf.d/10-yes-antialias.conf
/etc/fonts/conf.d/11-lcdfilter-default.conf
/etc/fonts/conf.d/20-unhint-small-dejavu-lgc-sans-mono.conf
/etc/fonts/conf.d/20-unhint-small-dejavu-lgc-sans.conf
/etc/fonts/conf.d/20-unhint-small-dejavu-lgc-serif.conf
/etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf
/etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf
/etc/fonts/conf.d/20-unhint-small-dejavu-serif.conf
/etc/fonts/conf.d/20-unhint-small-vera.conf
/etc/fonts/conf.d/30-metric-aliases.conf
/etc/fonts/conf.d/40-nonlatin.conf
/etc/fonts/conf.d/45-generic.conf
/etc/fonts/conf.d/45-latin.conf
/etc/fonts/conf.d/48-spacing.conf
/etc/fonts/conf.d/49-sansserif.conf
/etc/fonts/conf.d/50-user.conf
/etc/fonts/conf.d/51-local.conf
/etc/fonts/conf.d/57-dejavu-sans-mono.conf
/etc/fonts/conf.d/57-dejavu-sans.conf
/etc/fonts/conf.d/57-dejavu-serif.conf
/etc/fonts/conf.d/58-dejavu-lgc-sans-mono.conf
/etc/fonts/conf.d/58-dejavu-lgc-sans.conf
/etc/fonts/conf.d/58-dejavu-lgc-serif.conf
/etc/fonts/conf.d/60-generic.conf
/etc/fonts/conf.d/60-latin.conf
/etc/fonts/conf.d/65-fonts-persian.conf
/etc/fonts/conf.d/65-nonlatin.conf
/etc/fonts/conf.d/69-unifont.conf
/etc/fonts/conf.d/70-no-bitmaps-except-emoji.conf
/etc/fonts/conf.d/80-delicious.conf
/etc/fonts/conf.d/90-synthetic.conf
/etc/fonts/conf.d/README
/etc/fonts/fonts.conf
/etc/init.d/postgresql
/etc/init.d/solr
/etc/java-21-openjdk/accessibility.properties
/etc/java-21-openjdk/jaxp.properties
/etc/java-21-openjdk/jfr/default.jfc
/etc/java-21-openjdk/jfr/profile.jfc
/etc/java-21-openjdk/jvm-amd64.cfg
/etc/java-21-openjdk/logging.properties
/etc/java-21-openjdk/management/jmxremote.access
/etc/java-21-openjdk/management/management.properties
/etc/java-21-openjdk/net.properties
/etc/java-21-openjdk/psfont.properties.ja
/etc/java-21-openjdk/psfontj2d.properties
/etc/java-21-openjdk/security/blocked.certs
/etc/java-21-openjdk/security/default.policy
/etc/java-21-openjdk/security/java.policy
/etc/java-21-openjdk/security/java.security
/etc/java-21-openjdk/security/nss.cfg
/etc/java-21-openjdk/security/policy/README.txt
/etc/java-21-openjdk/security/policy/limited/default_US_export.policy
/etc/java-21-openjdk/security/policy/limited/default_local.policy
/etc/java-21-openjdk/security/policy/limited/exempt_local.policy
/etc/java-21-openjdk/security/policy/unlimited/default_US_export.policy
/etc/java-21-openjdk/security/policy/unlimited/default_local.policy
/etc/java-21-openjdk/security/public_suffix_list.dat
/etc/java-21-openjdk/sound.properties
/etc/java-21-openjdk/swing.properties
/etc/logrotate.d/postgresql-common
/etc/postgresql-common/createcluster.conf
/etc/postgresql-common/pg_upgradecluster.d/analyze
/etc/postgresql-common/root.crt
/etc/postgresql-common/supported_versions
/etc/postgresql-common/user_clusters
/etc/postgresql/16/main/environment
/etc/postgresql/16/main/pg_ctl.conf
/etc/postgresql/16/main/pg_hba.conf
/etc/postgresql/16/main/pg_ident.conf
/etc/postgresql/16/main/postgresql.conf
/etc/postgresql/16/main/start.conf
/etc/rc0.d/K01postgresql
/etc/rc0.d/K01solr
/etc/rc1.d/K01postgresql
/etc/rc1.d/K01solr
/etc/rc2.d/S01postgresql
/etc/rc2.d/S01solr
/etc/rc3.d/S01postgresql
/etc/rc3.d/S01solr
/etc/rc4.d/S01postgresql
/etc/rc4.d/S01solr
/etc/rc5.d/S01postgresql
/etc/rc5.d/S01solr
/etc/rc6.d/K01postgresql
/etc/rc6.d/K01solr
/etc/ssl/certs/e45582bc.0
/etc/ssl/certs/java/cacerts
/etc/ssl/certs/ssl-cert-snakeoil.pem
/etc/ssl/private/ssl-cert-snakeoil.key
/etc/systemd/system/dspace-ui.service
/etc/systemd/system/dspace.service
/etc/systemd/system/multi-user.target.wants/dspace-ui.service
/etc/systemd/system/multi-user.target.wants/dspace.service
/etc/systemd/system/multi-user.target.wants/postgresql.service
/etc/systemd/system/multi-user.target.wants/ssl-cert.service
Files changed in /etc (9)
/etc/group
/etc/group-
/etc/gshadow
/etc/gshadow-
/etc/ld.so.cache
/etc/passwd
/etc/passwd-
/etc/shadow
/etc/shadow-
Files removed from /etc (0)
Disk used on / (includes logs written during the run): +7393.1 MB
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Check-your-server script (4 items): https://cdn.serverhandbook.com/check/install-dspace-ubuntu/ubuntu-24.04.5-20261120t025820z.sh
SHA-256 b0d63616247714135f87de3d728cce028e66c20b5a4a5366ad8e09e5f7b81b02
------------------------------------------------------------------------------
On the stock server, before the first step:
FAIL the REST API answers: DSpace 10
FAIL the web interface answers on localhost:4000
FAIL postgresql, solr, dspace and dspace-ui are running
FAIL Solr, the backend and the web interface listen on localhost only
After the last step:
PASS the REST API answers: DSpace 10
PASS the web interface answers on localhost:4000
PASS postgresql, solr, dspace and dspace-ui are running
PASS Solr, the backend and the web interface listen on localhost only
------------------------------------------------------------------------------
Claims (57), each with what the run saw
------------------------------------------------------------------------------
1. ok a bare Ubuntu 24.04 server box (web-server) starts
2. ok apt update reads the package lists
| 50 https://mirror.hetzner.com/ubuntu/security noble-security/multiverse amd64 c-n-f Metadata [468 B]
| Fetched 36.0 MB in 3s (10.7 MB/s)
| Reading package lists... Done
| Building dependency tree... Done
| Reading state information... Done
| 2 packages can be upgraded. Run 'apt list --upgradable' to see them.
3. ok apt installs Java 21, Ant and git
| r/lib/jvm/java-21-openjdk-amd64/bin/serialver to provide /usr/bin/serialver (serialver) in auto mode
| update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jhsdb to provide /usr/bin/jhsdb (jhsdb) in auto mode
| Setting up ant-optional (1.10.14-1) ...
| Processing triggers for libc-bin (2.39-0ubuntu8.12) ...
|
| Scanning processes...
| Scanning linux images...
|
| Running kernel seems to be up-to-date.
|
| No services need to be restarted.
|
| No containers need to be restarted.
|
| No user sessions are running outdated binaries.
|
| No VM guests are running outdated hypervisor (qemu) binaries on this host.
4. ok 24.04's archive has Maven 3.8 and Node 18: too old for DSpace 10
| maven:
| Candidate: 3.8.7-2
| nodejs:
| Candidate: 18.19.1+dfsg-6ubuntu5
5. ok Maven 3.9.12 binary downloads, its SHA-512 matches, and mvn is on the PATH
| apache-maven-3.9.12-bin.tar.gz: OK
6. ok Node 22.22.1 binary downloads, its SHA-256 matches, and node/npm are on the PATH
| node-v22.22.1-linux-x64.tar.xz: OK
7. ok Java 21, Maven 3.9, Ant 1.10, Node 22 and npm all answer
| openjdk version "21.0.13.1" 2026-11-17
| Apache Maven 3.9.12 (848fbb4bf2d427b72bdb2471c22fced7ebd9a7a1)
| Apache Ant(TM) version 1.10.14 compiled on September 25 2023
| v22.22.1
| 10.9.4
8. ok PostgreSQL 16 installs
| ime zone ... Etc/UTC
| creating configuration files ... ok
| running bootstrap script ... ok
| performing post-bootstrap initialization ... ok
| syncing data to disk ... ok
| Setting up postgresql (16+257build1.1) ...
| Processing triggers for man-db (2.12.0-4build2) ...
| Processing triggers for libc-bin (2.39-0ubuntu8.12) ...
|
| Scanning processes...
| Scanning linux images...
|
| Running kernel seems to be up-to-date.
|
| No services need to be restarted.
|
| No containers need to be restarted.
|
| No user sessions are running outdated binaries.
|
| No VM guests are running outdated hypervisor (qemu) binaries on this host.
9. ok the 16 cluster "main" is online on 5432
| Ver Cluster Port Status Owner Data directory Log file
| 16 main 5432 online postgres /var/lib/postgresql/16/main /var/log/postgresql/postgresql-16-main.log
10. ok role dspace and database dspace (UTF8, owner dspace) exist
| CREATE ROLE
| List of databases
| Name | Owner | Encoding | Locale Provider | Collate | Ctype | ICU Locale | ICU Rules | Access privileges
| --------+--------+----------+-----------------+-------------+-------------+------------+-----------+-------------------
| dspace | dspace | UTF8 | libc | en_US.UTF-8 | en_US.UTF-8 | | |
| (1 row)
11. ok the dspace user, /home/dspace and /dspace exist, owned by dspace
| drwxr-xr-x 2 dspace dspace 4096 Nov 20 03:00 /dspace
| drwxr-x--- 2 dspace dspace 4096 Nov 20 03:00 /home/dspace
12. ok 24.04: the sudo user cannot read /home/dspace (home mode 750): Permission denied
| ls: cannot open directory '/home/dspace': Permission denied
13. ok HOME_MODE and the real mode of /home/dspace
| HOME_MODE 0750
| 750 dspace /home/dspace
14. ok Solr 9.11.0 downloads and its SHA-512 matches
| solr-9.11.0.tgz: OK
15. ok the Solr install script creates the service (not started: -n)
| .
| info: Adding new group `solr' (GID 112) ...
| info: Adding new user `solr' (UID 110) with group `solr' ...
| info: Creating home directory `/var/solr' ...
|
| Extracting solr-9.11.0.tgz to /opt
|
|
| Installing symlink /opt/solr -> /opt/solr-9.11.0 ...
|
|
| Installing /etc/init.d/solr script ...
|
|
| Installing /etc/default/solr.in.sh ...
|
| Service solr installed.
| Customize Solr startup configuration in /etc/default/solr.in.sh
| Not starting Solr service (option -n given). Start manually with 'service solr start'
16. ok the two Solr settings are written and Solr starts
| SOLR_OPTS="$SOLR_OPTS -Dsolr.config.lib.enabled=true"
| SOLR_JETTY_HOST="127.0.0.1"
17. ok Solr answers on 127.0.0.1:8983
18. ok Solr listens on 127.0.0.1 only
| LISTEN 0 50 [::ffff:127.0.0.1]:8983 *:* users:(("java",pid=6758,fd=47))
19. ok the DSpace 10.1 source unpacks to src/DSpace-dspace-10.1
| DSpace-dspace-10.1
20. ok local.cfg: /dspace, http://localhost:8080/server, http://localhost:4000, Solr on localhost, db user dspace
| dspace.dir=/dspace
| dspace.server.url = http://localhost:8080/server
| dspace.ui.url = http://localhost:4000
| dspace.name = DSpace at My University
| db.url = jdbc:postgresql://localhost:5432/dspace
| db.username = dspace
| db.password = [password]
21. ok mvn package: BUILD SUCCESS
| [INFO] DSpace SAML 2 ...................................... SUCCESS [ 12.960 s]
| [INFO] DSpace RDF ......................................... SUCCESS [ 2.153 s]
| [INFO] DSpace SWORD ....................................... SUCCESS [ 4.528 s]
| [INFO] DSpace SWORD v2 .................................... SUCCESS [ 4.388 s]
| [INFO] DSpace Server Webapp ............................... SUCCESS [ 52.294 s]
| [INFO] DSpace Server Webapp:: Tomcat deployable WAR ....... SUCCESS [ 8.817 s]
| [INFO] DSpace Server Webapp:: Executable JAR .............. SUCCESS [ 3.111 s]
| [INFO] DSpace Assembly and Configuration .................. SUCCESS [ 4.077 s]
| [INFO] ------------------------------------------------------------------------
| [INFO] BUILD SUCCESS
| [INFO] ------------------------------------------------------------------------
| [INFO] Total time: 03:14 min
| [INFO] Finished at: 2026-11-20T03:04:34Z
| [INFO] ------------------------------------------------------------------------
|
| real 3m14.875s
| user 6m48.711s
| sys 0m19.375s
22. ok ant fresh_install: BUILD SUCCESSFUL
| [echo]
| [echo] /dspace/bin/dspace create-administrator
| [echo]
| [echo] You should then be able to access your DSpace's REST API:
| [echo]
| [echo] http://localhost:8080/server
| [echo]
| [echo] ====================================================================
| [echo]
|
| BUILD SUCCESSFUL
| Total time: 6 seconds
23. ok database migrate runs, database info lists the migrations as Success
| Database URL: jdbc:postgresql://localhost:5432/dspace
| Migrating database to latest version... (Check dspace logs for details)
| Done.
| | Versioned | 8.0.2023.08.07 | qaevent processed | SQL | 2026-11-20 03:04:56 | Success | No |
| | Versioned | 8.0.2024.02.14 | ldn tables | SQL | 2026-11-20 03:04:56 | Success | No |
| | Versioned | 8.4.2026.03.28 | Fix-bundle2bitstream-with-deleted-bitstreams | SQL | 2026-11-20 03:04:56 | Success | No |
| | Versioned | 9.0.2024.11.09 | ldn service external actor | SQL | 2026-11-20 03:04:56 | Success | No |
| | Versioned | 9.0.2025.02.13 | add access colums to requestitem table | SQL | 2026-11-20 03:04:56 | Success | No |
| | Versioned | 9.0.2025.03.12 | registration data | SQL | 2026-11-20 03:04:56 | Success | No |
| | Versioned | 10.0.2026.01.07 | create table items for update | SQL | 2026-11-20 03:04:56 | Success | No |
| | Versioned | 10.0.2026.02.18 | add columns security level metadata value | SQL | 2026-11-20 03:04:56 | Success | No |
| +-----------+-----------------+------------------------------------------------------------------+----------+---------------------+----------+----------+
24. ok the seven Solr cores are copied and Solr restarts
25. ok Solr is back after the restart
26. ok Solr lists audit, authority, oai, qaevent, search, statistics and suggestion
| ['audit', 'authority', 'oai', 'qaevent', 'search', 'statistics', 'suggestion']
27. ok the backend unit file is written
28. ok the backend unit is enabled and started
| Created symlink /etc/systemd/system/multi-user.target.wants/dspace.service → /etc/systemd/system/dspace.service.
29. ok the backend answers on 127.0.0.1:8080 within 5 minutes
30. ok the REST root says DSpace 10.1
| "dspaceVersion" : "DSpace 10.1"
31. ok OAI-PMH Identify answers (it needs the oai Solr core)
| DSpace at My University
| 2.0
32. ok without a terminal, create-administrator fails with the Console NullPointerException
| Creating an initial administrator account
| E-mail address: Exception: Cannot invoke "java.io.Console.readLine()" because "console" is null
| java.lang.NullPointerException: Cannot invoke "java.io.Console.readLine()" because "console" is null
| at org.dspace.administer.CreateAdministrator.negotiateAdministratorDetails(CreateAdministrator.java:159)
| at org.dspace.administer.CreateAdministrator.main(CreateAdministrator.java:107)
| at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
| at java.base/java.lang.reflect.Method.invoke(Method.java:580)
| at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:304)
| at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:154)
| at org.dspace.app.launcher.ScriptLauncher
33. ok create-administrator on a terminal: Administrator account created
| Creating an initial administrator account
| E-mail address: admin@repo.test
| First name: Ada
| Last name: Admin
| Is the above data correct? (y or n): y
| Password will not display on screen.
| Password:
| Again to confirm:
| Administrator account created
34. ok the UI source unpacks and npm ci finishes without an error
| added 1750 packages, and audited 1753 packages in 1m
|
| 397 packages are looking for funding
| run `npm fund` for details
|
| 76 vulnerabilities (2 low, 50 moderate, 19 high, 5 critical)
|
| To address issues that do not require attention, run:
| npm audit fix
|
| To address all issues (including breaking changes), run:
| npm audit fix --force
|
| Run `npm audit` for details.
| npm notice
| npm notice New major version of npm available! 10.9.4 -> 12.2.3
| npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.3
| npm notice To update run: npm install -g npm@12.2.3
| npm notice
|
| real 1m3.465s
| user 1m5.356s
| sys 0m14.244s
35. ok npm run build:prod with Node's default memory: JavaScript heap out of memory
| FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
36. ok with a 4 GB heap and no swap on 8 GB, the build is killed
| Warning: /home/dspace/src/dspace-angular-dspace-10.1/src/themes/custom/lazy-listable-components.ts is part of the TypeScript compilation but it's unused.
| Add only entry points to the 'files' or 'include' properties in your tsconfig.
|
| Warning: bundle initial exceeded maximum budget. Budget 3.00 MB was not met by 466.47 kB with a total of 3.47 MB.
|
|
| - Generating server application bundles (phase: setup)...
| Killed
|
| real 6m5.931s
| user 10m46.636s
| sys 0m23.857s
37. ok the kernel log says the OOM killer ended "ng run"
| [ 1095.950666] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/session-58.scope,ta
| [ 1095.950730] Out of memory: Killed process 10052 (ng run dspace-a) total-vm:50346284kB, anon-rss:5489180kB, file-rss:2928kB, shmem-rss:0kB, UID:999 pgtables:1
38. ok a 4 GB swap file is on
| Setting up swapspace version 1, size = 4 GiB (4294963200 bytes)
| no label, UUID=ede5d980-bc62-4557-9929-ac4fd23860dd
| NAME TYPE SIZE USED PRIO
| /swapfile file 4G 0B -2
39. ok with a 4 GB heap and 4 GB swap the build finishes
| Warning: /home/dspace/src/dspace-angular-dspace-10.1/src/themes/custom/eager-theme-components.ts is part of the TypeScript compilation but it's unused.
| Add only entry points to the 'files' or 'include' properties in your tsconfig.
|
| Warning: /home/dspace/src/dspace-angular-dspace-10.1/src/themes/custom/lazy-listable-components.ts is part of the TypeScript compilation but it's unused.
| Add only entry points to the 'files' or 'include' properties in your tsconfig.
|
|
|
| real 3m41.152s
| user 6m27.900s
| sys 0m19.790s
40. ok swap is removed again after the build
| total used free shared buff/cache available
| Mem: 7745 2032 5244 35 760 5713
| Swap: 0 0 0
41. ok dist is copied to ~/ui and config.prod.yml is written
42. ok npm run test:rest: 200, DSpace 10.1, the rest settings match, HAL links
| Overriding app config with /home/dspace/src/dspace-angular-dspace-10.1/config/config.yml
| Overriding app config with /home/dspace/src/dspace-angular-dspace-10.1/config/config.prod.yml
| ...Testing connection to REST API at http://localhost:8080/server/api...
|
| RESPONSE: 200
|
| Checking JSON returned for validity...
| "dspaceVersion" = DSpace 10.1
| "dspaceUI" = http://localhost:4000
| "dspaceServer" = http://localhost:8080/server
| "dspaceServer" property matches UI's "rest" config? true
| Does "/api" endpoint have HAL links ("_links" section)? true
43. ok the UI unit file is written
44. ok the UI unit is enabled and started
| Created symlink /etc/systemd/system/multi-user.target.wants/dspace-ui.service → /etc/systemd/system/dspace-ui.service.
45. ok the UI answers on 127.0.0.1:4000
46. ok the home page is "DSpace Repository :: Home"
|
DSpace Repository :: Home
47. ok the server answers over SSH again after the reboot
48. ok all four services come back by themselves
49. ok the UI answers again
50. ok postgresql, solr, dspace and dspace-ui are active after the reboot
| active
| active
| active
| active
51. ok only SSH (port 22) listens on the public address; 4000, 8080, 8983 and 5432 are localhost
| Local Peer
| 127.0.0.1:5432 users:(("postgres",pid=894,fd=7))
| 0.0.0.0:22 users:(("sshd",pid=1218,fd=3),("systemd",pid=1,fd=94))
| 127.0.0.1:4000 users:(("node",pid=1093,fd=21))
| [::1]:5432 users:(("postgres",pid=894,fd=6))
| [::ffff:127.0.0.1]:8983 users:(("java",pid=1017,fd=47))
| [::]:22 users:(("sshd",pid=1218,fd=4),("systemd",pid=1,fd=95))
| [::ffff:127.0.0.1]:8080 users:(("java",pid=1092,fd=13))
52. ok memory after the reboot is read from the box
| total used free shared buff/cache available
| Mem: 7745 1975 5508 21 521 5769
| Swap: 0 0 0
| RSS COMMAND
| 784152 /usr/bin/java -Xmx2g -Dfile.encoding=UTF-8 -jar /dspace/webapps/server-boot.jar --s
| 751748 java -server -Xms512m -Xmx512m -XX:+UseG1GC -XX:+PerfDisableSharedMem -XX:+Parallel
| 133168 /usr/local/bin/node dist/server/main.js
53. ok (browser, through ssh -L 4000 -L 8080) the home page opens: "DSpace Repository :: Home"
| DSpace Repository :: Home
54. ok (browser) the login page shows the email and password fields
55. ok (browser) signing in as the administrator works (the page leaves /login and the header no longer offers Log In)
| http://localhost:4000/info/end-user-agreement?redirect=%252Fhome
| home.png
| login.png
| signed-in.png
56. ok (browser) the first sign-in lands on the End User Agreement page
| http://localhost:4000/info/end-user-agreement?redirect=%252Fhome
57. ok (tested on) the box reports its OS, kernel and the version of 7 package(s)
| PRETTY_NAME="Ubuntu 24.04.5 LTS"
| VIRT=none
| KERNEL=6.8.0-149-generic
| PKG ant 1.10.14-1
| PKG openjdk-21-jdk-headless 21.0.13.1+2-1~24.04.1
| PKG postgresql-16 16.15-0ubuntu0.24.04.1
| dspace: DSpace version: 10.1
| solr: /opt/solr-9.11.0
| maven: Apache Maven 3.9.12 (848fbb4bf2d427b72bdb2471c22fced7ebd9a7a1)
| nodejs: v22.22.1
------------------------------------------------------------------------------
Commands and what they printed (44)
------------------------------------------------------------------------------
$ sudo apt update
Get:1 https://mirror.hetzner.com/ubuntu/packages noble InRelease [256 kB]
Get:2 https://mirror.hetzner.com/ubuntu/packages noble-updates InRelease [126 kB]
Get:3 https://mirror.hetzner.com/ubuntu/packages noble-backports InRelease [126 kB]
Get:4 https://mirror.hetzner.com/ubuntu/security noble-security InRelease [126 kB]
Get:5 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 Packages [1,401 kB]
Get:6 https://mirror.hetzner.com/ubuntu/packages noble/main Translation-en [513 kB]
Get:7 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 c-n-f Metadata [30.5 kB]
Get:8 https://mirror.hetzner.com/ubuntu/packages noble/universe amd64 Packages [15.0 MB]
Get:9 https://mirror.hetzner.com/ubuntu/packages noble/universe Translation-en [5,982 kB]
Get:10 https://mirror.hetzner.com/ubuntu/packages noble/universe amd64 c-n-f Metadata [301 kB]
Get:11 https://mirror.hetzner.com/ubuntu/packages noble/restricted amd64 Packages [93.9 kB]
Get:12 https://mirror.hetzner.com/ubuntu/packages noble/restricted Translation-en [18.7 kB]
Get:13 https://mirror.hetzner.com/ubuntu/packages noble/restricted amd64 c-n-f Metadata [416 B]
Get:14 https://mirror.hetzner.com/ubuntu/packages noble/multiverse amd64 Packages [269 kB]
Get:15 https://mirror.hetzner.com/ubuntu/packages noble/multiverse Translation-en [118 kB]
Get:16 https://mirror.hetzner.com/ubuntu/packages noble/multiverse amd64 c-n-f Metadata [8,328 B]
Get:17 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 Packages [1,456 kB]
Get:18 https://mirror.hetzner.com/ubuntu/packages noble-updates/main Translation-en [317 kB]
Get:19 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 c-n-f Metadata [17.7 kB]
Get:20 https://mirror.hetzner.com/ubuntu/packages noble-updates/universe amd64 Packages [1,716 kB]
Get:21 https://mirror.hetzner.com/ubuntu/packages noble-updates/universe Translation-en [346 kB]
Get:22 https://mirror.hetzner.com/ubuntu/packages noble-updates/universe amd64 c-n-f Metadata [34.9 kB]
Get:23 https://mirror.hetzner.com/ubuntu/packages noble-updates/restricted amd64 Packages [1,887 kB]
Get:24 https://mirror.hetzner.com/ubuntu/packages noble-updates/restricted Translation-en [433 kB]
Get:25 https://mirror.hetzner.com/ubuntu/packages noble-updates/restricted amd64 c-n-f Metadata [456 B]
Get:26 https://mirror.hetzner.com/ubuntu/packages noble-updates/multiverse amd64 Packages [50.7 kB]
Get:27 https://mirror.hetzner.com/ubuntu/packages noble-updates/multiverse Translation-en [14.6 kB]
Get:28 https://mirror.hetzner.com/ubuntu/packages noble-updates/multiverse amd64 c-n-f Metadata [656 B]
Get:29 https://mirror.hetzner.com/ubuntu/packages noble-backports/main amd64 Packages [40.6 kB]
Get:30 https://mirror.hetzner.com/ubuntu/packages noble-backports/main Translation-en [9,172 B]
Get:31 https://mirror.hetzner.com/ubuntu/packages noble-backports/main amd64 c-n-f Metadata [368 B]
Get:32 https://mirror.hetzner.com/ubuntu/packages noble-backports/universe amd64 Packages [31.0 kB]
Get:33 https://mirror.hetzner.com/ubuntu/packages noble-backports/universe Translation-en [18.6 kB]
Get:34 https://mirror.hetzner.com/ubuntu/packages noble-backports/universe amd64 c-n-f Metadata [1,588 B]
Get:35 https://mirror.hetzner.com/ubuntu/packages noble-backports/restricted amd64 c-n-f Metadata [116 B]
Get:36 https://mirror.hetzner.com/ubuntu/packages noble-backports/multiverse amd64 Packages [748 B]
Get:37 https://mirror.hetzner.com/ubuntu/packages noble-backports/multiverse Translation-en [340 B]
Get:38 https://mirror.hetzner.com/ubuntu/packages noble-backports/multiverse amd64 c-n-f Metadata [116 B]
Get:39 https://mirror.hetzner.com/ubuntu/security noble-security/main amd64 Packages [1,198 kB]
Get:40 https://mirror.hetzner.com/ubuntu/security noble-security/main Translation-en [239 kB]
Get:41 https://mirror.hetzner.com/ubuntu/security noble-security/main amd64 c-n-f Metadata [11.9 kB]
Get:42 https://mirror.hetzner.com/ubuntu/security noble-security/universe amd64 Packages [1,230 kB]
Get:43 https://mirror.hetzner.com/ubuntu/security noble-security/universe Translation-en [248 kB]
Get:44 https://mirror.hetzner.com/ubuntu/security noble-security/universe amd64 c-n-f Metadata [24.2 kB]
Get:45 https://mirror.hetzner.com/ubuntu/security noble-security/restricted amd64 Packages [1,792 kB]
Get:46 https://mirror.hetzner.com/ubuntu/security noble-security/restricted Translation-en [414 kB]
Get:47 https://mirror.hetzner.com/ubuntu/security noble-security/restricted amd64 c-n-f Metadata [444 B]
Get:48 https://mirror.hetzner.com/ubuntu/security noble-security/multiverse amd64 Packages [45.4 kB]
Get:49 https://mirror.hetzner.com/ubuntu/security noble-security/multiverse Translation-en [12.7 kB]
Get:50 https://mirror.hetzner.com/ubuntu/security noble-security/multiverse amd64 c-n-f Metadata [468 B]
Fetched 36.0 MB in 3s (10.7 MB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
$ sudo apt install -y openjdk-21-jdk-headless ant git curl unzip
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.43.0-1ubuntu7.4).
curl is already the newest version (8.5.0-2ubuntu10.16).
The following additional packages will be installed:
alsa-topology-conf alsa-ucm-conf ant-optional ca-certificates-java fontconfig-config fonts-dejavu-core
fonts-dejavu-mono java-common libasound2-data libasound2t64 libavahi-client3 libavahi-common-data libavahi-common3
libcups2t64 libfontconfig1 libgraphite2-3 libharfbuzz0b libjpeg-turbo8 libjpeg8 liblcms2-2 libnspr4 libnss3
libpcsclite1 openjdk-21-jre-headless
Suggested packages:
ant-doc antlr javacc junit junit4 jython libactivation-java libbcel-java libbsf-java libcommons-logging-java
libcommons-net-java libmail-java libjaxp1.3-java libjdepend-java libjsch-java liblog4j1.2-java liboro-java
libregexp-java libxalan2-java libxml-commons-resolver1.1-java libxz-java default-jre alsa-utils libasound2-plugins
cups-common liblcms2-utils pcscd openjdk-21-demo openjdk-21-source libnss-mdns fonts-dejavu-extra
fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei | fonts-wqy-zenhei fonts-indic zip
The following NEW packages will be installed:
alsa-topology-conf alsa-ucm-conf ant ant-optional ca-certificates-java fontconfig-config fonts-dejavu-core
fonts-dejavu-mono java-common libasound2-data libasound2t64 libavahi-client3 libavahi-common-data libavahi-common3
libcups2t64 libfontconfig1 libgraphite2-3 libharfbuzz0b libjpeg-turbo8 libjpeg8 liblcms2-2 libnspr4 libnss3
libpcsclite1 openjdk-21-jdk-headless openjdk-21-jre-headless unzip
0 upgraded, 27 newly installed, 0 to remove and 2 not upgraded.
Need to get 137 MB of archives.
After this operation, 319 MB of additional disk space will be used.
Get:1 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 alsa-topology-conf all 1.2.5.1-2 [15.5 kB]
Get:2 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 libasound2-data all 1.2.11-1ubuntu0.3 [21.4 kB]
Get:3 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 libasound2t64 amd64 1.2.11-1ubuntu0.3 [398 kB]
Get:4 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 alsa-ucm-conf all 1.2.10-1ubuntu5.16 [70.4 kB]
Get:5 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 ca-certificates-java all 20240118ubuntu0.24.04.2 [12.4 kB]
Get:6 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 java-common all 0.75+exp1 [6,798 B]
Get:7 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 liblcms2-2 amd64 2.14-2ubuntu0.1 [161 kB]
Get:8 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 libjpeg-turbo8 amd64 2.1.5-2ubuntu2 [150 kB]
Get:9 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 libjpeg8 amd64 8c-2ubuntu11 [2,148 B]
Get:10 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 libnspr4 amd64 2:4.35-1.1build1 [117 kB]
Get:11 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 libnss3 amd64 2:3.98-1ubuntu0.3 [1,445 kB]
Get:12 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 libpcsclite1 amd64 2.0.3-1build1 [21.4 kB]
Get:13 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 openjdk-21-jre-headless amd64 21.0.13.1+2-1~24.04.1 [46.7 MB]
Get:14 https://mirror.hetzner.com/ubuntu/packages noble/universe amd64 ant all 1.10.14-1 [2,147 kB]
Get:15 https://mirror.hetzner.com/ubuntu/packages noble/universe amd64 ant-optional all 1.10.14-1 [451 kB]
Get:16 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 fonts-dejavu-mono all 2.37-8 [502 kB]
Get:17 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 fonts-dejavu-core all 2.37-8 [835 kB]
Get:18 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 fontconfig-config amd64 2.15.0-1.1ubuntu2 [37.3 kB]
Get:19 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 libavahi-common-data amd64 0.8-13ubuntu6.2 [30.1 kB]
Get:20 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 libavahi-common3 amd64 0.8-13ubuntu6.2 [23.4 kB]
Get:21 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 libavahi-client3 amd64 0.8-13ubuntu6.2 [26.8 kB]
Get:22 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 libcups2t64 amd64 2.4.7-1.2ubuntu7.14 [274 kB]
Get:23 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 libfontconfig1 amd64 2.15.0-1.1ubuntu2 [139 kB]
Get:24 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 libgraphite2-3 amd64 1.3.14-2ubuntu0.24.04.1 [73.4 kB]
Get:25 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 libharfbuzz0b amd64 8.3.0-2build2 [469 kB]
Get:26 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 openjdk-21-jdk-headless amd64 21.0.13.1+2-1~24.04.1 [83.0 MB]
Get:27 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 unzip amd64 6.0-28ubuntu4.1 [174 kB]
Fetched 137 MB in 2s (89.6 MB/s)
Selecting previously unselected package alsa-topology-conf.
(Reading database ... 38796 files and directories currently installed.)
Preparing to unpack .../00-alsa-topology-conf_1.2.5.1-2_all.deb ...
Unpacking alsa-topology-conf (1.2.5.1-2) ...
Selecting previously unselected package libasound2-data.
Preparing to unpack .../01-libasound2-data_1.2.11-1ubuntu0.3_all.deb ...
Unpacking libasound2-data (1.2.11-1ubuntu0.3) ...
Selecting previously unselected package libasound2t64:amd64.
Preparing to unpack .../02-libasound2t64_1.2.11-1ubuntu0.3_amd64.deb ...
Unpacking libasound2t64:amd64 (1.2.11-1ubuntu0.3) ...
Selecting previously unselected package alsa-ucm-conf.
Preparing to unpack .../03-alsa-ucm-conf_1.2.10-1ubuntu5.16_all.deb ...
Unpacking alsa-ucm-conf (1.2.10-1ubuntu5.16) ...
Selecting previously unselected package ca-certificates-java.
Preparing to unpack .../04-ca-certificates-java_20240118ubuntu0.24.04.2_all.deb ...
Unpacking ca-certificates-java (20240118ubuntu0.24.04.2) ...
Selecting previously unselected package java-common.
Preparing to unpack .../05-java-common_0.75+exp1_all.deb ...
Unpacking java-common (0.75+exp1) ...
Selecting previously unselected package liblcms2-2:amd64.
Preparing to unpack .../06-liblcms2-2_2.14-2ubuntu0.1_amd64.deb ...
Unpacking liblcms2-2:amd64 (2.14-2ubuntu0.1) ...
Selecting previously unselected package libjpeg-turbo8:amd64.
Preparing to unpack .../07-libjpeg-turbo8_2.1.5-2ubuntu2_amd64.deb ...
Unpacking libjpeg-turbo8:amd64 (2.1.5-2ubuntu2) ...
Selecting previously unselected package libjpeg8:amd64.
Preparing to unpack .../08-libjpeg8_8c-2ubuntu11_amd64.deb ...
Unpacking libjpeg8:amd64 (8c-2ubuntu11) ...
Selecting previously unselected package libnspr4:amd64.
Preparing to unpack .../09-libnspr4_2%3a4.35-1.1build1_amd64.deb ...
Unpacking libnspr4:amd64 (2:4.35-1.1build1) ...
Selecting previously unselected package libnss3:amd64.
Preparing to unpack .../10-libnss3_2%3a3.98-1ubuntu0.3_amd64.deb ...
Unpacking libnss3:amd64 (2:3.98-1ubuntu0.3) ...
Selecting previously unselected package libpcsclite1:amd64.
Preparing to unpack .../11-libpcsclite1_2.0.3-1build1_amd64.deb ...
Unpacking libpcsclite1:amd64 (2.0.3-1build1) ...
Selecting previously unselected package openjdk-21-jre-headless:amd64.
Preparing to unpack .../12-openjdk-21-jre-headless_21.0.13.1+2-1~24.04.1_amd64.deb ...
Unpacking openjdk-21-jre-headless:amd64 (21.0.13.1+2-1~24.04.1) ...
Selecting previously unselected package ant.
Preparing to unpack .../13-ant_1.10.14-1_all.deb ...
Unpacking ant (1.10.14-1) ...
Selecting previously unselected package ant-optional.
Preparing to unpack .../14-ant-optional_1.10.14-1_all.deb ...
Unpacking ant-optional (1.10.14-1) ...
Selecting previously unselected package fonts-dejavu-mono.
Preparing to unpack .../15-fonts-dejavu-mono_2.37-8_all.deb ...
Unpacking fonts-dejavu-mono (2.37-8) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../16-fonts-dejavu-core_2.37-8_all.deb ...
Unpacking fonts-dejavu-core (2.37-8) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../17-fontconfig-config_2.15.0-1.1ubuntu2_amd64.deb ...
Unpacking fontconfig-config (2.15.0-1.1ubuntu2) ...
Selecting previously unselected package libavahi-common-data:amd64.
Preparing to unpack .../18-libavahi-common-data_0.8-13ubuntu6.2_amd64.deb ...
Unpacking libavahi-common-data:amd64 (0.8-13ubuntu6.2) ...
Selecting previously unselected package libavahi-common3:amd64.
Preparing to unpack .../19-libavahi-common3_0.8-13ubuntu6.2_amd64.deb ...
Unpacking libavahi-common3:amd64 (0.8-13ubuntu6.2) ...
Selecting previously unselected package libavahi-client3:amd64.
Preparing to unpack .../20-libavahi-client3_0.8-13ubuntu6.2_amd64.deb ...
Unpacking libavahi-client3:amd64 (0.8-13ubuntu6.2) ...
Selecting previously unselected package libcups2t64:amd64.
Preparing to unpack .../21-libcups2t64_2.4.7-1.2ubuntu7.14_amd64.deb ...
Unpacking libcups2t64:amd64 (2.4.7-1.2ubuntu7.14) ...
Selecting previously unselected package libfontconfig1:amd64.
Preparing to unpack .../22-libfontconfig1_2.15.0-1.1ubuntu2_amd64.deb ...
Unpacking libfontconfig1:amd64 (2.15.0-1.1ubuntu2) ...
Selecting previously unselected package libgraphite2-3:amd64.
Preparing to unpack .../23-libgraphite2-3_1.3.14-2ubuntu0.24.04.1_amd64.deb ...
Unpacking libgraphite2-3:amd64 (1.3.14-2ubuntu0.24.04.1) ...
Selecting previously unselected package libharfbuzz0b:amd64.
Preparing to unpack .../24-libharfbuzz0b_8.3.0-2build2_amd64.deb ...
Unpacking libharfbuzz0b:amd64 (8.3.0-2build2) ...
Selecting previously unselected package openjdk-21-jdk-headless:amd64.
Preparing to unpack .../25-openjdk-21-jdk-headless_21.0.13.1+2-1~24.04.1_amd64.deb ...
Unpacking openjdk-21-jdk-headless:amd64 (21.0.13.1+2-1~24.04.1) ...
Selecting previously unselected package unzip.
Preparing to unpack .../26-unzip_6.0-28ubuntu4.1_amd64.deb ...
Unpacking unzip (6.0-28ubuntu4.1) ...
Setting up libgraphite2-3:amd64 (1.3.14-2ubuntu0.24.04.1) ...
Setting up liblcms2-2:amd64 (2.14-2ubuntu0.1) ...
Setting up java-common (0.75+exp1) ...
Setting up unzip (6.0-28ubuntu4.1) ...
Setting up libasound2-data (1.2.11-1ubuntu0.3) ...
Setting up libasound2t64:amd64 (1.2.11-1ubuntu0.3) ...
Setting up libnspr4:amd64 (2:4.35-1.1build1) ...
Setting up libavahi-common-data:amd64 (0.8-13ubuntu6.2) ...
Setting up fonts-dejavu-mono (2.37-8) ...
Setting up fonts-dejavu-core (2.37-8) ...
Setting up libpcsclite1:amd64 (2.0.3-1build1) ...
Setting up libjpeg-turbo8:amd64 (2.1.5-2ubuntu2) ...
Setting up alsa-topology-conf (1.2.5.1-2) ...
Setting up libharfbuzz0b:amd64 (8.3.0-2build2) ...
Setting up ca-certificates-java (20240118ubuntu0.24.04.2) ...
No JRE found. Skipping Java certificates setup.
Setting up libjpeg8:amd64 (8c-2ubuntu11) ...
Setting up alsa-ucm-conf (1.2.10-1ubuntu5.16) ...
Setting up fontconfig-config (2.15.0-1.1ubuntu2) ...
Setting up libavahi-common3:amd64 (0.8-13ubuntu6.2) ...
Setting up libnss3:amd64 (2:3.98-1ubuntu0.3) ...
Setting up libavahi-client3:amd64 (0.8-13ubuntu6.2) ...
Setting up openjdk-21-jre-headless:amd64 (21.0.13.1+2-1~24.04.1) ...
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/java to provide /usr/bin/java (java) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jpackage to provide /usr/bin/jpackage (jpackage) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode
Setting up libcups2t64:amd64 (2.4.7-1.2ubuntu7.14) ...
Processing triggers for libc-bin (2.39-0ubuntu8.12) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for sgml-base (1.31) ...
Setting up libfontconfig1:amd64 (2.15.0-1.1ubuntu2) ...
Processing triggers for ca-certificates-java (20240118ubuntu0.24.04.2) ...
Adding debian:ACCVRAIZ1.pem
Adding debian:AC_RAIZ_FNMT-RCM.pem
Adding debian:AC_RAIZ_FNMT-RCM_SERVIDORES_SEGUROS.pem
Adding debian:ANF_Secure_Server_Root_CA.pem
Adding debian:Actalis_Authentication_Root_CA.pem
Adding debian:Amazon_Root_CA_1.pem
Adding debian:Amazon_Root_CA_2.pem
Adding debian:Amazon_Root_CA_3.pem
Adding debian:Amazon_Root_CA_4.pem
Adding debian:Atos_TrustedRoot_Root_CA_ECC_TLS_2021.pem
Adding debian:Atos_TrustedRoot_Root_CA_RSA_TLS_2021.pem
Adding debian:Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem
Adding debian:BJCA_Global_Root_CA1.pem
Adding debian:BJCA_Global_Root_CA2.pem
Adding debian:Buypass_Class_2_Root_CA.pem
Adding debian:Buypass_Class_3_Root_CA.pem
Adding debian:CA_Disig_Root_R2.pem
Adding debian:CFCA_EV_ROOT.pem
Adding debian:COMODO_ECC_Certification_Authority.pem
Adding debian:COMODO_RSA_Certification_Authority.pem
Adding debian:Certainly_Root_E1.pem
Adding debian:Certainly_Root_R1.pem
Adding debian:Certigna_Root_CA.pem
Adding debian:Certum_EC-384_CA.pem
Adding debian:Certum_Trusted_Network_CA.pem
Adding debian:Certum_Trusted_Network_CA_2.pem
Adding debian:Certum_Trusted_Root_CA.pem
Adding debian:D-TRUST_BR_Root_CA_1_2020.pem
Adding debian:D-TRUST_BR_Root_CA_2_2023.pem
Adding debian:D-TRUST_EV_Root_CA_1_2020.pem
Adding debian:D-TRUST_EV_Root_CA_2_2023.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_2009.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_EV_2009.pem
Adding debian:DigiCert_Assured_ID_Root_G2.pem
Adding debian:DigiCert_Assured_ID_Root_G3.pem
Adding debian:DigiCert_Global_Root_G2.pem
Adding debian:DigiCert_Global_Root_G3.pem
Adding debian:DigiCert_TLS_ECC_P384_Root_G5.pem
Adding debian:DigiCert_TLS_RSA4096_Root_G5.pem
Adding debian:DigiCert_Trusted_Root_G4.pem
Adding debian:GDCA_TrustAUTH_R5_ROOT.pem
Adding debian:GTS_Root_R1.pem
Adding debian:GTS_Root_R3.pem
Adding debian:GTS_Root_R4.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R4.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R5.pem
Adding debian:GlobalSign_Root_CA_-_R3.pem
Adding debian:GlobalSign_Root_CA_-_R6.pem
Adding debian:GlobalSign_Root_E46.pem
Adding debian:GlobalSign_Root_R46.pem
Adding debian:Go_Daddy_Root_Certificate_Authority_-_G2.pem
Adding debian:HARICA_TLS_ECC_Root_CA_2021.pem
Adding debian:HARICA_TLS_RSA_Root_CA_2021.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_ECC_RootCA_2015.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2015.pem
Adding debian:HiPKI_Root_CA_-_G1.pem
Adding debian:Hongkong_Post_Root_CA_3.pem
Adding debian:ISRG_Root_X1.pem
Adding debian:ISRG_Root_X2.pem
Adding debian:IdenTrust_Commercial_Root_CA_1.pem
Adding debian:IdenTrust_Public_Sector_Root_CA_1.pem
Adding debian:Izenpe.com.pem
Adding debian:Microsec_e-Szigno_Root_CA_2009.pem
Adding debian:Microsoft_ECC_Root_Certificate_Authority_2017.pem
Adding debian:Microsoft_RSA_Root_Certificate_Authority_2017.pem
Adding debian:NAVER_Global_Root_Certification_Authority.pem
Adding debian:NetLock_Arany_=Class_Gold=_Főtanúsítvány.pem
Adding debian:OISTE_Server_Root_ECC_G1.pem
Adding debian:OISTE_Server_Root_RSA_G1.pem
Adding debian:OISTE_WISeKey_Global_Root_GB_CA.pem
Adding debian:OISTE_WISeKey_Global_Root_GC_CA.pem
Adding debian:QuoVadis_Root_CA_1_G3.pem
Adding debian:QuoVadis_Root_CA_2_G3.pem
Adding debian:QuoVadis_Root_CA_3_G3.pem
Adding debian:SECOM_TLS_ECC_Root_CA_2024.pem
Adding debian:SECOM_TLS_RSA_Root_CA_2024.pem
Adding debian:SSL.com_EV_Root_Certification_Authority_ECC.pem
Adding debian:SSL.com_EV_Root_Certification_Authority_RSA_R2.pem
Adding debian:SSL.com_Root_Certification_Authority_ECC.pem
Adding debian:SSL.com_Root_Certification_Authority_RSA.pem
Adding debian:SSL.com_TLS_ECC_Root_CA_2022.pem
Adding debian:SSL.com_TLS_RSA_Root_CA_2022.pem
Adding debian:SZAFIR_ROOT_CA2.pem
Adding debian:Sectigo_Public_Server_Authentication_Root_E46.pem
Adding debian:Sectigo_Public_Server_Authentication_Root_R46.pem
Adding debian:SecureSign_Root_CA14.pem
Adding debian:SecureSign_Root_CA15.pem
Adding debian:Security_Communication_ECC_RootCA1.pem
Adding debian:Security_Communication_RootCA2.pem
Adding debian:Starfield_Root_Certificate_Authority_-_G2.pem
Adding debian:Starfield_Services_Root_Certificate_Authority_-_G2.pem
Adding debian:SwissSign_RSA_TLS_Root_CA_2022_-_1.pem
Adding debian:T-TeleSec_GlobalRoot_Class_2.pem
Adding debian:T-TeleSec_GlobalRoot_Class_3.pem
Adding debian:TUBITAK_Kamu_SM_SSL_Kok_Sertifikasi_-_Surum_1.pem
Adding debian:TWCA_CYBER_Root_CA.pem
Adding debian:TWCA_Global_Root_CA.pem
Adding debian:TWCA_Root_Certification_Authority.pem
Adding debian:Telekom_Security_TLS_ECC_Root_2020.pem
Adding debian:Telekom_Security_TLS_RSA_Root_2023.pem
Adding debian:Telia_EC_TLS_Root_CA_v3.pem
Adding debian:Telia_RSA_TLS_Root_CA_v3.pem
Adding debian:Telia_Root_CA_v2.pem
Adding debian:TrustAsia_Global_Root_CA_G3.pem
Adding debian:TrustAsia_Global_Root_CA_G4.pem
Adding debian:TrustAsia_TLS_ECC_Root_CA.pem
Adding debian:TrustAsia_TLS_RSA_Root_CA.pem
Adding debian:TunTrust_Root_CA.pem
Adding debian:UCA_Extended_Validation_Root.pem
Adding debian:UCA_Global_G2_Root.pem
Adding debian:USERTrust_ECC_Certification_Authority.pem
Adding debian:USERTrust_RSA_Certification_Authority.pem
Adding debian:certSIGN_Root_CA_G2.pem
Adding debian:e-Szigno_Root_CA_2017.pem
Adding debian:e-Szigno_TLS_Root_CA_2023.pem
Adding debian:emSign_ECC_Root_CA_-_C3.pem
Adding debian:emSign_Root_CA_-_C1.pem
Adding debian:emSign_Root_CA_-_G1.pem
Adding debian:vTrus_ECC_Root_CA.pem
Adding debian:vTrus_Root_CA.pem
done.
Setting up ant (1.10.14-1) ...
Setting up openjdk-21-jdk-headless:amd64 (21.0.13.1+2-1~24.04.1) ...
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jar to provide /usr/bin/jar (jar) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jarsigner to provide /usr/bin/jarsigner (jarsigner) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/javac to provide /usr/bin/javac (javac) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/javadoc to provide /usr/bin/javadoc (javadoc) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/javap to provide /usr/bin/javap (javap) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jcmd to provide /usr/bin/jcmd (jcmd) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jdb to provide /usr/bin/jdb (jdb) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jdeprscan to provide /usr/bin/jdeprscan (jdeprscan) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jdeps to provide /usr/bin/jdeps (jdeps) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jfr to provide /usr/bin/jfr (jfr) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jimage to provide /usr/bin/jimage (jimage) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jinfo to provide /usr/bin/jinfo (jinfo) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jlink to provide /usr/bin/jlink (jlink) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jmap to provide /usr/bin/jmap (jmap) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jmod to provide /usr/bin/jmod (jmod) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jps to provide /usr/bin/jps (jps) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jrunscript to provide /usr/bin/jrunscript (jrunscript) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jshell to provide /usr/bin/jshell (jshell) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jstack to provide /usr/bin/jstack (jstack) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jstat to provide /usr/bin/jstat (jstat) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jstatd to provide /usr/bin/jstatd (jstatd) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jwebserver to provide /usr/bin/jwebserver (jwebserver) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/serialver to provide /usr/bin/serialver (serialver) in auto mode
update-alternatives: using /usr/lib/jvm/java-21-openjdk-amd64/bin/jhsdb to provide /usr/bin/jhsdb (jhsdb) in auto mode
Setting up ant-optional (1.10.14-1) ...
Processing triggers for libc-bin (2.39-0ubuntu8.12) ...
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
$ apt-cache policy maven nodejs | grep -E "^[a-z]|Candidate"
maven:
Candidate: 3.8.7-2
nodejs:
Candidate: 18.19.1+dfsg-6ubuntu5
$ cd /tmp && curl -fsSLO https://archive.apache.org/dist/maven/maven-3/3.9.12/binaries/apache-maven-3.9.12-bin.tar.gz && curl -fsSLO https://archive.apache.org/dist/maven/maven-3/3.9.12/binaries/apache-maven-3.9.12-bin.tar.gz.sha512 && echo "$(cat apache-maven-3.9.12-bin.tar.gz.sha512) apache-maven-3.9.12-bin.tar.gz" | sha512sum -c - && sudo tar xzf apache-maven-3.9.12-bin.tar.gz -C /opt && sudo ln -sf /opt/apache-maven-3.9.12/bin/mvn /usr/local/bin/mvn
apache-maven-3.9.12-bin.tar.gz: OK
$ cd /tmp && curl -fsSLO https://nodejs.org/dist/v22.22.1/node-v22.22.1-linux-x64.tar.xz && curl -fsSLO https://nodejs.org/dist/v22.22.1/SHASUMS256.txt && grep " node-v22.22.1-linux-x64.tar.xz$" SHASUMS256.txt | sha256sum -c - && sudo tar xJf node-v22.22.1-linux-x64.tar.xz -C /opt && for b in node npm npx; do sudo ln -sf /opt/node-v22.22.1-linux-x64/bin/$b /usr/local/bin/$b; done
node-v22.22.1-linux-x64.tar.xz: OK
$ java -version 2>&1 | head -n 1; mvn -version | head -n 1; ant -version; node --version; npm --version
openjdk version "21.0.13.1" 2026-11-17
Apache Maven 3.9.12 (848fbb4bf2d427b72bdb2471c22fced7ebd9a7a1)
Apache Ant(TM) version 1.10.14 compiled on September 25 2023
v22.22.1
10.9.4
$ sudo apt install -y postgresql
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libcommon-sense-perl libjson-perl libjson-xs-perl libllvm17t64 libpq5 libtypes-serialiser-perl postgresql-16
postgresql-client-16 postgresql-client-common postgresql-common ssl-cert
Suggested packages:
postgresql-doc postgresql-doc-16
The following NEW packages will be installed:
libcommon-sense-perl libjson-perl libjson-xs-perl libllvm17t64 libpq5 libtypes-serialiser-perl postgresql
postgresql-16 postgresql-client-16 postgresql-client-common postgresql-common ssl-cert
0 upgraded, 12 newly installed, 0 to remove and 2 not upgraded.
Need to get 43.7 MB of archives.
After this operation, 175 MB of additional disk space will be used.
Get:1 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 libjson-perl all 4.10000-1 [81.9 kB]
Get:2 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 postgresql-client-common all 257build1.1 [36.4 kB]
Get:3 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 ssl-cert all 1.1.2ubuntu1 [17.8 kB]
Get:4 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 postgresql-common all 257build1.1 [161 kB]
Get:5 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 libcommon-sense-perl amd64 3.75-3build3 [20.4 kB]
Get:6 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 libtypes-serialiser-perl all 1.01-1 [11.6 kB]
Get:7 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 libjson-xs-perl amd64 4.040-0ubuntu0.24.04.1 [83.7 kB]
Get:8 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 libllvm17t64 amd64 1:17.0.6-9ubuntu1 [26.2 MB]
Get:9 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 libpq5 amd64 16.15-0ubuntu0.24.04.1 [151 kB]
Get:10 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 postgresql-client-16 amd64 16.15-0ubuntu0.24.04.1 [1,301 kB]
Get:11 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 postgresql-16 amd64 16.15-0ubuntu0.24.04.1 [15.6 MB]
Get:12 https://mirror.hetzner.com/ubuntu/packages noble-updates/main amd64 postgresql all 16+257build1.1 [11.6 kB]
Fetched 43.7 MB in 1s (61.4 MB/s)
Preconfiguring packages ...
Selecting previously unselected package libjson-perl.
(Reading database ... 40588 files and directories currently installed.)
Preparing to unpack .../00-libjson-perl_4.10000-1_all.deb ...
Unpacking libjson-perl (4.10000-1) ...
Selecting previously unselected package postgresql-client-common.
Preparing to unpack .../01-postgresql-client-common_257build1.1_all.deb ...
Unpacking postgresql-client-common (257build1.1) ...
Selecting previously unselected package ssl-cert.
Preparing to unpack .../02-ssl-cert_1.1.2ubuntu1_all.deb ...
Unpacking ssl-cert (1.1.2ubuntu1) ...
Selecting previously unselected package postgresql-common.
Preparing to unpack .../03-postgresql-common_257build1.1_all.deb ...
Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common'
Unpacking postgresql-common (257build1.1) ...
Selecting previously unselected package libcommon-sense-perl:amd64.
Preparing to unpack .../04-libcommon-sense-perl_3.75-3build3_amd64.deb ...
Unpacking libcommon-sense-perl:amd64 (3.75-3build3) ...
Selecting previously unselected package libtypes-serialiser-perl.
Preparing to unpack .../05-libtypes-serialiser-perl_1.01-1_all.deb ...
Unpacking libtypes-serialiser-perl (1.01-1) ...
Selecting previously unselected package libjson-xs-perl.
Preparing to unpack .../06-libjson-xs-perl_4.040-0ubuntu0.24.04.1_amd64.deb ...
Unpacking libjson-xs-perl (4.040-0ubuntu0.24.04.1) ...
Selecting previously unselected package libllvm17t64:amd64.
Preparing to unpack .../07-libllvm17t64_1%3a17.0.6-9ubuntu1_amd64.deb ...
Unpacking libllvm17t64:amd64 (1:17.0.6-9ubuntu1) ...
Selecting previously unselected package libpq5:amd64.
Preparing to unpack .../08-libpq5_16.15-0ubuntu0.24.04.1_amd64.deb ...
Unpacking libpq5:amd64 (16.15-0ubuntu0.24.04.1) ...
Selecting previously unselected package postgresql-client-16.
Preparing to unpack .../09-postgresql-client-16_16.15-0ubuntu0.24.04.1_amd64.deb ...
Unpacking postgresql-client-16 (16.15-0ubuntu0.24.04.1) ...
Selecting previously unselected package postgresql-16.
Preparing to unpack .../10-postgresql-16_16.15-0ubuntu0.24.04.1_amd64.deb ...
Unpacking postgresql-16 (16.15-0ubuntu0.24.04.1) ...
Selecting previously unselected package postgresql.
Preparing to unpack .../11-postgresql_16+257build1.1_all.deb ...
Unpacking postgresql (16+257build1.1) ...
Setting up postgresql-client-common (257build1.1) ...
Setting up libpq5:amd64 (16.15-0ubuntu0.24.04.1) ...
Setting up libcommon-sense-perl:amd64 (3.75-3build3) ...
Setting up libllvm17t64:amd64 (1:17.0.6-9ubuntu1) ...
Setting up ssl-cert (1.1.2ubuntu1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/ssl-cert.service → /usr/lib/systemd/system/ssl-cert.service.
Setting up libtypes-serialiser-perl (1.01-1) ...
Setting up libjson-perl (4.10000-1) ...
Setting up libjson-xs-perl (4.040-0ubuntu0.24.04.1) ...
Setting up postgresql-client-16 (16.15-0ubuntu0.24.04.1) ...
update-alternatives: using /usr/share/postgresql/16/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
Setting up postgresql-common (257build1.1) ...
Creating config file /etc/postgresql-common/createcluster.conf with new version
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Removing obsolete dictionary files:
Created symlink /etc/systemd/system/multi-user.target.wants/postgresql.service → /usr/lib/systemd/system/postgresql.service.
Setting up postgresql-16 (16.15-0ubuntu0.24.04.1) ...
Creating new PostgreSQL cluster 16/main ...
/usr/lib/postgresql/16/bin/initdb -D /var/lib/postgresql/16/main --auth-local peer --auth-host scram-sha-256 --no-instructions
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.UTF-8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory /var/lib/postgresql/16/main ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... Etc/UTC
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok
Setting up postgresql (16+257build1.1) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.12) ...
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
$ pg_lsclusters
Ver Cluster Port Status Owner Data directory Log file
16 main 5432 online postgres /var/lib/postgresql/16/main /var/log/postgresql/postgresql-16-main.log
$ sudo -u postgres psql -c "CREATE USER dspace WITH PASSWORD '[password]';" && sudo -u postgres createdb --owner=dspace --encoding=UNICODE dspace && sudo -u postgres psql -c '\l dspace'
CREATE ROLE
List of databases
Name | Owner | Encoding | Locale Provider | Collate | Ctype | ICU Locale | ICU Rules | Access privileges
--------+--------+----------+-----------------+-------------+-------------+------------+-----------+-------------------
dspace | dspace | UTF8 | libc | en_US.UTF-8 | en_US.UTF-8 | | |
(1 row)
$ sudo useradd --system --create-home --home-dir /home/dspace --shell /bin/bash dspace && sudo mkdir /dspace && sudo chown dspace:dspace /dspace && ls -ld /dspace /home/dspace
drwxr-xr-x 2 dspace dspace 4096 Nov 20 03:00 /dspace
drwxr-x--- 2 dspace dspace 4096 Nov 20 03:00 /home/dspace
$ ls /home/dspace
ls: cannot open directory '/home/dspace': Permission denied
$ grep ^HOME_MODE /etc/login.defs; stat -c "%a %U %n" /home/dspace
HOME_MODE 0750
750 dspace /home/dspace
$ cd /tmp && curl -fsSLO https://downloads.apache.org/solr/solr/9.11.0/solr-9.11.0.tgz && curl -fsSLO https://downloads.apache.org/solr/solr/9.11.0/solr-9.11.0.tgz.sha512 && sha512sum -c solr-9.11.0.tgz.sha512
solr-9.11.0.tgz: OK
$ cd /tmp && tar xzf solr-9.11.0.tgz solr-9.11.0/bin/install_solr_service.sh --strip-components=2 && sudo bash ./install_solr_service.sh solr-9.11.0.tgz -n
id: ‘solr’: no such user
Creating new user: solr
info: Selecting UID from range 100 to 999 ...
info: Selecting GID from range 100 to 999 ...
info: Adding system user `solr' (UID 110) ...
info: Adding new group `solr' (GID 112) ...
info: Adding new user `solr' (UID 110) with group `solr' ...
info: Creating home directory `/var/solr' ...
Extracting solr-9.11.0.tgz to /opt
Installing symlink /opt/solr -> /opt/solr-9.11.0 ...
Installing /etc/init.d/solr script ...
Installing /etc/default/solr.in.sh ...
Service solr installed.
Customize Solr startup configuration in /etc/default/solr.in.sh
Not starting Solr service (option -n given). Start manually with 'service solr start'
$ echo 'SOLR_OPTS="$SOLR_OPTS -Dsolr.config.lib.enabled=true"' | sudo tee -a /etc/default/solr.in.sh && echo 'SOLR_JETTY_HOST="127.0.0.1"' | sudo tee -a /etc/default/solr.in.sh && sudo systemctl start solr
SOLR_OPTS="$SOLR_OPTS -Dsolr.config.lib.enabled=true"
SOLR_JETTY_HOST="127.0.0.1"
$ sudo ss -ltnp | grep 8983
LISTEN 0 50 [::ffff:127.0.0.1]:8983 *:* users:(("java",pid=6758,fd=47))
$ sudo -iu dspace bash -c "mkdir -p src && curl -fsSL https://github.com/DSpace/DSpace/archive/refs/tags/dspace-10.1.tar.gz | tar xz -C src && ls src"
DSpace-dspace-10.1
$ sudo -iu dspace bash -c "cd src/DSpace-dspace-10.1/dspace/config && cp local.cfg.EXAMPLE local.cfg && sed -i 's/^db.password = .*/db.password = [password]/' local.cfg && grep -E '^(dspace\.(dir|server\.url|ui\.url|name)|solr\.server|db\.(url|username|password))' local.cfg"
dspace.dir=/dspace
dspace.server.url = http://localhost:8080/server
dspace.ui.url = http://localhost:4000
dspace.name = DSpace at My University
db.url = jdbc:postgresql://localhost:5432/dspace
db.username = dspace
db.password = [password]
$ sudo -iu dspace bash -c "cd src/DSpace-dspace-10.1 && time mvn package -B -ntp 2>&1 | tail -n 14"
[INFO] DSpace SAML 2 ...................................... SUCCESS [ 12.960 s]
[INFO] DSpace RDF ......................................... SUCCESS [ 2.153 s]
[INFO] DSpace SWORD ....................................... SUCCESS [ 4.528 s]
[INFO] DSpace SWORD v2 .................................... SUCCESS [ 4.388 s]
[INFO] DSpace Server Webapp ............................... SUCCESS [ 52.294 s]
[INFO] DSpace Server Webapp:: Tomcat deployable WAR ....... SUCCESS [ 8.817 s]
[INFO] DSpace Server Webapp:: Executable JAR .............. SUCCESS [ 3.111 s]
[INFO] DSpace Assembly and Configuration .................. SUCCESS [ 4.077 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:14 min
[INFO] Finished at: 2026-11-20T03:04:34Z
[INFO] ------------------------------------------------------------------------
real 3m14.875s
user 6m48.711s
sys 0m19.375s
$ sudo -iu dspace bash -c "cd src/DSpace-dspace-10.1/dspace/target/dspace-installer && ant fresh_install 2>&1 | tail -n 12"
[echo]
[echo] /dspace/bin/dspace create-administrator
[echo]
[echo] You should then be able to access your DSpace's REST API:
[echo]
[echo] http://localhost:8080/server
[echo]
[echo] ====================================================================
[echo]
BUILD SUCCESSFUL
Total time: 6 seconds
$ sudo -iu dspace bash -c "/dspace/bin/dspace database migrate 2>&1 | tail -n 5; /dspace/bin/dspace database info 2>&1 | tail -n 10"
Database URL: jdbc:postgresql://localhost:5432/dspace
Migrating database to latest version... (Check dspace logs for details)
Done.
| Versioned | 8.0.2023.08.07 | qaevent processed | SQL | 2026-11-20 03:04:56 | Success | No |
| Versioned | 8.0.2024.02.14 | ldn tables | SQL | 2026-11-20 03:04:56 | Success | No |
| Versioned | 8.4.2026.03.28 | Fix-bundle2bitstream-with-deleted-bitstreams | SQL | 2026-11-20 03:04:56 | Success | No |
| Versioned | 9.0.2024.11.09 | ldn service external actor | SQL | 2026-11-20 03:04:56 | Success | No |
| Versioned | 9.0.2025.02.13 | add access colums to requestitem table | SQL | 2026-11-20 03:04:56 | Success | No |
| Versioned | 9.0.2025.03.12 | registration data | SQL | 2026-11-20 03:04:56 | Success | No |
| Versioned | 10.0.2026.01.07 | create table items for update | SQL | 2026-11-20 03:04:56 | Success | No |
| Versioned | 10.0.2026.02.18 | add columns security level metadata value | SQL | 2026-11-20 03:04:56 | Success | No |
+-----------+-----------------+------------------------------------------------------------------+----------+---------------------+----------+----------+
$ sudo cp -R /dspace/solr/* /var/solr/data/ && sudo chown -R solr:solr /var/solr/data && sudo systemctl restart solr
$ curl -s 'http://localhost:8983/solr/admin/cores?action=STATUS&wt=json' | python3 -c 'import json,sys;print(sorted(json.load(sys.stdin)["status"]))'
['audit', 'authority', 'oai', 'qaevent', 'search', 'statistics', 'suggestion']
$ sudo tee /etc/systemd/system/dspace.service > /dev/null <<'EOF'
$ [Unit]
$ Description=DSpace backend (REST API)
$ After=network.target postgresql.service solr.service
$ Wants=postgresql.service solr.service
$
$ [Service]
$ User=dspace
$ WorkingDirectory=/dspace
$ ExecStart=/usr/bin/java -Xmx2g -Dfile.encoding=UTF-8 -jar /dspace/webapps/server-boot.jar --server.address=127.0.0.1
$ SuccessExitStatus=143
$ Restart=on-failure
$
$ [Install]
$ WantedBy=multi-user.target
$ EOF
$ sudo systemctl daemon-reload && sudo systemctl enable --now dspace
Created symlink /etc/systemd/system/multi-user.target.wants/dspace.service → /etc/systemd/system/dspace.service.
$ curl -s http://localhost:8080/server/api | grep -o '"dspaceVersion" *: *"[^"]*"'
"dspaceVersion" : "DSpace 10.1"
$ curl -s 'http://localhost:8080/server/oai/request?verb=Identify' | grep -o '[^<]*\|[^<]*'
DSpace at My University
2.0
$ sudo -iu dspace /dspace/bin/dspace create-administrator < /dev/null
Creating an initial administrator account
E-mail address: Exception: Cannot invoke "java.io.Console.readLine()" because "console" is null
java.lang.NullPointerException: Cannot invoke "java.io.Console.readLine()" because "console" is null
at org.dspace.administer.CreateAdministrator.negotiateAdministratorDetails(CreateAdministrator.java:159)
at org.dspace.administer.CreateAdministrator.main(CreateAdministrator.java:107)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:304)
at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:154)
at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:126)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:101)
$ sudo -iu dspace /dspace/bin/dspace create-administrator
Creating an initial administrator account
E-mail address: admin@repo.test
First name: Ada
Last name: Admin
Is the above data correct? (y or n): y
Password will not display on screen.
Password:
Again to confirm:
Administrator account created
$ sudo -iu dspace bash -c "curl -fsSL https://github.com/DSpace/dspace-angular/archive/refs/tags/dspace-10.1.tar.gz | tar xz -C src && cd src/dspace-angular-dspace-10.1 && time npm ci 2>&1 | tail -n 20"
added 1750 packages, and audited 1753 packages in 1m
397 packages are looking for funding
run `npm fund` for details
76 vulnerabilities (2 low, 50 moderate, 19 high, 5 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
npm notice
npm notice New major version of npm available! 10.9.4 -> 12.2.3
npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.3
npm notice To update run: npm install -g npm@12.2.3
npm notice
real 1m3.465s
user 1m5.356s
sys 0m14.244s
$ sudo -iu dspace bash -o pipefail -c "cd src/dspace-angular-dspace-10.1 && npm run build:prod 2>&1 | grep -m 1 -E 'heap out of memory|FATAL ERROR'"
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
$ sudo -iu dspace bash -o pipefail -c "cd src/dspace-angular-dspace-10.1 && time NODE_OPTIONS=--max-old-space-size=4096 npm run build:prod 2>&1 | tail -n 8"
Warning: /home/dspace/src/dspace-angular-dspace-10.1/src/themes/custom/lazy-listable-components.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
Warning: bundle initial exceeded maximum budget. Budget 3.00 MB was not met by 466.47 kB with a total of 3.47 MB.
- Generating server application bundles (phase: setup)...
Killed
real 6m5.931s
user 10m46.636s
sys 0m23.857s
$ sudo dmesg | grep -iE 'out of memory|oom-kill' | cut -c1-160 | tail -n 2
[ 1095.950666] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/session-58.scope,ta
[ 1095.950730] Out of memory: Killed process 10052 (ng run dspace-a) total-vm:50346284kB, anon-rss:5489180kB, file-rss:2928kB, shmem-rss:0kB, UID:999 pgtables:1
$ sudo fallocate -l 4G /swapfile && sudo chmod 600 /swapfile && sudo mkswap /swapfile && sudo swapon /swapfile && swapon --show
Setting up swapspace version 1, size = 4 GiB (4294963200 bytes)
no label, UUID=ede5d980-bc62-4557-9929-ac4fd23860dd
NAME TYPE SIZE USED PRIO
/swapfile file 4G 0B -2
$ sudo -iu dspace bash -o pipefail -c "cd src/dspace-angular-dspace-10.1 && time NODE_OPTIONS=--max-old-space-size=4096 npm run build:prod 2>&1 | tail -n 8"
Warning: /home/dspace/src/dspace-angular-dspace-10.1/src/themes/custom/eager-theme-components.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
Warning: /home/dspace/src/dspace-angular-dspace-10.1/src/themes/custom/lazy-listable-components.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
real 3m41.152s
user 6m27.900s
sys 0m19.790s
$ sudo swapoff /swapfile && sudo rm /swapfile && free -m
total used free shared buff/cache available
Mem: 7745 2032 5244 35 760 5713
Swap: 0 0 0
$ sudo -iu dspace bash -c "mkdir -p ui/config && cp -r src/dspace-angular-dspace-10.1/dist ui/ && cat > ui/config/config.prod.yml" <<'EOF'
$ ui:
$ ssl: false
$ host: 127.0.0.1
$ port: 4000
$ baseUrl: http://localhost:4000
$ nameSpace: /
$ rest:
$ ssl: false
$ host: localhost
$ port: 8080
$ nameSpace: /server
$ EOF
$ sudo -iu dspace bash -c "cd src/dspace-angular-dspace-10.1 && cp ~/ui/config/config.prod.yml config/ && npm run test:rest 2>&1 | tail -n 12"
Overriding app config with /home/dspace/src/dspace-angular-dspace-10.1/config/config.yml
Overriding app config with /home/dspace/src/dspace-angular-dspace-10.1/config/config.prod.yml
...Testing connection to REST API at http://localhost:8080/server/api...
RESPONSE: 200
Checking JSON returned for validity...
"dspaceVersion" = DSpace 10.1
"dspaceUI" = http://localhost:4000
"dspaceServer" = http://localhost:8080/server
"dspaceServer" property matches UI's "rest" config? true
Does "/api" endpoint have HAL links ("_links" section)? true
$ sudo tee /etc/systemd/system/dspace-ui.service > /dev/null <<'EOF'
$ [Unit]
$ Description=DSpace web interface
$ After=network.target dspace.service
$ Wants=dspace.service
$
$ [Service]
$ User=dspace
$ WorkingDirectory=/home/dspace/ui
$ Environment=NODE_ENV=production
$ ExecStart=/usr/local/bin/node dist/server/main.js
$ Restart=on-failure
$
$ [Install]
$ WantedBy=multi-user.target
$ EOF
$ sudo systemctl daemon-reload && sudo systemctl enable --now dspace-ui
Created symlink /etc/systemd/system/multi-user.target.wants/dspace-ui.service → /etc/systemd/system/dspace-ui.service.
$ curl -s http://localhost:4000/ | grep -o '[^<]*'
DSpace Repository :: Home
$ systemctl is-active postgresql solr dspace dspace-ui
active
active
active
active
$ sudo ss -ltnp | awk 'NR==1 || /:(22|4000|8080|8983|5432) /{print $4, $6}'
Local Peer
127.0.0.1:5432 users:(("postgres",pid=894,fd=7))
0.0.0.0:22 users:(("sshd",pid=1218,fd=3),("systemd",pid=1,fd=94))
127.0.0.1:4000 users:(("node",pid=1093,fd=21))
[::1]:5432 users:(("postgres",pid=894,fd=6))
[::ffff:127.0.0.1]:8983 users:(("java",pid=1017,fd=47))
[::]:22 users:(("sshd",pid=1218,fd=4),("systemd",pid=1,fd=95))
[::ffff:127.0.0.1]:8080 users:(("java",pid=1092,fd=13))
$ free -m && ps -eo rss,args --sort=-rss | head -n 4 | cut -c1-90
total used free shared buff/cache available
Mem: 7745 1975 5508 21 521 5769
Swap: 0 0 0
RSS COMMAND
784152 /usr/bin/java -Xmx2g -Dfile.encoding=UTF-8 -jar /dspace/webapps/server-boot.jar --s
751748 java -server -Xms512m -Xmx512m -XX:+UseG1GC -XX:+PerfDisableSharedMem -XX:+Parallel
133168 /usr/local/bin/node dist/server/main.js
------------------------------------------------------------------------------
Configuration files, read back from the server once they worked (5)
------------------------------------------------------------------------------
--- /etc/systemd/system/dspace.service
[Unit]
Description=DSpace backend (REST API)
After=network.target postgresql.service solr.service
Wants=postgresql.service solr.service
[Service]
User=dspace
WorkingDirectory=/dspace
ExecStart=/usr/bin/java -Xmx2g -Dfile.encoding=UTF-8 -jar /dspace/webapps/server-boot.jar --server.address=127.0.0.1
SuccessExitStatus=143
Restart=on-failure
[Install]
WantedBy=multi-user.target
--- /etc/systemd/system/dspace-ui.service
[Unit]
Description=DSpace web interface
After=network.target dspace.service
Wants=dspace.service
[Service]
User=dspace
WorkingDirectory=/home/dspace/ui
Environment=NODE_ENV=production
ExecStart=/usr/local/bin/node dist/server/main.js
Restart=on-failure
[Install]
WantedBy=multi-user.target
--- /home/dspace/ui/config/config.prod.yml
ui:
ssl: false
host: 127.0.0.1
port: 4000
baseUrl: http://localhost:4000
nameSpace: /
rest:
ssl: false
host: localhost
port: 8080
nameSpace: /server
--- /home/dspace/src/DSpace-dspace-10.1/dspace/config/local.cfg (only the active lines; the file also holds many commented examples)
dspace.dir=/dspace
dspace.server.url = http://localhost:8080/server
dspace.server.ssr.url = ${dspace.server.url}
dspace.ui.url = http://localhost:4000
dspace.name = DSpace at My University
db.url = jdbc:postgresql://localhost:5432/dspace
db.username = dspace
db.password = [password]
ldn.enabled = true
--- /etc/default/solr.in.sh (only the two lines this guide adds)
SOLR_OPTS="$SOLR_OPTS -Dsolr.config.lib.enabled=true"
SOLR_JETTY_HOST="127.0.0.1"
------------------------------------------------------------------------------
The check-your-server script, its full screen before the steps
------------------------------------------------------------------------------
ServerHandbook check, install-dspace-ubuntu (proved 2026-11-20)
FAIL the REST API answers: DSpace 10
fix: https://serverhandbook.com/kb/install-dspace-ubuntu#step-7-backend
FAIL the web interface answers on localhost:4000
fix: https://serverhandbook.com/kb/install-dspace-ubuntu#step-10-run-ui
FAIL postgresql, solr, dspace and dspace-ui are running
fix: https://serverhandbook.com/kb/install-dspace-ubuntu#step-11-check
FAIL Solr, the backend and the web interface listen on localhost only
fix: https://serverhandbook.com/kb/install-dspace-ubuntu#step-4-solr
0 passed, 4 failed
To fix a FAIL, follow the steps in https://serverhandbook.com/kb/install-dspace-ubuntu
------------------------------------------------------------------------------
The check-your-server script, its full screen after the steps
------------------------------------------------------------------------------
ServerHandbook check, install-dspace-ubuntu (proved 2026-11-20)
PASS the REST API answers: DSpace 10
PASS the web interface answers on localhost:4000
PASS postgresql, solr, dspace and dspace-ui are running
PASS Solr, the backend and the web interface listen on localhost only
4 passed, 0 failed
------------------------------------------------------------------------------
The check's source (scripts/live/checks/install-dspace-ubuntu.mjs)
As it ran.
------------------------------------------------------------------------------
/**
* KB: install DSpace 10.1 on Ubuntu 26.04 and 24.04 (run per release, --releases=26.04,24.04), on the RENTED server
* (LIVE_VPS + LIVE_VPS_NODOMAIN=1: 8 GB, the laptop VM cannot build the UI) from a fresh image each time.
*
* What it proves, in the article's order: the packages DSpace 10.1 needs (Java 21, Maven 3.9, Ant, Node 22); PostgreSQL
* 17 on 26.04 (from the PostgreSQL project's repository: 26.04 ships 18, which DSpace 10 does not support) and 16 on
* 24.04; the dspace system user (and the Permission denied on its home a 26.04 reader meets); Solr 9.11 bound to
* 127.0.0.1; the source, local.cfg, `mvn package`, `ant fresh_install`, `database migrate`, the Solr cores; the backend
* as a systemd service; the administrator (the Console error without a terminal, then the prompts); the web interface:
* `npm ci`, the two build failures (Node's default heap; the kernel's OOM kill on 8 GB) and the build that passes with
* a bigger heap plus swap; `config.prod.yml`, `npm run test:rest`, the UI as a systemd service; a reboot; what listens
* and what memory it needs; a browser through an SSH tunnel (login page, home page, signing in).
*
* Errors met while writing it are in plans/plan04-growth/11-dspace-pilot.md ("Errors met (2026-11-18)").
*/
import { spawn, spawnSync } from 'node:child_process'
import { mkdirSync } from 'node:fs'
import { dirname, join } from 'node:path'
import { fileURLToPath } from 'node:url'
import { chromium } from 'playwright'
import { annotate } from '../annotate.mjs'
import { sshOpts, VPS_ADDRESS } from '../box.mjs'
import { bareBox, reportBox } from '../lib.mjs'
export const meta = {
box: 'vps', // needs the rented server (npm run retest puts it in the server lane; real-server skill)
// The reader's check-your-server script (plan05 phase 3): proved by the runner on the stock server and after the steps.
reader: [
{ item: 'the REST API answers: DSpace 10', cmd: `curl -s http://localhost:8080/server/api | grep -o '"dspaceVersion" *: *"[^"]*"'`, expect: 'DSpace 10\\.', step: 'step-7-backend' },
{ item: 'the web interface answers on localhost:4000', cmd: `curl -s http://localhost:4000/ | grep -o '[^<]*'`, expect: 'DSpace Repository ::', step: 'step-10-run-ui' },
// the script matches line by line (grep -P): the four words on one line
{ item: 'postgresql, solr, dspace and dspace-ui are running', cmd: "systemctl is-active postgresql solr dspace dspace-ui | tr '\\n' ' '", expect: '^active active active active', step: 'step-11-check' },
{ item: 'Solr, the backend and the web interface listen on localhost only', cmd: `sudo ss -ltn | awk '/:(4000|8080|8983) /{print $4}'`, expect: '^(127\\.0\\.0\\.1|\\[::ffff:127\\.0\\.0\\.1\\]):', step: 'step-4-solr' },
],
}
const RELEASE = process.env.LIVE_BOX_RELEASE || '24.04'
const R26 = RELEASE === '26.04'
// Throwaway test passwords, scrubbed from every saved file (ctx.secret).
const DB_PASS = '[password]'
const ADMIN_PASS = '[password]'
const ADMIN_EMAIL = 'admin@repo.test'
const SOLR = '9.11.0'
const MAVEN = '3.9.12'
const NODE = '22.22.1'
const DSPACE_DIR = 'DSpace-dspace-10.1'
const UI_DIR = 'dspace-angular-dspace-10.1'
const AS_DSPACE = 'sudo -iu dspace'
const sleep = (s) => spawnSync('sleep', [String(s)])
const SLUG = 'install-dspace-ubuntu'
const shotDir = join(dirname(fileURLToPath(import.meta.url)), '..', '..', '..', '.live-runs', SLUG, RELEASE)
/**
* The reader's browser: an SSH tunnel for BOTH ports (4000 the web interface, 8080 the REST API the browser calls
* itself), then three screenshots: the home page, the login form, and the page after signing in as the administrator.
* Only localhost appears in the browser, so no address can show. Returns what it saw.
*/
export async function browserShots(adminEmail, adminPass) {
mkdirSync(shotDir, { recursive: true })
const tunnel = spawn('ssh', ['-N', ...sshOpts(), '-o', 'ExitOnForwardFailure=yes', '-L', '4000:127.0.0.1:4000', '-L', '8080:127.0.0.1:8080', `deploy@${VPS_ADDRESS}`], { stdio: 'ignore' })
const seen = { home: '', loginForm: false, signedIn: false, shots: [] }
let browser
try {
for (let i = 0; i < 30; i++) {
if (spawnSync('curl', ['-s', '-o', '/dev/null', '-m', '5', '-w', '%{http_code}', 'http://localhost:4000/'], { encoding: 'utf8' }).stdout === '200') break
sleep(2)
}
browser = await chromium.launch()
const page = await browser.newPage({ viewport: { width: 1280, height: 800 } })
await page.goto('http://localhost:4000/home', { waitUntil: 'networkidle', timeout: 120000 })
seen.home = await page.title()
// the cookie banner a first visit shows: accept it, as a reader would, so it covers nothing
const ok = page.getByRole('button', { name: "That's ok" })
if (await ok.isVisible().catch(() => false)) await ok.click()
const homeShot = join(shotDir, 'home.png')
await annotate(page, ['box|text=Log In|1|below'])
await page.screenshot({ path: homeShot })
seen.shots.push(homeShot)
await page.goto('http://localhost:4000/login', { waitUntil: 'networkidle', timeout: 120000 })
const email = page.locator('input[type="email"], input[name="email"]').first()
const pass = page.locator('input[type="password"]').first()
await email.waitFor({ timeout: 60000 })
seen.loginForm = (await email.isVisible()) && (await pass.isVisible())
await email.fill(adminEmail)
await pass.fill('x'.repeat(adminPass.length)) // a stand-in of the same length: the real password is typed only after the screenshot
const loginShot = join(shotDir, 'login.png')
await annotate(page, ['box|input[type="email"]|1', 'box|input[type="password"]|2'])
await page.screenshot({ path: loginShot })
seen.shots.push(loginShot)
await page.evaluate(() => document.querySelectorAll('[data-kb-annotations]').forEach((e) => e.remove()))
await pass.fill(adminPass)
await pass.press('Enter')
// signed in = the page has left /login AND the header no longer offers "Log In" (a spinner is not proof)
await page.waitForURL((u) => !u.pathname.startsWith('/login'), { timeout: 90000 }).catch(() => {})
await page.waitForLoadState('networkidle').catch(() => {})
await page.getByText('Log In', { exact: true }).first().waitFor({ state: 'detached', timeout: 30000 }).catch(() => {})
seen.url = page.url()
seen.signedIn = !new URL(seen.url).pathname.startsWith('/login') && (await page.getByText('Log In', { exact: true }).count()) === 0
const inShot = join(shotDir, 'signed-in.png')
await page.screenshot({ path: inShot })
seen.shots.push(inShot)
return seen
} finally {
if (browser) await browser.close()
tunnel.kill()
}
}
const check = (ctx) =>
bareBox(ctx, async ({ sudoUser }) => {
ctx.secret(DB_PASS)
ctx.secret(ADMIN_PASS)
const { run, ask, L, keepConfig } = sudoUser()
L('sudo true')
/** A claim the rest of the run cannot go on without: when it fails the run stops here (no 30 minutes on a broken box). */
const must = (claim, ok, seen, opt) => {
if (!ctx.check(claim, ok, seen, opt)) throw new Error(`stopped at a failed claim: ${claim}`)
}
/** Wait (hidden) until `cmd` prints something matching `re`; true when it did. */
const waitFor = (cmd, re, tries = 60, every = 5) => {
for (let i = 0; i < tries; i++) {
if (re.test(L(cmd))) return true
sleep(every)
}
return false
}
// ── step 1: the tools ────────────────────────────────────────────────────────────────────
const upd = run('sudo apt update', { id: 'apt-update', timeout: 600000 })
ctx.check('apt update reads the package lists', upd.exit === 0 && /Reading package lists|can be upgraded|All packages are up to date/.test(upd.out), upd.out.slice(-300))
const tools = run(
`sudo apt install -y openjdk-21-jdk-headless ant git curl unzip${R26 ? ' maven nodejs npm' : ''}`,
{ id: 'apt-install-tools', timeout: 900000 },
)
must('apt installs Java 21, Ant and git' + (R26 ? ', Maven, Node and npm' : ''), tools.exit === 0 && tools.out.includes('Setting up openjdk-21-jdk-headless'), tools.out.slice(-600))
if (!R26) {
// 24.04: Ubuntu's Maven is 3.8 and its Node is 18: both too old (DSpace needs Maven 3.9+, Node 20.19+/22/24).
const old = run('apt-cache policy maven nodejs | grep -E "^[a-z]|Candidate"', { id: 'apt-old-versions' })
ctx.check('24.04\'s archive has Maven 3.8 and Node 18: too old for DSpace 10', /Candidate: 3\.8\./.test(old.out) && /Candidate: 18\./.test(old.out), old.out)
const mvn = run(
`cd /tmp && curl -fsSLO https://archive.apache.org/dist/maven/maven-3/${MAVEN}/binaries/apache-maven-${MAVEN}-bin.tar.gz && curl -fsSLO https://archive.apache.org/dist/maven/maven-3/${MAVEN}/binaries/apache-maven-${MAVEN}-bin.tar.gz.sha512 && echo "$(cat apache-maven-${MAVEN}-bin.tar.gz.sha512) apache-maven-${MAVEN}-bin.tar.gz" | sha512sum -c - && sudo tar xzf apache-maven-${MAVEN}-bin.tar.gz -C /opt && sudo ln -sf /opt/apache-maven-${MAVEN}/bin/mvn /usr/local/bin/mvn`,
{ id: 'maven-binary', timeout: 600000 },
)
must(`Maven ${MAVEN} binary downloads, its SHA-512 matches, and mvn is on the PATH`, mvn.exit === 0 && /apache-maven-[\d.]+-bin\.tar\.gz: OK/.test(mvn.out), mvn.out)
const node = run(
`cd /tmp && curl -fsSLO https://nodejs.org/dist/v${NODE}/node-v${NODE}-linux-x64.tar.xz && curl -fsSLO https://nodejs.org/dist/v${NODE}/SHASUMS256.txt && grep " node-v${NODE}-linux-x64.tar.xz$" SHASUMS256.txt | sha256sum -c - && sudo tar xJf node-v${NODE}-linux-x64.tar.xz -C /opt && for b in node npm npx; do sudo ln -sf /opt/node-v${NODE}-linux-x64/bin/$b /usr/local/bin/$b; done`,
{ id: 'node-binary', timeout: 600000 },
)
must(`Node ${NODE} binary downloads, its SHA-256 matches, and node/npm are on the PATH`, node.exit === 0 && /node-v[\d.]+-linux-x64\.tar\.xz: OK/.test(node.out), node.out)
}
const ver = run('java -version 2>&1 | head -n 1; mvn -version | head -n 1; ant -version; node --version; npm --version', { id: 'versions' })
ctx.check('Java 21, Maven 3.9, Ant 1.10, Node 22 and npm all answer', /openjdk version "21\./.test(ver.out) && /Apache Maven 3\.9\./.test(ver.out) && /Apache Ant\(TM\) version 1\.10\./.test(ver.out) && /^v22\./m.test(ver.out), ver.out)
// ── step 2: PostgreSQL (17 from the PostgreSQL project on 26.04; Ubuntu's 16 on 24.04) ─────
let PG = '16'
if (R26) {
PG = '17'
const arch = run('apt-cache policy postgresql | grep Candidate', { id: 'pg-archive-version' })
ctx.check('26.04\'s own archive has PostgreSQL 18 (DSpace 10 supports 15, 16 and 17)', /Candidate: 18\+/.test(arch.out), arch.out)
const common = run('sudo apt install -y postgresql-common', { id: 'pg-common', timeout: 600000 })
ctx.check('postgresql-common installs', common.exit === 0, common.out.slice(-300))
const repo = run('sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y', { id: 'pg-repo', timeout: 600000 })
ctx.check('the script adds the PostgreSQL project\'s apt repository', repo.exit === 0 && /apt\.postgresql\.org/.test(repo.out), repo.out.slice(-500))
}
const pg = run(`sudo apt install -y postgresql${R26 ? '-17' : ''}`, { id: 'pg-install', timeout: 900000 })
must(`PostgreSQL ${PG} installs`, pg.exit === 0 && pg.out.includes(`Creating new PostgreSQL cluster ${PG}/main`), pg.out.slice(-600))
const lsc = run('pg_lsclusters', { id: 'lsclusters' })
ctx.check(`the ${PG} cluster "main" is online on 5432`, new RegExp(`${PG}\\s+main\\s+5432\\s+online`).test(lsc.out), lsc.out)
// the panel shows [password] where the reader types their own (the test password never reaches a run file)
const MKDB = (pw) => `sudo -u postgres psql -c "CREATE USER dspace WITH PASSWORD '${pw}';" && sudo -u postgres createdb --owner=dspace --encoding=UNICODE dspace && sudo -u postgres psql -c '\\l dspace'`
const mkdb = run(MKDB(DB_PASS), { id: 'pg-db', show: MKDB('[password]') })
must('role dspace and database dspace (UTF8, owner dspace) exist', mkdb.exit === 0 && /CREATE ROLE/.test(mkdb.out) && /dspace\s*\|\s*dspace\s*\|\s*UTF8/.test(mkdb.out), mkdb.out)
// ── step 3: the dspace user and /dspace ──────────────────────────────────────────────────
const user = run('sudo useradd --system --create-home --home-dir /home/dspace --shell /bin/bash dspace && sudo mkdir /dspace && sudo chown dspace:dspace /dspace && ls -ld /dspace /home/dspace', { id: 'user' })
must('the dspace user, /home/dspace and /dspace exist, owned by dspace', user.exit === 0 && /dspace dspace .* \/dspace/.test(user.out), user.out)
// Both releases create the home directory mode 750 (HOME_MODE 0750 in /etc/login.defs; seen on the 24.04 box
// 2026-11-20 as drwxr-x---): the login user cannot look inside.
const perm = run('ls /home/dspace', { id: 'err-home-permission' })
ctx.check(
R26 ? '26.04: the sudo user cannot read /home/dspace (home mode 750): Permission denied' : '24.04: the sudo user cannot read /home/dspace (home mode 750): Permission denied',
perm.exit !== 0 && /Permission denied/.test(perm.out),
perm.out,
)
const hm = run('grep ^HOME_MODE /etc/login.defs; stat -c "%a %U %n" /home/dspace', { id: 'home-mode' })
ctx.check('HOME_MODE and the real mode of /home/dspace', hm.exit === 0, hm.out)
// ── step 4: Solr ─────────────────────────────────────────────────────────────────────────
const dl = run(
`cd /tmp && curl -fsSLO https://downloads.apache.org/solr/solr/${SOLR}/solr-${SOLR}.tgz && curl -fsSLO https://downloads.apache.org/solr/solr/${SOLR}/solr-${SOLR}.tgz.sha512 && sha512sum -c solr-${SOLR}.tgz.sha512`,
{ id: 'solr-download', timeout: 900000 },
)
must(`Solr ${SOLR} downloads and its SHA-512 matches`, dl.exit === 0 && new RegExp(`solr-${SOLR}\\.tgz: OK`).test(dl.out), dl.out)
const inst = run(
`cd /tmp && tar xzf solr-${SOLR}.tgz solr-${SOLR}/bin/install_solr_service.sh --strip-components=2 && sudo bash ./install_solr_service.sh solr-${SOLR}.tgz -n`,
{ id: 'solr-install', timeout: 600000 },
)
must('the Solr install script creates the service (not started: -n)', inst.exit === 0 && /Service solr installed/.test(inst.out), inst.out.slice(-500))
const cfg = run(
`echo 'SOLR_OPTS="$SOLR_OPTS -Dsolr.config.lib.enabled=true"' | sudo tee -a /etc/default/solr.in.sh && echo 'SOLR_JETTY_HOST="127.0.0.1"' | sudo tee -a /etc/default/solr.in.sh && sudo systemctl start solr`,
{ id: 'solr-config' },
)
ctx.check('the two Solr settings are written and Solr starts', cfg.exit === 0, cfg.out)
must('Solr answers on 127.0.0.1:8983', waitFor('curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:8983/solr/', /^200$/, 30, 2), '')
const solrSs = run('sudo ss -ltnp | grep 8983', { id: 'solr-ss' })
ctx.check('Solr listens on 127.0.0.1 only', /127\.0\.0\.1\]?:8983/.test(solrSs.out) && !/0\.0\.0\.0:8983|\*:8983/.test(solrSs.out), solrSs.out)
// ── step 5: the source and local.cfg ─────────────────────────────────────────────────────
const src = run(
`${AS_DSPACE} bash -c "mkdir -p src && curl -fsSL https://github.com/DSpace/DSpace/archive/refs/tags/dspace-10.1.tar.gz | tar xz -C src && ls src"`,
{ id: 'src', timeout: 600000 },
)
must('the DSpace 10.1 source unpacks to src/' + DSPACE_DIR, src.exit === 0 && src.out.includes(DSPACE_DIR), src.out)
const LCFG = (pw) => `${AS_DSPACE} bash -c "cd src/${DSPACE_DIR}/dspace/config && cp local.cfg.EXAMPLE local.cfg && sed -i 's/^db.password = .*/db.password = ${pw}/' local.cfg && grep -E '^(dspace\\.(dir|server\\.url|ui\\.url|name)|solr\\.server|db\\.(url|username|password))' local.cfg"`
const lcfg = run(LCFG(DB_PASS), { id: 'local-cfg', show: LCFG('[password]') })
must('local.cfg: /dspace, http://localhost:8080/server, http://localhost:4000, Solr on localhost, db user dspace', lcfg.exit === 0 && /dspace\.dir\s*=\s*\/dspace/.test(lcfg.out) && /dspace\.server\.url = http:\/\/localhost:8080\/server/.test(lcfg.out) && /dspace\.ui\.url = http:\/\/localhost:4000/.test(lcfg.out) && /db\.username = dspace/.test(lcfg.out), lcfg.out)
// ── step 6: build and install the backend ────────────────────────────────────────────────
const build = run(
`${AS_DSPACE} bash -c "cd src/${DSPACE_DIR} && time mvn package -B -ntp 2>&1 | tail -n 14"`,
{ id: 'mvn-package', timeout: 3000000 },
)
must('mvn package: BUILD SUCCESS', /BUILD SUCCESS/.test(build.out), build.out)
const ant = run(
`${AS_DSPACE} bash -c "cd src/${DSPACE_DIR}/dspace/target/dspace-installer && ant fresh_install 2>&1 | tail -n 12"`,
{ id: 'ant', timeout: 900000 },
)
must('ant fresh_install: BUILD SUCCESSFUL', /BUILD SUCCESSFUL/.test(ant.out), ant.out)
const mig = run(`${AS_DSPACE} bash -c "/dspace/bin/dspace database migrate 2>&1 | tail -n 5; /dspace/bin/dspace database info 2>&1 | tail -n 10"`, { id: 'migrate', timeout: 900000 })
must('database migrate runs, database info lists the migrations as Success', /Success/.test(mig.out) && !/Failed/.test(mig.out), mig.out)
const cores = run(
`sudo cp -R /dspace/solr/* /var/solr/data/ && sudo chown -R solr:solr /var/solr/data && sudo systemctl restart solr`,
{ id: 'cores-copy' },
)
must('the seven Solr cores are copied and Solr restarts', cores.exit === 0, cores.out)
ctx.check('Solr is back after the restart', waitFor('curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:8983/solr/', /^200$/, 30, 2), '')
const corelist = run(
`curl -s 'http://localhost:8983/solr/admin/cores?action=STATUS&wt=json' | python3 -c 'import json,sys;print(sorted(json.load(sys.stdin)["status"]))'`,
{ id: 'cores-list' },
)
must('Solr lists audit, authority, oai, qaevent, search, statistics and suggestion', /\['audit', 'authority', 'oai', 'qaevent', 'search', 'statistics', 'suggestion'\]/.test(corelist.out), corelist.out)
// ── step 7: the backend as a service ─────────────────────────────────────────────────────
const unit = run(
[
`sudo tee /etc/systemd/system/dspace.service > /dev/null <<'EOF'`,
'[Unit]',
'Description=DSpace backend (REST API)',
'After=network.target postgresql.service solr.service',
'Wants=postgresql.service solr.service',
'',
'[Service]',
'User=dspace',
'WorkingDirectory=/dspace',
'ExecStart=/usr/bin/java -Xmx2g -Dfile.encoding=UTF-8 -jar /dspace/webapps/server-boot.jar --server.address=127.0.0.1',
'SuccessExitStatus=143',
'Restart=on-failure',
'',
'[Install]',
'WantedBy=multi-user.target',
'EOF',
].join('\n'),
{ id: 'backend-unit' },
)
ctx.check('the backend unit file is written', unit.exit === 0, unit.out)
const start = run('sudo systemctl daemon-reload && sudo systemctl enable --now dspace', { id: 'backend-start' })
ctx.check('the backend unit is enabled and started', start.exit === 0, start.out)
must('the backend answers on 127.0.0.1:8080 within 5 minutes', waitFor('curl -s -o /dev/null -w "%{http_code}" http://localhost:8080/server/api', /^200$/, 60, 5), '')
const api = run(`curl -s http://localhost:8080/server/api | grep -o '"dspaceVersion" *: *"[^"]*"'`, { id: 'backend-api' })
must('the REST root says DSpace 10.1', /"dspaceVersion" *: *"DSpace 10\.1"/.test(api.out), api.out, {
reader: { cmd: `curl -s http://localhost:8080/server/api | grep -o '"dspaceVersion" *: *"[^"]*"'`, expect: 'DSpace 10\\.' },
})
const oai = run(`curl -s 'http://localhost:8080/server/oai/request?verb=Identify' | grep -o '[^<]*\\|[^<]*'`, { id: 'oai' })
ctx.check('OAI-PMH Identify answers (it needs the oai Solr core)', /2\.0<\/protocolVersion>/.test(oai.out), oai.out)
// ── step 8: the administrator ────────────────────────────────────────────────────────────
const noTty = run(`${AS_DSPACE} /dspace/bin/dspace create-administrator < /dev/null`, { id: 'err-admin-console', show: `${AS_DSPACE} /dspace/bin/dspace create-administrator < /dev/null` })
ctx.check('without a terminal, create-administrator fails with the Console NullPointerException', /Cannot invoke "java\.io\.Console\.readLine\(\)" because "console" is null/.test(noTty.out), noTty.out.slice(0, 800))
const adm = ask(
`${AS_DSPACE} /dspace/bin/dspace create-administrator`,
[
['E-mail address: ', ADMIN_EMAIL],
['First name: ', 'Ada'],
['Last name: ', 'Admin'],
['Is the above data correct\\? \\(y or n\\): ', 'y'],
['Password: '[password]'Again to confirm: ', ADMIN_PASS],
],
{ id: 'admin', publicReplies: true },
)
must('create-administrator on a terminal: Administrator account created', /Administrator account created/.test(adm.out), adm.out)
// ── step 9: the web interface ────────────────────────────────────────────────────────────
const ui = run(
`${AS_DSPACE} bash -c "curl -fsSL https://github.com/DSpace/dspace-angular/archive/refs/tags/dspace-10.1.tar.gz | tar xz -C src && cd src/${UI_DIR} && time npm ci 2>&1 | tail -n 20"`,
{ id: 'ui-npm-ci', timeout: 1800000 },
)
must('the UI source unpacks and npm ci finishes without an error', ui.exit === 0 && /added \d+ packages/.test(ui.out) && !/ERESOLVE|npm ERR!/.test(ui.out), ui.out)
const build1 = run(
// grep, not tail: Node's own build (24.04's tarball) prints a long native stack AFTER the message (2026-11-20)
`${AS_DSPACE} bash -o pipefail -c "cd src/${UI_DIR} && npm run build:prod 2>&1 | grep -m 1 -E 'heap out of memory|FATAL ERROR'"`,
{ id: 'err-ui-heap', timeout: 1800000 },
)
ctx.check('npm run build:prod with Node\'s default memory: JavaScript heap out of memory', build1.exit !== 0 && /JavaScript heap out of memory/.test(build1.out), build1.out)
const build2 = run(
`${AS_DSPACE} bash -o pipefail -c "cd src/${UI_DIR} && time NODE_OPTIONS=--max-old-space-size=4096 npm run build:prod 2>&1 | tail -n 8"`,
{ id: 'err-ui-oom', timeout: 3000000 },
)
ctx.check('with a 4 GB heap and no swap on 8 GB, the build is killed', build2.exit !== 0 && /Killed/.test(build2.out), build2.out)
const dm = run(`sudo dmesg | grep -iE 'out of memory|oom-kill' | cut -c1-160 | tail -n 2`, { id: 'err-ui-dmesg' })
ctx.check('the kernel log says the OOM killer ended "ng run"', /ng run/.test(dm.out) && /Out of memory/i.test(dm.out), dm.out)
const swap = run('sudo fallocate -l 4G /swapfile && sudo chmod 600 /swapfile && sudo mkswap /swapfile && sudo swapon /swapfile && swapon --show', { id: 'swap' })
ctx.check('a 4 GB swap file is on', swap.exit === 0 && /\/swapfile\s+file\s+4G/.test(swap.out), swap.out)
const build3 = run(
`${AS_DSPACE} bash -o pipefail -c "cd src/${UI_DIR} && time NODE_OPTIONS=--max-old-space-size=4096 npm run build:prod 2>&1 | tail -n 8"`,
{ id: 'ui-build', timeout: 3000000 },
)
must('with a 4 GB heap and 4 GB swap the build finishes', build3.exit === 0 && /real\s/.test(build3.out) && !/Killed|FATAL/.test(build3.out), build3.out)
const noSwap = run('sudo swapoff /swapfile && sudo rm /swapfile && free -m', { id: 'swap-off' })
ctx.check('swap is removed again after the build', noSwap.exit === 0, noSwap.out)
const deploy = run(
`${AS_DSPACE} bash -c "mkdir -p ui/config && cp -r src/${UI_DIR}/dist ui/ && cat > ui/config/config.prod.yml" <<'EOF'\nui:\n ssl: false\n host: 127.0.0.1\n port: 4000\n baseUrl: http://localhost:4000\n nameSpace: /\nrest:\n ssl: false\n host: localhost\n port: 8080\n nameSpace: /server\nEOF`,
{ id: 'ui-config' },
)
ctx.check('dist is copied to ~/ui and config.prod.yml is written', deploy.exit === 0, deploy.out)
const rest = run(`${AS_DSPACE} bash -c "cd src/${UI_DIR} && cp ~/ui/config/config.prod.yml config/ && npm run test:rest 2>&1 | tail -n 12"`, { id: 'test-rest', timeout: 300000 })
must('npm run test:rest: 200, DSpace 10.1, the rest settings match, HAL links', /RESPONSE: 200/.test(rest.out) && /DSpace 10\.1/.test(rest.out) && /matches UI's "rest" config\? true/.test(rest.out) && /HAL links.*true/.test(rest.out), rest.out)
const uiunit = run(
[
`sudo tee /etc/systemd/system/dspace-ui.service > /dev/null <<'EOF'`,
'[Unit]',
'Description=DSpace web interface',
'After=network.target dspace.service',
'Wants=dspace.service',
'',
'[Service]',
'User=dspace',
'WorkingDirectory=/home/dspace/ui',
'Environment=NODE_ENV=production',
'ExecStart=/usr/' + (R26 ? '' : 'local/') + 'bin/node dist/server/main.js',
'Restart=on-failure',
'',
'[Install]',
'WantedBy=multi-user.target',
'EOF',
].join('\n'),
{ id: 'ui-unit' },
)
ctx.check('the UI unit file is written', uiunit.exit === 0, uiunit.out)
const uistart = run('sudo systemctl daemon-reload && sudo systemctl enable --now dspace-ui', { id: 'ui-start' })
ctx.check('the UI unit is enabled and started', uistart.exit === 0, uistart.out)
must('the UI answers on 127.0.0.1:4000', waitFor('curl -s -o /dev/null -w "%{http_code}" http://localhost:4000/', /^200$/, 30, 3), '')
const title = run(`curl -s http://localhost:4000/ | grep -o '[^<]*'`, { id: 'ui-title' })
ctx.check('the home page is "DSpace Repository :: Home"', /DSpace Repository :: Home<\/title>/.test(title.out), title.out, {
reader: { cmd: `curl -s http://localhost:4000/ | grep -o '[^<]*'`, expect: 'DSpace Repository ::' },
})
// ── step 10: reboot, what listens, what it uses ──────────────────────────────────────────
L('sudo systemctl reboot', 30000)
sleep(40)
ctx.check('the server answers over SSH again after the reboot', waitFor('echo up', /up/, 60, 5), '')
ctx.check('all four services come back by themselves', waitFor('systemctl is-active postgresql solr dspace dspace-ui | tr "\\n" " "', /^active active active active\s*$/, 60, 5), '')
ctx.check('the UI answers again', waitFor('curl -s -o /dev/null -w "%{http_code}" http://localhost:4000/', /^200$/, 30, 3), '')
const act = run('systemctl is-active postgresql solr dspace dspace-ui', { id: 'is-active' })
ctx.check('postgresql, solr, dspace and dspace-ui are active after the reboot', act.out.split('\n').filter((l) => l.trim() === 'active').length === 4, act.out, {
// the reader script matches line by line (grep -P): put the four words on one line
reader: { cmd: "systemctl is-active postgresql solr dspace dspace-ui | tr '\\n' ' '", expect: '^active active active active' },
})
const ports = run(`sudo ss -ltnp | awk 'NR==1 || /:(22|4000|8080|8983|5432) /{print $4, $6}'`, { id: 'ports' })
ctx.check('only SSH (port 22) listens on the public address; 4000, 8080, 8983 and 5432 are localhost', /:22 /.test(ports.out) && !/(0\.0\.0\.0|\*|\[::\]):(4000|8080|8983|5432) /.test(ports.out), ports.out, {
reader: { cmd: `sudo ss -ltn | awk '/:(4000|8080|8983) /{print $4}'`, expect: '^(127\\.0\\.0\\.1|\\[::ffff:127\\.0\\.0\\.1\\]):' },
})
// the configuration as it is on the working server after the reboot (the page's "Configuration files" and /configs)
keepConfig('/etc/systemd/system/dspace.service')
keepConfig('/etc/systemd/system/dspace-ui.service')
keepConfig('/home/dspace/ui/config/config.prod.yml', { cmd: `${AS_DSPACE} cat ui/config/config.prod.yml` })
keepConfig(`/home/dspace/src/${DSPACE_DIR}/dspace/config/local.cfg`, {
cmd: `${AS_DSPACE} bash -c "grep -vE '^[[:space:]]*(#|$)' src/${DSPACE_DIR}/dspace/config/local.cfg"`,
note: 'only the active lines; the file also holds many commented examples',
})
keepConfig('/etc/default/solr.in.sh', { cmd: `sudo grep -E '^(SOLR_OPTS|SOLR_JETTY_HOST)=' /etc/default/solr.in.sh`, note: 'only the two lines this guide adds' })
const mem = run(`free -m && ps -eo rss,args --sort=-rss | head -n 4 | cut -c1-90`, { id: 'memory' })
ctx.check('memory after the reboot is read from the box', mem.exit === 0 && /Mem:/.test(mem.out), mem.out)
// ── a browser, through an SSH tunnel (the page's screenshots come from here) ─────────────
const b = await browserShots(ADMIN_EMAIL, ADMIN_PASS)
ctx.check('(browser, through ssh -L 4000 -L 8080) the home page opens: "DSpace Repository :: Home"', /DSpace Repository :: Home/.test(b.home), b.home)
ctx.check('(browser) the login page shows the email and password fields', b.loginForm, '')
ctx.check('(browser) signing in as the administrator works (the page leaves /login and the header no longer offers Log In)', b.signedIn, `${b.url}\n${b.shots.map((p) => p.split('/').pop()).join('\n')}`)
ctx.check('(browser) the first sign-in lands on the End User Agreement page', /\/info\/end-user-agreement/.test(b.url ?? ''), b.url ?? '')
ctx.stepsDone()
// ── "Tested on": read from the box ───────────────────────────────────────────────────────
reportBox(
ctx,
L,
`A fresh Ubuntu ${RELEASE} server with 8 GB of memory as a provider hands it over, reached over SSH as a sudo user.`,
R26
? ['openjdk-21-jdk-headless', 'maven', 'ant', 'nodejs', 'npm', 'postgresql-17']
: ['openjdk-21-jdk-headless', 'ant', 'postgresql-16'],
[
// not dpkg packages: read from the installed files (the source links map them to DSpace's and Solr's tags)
{ name: 'dspace', cmd: `${AS_DSPACE} /dspace/bin/dspace version 2>&1 | grep -m 1 -i 'version'`, re: /(\d+\.\d+(?:\.\d+)?)/ },
{ name: 'solr', cmd: 'readlink -f /opt/solr', re: /solr-(\d+\.\d+\.\d+)$/m },
...(R26 ? [] : [{ name: 'maven', cmd: 'mvn -version | head -n 1', re: /Apache Maven (\d+\.\d+\.\d+)/ }, { name: 'nodejs', cmd: 'node --version', re: /^v(\d+\.\d+\.\d+)/m }]),
],
)
})
export default check