Railo Installer: Tomcat Connector Error

213 views
Skip to first unread message

tim badolato

unread,
May 19, 2012, 11:49:06 AM5/19/12
to ra...@googlegroups.com
Some info before I start:
OpenVPS, CentOS 5 32-bit, CPanel/WHM, Railo Installer 3.3.3.000

I received the following error while running the installer but I'm not sure at all what to do with it:

Error running /opt/railo/tomcat_connectors/install_mod_cfml.sh -m install -l /opt/railo -f /usr/local/apache/conf/httpd.conf : Syntax OK
Repository 'vz-base' is missing name in configuration, using id
Repository 'vz-updates' is missing name in configuration, using id
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 309, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 178, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 345, in doCommands
    self._getTs(needTsRemove)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
    self._getTsInfo(remove_only)
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo
    pkgSack = self.pkgSack
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 662, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 502, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 232, in populateSack
    self.doSetup()
  File "/usr/lib/python2.4/site-packages/yum/repos.py", line 79, in doSetup
    self.ayum.plugins.run('postreposetup')
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/fastestmirror.py", line 181, in postreposetup_hook
    all_urls = FastestMirror(all_urls).get_mirrorlist()
  File "/usr/lib/yum-plugins/fastestmirror.py", line 333, in get_mirrorlist
    self._poll_mirrors()
  File "/usr/lib/yum-plugins/fastestmirror.py", line 376, in _poll_mirrors
    pollThread.start()
  File "/usr/lib/python2.4/threading.py", line 416, in start
    _start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread

Any help would be very much appreciated. 

Thanks!

Jordan Michaels

unread,
May 19, 2012, 1:06:43 PM5/19/12
to ra...@googlegroups.com
Hi Tim,

This is a script error which is the result of the YUM command failing for some reason on your system:

Specifically:
"Repository 'vz-base' is missing name in configuration, using id
Repository 'vz-updates' is missing name in configuration, using id"

Honestly, I'm not sure what this means exactly, but if you allow me a few days I will set up a test environment to see if I can duplicate the problem and implement a work-around.

In the mean time, you may be able to address the problem by running the following:

# yum clean all
# yum -y upgrade yum
# yum -y upgrade

The first line runs a clean that may clear up some problems. The second upgrades YUM to the latest version available in the repositories, and the third upgrades all packages on the system (it's good to stay updated, yes?).

If those YUM commands work without error, you may be able to run the installer again and not get this same error.

I will also work on making the install script fail gracefully in more cases. I put a little bit of work into that for this release, but obviously more work can be done in that area.

Thank you for the feedback!

-Jordan



----- Original Message -----
From: "tim badolato" <t...@dreamstonemedia.com>
To: ra...@googlegroups.com
Sent: Saturday, May 19, 2012 8:49:06 AM
Subject: [railo] Railo Installer: Tomcat Connector Error


Some info before I start:
OpenVPS, CentOS 5 32-bit, CPanel/WHM, Railo Installer 3.3.3.000

I received the following error while running the installer but I'm not sure at all what to do with it:


Error running /opt/railo/tomcat_connectors/ install_mod_cfml.sh -m install -l /opt/railo -f /usr/local/apache/conf/httpd. conf : Syntax OK
Repository 'vz-base' is missing name in configuration, using id
Repository 'vz-updates' is missing name in configuration, using id
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.user_main(sys.argv[1:] , exit_code=True)
File "/usr/share/yum-cli/yummain. py", line 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain. py", line 178, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 345, in doCommands
self._getTs(needTsRemove)
File "/usr/lib/python2.4/site- packages/yum/depsolve.py", line 101, in _getTs
self._getTsInfo(remove_only)
File "/usr/lib/python2.4/site- packages/yum/depsolve.py", line 112, in _getTsInfo
pkgSack = self.pkgSack
File "/usr/lib/python2.4/site- packages/yum/__init__.py", line 662, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.4/site- packages/yum/__init__.py", line 502, in _getSacks
self.repos.populateSack(which= repos)
File "/usr/lib/python2.4/site- packages/yum/repos.py", line 232, in populateSack
self.doSetup()
File "/usr/lib/python2.4/site- packages/yum/repos.py", line 79, in doSetup
self.ayum.plugins.run(' postreposetup')
File "/usr/lib/python2.4/site- packages/yum/plugins.py", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/ fastestmirror.py", line 181, in postreposetup_hook
all_urls = FastestMirror(all_urls).get_ mirrorlist()
File "/usr/lib/yum-plugins/ fastestmirror.py", line 333, in get_mirrorlist
self._poll_mirrors()
File "/usr/lib/yum-plugins/ fastestmirror.py", line 376, in _poll_mirrors
pollThread.start()
File "/usr/lib/python2.4/threading. py", line 416, in start
_start_new_thread(self.__ bootstrap, ())

tim badolato

unread,
May 19, 2012, 3:03:32 PM5/19/12
to ra...@googlegroups.com
Thanks for the quick response!

I tried running the yum commands but no luck...

Still getting these 2 errors:
"Repository 'vz-base' is missing name in configuration, using id 
Repository 'vz-updates' is missing name in configuration, using id"  

Any other ideas?

Otherwise I'll just wait to see what you come up with during your testing.

Thanks!

Jordan Michaels

unread,
May 19, 2012, 5:34:54 PM5/19/12
to ra...@googlegroups.com
Hey Tim,

Just did a bit of googling on this and they all say the same things I did.

The main thing I was going to check for in a test environment was to ensure that it wasn't something specific to the CentOS/cPanel combination, but the more I read up on this the more I'm convinced it isn't related to centos or cpanel at all. More likely, it's related to the platform. "vz-base" appears to be related to OpenVZ. I've never held OpenVZ or Virtuozzo (it's commercial cousin) in high regard.

