You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Dan, how are you? hope everything is going well.
Sorry for the intrusion, but I would like to ask you if it is possible to modify the installation path of nexus-iq for a custom one? I tried yesterday to manually change the paths in the files but the daemond fails and does not find the service.
the need arises from wanting to install nexus iq on a second dedicated disk leaving the main disk apart from the application.
I have modified the /rpm/nexus-iq-server.spec file with the secondary HD paths, but the installation is fine but the service is not up. I have modified the path of the daemon files
%pre
echo pre $1
if [ $1 = 1 ] || [ "$1" = "install" ]; then
[ -d /mnt/sda1/sonatype/sonatype-work/iqserver ] || mkdir -p /mnt/sda1/sonatype/sonatype-work/iqserver
create user account
getent group iqserver >/dev/null || groupadd -r iqserver
getent passwd iqserver >/dev/null ||
useradd -r -g iqserver -d /mnt/sda1/sonatype/sonatype-work/iqserver -m -c "iqserver role account" -s /bin/bash iqserver
fi
stop the service before upgrading
if [ $1 = 2 ] || [ "$1" = "upgrade" ]; then
if [ ! -f /etc/systemd/system/%{service_name} ]; then
# use old init script to stop old service
if [ $1 = 2 ]; then
/sbin/service nexus-iq-server stop
elif [ "$1" = "upgrade" ]; then
/usr/sbin/service nexus-iq-server stop
fi
else
systemctl stop %{service_name}
fi
fi
%post
echo post $1
start the service upon first installation
if [ $1 = 1 ] || [ "$1" = "configure" ]; then
systemctl daemon-reload
systemctl enable %{service_name}
systemctl start %{service_name}
fi
start the service after upgrading
if [ $1 = 2 ] || [ "$1" = "upgrade" ]; then
systemctl start %{service_name}
fi
%preun
echo preun $1
if [ $1 = 0 ] || [ "$1" = "remove" ]; then
systemctl stop %{service_name}
systemctl disable %{service_name}
fi
/usr/lib/rpm/redhat/brp-ldconfig
/sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory
useradd -r -g iqserver -d /mnt/sda1/sonatype/sonatype-work/iqserver -m -c 'iqserver role account' -s /bin/bash iqserver
useradd: cannot set SELinux context for home directory /mnt/sda1/sonatype/sonatype-work/iqserver
'[' 1 = 2 ']'
'[' 1 = upgrade ']'
D: %prein(nexus-iq-server-1.149.0_01-1.el7.noarch): waitpid(10032) rc 10032 status 0
Updating / installing...
1:nexus-iq-server-1.149.0_01-1.el7 D: ========== Directories not explicitly included in package:
D: 0 /etc/systemd/system/
D: 1 /mnt/sda1/sonatype/
D: 5 /mnt/sda1/sonatype/sonatype-work/
D: ==========
D: create 120777 1 ( 0, 0) 64 /etc/systemd/system/nexus-iq-server.service;637fe78f
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: lsetfilecon: (/etc/systemd/system/nexus-iq-server.service;637fe78f, system_u:object_r:systemd_unit_file_t:s0)
D: create 040755 1 ( 0, 0) 0 /mnt/sda1/sonatype/iqserver
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 100644 1 ( 0, 0) 1661 /mnt/sda1/sonatype/iqserver/README.txt;637fe78f
ufdio: 1 writes, 1661 total bytes in 0.000023 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 100644 1 ( 0, 0) 6207 /mnt/sda1/sonatype/iqserver/config.yml;637fe78f
ufdio: 1 writes, 6207 total bytes in 0.000015 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 100644 1 ( 0, 0) 306 /mnt/sda1/sonatype/iqserver/demo.bat;637fe78f
ufdio: 1 writes, 306 total bytes in 0.000010 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 100744 1 ( 0, 0) 294 /mnt/sda1/sonatype/iqserver/demo.sh;637fe78f
ufdio: 1 writes, 294 total bytes in 0.000008 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 100644 1 ( 0, 0) 44131 /mnt/sda1/sonatype/iqserver/eula.html;637fe78f
ufdio: 2 writes, 44131 total bytes in 0.000024 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 040775 1 ( 0, 0) 0 /mnt/sda1/sonatype/iqserver/extra
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 040775 1 ( 0, 0) 0 /mnt/sda1/sonatype/iqserver/extra/daemon
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 100755 1 ( 0, 0) 1467 /mnt/sda1/sonatype/iqserver/extra/daemon/nexus-iq-server;637fe78f
ufdio: 1 writes, 1467 total bytes in 0.000014 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 100664 1 ( 0, 0) 308 /mnt/sda1/sonatype/iqserver/extra/daemon/nexus-iq-server.service;637fe78f
ufdio: 1 writes, 308 total bytes in 0.000009 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 100644 1 ( 0, 0)29845688 /mnt/sda1/sonatype/iqserver/nexus-iq-cli-1.149.0-01.jar;637fe78f
ufdio: 911 writes, 29845688 total bytes in 0.208679 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 100644 1 ( 0, 0)139980196 /mnt/sda1/sonatype/iqserver/nexus-iq-server-1.149.0-01.jar;637fe78f
################################# [100%]
ufdio: 4272 writes, 139980196 total bytes in 1.064140 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 040755 1 ( 972, 972) 0 /mnt/sda1/sonatype/sonatype-work/iqserver
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 040755 1 ( 972, 972) 0 /mnt/sda1/sonatype/sonatype-work/iqserver/log
D: Plugin: calling hook fsm_file_prepare in selinux plugin
fdio: 5258 reads, 169882804 total bytes in 12.312808 secs
D: adding "nexus-iq-server" to Name index.
D: adding 15 entries to Basenames index.
D: adding "Unspecified" to Group index.
D: adding 11 entries to Requirename index.
D: adding 2 entries to Providename index.
D: adding 7 entries to Dirnames index.
D: adding 1 entries to Installtid index.
D: adding 1 entries to Sigmd5 index.
D: adding "3f32f1d75ea2f1b7a9aefc45758fc6ab6caeadaa" to Sha1header index.
D: %post(nexus-iq-server-1.149.0_01-1.el7.noarch): scriptlet start
fdio: 2 writes, 348 total bytes in 0.000080 secs
D: %post(nexus-iq-server-1.149.0_01-1.el7.noarch): execv(/bin/sh) pid 10050
D: Plugin: calling hook scriptlet_fork_post in selinux plugin
D: setexecfilecon: (/bin/sh, rpm_script_t)
echo post 1
post 1
'[' 1 = 1 ']'
systemctl daemon-reload
systemctl enable nexus-iq-server.service
Created symlink /etc/systemd/system/multi-user.target.wants/nexus-iq-server.service → /mnt/sda1/sonatype/iqserver/extra/daemon/nexus-iq-server.service.
systemctl start nexus-iq-server.service
'[' 1 = 2 ']'
'[' 1 = upgrade ']'
D: %post(nexus-iq-server-1.149.0_01-1.el7.noarch): waitpid(10050) rc 10050 status 0
ufdio: 6 reads, 10532 total bytes in 0.000014 secs
D: running post-transaction scripts
D: %transfiletriggerin(systemd-239-18.el8.x86_64): scriptlet start
fdio: 2 writes, 322 total bytes in 0.000013 secs
D: %transfiletriggerin(systemd-239-18.el8.x86_64): execv(/bin/sh) pid 10101
D: Plugin: calling hook scriptlet_fork_post in selinux plugin
D: setexecfilecon: (/bin/sh, rpm_script_t)
test -d /run/systemd/system
/usr/bin/systemctl daemon-reload
D: %transfiletriggerin(systemd-239-18.el8.x86_64): waitpid(10101) rc 10101 status 0
D: read h# 1596
Header SHA256 digest: OK
Header SHA1 digest: OK
D: Plugin: calling hook psm_pre in selinux plugin
D: Plugin: calling hook tsm_post in selinux plugin
D: Plugin: calling hook tsm_post in systemd_inhibit plugin
D: System shutdown unblocked
D: closed db index /var/lib/rpm/Packages
D: closed db index /var/lib/rpm/Enhancename
D: closed db index /var/lib/rpm/Supplementname
D: closed db index /var/lib/rpm/Suggestname
D: closed db index /var/lib/rpm/Recommendname
D: closed db index /var/lib/rpm/Transfiletriggername
D: closed db index /var/lib/rpm/Filetriggername
D: closed db index /var/lib/rpm/Sha1header
D: closed db index /var/lib/rpm/Sigmd5
D: closed db index /var/lib/rpm/Installtid
D: closed db index /var/lib/rpm/Dirnames
D: closed db index /var/lib/rpm/Triggername
D: closed db index /var/lib/rpm/Obsoletename
D: closed db index /var/lib/rpm/Conflictname
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Requirename
D: closed db index /var/lib/rpm/Group
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Name
D: closed db environment /var/lib/rpm
D: Exit status: 0
FAIL
[root@localhost build]# service nexus-iq-server status
Redirecting to /bin/systemctl status nexus-iq-server.service
● nexus-iq-server.service - Nexus IQ Service
Loaded: loaded (/mnt/sda1/sonatype/iqserver/extra/daemon/nexus-iq-server.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2022-11-24 13:52:33 PST; 51s ago
Main PID: 10100 (code=exited, status=203/EXEC)
Nov 24 13:52:33 localhost.localdomain systemd[1]: Started Nexus IQ Service.
Nov 24 13:52:33 localhost.localdomain systemd[1]: nexus-iq-server.service: Main process exited, code=exited, status=203/EXEC
Nov 24 13:52:33 localhost.localdomain systemd[1]: nexus-iq-server.service: Failed with result 'exit-code'.
[root@localhost build]#
The text was updated successfully, but these errors were encountered:
@creobox1975 Thanks for opening this issue! I don't know of an easy way to change the installation directory. (If anyone out there has ideas about how to alter the installer to support this, PR's and pointers are welcome!).
That said, you might try using a linked folder that puts the directory /opt/sonatype onto the disk you desire. This way the paths used by the daemon should still work. NOTE: I haven't tried this, but please post your results here if you do give it a whirl.
One thing to be aware of: make sure the disk you use is available at boot time - as I've seen some issues when a machine boots, but the required external disks are not yet mounted when the system daemon launches...
Hi Dan, how are you? hope everything is going well.
Sorry for the intrusion, but I would like to ask you if it is possible to modify the installation path of nexus-iq for a custom one? I tried yesterday to manually change the paths in the files but the daemond fails and does not find the service.
the need arises from wanting to install nexus iq on a second dedicated disk leaving the main disk apart from the application.
GitHub - sonatype-nexus-community/nexus-iq-server-installer: Installer for Nexus IQ Server
I have modified the /rpm/nexus-iq-server.spec file with the secondary HD paths, but the installation is fine but the service is not up. I have modified the path of the daemon files
/rpm/nexus-iq-server.spec
Name: nexus-iq-server
Version: %%VERSION%%
Release: %%RELEASE%%
Summary: Nexus IQ Server
License: Proprietary
Requires: systemd
Requires: java-1.8.0-openjdk-headless
URL: https://www.sonatype.com
Source0: %%BUNDLE_FILE%%
Source1: %{name}-%{version}-rpm.tar.gz
BuildRoot: %{_tmppath}/nexus-iq-server
BuildArch: noarch
#Prefix: /
%define __jar_repack %{nil}
%define service_name %{name}.service
%description
Nexus IQ Server
%prep
rm -rf ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}
mkdir -p ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}
cd ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}
tar -xz
-f %{SOURCE0}
tar -xz -f %{SOURCE1}
%build
cd ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/mnt/sda1/sonatype/iqserver
rsync -v -a ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}/ %{buildroot}/mnt/sda1/sonatype/iqserver
mkdir -p %{buildroot}/mnt/sda1/sonatype/sonatype-work/iqserver/log
#rsync -a ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}/sonatype-work/iqserver/ %{buildroot}/mnt/sda1/sonatype/sonatype-work/iqserver
#patch config
perl -p -i -e 's/sonatypeWork: ./sonatype-work/clm-server/sonatypeWork: /mnt/sda1/sonatype/sonatype-work/iqserver/g' %{buildroot}/mnt/sda1/sonatype/iqserver/config.yml
perl -p -i -e 's/: ./log//: /mnt/sda1/sonatype/sonatype-work/iqserver/log//g' %{buildroot}/mnt/sda1/sonatype/iqserver/config.yml
perl -p -i -e 's/VERSION=replaceMeIQServerVersion/VERSION=%%JAR_VERSION%%/g' %{buildroot}/mnt/sda1/sonatype/iqserver/extra/daemon/nexus-iq-server
mkdir -p %{buildroot}/etc/systemd/system
ln -sf /mnt/sda1/sonatype/iqserver/extra/daemon/%{service_name} %{buildroot}/etc/systemd/system/%{service_name}
%clean
rm -rf %{buildroot}
%pre
echo pre $1
if [ $1 = 1 ] || [ "$1" = "install" ]; then
[ -d /mnt/sda1/sonatype/sonatype-work/iqserver ] || mkdir -p /mnt/sda1/sonatype/sonatype-work/iqserver
create user account
getent group iqserver >/dev/null || groupadd -r iqserver
getent passwd iqserver >/dev/null ||
useradd -r -g iqserver -d /mnt/sda1/sonatype/sonatype-work/iqserver -m -c "iqserver role account" -s /bin/bash iqserver
fi
stop the service before upgrading
if [ $1 = 2 ] || [ "$1" = "upgrade" ]; then
if [ ! -f /etc/systemd/system/%{service_name} ]; then
# use old init script to stop old service
if [ $1 = 2 ]; then
/sbin/service nexus-iq-server stop
elif [ "$1" = "upgrade" ]; then
/usr/sbin/service nexus-iq-server stop
fi
else
systemctl stop %{service_name}
fi
fi
%post
echo post $1
start the service upon first installation
if [ $1 = 1 ] || [ "$1" = "configure" ]; then
systemctl daemon-reload
systemctl enable %{service_name}
systemctl start %{service_name}
fi
start the service after upgrading
if [ $1 = 2 ] || [ "$1" = "upgrade" ]; then
systemctl start %{service_name}
fi
%preun
echo preun $1
if [ $1 = 0 ] || [ "$1" = "remove" ]; then
systemctl stop %{service_name}
systemctl disable %{service_name}
fi
%files
%defattr(-,root,root,-)
/etc/systemd/system/%{service_name}
/mnt/sda1/sonatype/iqserver
%dir %config(noreplace) /mnt/sda1/sonatype/iqserver/extra
%config(noreplace) /mnt/sda1/sonatype/iqserver/config.yml
%config /mnt/sda1/sonatype/iqserver/demo.bat
%config /mnt/sda1/sonatype/iqserver/demo.sh
%config /mnt/sda1/sonatype/iqserver/extra/daemon/nexus-iq-server
%config /mnt/sda1/sonatype/iqserver/extra/daemon/%{service_name}
%defattr(-,iqserver,iqserver)
/mnt/sda1/sonatype/sonatype-work/iqserver
%changelog
increase max memory for jvm to 4gb. add systemd service timeout.
fix init service stop bug during upgrade
switch to systemd
add openjdk dependency
initial .spec from prior work of Jason Swank, Rick Briganti, Alvin Gunkel
Make build output
[root@localhost nexus-iq-server-installer-main]# make build
fetching bundle from https://download.sonatype.com/clm/server/nexus-iq-server-1.149.0-01-bundle.tar.gz
mkdir -p /mnt/sda1/nexus-iq-server-installer-main/build/rpmbuild/BUILD
mkdir -p /mnt/sda1/nexus-iq-server-installer-main/build/rpmbuild/SRPMS
mkdir -p /mnt/sda1/nexus-iq-server-installer-main/build/rpmbuild/RPMS
mkdir -p /mnt/sda1/nexus-iq-server-installer-main/build/rpmbuild/SPECS
mkdir -p /mnt/sda1/nexus-iq-server-installer-main/build/rpmbuild/SOURCES
tar -cz --exclude .gitignore -f /mnt/sda1/nexus-iq-server-installer-main/build/rpmbuild/SOURCES/nexus-iq-server-1.149.0_01-rpm.tar.gz extra
cp /mnt/sda1/nexus-iq-server-installer-main/build/nexus-iq-server-1.149.0-01-bundle.tar.gz /mnt/sda1/nexus-iq-server-installer-main/build/rpmbuild/SOURCES/nexus-iq-server-1.149.0-01-bundle.tar.gz
sed
-e "s|%%RELEASE%%|1.el7|"
-e "s|%%VERSION%%|1.149.0_01|"
-e "s|%%BUNDLE_FILE%%|nexus-iq-server-1.149.0-01-bundle.tar.gz|"
-e "s|%%JAR_VERSION%%|1.149.0-01|"
rpm/nexus-iq-server.spec > /mnt/sda1/nexus-iq-server-installer-main/build/rpmbuild/SPECS/nexus-iq-server.spec
rpmbuild --define '_topdir /mnt/sda1/nexus-iq-server-installer-main/build/rpmbuild' -bb /mnt/sda1/nexus-iq-server-installer-main/build/rpmbuild/SPECS/nexus-iq-server.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.cJ2ADu
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.YYu0TR
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.asbxbf
++ dirname /mnt/sda1/nexus-iq-server-installer-main/build/rpmbuild/BUILDROOT/nexus-iq-server-1.149.0_01-1.el7.x86_64
sending incremental file list
./
README.txt
config.yml
demo.bat
demo.sh
eula.html
nexus-iq-cli-1.149.0-01.jar
nexus-iq-server-1.149.0-01.jar
extra/
extra/daemon/
extra/daemon/nexus-iq-server
extra/daemon/nexus-iq-server.service
sent 169,922,107 bytes received 202 bytes 67,968,923.60 bytes/sec
total size is 169,879,937 speedup is 1.00
/sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory
Processing files: nexus-iq-server-1.149.0_01-1.el7.noarch
warning: File listed twice: /mnt/sda1/sonatype/iqserver/config.yml
warning: File listed twice: /mnt/sda1/sonatype/iqserver/demo.bat
warning: File listed twice: /mnt/sda1/sonatype/iqserver/demo.sh
warning: File listed twice: /mnt/sda1/sonatype/iqserver/extra
warning: File listed twice: /mnt/sda1/sonatype/iqserver/extra/daemon/nexus-iq-server
warning: File listed twice: /mnt/sda1/sonatype/iqserver/extra/daemon/nexus-iq-server.service
Provides: config(nexus-iq-server) = 1.149.0_01-1.el7 nexus-iq-server = 1.149.0_01-1.el7
Requires(interp): /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(pre): /bin/sh
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires: /bin/sh
Checking for unpackaged file(s): /usr/lib/rpm/check-files /mnt/sda1/nexus-iq-server-installer-main/build/rpmbuild/BUILDROOT/nexus-iq-server-1.149.0_01-1.el7.x86_64
Wrote: /mnt/sda1/nexus-iq-server-installer-main/build/rpmbuild/RPMS/noarch/nexus-iq-server-1.149.0_01-1.el7.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.tmFJYU
cp /mnt/sda1/nexus-iq-server-installer-main/build/rpmbuild/RPMS/noarch/nexus-iq-server-1.149.0_01-1.el7.noarch.rpm /mnt/sda1/nexus-iq-server-installer-main/build/nexus-iq-server-1.149.0_01-1.el7.noarch.rpm
rpm -ivvh output
[root@localhost build]# rpm -ivvh nexus-iq-server-1.149.0_01-1.el7.noarch.rpm
ufdio: 1 reads, 17154 total bytes in 0.000010 secs
ufdio: 1 reads, 5442 total bytes in 0.000003 secs
ufdio: 1 reads, 17154 total bytes in 0.000009 secs
D: ============== nexus-iq-server-1.149.0_01-1.el7.noarch.rpm
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/.key
D: loading keyring from rpmdb
D: opening db environment /var/lib/rpm cdb:0x401
D: opening db index /var/lib/rpm/Packages 0x400 mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Name 0x400 mode=0x0
D: read h# 1566
Header SHA1 digest: OK
D: added key gpg-pubkey-fd431d51-4ae0493b to keyring
D: read h# 1567
Header SHA1 digest: OK
D: added key gpg-pubkey-d4082792-5b32db75 to keyring
D: added subkey 0 of main key gpg-pubkey-d4082792-5b32db75 to keyring
D: Using legacy gpg-pubkey(s) from rpmdb
D: nexus-iq-server-1.149.0_01-1.el7.noarch.rpm: Header SHA256 digest: OK
D: nexus-iq-server-1.149.0_01-1.el7.noarch.rpm: Header SHA1 digest: OK
ufdio: 6 reads, 10532 total bytes in 0.000017 secs
D: Plugin: calling hook init in systemd_inhibit plugin
D: added binary package [0]
D: found 0 source and 1 binary packages
D: opening db index /var/lib/rpm/Conflictname 0x400 mode=0x0
D: opening db index /var/lib/rpm/Requirename 0x400 mode=0x0
D: ========== +++ nexus-iq-server-1.149.0_01-1.el7 noarch/linux 0x0
D: opening db index /var/lib/rpm/Basenames 0x400 mode=0x0
D: read h# 87
Header V3 RSA/SHA256 Signature, key ID fd431d51: OK
Header SHA256 digest: OK
Header SHA1 digest: OK
D: Requires: /bin/sh YES (db files)
D: Requires: /bin/sh YES (cached)
D: Requires: /bin/sh YES (cached)
D: Requires: /bin/sh YES (cached)
D: Requires: config(nexus-iq-server) = 1.149.0_01-1.el7 YES (added provide)
D: opening db index /var/lib/rpm/Providename 0x400 mode=0x0
D: read h# 1574
Header V3 RSA/SHA256 Signature, key ID fd431d51: OK
Header SHA256 digest: OK
Header SHA1 digest: OK
D: Requires: java-1.8.0-openjdk-headless YES (db provides)
D: Requires: rpmlib(CompressedFileNames) <= 3.0.4-1 YES (rpmlib provides)
D: Requires: rpmlib(FileDigests) <= 4.6.0-1 YES (rpmlib provides)
D: Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 YES (rpmlib provides)
D: Requires: rpmlib(PayloadIsXz) <= 5.2-1 YES (rpmlib provides)
D: read h# 606
Header V3 RSA/SHA256 Signature, key ID fd431d51: OK
Header SHA256 digest: OK
Header SHA1 digest: OK
D: Requires: systemd YES (db provides)
D: opening db index /var/lib/rpm/Obsoletename 0x400 mode=0x0
D: ========== recording tsort relations
D: ========== tsorting packages (order, #predecessors, #succesors, depth)
D: 0 0 0 1 +nexus-iq-server-1.149.0_01-1.el7.noarch
D: installing binary packages
D: closed db index /var/lib/rpm/Packages
D: closed db index /var/lib/rpm/Obsoletename
D: closed db index /var/lib/rpm/Conflictname
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Requirename
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Name
D: closed db environment /var/lib/rpm
D: opening db environment /var/lib/rpm cdb:0x401
D: opening db index /var/lib/rpm/Packages (none) mode=0x42
D: sanity checking 1 elements
D: opening db index /var/lib/rpm/Name (none) mode=0x42
Verifying... ufdio: 4758 reads, 155664032 total bytes in 0.032682 secs
################################# [100%]
D: Plugin: calling hook tsm_pre in selinux plugin
D: selabel_open: (/etc/selinux/targeted/contexts/files/file_contexts)
D: Plugin: calling hook tsm_pre in systemd_inhibit plugin
D: System shutdown blocked (fd 16)
D: running pre-transaction scripts
D: computing 15 file fingerprints
D: opening db index /var/lib/rpm/Basenames (none) mode=0x42
D: opening db index /var/lib/rpm/Group (none) mode=0x42
D: opening db index /var/lib/rpm/Requirename (none) mode=0x42
D: opening db index /var/lib/rpm/Providename (none) mode=0x42
D: opening db index /var/lib/rpm/Conflictname (none) mode=0x42
D: opening db index /var/lib/rpm/Obsoletename (none) mode=0x42
D: opening db index /var/lib/rpm/Triggername (none) mode=0x42
D: opening db index /var/lib/rpm/Dirnames (none) mode=0x42
D: opening db index /var/lib/rpm/Installtid (none) mode=0x42
D: opening db index /var/lib/rpm/Sigmd5 (none) mode=0x42
D: opening db index /var/lib/rpm/Sha1header (none) mode=0x42
D: opening db index /var/lib/rpm/Filetriggername (none) mode=0x42
D: opening db index /var/lib/rpm/Transfiletriggername (none) mode=0x42
D: opening db index /var/lib/rpm/Recommendname (none) mode=0x42
D: opening db index /var/lib/rpm/Suggestname (none) mode=0x42
D: opening db index /var/lib/rpm/Supplementname (none) mode=0x42
D: opening db index /var/lib/rpm/Enhancename (none) mode=0x42
Preparing... D: computing file dispositions
D: 0x00010303 4096 12561420 28007938 /
D: 0x00000801 4096 15389688 31456709 /mnt/sda1
################################# [100%]
D: ========== +++ nexus-iq-server-1.149.0_01-1.el7 noarch-linux 0x0
D: nexus-iq-server-1.149.0_01-1.el7.noarch: Header SHA256 digest: OK
D: nexus-iq-server-1.149.0_01-1.el7.noarch: Header SHA1 digest: OK
D: install: nexus-iq-server-1.149.0_01-1.el7.noarch has 15 files
D: Plugin: calling hook psm_pre in selinux plugin
D: %prein(nexus-iq-server-1.149.0_01-1.el7.noarch): scriptlet start
fdio: 2 writes, 808 total bytes in 0.000017 secs
D: %prein(nexus-iq-server-1.149.0_01-1.el7.noarch): execv(/bin/sh) pid 10032
D: Plugin: calling hook scriptlet_fork_post in selinux plugin
D: setexecfilecon: (/bin/sh, rpm_script_t)
pre 1
useradd: cannot set SELinux context for home directory /mnt/sda1/sonatype/sonatype-work/iqserver
D: %prein(nexus-iq-server-1.149.0_01-1.el7.noarch): waitpid(10032) rc 10032 status 0
Updating / installing...
1:nexus-iq-server-1.149.0_01-1.el7 D: ========== Directories not explicitly included in package:
D: 0 /etc/systemd/system/
D: 1 /mnt/sda1/sonatype/
D: 5 /mnt/sda1/sonatype/sonatype-work/
D: ==========
D: create 120777 1 ( 0, 0) 64 /etc/systemd/system/nexus-iq-server.service;637fe78f
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: lsetfilecon: (/etc/systemd/system/nexus-iq-server.service;637fe78f, system_u:object_r:systemd_unit_file_t:s0)
D: create 040755 1 ( 0, 0) 0 /mnt/sda1/sonatype/iqserver
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 100644 1 ( 0, 0) 1661 /mnt/sda1/sonatype/iqserver/README.txt;637fe78f
ufdio: 1 writes, 1661 total bytes in 0.000023 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 100644 1 ( 0, 0) 6207 /mnt/sda1/sonatype/iqserver/config.yml;637fe78f
ufdio: 1 writes, 6207 total bytes in 0.000015 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 100644 1 ( 0, 0) 306 /mnt/sda1/sonatype/iqserver/demo.bat;637fe78f
ufdio: 1 writes, 306 total bytes in 0.000010 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 100744 1 ( 0, 0) 294 /mnt/sda1/sonatype/iqserver/demo.sh;637fe78f
ufdio: 1 writes, 294 total bytes in 0.000008 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 100644 1 ( 0, 0) 44131 /mnt/sda1/sonatype/iqserver/eula.html;637fe78f
ufdio: 2 writes, 44131 total bytes in 0.000024 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 040775 1 ( 0, 0) 0 /mnt/sda1/sonatype/iqserver/extra
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 040775 1 ( 0, 0) 0 /mnt/sda1/sonatype/iqserver/extra/daemon
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 100755 1 ( 0, 0) 1467 /mnt/sda1/sonatype/iqserver/extra/daemon/nexus-iq-server;637fe78f
ufdio: 1 writes, 1467 total bytes in 0.000014 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 100664 1 ( 0, 0) 308 /mnt/sda1/sonatype/iqserver/extra/daemon/nexus-iq-server.service;637fe78f
ufdio: 1 writes, 308 total bytes in 0.000009 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 100644 1 ( 0, 0)29845688 /mnt/sda1/sonatype/iqserver/nexus-iq-cli-1.149.0-01.jar;637fe78f
ufdio: 911 writes, 29845688 total bytes in 0.208679 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 100644 1 ( 0, 0)139980196 /mnt/sda1/sonatype/iqserver/nexus-iq-server-1.149.0-01.jar;637fe78f
################################# [100%]
ufdio: 4272 writes, 139980196 total bytes in 1.064140 secs
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 040755 1 ( 972, 972) 0 /mnt/sda1/sonatype/sonatype-work/iqserver
D: Plugin: calling hook fsm_file_prepare in selinux plugin
D: create 040755 1 ( 972, 972) 0 /mnt/sda1/sonatype/sonatype-work/iqserver/log
D: Plugin: calling hook fsm_file_prepare in selinux plugin
fdio: 5258 reads, 169882804 total bytes in 12.312808 secs
D: adding "nexus-iq-server" to Name index.
D: adding 15 entries to Basenames index.
D: adding "Unspecified" to Group index.
D: adding 11 entries to Requirename index.
D: adding 2 entries to Providename index.
D: adding 7 entries to Dirnames index.
D: adding 1 entries to Installtid index.
D: adding 1 entries to Sigmd5 index.
D: adding "3f32f1d75ea2f1b7a9aefc45758fc6ab6caeadaa" to Sha1header index.
D: %post(nexus-iq-server-1.149.0_01-1.el7.noarch): scriptlet start
fdio: 2 writes, 348 total bytes in 0.000080 secs
D: %post(nexus-iq-server-1.149.0_01-1.el7.noarch): execv(/bin/sh) pid 10050
D: Plugin: calling hook scriptlet_fork_post in selinux plugin
D: setexecfilecon: (/bin/sh, rpm_script_t)
post 1
Created symlink /etc/systemd/system/multi-user.target.wants/nexus-iq-server.service → /mnt/sda1/sonatype/iqserver/extra/daemon/nexus-iq-server.service.
D: %post(nexus-iq-server-1.149.0_01-1.el7.noarch): waitpid(10050) rc 10050 status 0
ufdio: 6 reads, 10532 total bytes in 0.000014 secs
D: running post-transaction scripts
D: %transfiletriggerin(systemd-239-18.el8.x86_64): scriptlet start
fdio: 2 writes, 322 total bytes in 0.000013 secs
D: %transfiletriggerin(systemd-239-18.el8.x86_64): execv(/bin/sh) pid 10101
D: Plugin: calling hook scriptlet_fork_post in selinux plugin
D: setexecfilecon: (/bin/sh, rpm_script_t)
D: %transfiletriggerin(systemd-239-18.el8.x86_64): waitpid(10101) rc 10101 status 0
D: read h# 1596
Header SHA256 digest: OK
Header SHA1 digest: OK
D: Plugin: calling hook psm_pre in selinux plugin
D: Plugin: calling hook tsm_post in selinux plugin
D: Plugin: calling hook tsm_post in systemd_inhibit plugin
D: System shutdown unblocked
D: closed db index /var/lib/rpm/Packages
D: closed db index /var/lib/rpm/Enhancename
D: closed db index /var/lib/rpm/Supplementname
D: closed db index /var/lib/rpm/Suggestname
D: closed db index /var/lib/rpm/Recommendname
D: closed db index /var/lib/rpm/Transfiletriggername
D: closed db index /var/lib/rpm/Filetriggername
D: closed db index /var/lib/rpm/Sha1header
D: closed db index /var/lib/rpm/Sigmd5
D: closed db index /var/lib/rpm/Installtid
D: closed db index /var/lib/rpm/Dirnames
D: closed db index /var/lib/rpm/Triggername
D: closed db index /var/lib/rpm/Obsoletename
D: closed db index /var/lib/rpm/Conflictname
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Requirename
D: closed db index /var/lib/rpm/Group
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Name
D: closed db environment /var/lib/rpm
D: Exit status: 0
FAIL
[root@localhost build]# service nexus-iq-server status
Redirecting to /bin/systemctl status nexus-iq-server.service
● nexus-iq-server.service - Nexus IQ Service
Loaded: loaded (/mnt/sda1/sonatype/iqserver/extra/daemon/nexus-iq-server.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2022-11-24 13:52:33 PST; 51s ago
Main PID: 10100 (code=exited, status=203/EXEC)
Nov 24 13:52:33 localhost.localdomain systemd[1]: Started Nexus IQ Service.
Nov 24 13:52:33 localhost.localdomain systemd[1]: nexus-iq-server.service: Main process exited, code=exited, status=203/EXEC
Nov 24 13:52:33 localhost.localdomain systemd[1]: nexus-iq-server.service: Failed with result 'exit-code'.
[root@localhost build]#
The text was updated successfully, but these errors were encountered: