sbluhm / uyuni

Source code for Uyuni
https://www.uyuni-project.org/
GNU General Public License v2.0
1 stars 0 forks source link

spacewalk-setup uses uninitialized value in pattern match #113

Closed sbluhm closed 1 year ago

sbluhm commented 1 year ago

Problem description

When running mgr-setup, these two messages appear:

... Use of uninitialized value in pattern match (m//) at /usr/bin/spacewalk-setup line 482. ... Use of uninitialized value in pattern match (m//) at /usr/bin/spacewalk-setup line 933. ...

Steps to reproduce

  1. Install the Uyuni packages
  2. Configure Uyuni to create /root/setup_env.sh
  3. Run /usr/lib/susemanager/bin/mgr-setup -s

Uyuni version

Uyuni Master 2023-06-13 on Enterprise Linux 9

Uyuni proxy version (if used)

No response

Useful logs

# /usr/lib/susemanager/bin/mgr-setup -s
Asserting correct java version...
/var/spacewalk already exists. Leaving it untouched.
Filesystem type for /var/cache is ext4 - ok.
Open needed firewall ports...
running
success
success
Initializing PostgreSQL  at location /var/lib/pgsql/14/data
CREATE ROLE
* Loading answer file: /root/spacewalk-answers.
** Database: Setting up database connection for PostgreSQL backend.
** Database: Populating database.
** Database: --clear-db option used.  Clearing database.
** Database: Shutting down spacewalk services that may be using DB.
** Database: Services stopped.  Clearing DB.
*** Progress: ###########################
* Performing initial configuration.
* Configuring apache SSL virtual host.
Use of uninitialized value in pattern match (m//) at /usr/bin/spacewalk-setup line 482.
** /etc/httpd/conf.d/ssl.conf has been backed up to ssl.conf-swsave
* Creating SSL certificates.
** SSL: Generating CA certificate.
** SSL: Generating server certificate.
** Database: Setting up report database.
** Database: --clear-db option used.  Clearing report database.
*** Progress: #
** Database: Installation complete.
* Report DB Configured. 
* Update configuration in database.
* Setting up Cobbler..
* Deploying configuration files.
Use of uninitialized value in pattern match (m//) at /usr/bin/spacewalk-setup line 933.
* Restarting services.
 (°<  ·  ·  ·  ·  ·     

Tomcat failed to start properly or the installer ran out of tries.  Please check /var/log/tomcat/catalina.out or /var/log/tomcat/catalina.$(date +%Y-%m-%d).log for errors.
ERROR: spacewalk-setup failed


### Additional information

I don't think the tomcat issue has anything to do with this issue. I am investigating. If it is related, I will remove this comment.

_No response_