Couple quick questions:

1) Is this a fresh install? Do you have the ability to perform a fresh install? Chances are good that whatever happened to corrupt the YUM configuration can be corrected by a re-install.

2) If you cannot re-install, would you be willing to copy and paste the contents of your /etc/yum.repos.d/CentOS-Base.repo and CentOS-Media.repo files? There's probably something in there called "vz-base" and "vz-updates" which requires correcting.

HTH

tim badolato

unread,
May 19, 2012, 9:38:07 PM5/19/12
to ra...@googlegroups.com
Ok, I reinstalled everything (switched to centos 6) and tried the install again.

It fixed the YUM errors but I still get the following:
Error runing /opt/railo/tomcat_connectors/install_mod_cfml.sh -m install -l /opt/railo -f /usr/local/apache/conf/httpd.conf : child process exited abnormally 

Not really sure where to go from here. Another reinstall doesn't really seem like it will get me anywhere. 

Open to ideas :)

Thanks!

Jordan Michaels

unread,
May 19, 2012, 10:14:05 PM5/19/12
to ra...@googlegroups.com
Cool. =)

There's an installer log that will tell us what happened. It's located in {installdir}/install.log; so usually that means /opt/railo/install.log.

The error will be close to the bottom, when the install_mod_cfml.sh was executed. The errors are usually very clear about telling us what went wrong. I do need to make more of the errors here more graceful. Let us know what you find.

Tim Badolato

unread,
May 20, 2012, 12:46:25 PM5/20/12
to ra...@googlegroups.com
Here is the bottom part of the error log:

Script output: 

Script stderr: 

Executing /opt/railo/tomcat_connectors/install_mod_cfml.sh -m install -l /opt/railo -f /usr/local/apache/conf/httpd.conf
Script exit code: 1

Script output:
 ApacheCTL undefined, autodetecting OS...[SUCCESS]
Checking default location of ApacheCTL...NOT found in /usr/sbin/apachectl...
NOT found in /usr/sbin/apache2ctl...
[FAIL]
Error: Apache control file not provided and not in default location. Unable to continue.
Use the -c switch to specify the location of the 'apachectl' file manually.
Exiting...

Script stderr:
 child process exited abnormally

Error running /opt/railo/tomcat_connectors/install_mod_cfml.sh -m install -l /opt/railo -f /usr/local/apache/conf/httpd.conf : child process exited abnormally
Executing /etc/rc.d/init.d/httpd restart
Script exit code: 0

Script output: 

Script stderr:

Configuring Tomcat Port
Updating Tomcat System User
Executing /opt/railo/sys/change_user.sh root /opt/railo nobackup
Script exit code: 0

Script output:
 I will not backup control scripts.
Initializing user and group creation process...
Checking to see if user exists...[FOUND]
Checking to see if group exists...[FOUND]
Detecting Control Script...[FOUND]
Rebuilding Control Scripts for new User...
Applying new permissions to Installation Directory...[DONE]

