Jump to content
  • 0

JSVC problems on centos


Eric Wright
 Share

Question

I am trying to install ant media server on centos using the redhat install script and I get the following error:

No package apache-commons-daemon-jsvc available.
Error: Nothing to do
There is a problem in installing JSVC. Please make sure that you added optional rpms repo to your repos.

it is failing on this line:
$SUDO yum install apache-commons-daemon-jsvc -y 

if I try that line on its own, I get this:

No package apache-commons-daemon-jsvc available.
Error: Nothing to do

On my system I have a version of jsvc but when I try to run it, I get this:

13/03/2019 18:09:16 14376 jsvc error: No class specified
13/03/2019 18:09:16 14376 jsvc error: Cannot parse command line arguments

please help anybody, thank you

Link to comment
Share on other sites

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0
update:

I tried manually to update the paths to jsvc and java in the antmedia settings file, when I try to start the service now I get this:

# service antmedia start
Path /usr/local/antmedia
Starting the Ant Media Service...
14/03/2019 08:57:10 3992 jsvc error: Invalid option -cwd
14/03/2019 08:57:10 3992 jsvc error: Cannot parse command line arguments
Link to comment
Share on other sites

  • 0
Hi Eric,

Thank you for great feedback. In Centos 6, you encountered a problem with the apache-commons-daemon-jsvc package name change. You have 2 choices for this situation. 

1- Centos 6 upgrade to Centos 7. Package name apache-commons-daemon-jsvc didn't change in Centos 7. After upgrading centos 7 you can reinstall the ant media server.

2- For a now, you change install sh file change package name from  apache-commons-daemon-jsvc to jakarta-commons-daemon-jsvc. After you change the package name, you can install it again.

I'm hoping that I was able to answer your queries, Eric. Please feel free to get back to us if you still have any questions.

Best Regards,
Selim
Link to comment
Share on other sites

  • 0
Hi Salim and thanks for the help 

I uninstalled jsvc and changed the install script and now it goes through the whole script without error, but when it tries to start the server i get this:

Installed:
  jakarta-commons-daemon-jsvc.x86_64 1:1.0.1-8.9.el6                             

Complete!
Path /usr/local/antmedia
Stopping the Ant Media Service...
14/03/2019 10:56:30 5013 jsvc error: Invalid option -cwd
14/03/2019 10:56:30 5013 jsvc error: Cannot parse command line arguments
The Ant Media Service has stopped.
Path /usr/local/antmedia
Starting the Ant Media Service...
14/03/2019 10:56:30 5024 jsvc error: Invalid option -cwd
14/03/2019 10:56:30 5024 jsvc error: Cannot parse command line arguments
The Ant Media Service has started.
Ant Media Server is started
[root@enjoyme-fms tmp]# 

Link to comment
Share on other sites

 Share


×
×
  • Create New...