Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4226  / 1 Year ago, sun, march 26, 2023, 1:09:07

This is copy from question of some guy on other forum that never got satisfiably answered.



I encountered the same error few days ago on Ubuntu 13.04 Desktop.
It seems like Red5 is installed but it cannot be run for some reason.
Can anyone explain what is going on here? Why should dpkg fail?
I mean, this is checked repo, it should work fine.



apt-get install red5-server
Selecting previously deselected package red5-server.
(Reading database ... 53491 files and directories currently installed.) Unpacking red5-server (from .../red5-server_0.9.1-4squeeze1_all.deb) ...
Setting up red5-server (0.9.1-4squeeze1) ...
Starting Flash streaming server : red5-server failed!
invoke-rc.d: initscript red5-server, action "start" failed.
dpkg: error processing red5-server (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
red5-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


Logfile error.log in /usr/share/red5/log was completely empty.
Other logs were not but according to them, there were no problems at all.






I solved the problem, but I doubt that other people to whom the same happens will be happy with the solution.
I tried everything I know, then I lost my nerves and reinstalled whole Ubuntu.



Put on Ubuntu server 12.10.

I discovered that Ubuntu 13 is not quite stable, and must admit that I am somewhat angry with the developers.
Well, on Ubuntu 12.10 I did:



# apt-get install red5-server


without getting java in advance, and everything went fine.
But afterwards I succeeded only to run the Red5 HTTP server, but any demo i tried to run never connected to it and never played any VOD.

In fact, I tried to install adminpanel plugin, but this crashed whole Red5 and it was unable to start.

I deleted the plugin, and Red5 started again normally.
Finally I went mad and gave up on Red5. Installed Flumotion instead and cannot tell that I have more success with it.



Nevertheless it would be nice if someone finally give us the real answer to the question.


More From » apt

 Answers
7

Installing a server has nothing to do with luck. Either it works or not. Software isn't magic. For this reason, first force to finish the installation, because with a broken package system you can't install other needed packages, if they are needed.



After that, you can solve the server start problem.






In a fresh Ubuntu 15.10 Wily (VM) installation is nothing more to do than



sudo apt-get install red5-server


All needed dependencies will be installed correctly. If you do not trust me, then I install Ubuntu again and give you the full output of the installation. ;)






However, if problems occur in an installation script, in your case in



/var/lib/dpkg/info/red5-server.postinst


then it is always a good idea to take a look at the script. If there is this line



set -e


replace with



# set -e


and run



sudo apt-get install -f


or find, where the server will be started, something like



invoke-rc.d red5-server start


and comment out the start procedure. And run



sudo apt-get install -f


Then you'll need to find out why the server fails to start, but the installation can be completed.


[#30608] Monday, March 27, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
altybol

Total Points: 364
Total Questions: 138
Total Answers: 121

Location: France
Member since Thu, May 6, 2021
3 Years ago
altybol questions
;