Script stderr:
 

Executing /opt/railo/railo_ctl start
Script exit code: 0

Script output:
  * Starting Railo: . . . [DONE]

Tim Badolato

unread,
May 20, 2012, 10:13:09 PM5/20/12
to ra...@googlegroups.com
Tried running it again in SSH and received the following:

Not sure why it keeps erroing here... 

Could shutting down cpanel during the install help or do you think there is a port conflict?

Any ideas?

Let me know.

Thanks!

----------------------------------------------------------------------------
Please wait while Setup installs Railo on your computer.
 Installing
 0% ______________ 50% ______________ 100%
 ########################################|
Error: Error running /opt/railo/tomcat_connectors/install_mod_cfml.sh -m instal

-l /opt/railo -f /usr/local/apache/conf/httpd.conf : child process exited
abnormally
Press [Enter] to continue :
#
----------------------------------------------------------------------------
Setup has finished installing Railo on your computer.

Tim Badolato

unread,
May 20, 2012, 10:34:05 PM5/20/12
to ra...@googlegroups.com
Okay, I fixed that error by specifying the apache control file location. ie:
/opt/railo/tomcat_connectors/install_mod_cfml.sh -m install -l /opt/railo -f /usr/local/apache/conf/httpd.conf -c /usr/local/apache/bin/apachectl

But after running that I got the following error:

root@vps [~]# /opt/railo/tomcat_connectors/install_mod_cfml.sh -m install -l /opt/railo -f /usr/local/apache/conf/httpd.conf -c /usr/local/apache/bin/apachectl
Checking for 'mod_perl' installed in Apache...checking alternates.../opt/railo/tomcat_connectors/install_mod_cfml.sh: line 377: /usr/sbin/apachectl: No such file or directory
Attempting to install mod_perl...Detected RedHat-based build.
Checking for 'yum' executable in the PATH...[FOUND]
Loaded plugins: fastestmirror
Repository 'vz-base' is missing name in configuration, using id
Repository 'vz-updates' is missing name in configuration, using id
Loading mirror speeds from cached hostfile
 * extras: mirror.hmc.edu
 * updates: centos.fastsoft.net
base                                                    | 1.1 kB     00:00
extras                                                  | 2.1 kB     00:00
updates                                                 | 1.9 kB     00:00
vz-base                                                 |  951 B     00:00
vz-updates                                              |  951 B     00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mod_perl.i386 0:2.0.4-6.el5 set to be updated
--> Processing Dependency: httpd-mmn = 20051115 for package: mod_perl
--> Processing Dependency: perl(BSD::Resource) for package: mod_perl
--> Finished Dependency Resolution
mod_perl-2.0.4-6.el5.i386 from base has depsolving problems
  --> Missing Dependency: httpd-mmn = 20051115 is needed by package mod_perl-2.0.4-6.el5.i386 (base)
mod_perl-2.0.4-6.el5.i386 from base has depsolving problems
  --> Missing Dependency: perl(BSD::Resource) is needed by package mod_perl-2.0.4-6.el5.i386 (base)
Error: Missing Dependency: httpd-mmn = 20051115 is needed by package mod_perl-2.0.4-6.el5.i386 (base)
Error: Missing Dependency: perl(BSD::Resource) is needed by package mod_perl-2.0.4-6.el5.i386 (base)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
FATAL: 'yum' install failed. You will need to install mod_perl manually.
Exiting...

At least we know what caused the following errors now:
Repository 'vz-base' is missing name in configuration, using id
Repository 'vz-updates' is missing name in configuration, using id

............................................________
....................................,.-‘”...................``~.,
.............................,.-”...................................“-.,
.........................,/...............................................”:,
.....................,?......................................................\,
.................../...........................................................,}
................./......................................................,:`^`..}
.............../...................................................,:”........./
..............?.....__.........................................:`.........../
............./__.(.....“~-,_..............................,:`........../
.........../(_....”~,_........“~,_....................,:`........_/
..........{.._$;_......”=,_.......“-,_.......,.-~-,},.~”;/....}
...........((.....*~_.......”=-._......“;,,./`..../”............../
...,,,___.\`~,......“~.,....................`.....}............../
............(....`=-,,.......`........................(......;_,,-”
............/.`~,......`-...............................\....../\
.............\`~.*-,.....................................|,./.....\,__
,,_..........}.>-._\...................................|..............`=~-,
.....`=~-,_\_......`\,.................................\
...................`=~-,,.\,...............................\
................................`:,,...........................`\..............__
.....................................`=-,...................,%`>--==``
........................................_\..........._,-%.......`\
...................................,<`.._|_,-&``................`\

Jordan Michaels

unread,
May 21, 2012, 2:27:07 PM5/21/12
to ra...@googlegroups.com
Heh, the "facepalm" is great! Very appropriate.

Okay, so there appear to be a couple issues. One, there are some issues
with the YUM install. Two, the script needs to handle some problems better.

You could potentially get around the YUM issue for now by manually
installing mod_perl via the cPanel interface. The current script will
detect it and not bother trying to run YUM.

Detecting the proper location of the apachectl is an issue with the
script though, and I'll have to fix that.

Give me a few days and I'll have that patched up and confirmed working
on a CentOS/cPanel. The CentOS/cPanel stack is fully supported, so this
is a priority for me to fix right away.

So, bottom line, you can install mod_perl manually via cPanel, or you
can give me a few days and I should have something that works nicely via
the installer.

Thanks for your patience and understanding.

Warm Regards,
Jordan Michaels

On 05/20/2012 07:34 PM, Tim Badolato wrote:
> Okay, I fixed that error by specifying the apache control file location. ie:
> /opt/railo/tomcat_connectors/install_mod_cfml.sh -m install -l
> /opt/railo -f /usr/local/apache/conf/httpd.conf -c
> /usr/local/apache/bin/apachectl
>
> But after running that I got the following error:
>
> root@vps [~]# /opt/railo/tomcat_connectors/install_mod_cfml.sh -m
> install -l /opt/railo -f /usr/local/apache/conf/httpd.conf -c
> /usr/local/apache/bin/apachectl
> Checking for 'mod_perl' installed in Apache...checking
> alternates.../opt/railo/tomcat_connectors/install_mod_cfml.sh: line 377:
> /usr/sbin/apachectl: No such file or directory
> Attempting to install mod_perl...Detected RedHat-based build.
> Checking for 'yum' executable in the PATH...[FOUND]
> Loaded plugins: fastestmirror
> Repository 'vz-base' is missing name in configuration, using id
> Repository 'vz-updates' is missing name in configuration, using id
> Loading mirror speeds from cached hostfile
> * base: mirror.stanford.edu <http://mirror.stanford.edu>
> * extras: mirror.hmc.edu <http://mirror.hmc.edu>
> * updates: centos.fastsoft.net <http://centos.fastsoft.net>
> ....................................,.-��...................``~.,
> .............................,.-�...................................�-.,
> .........................,/...............................................�:,
> .....................,?......................................................\,
> .................../...........................................................,}
> ................./......................................................,:`^`..}
> .............../...................................................,:�........./
> ..............?.....__.........................................:`.........../
> ............./__.(.....�~-,_..............................,:`........../
> .........../(_....�~,_........�~,_....................,:`........_/
> ..........{.._$;_......�=,_.......�-,_.......,.-~-,},.~�;/....}
> ...........((.....*~_.......�=-._......�;,,./`..../�............../
> ...,,,___.\`~,......�~.,....................`.....}............../
> ............(....`=-,,.......`........................(......;_,,-�

Tim Badolato

unread,
May 21, 2012, 3:47:08 PM5/21/12
to ra...@googlegroups.com
INSTALLING PERL WORKED!!!

Thanks man, you saved the day again!


....................................,.-‘”...................``~.,
.............................,.-”...................................“-.,
.........................,/...............................................”:,

.....................,?......................................................\,
.................../...........................................................,}
................./......................................................,:`^`..}
.............../...................................................,:”........./
..............?.....__.........................................:`.........../
............./__.(.....“~-,_..............................,:`........../
.........../(_....”~,_........“~,_....................,:`........_/
..........{.._$;_......”=,_.......“-,_.......,.-~-,},.~”;/....}
...........((.....*~_.......”=-._......“;,,./`..../”............../
...,,,___.\`~,......“~.,....................`.....}............../
............(....`=-,,.......`........................(......;_,,-”
Reply all
Reply to author
Forward
0 new messages