kaltura / nginx-vod-module

NGINX-based MP4 Repackager
GNU Affero General Public License v3.0
2k stars 439 forks source link

Package doesn't install on Ubuntu 14.04 #103

Closed shaharmor closed 9 years ago

shaharmor commented 9 years ago

Hi,

Trying to install your module on Ubuntu 14.04, after install nginx 1.9.1 using the following command:

apt-get install kaltura-nginx results in the following error:

apt-get install -y kaltura-nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
kaltura-nginx is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up kaltura-nginx (1.8.0-1+b2) ...
 System start/stop links for /etc/init.d/kaltura-nginx already exist.
chown: missing operand after ‘/opt/kaltura/log/nginx’
Try 'chown --help' for more information.

        Archving logs to /opt/kaltura/log/log_14_06_15_06_22.tar.gz...
cp: cannot stat ‘/opt/kaltura/log/*log’: No such file or directory
dpkg: error processing package kaltura-nginx (--configure):
 subprocess installed post-installation script returned error exit status 11
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Errors were encountered while processing:
 kaltura-nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any ideas?

shaharmor commented 9 years ago

This is another error that appeared after trying to install the module:

apt-get install -y kaltura-nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
kaltura-nginx is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up kaltura-nginx (1.8.0-1+b2) ...
 System start/stop links for /etc/init.d/kaltura-nginx already exist.
ERROR: could not find /etc/kaltura.d/system.ini so, exiting..
dpkg: error processing package kaltura-nginx (--configure):
 subprocess installed post-installation script returned error exit status 2
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Errors were encountered while processing:
 kaltura-nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)

I bypassed it by manually creating an empty file at /etc/kaltura.d/system.ini, but i'm not sure this is the way its supposed to be. (Obviously the file shouldn't be empty...)

kaltura-hooks commented 9 years ago

Hi @shaharmor,

Thank for you reporting an issue and helping improve Kaltura!

To get the fastest response time, and help the maintainers review and test your reported issues or suggestions, please ensure that your issue includes the following (please comment with more info if you have not included all this info in your original issue):

For general troubleshooting see: https://github.com/kaltura/platform-install-packages/blob/Jupiter-10.13.0/doc/kaltura-packages-faq.md#troubleshooting-help

If you only have a general question rather than a bug report, please close this issue and post at: forum.kaltura.org

Thank you in advance,

jessp01 commented 9 years ago

Hello,

Thank you for your report. Package has been fixed, reason for the issue was it depended on files from kaltura-base which is not really needed when install kaltura-nginx as a standalone server.

Please run:

apt-get update

apt-cache policy kaltura-nginx

Make sure the output finds: Candidate: 1.8.0-2+b2

Then upgrade with:

apt-get install kaltura-nginx

Should be good, please let me know:)

shaharmor commented 9 years ago

Just ran apt-get update, but apt-cache policy kaltura-nginx shows:

apt-cache policy kaltura-nginx

kaltura-nginx: Installed: 1.8.0-1+b2 Candidate: 1.8.0-1+b2 Version table: *\ 1.8.0-1+b2 0 500 http://installrepo.kaltura.org/repo/apt/debian/ jupiter/main amd64 Packages 100 /var/lib/dpkg/status

jessp01 commented 9 years ago

That means the CDN hasn't updated yet. You can avoid the wait by changing /etc/apt/sources.list.d/kaltura.list to read: deb [arch=amd64] http://installrepo.origin.kaltura.org/repo/apt/debian jupiter main

That means you will be pulling directly from the CDN origin which is updated.

Later, please change back as in general, you would like to pull from CDN.

Thanks,

May the source be with you,

Jess Portnoy

Join us for the Kaltura Connect Virtual Summits 2015 - Register now! virtualconnect.kaltura.com

On Sun, 14 Jun 2015, Shahar Mor wrote:

Just ran apt-get update, but apt-cache policy kaltura-nginx shows:

                                          apt-cache policy kaltura-nginx

kaltura-nginx: Installed: 1.8.0-1+b2 Candidate: 1.8.0-1+b2 Version table: *\ 1.8.0-1+b2 0 500 http://installrepo.kaltura.org/repo/apt/debian/ jupiter/main amd64 Packages 100 /var/lib/dpkg/status

— Reply to this email directly or view it on GitHub.[AFBqvYC8HOT1lnBRou1ns-1fTsPmNMuGks5oTS9UgaJpZM4FCaAq.gif]

shaharmor commented 9 years ago

Still not working:

apt-get install kaltura-nginx Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: kaltura-nginx : PreDepends: kaltura-ffmpeg but it is not going to be installed E: Unable to correct problems, you have held broken packages.

jessp01 commented 9 years ago

Please try

apt-get install kaltura-ffmpeg

and check why the policy prevents it from being installed so we can better understand the issue.

Also, note that you do not need the 'nginx' package installed at all. While it does not conflict with the kaltura-nginx one, it is also not needed for it. Since Nginx does not support DSO, unlike say, Apache, the kaltura-nginx package includes a full version of Nginx.

May the source be with you,

Jess Portnoy

Join us for the Kaltura Connect Virtual Summits 2015 - Register now! virtualconnect.kaltura.com

On Sun, 14 Jun 2015, Shahar Mor wrote:

Still not working:

apt-get install kaltura-nginx Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: kaltura-nginx : PreDepends: kaltura-ffmpeg but it is not going to be installed E: Unable to correct problems, you have held broken packages.

— Reply to this email directly or view it on GitHub.[AFBqvQGAf-nbFheJdELkZkjm3-D_fcutks5oTTJYgaJpZM4FCaAq.gif]

shaharmor commented 9 years ago

Tried installing kaltura-ffmpeg:

apt-get install kaltura-ffmpeg Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: kaltura-ffmpeg : Depends: libfdk-aac0 but it is not installable Depends: libfaac0 but it is not installable E: Unable to correct problems, you have held broken packages.

KalturaCommunity-zz commented 9 years ago

libfdk-aac0 is an official package from the Ubuntu repo:

apt-cache policy libfdk-aac0

libfdk-aac0: Installed: 0.1.2-1 Candidate: 0.1.2-1 Version table: *\ 0.1.2-1 0 500 http://archive.ubuntu.com/ubuntu/ trusty/multiverse amd64 Packages 100 /var/lib/dpkg/status

Try installing it manually and check why APT says it cannot install it.

May the source be with you,

Jess Portnoy

Join us for the Kaltura Connect Virtual Summits 2015 - Register now! virtualconnect.kaltura.com

On Sun, 14 Jun 2015, Shahar Mor wrote:

Tried installing kaltura-ffmpeg:

apt-get install kaltura-ffmpeg Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: kaltura-ffmpeg : Depends: libfdk-aac0 but it is not installable Depends: libfaac0 but it is not installable E: Unable to correct problems, you have held broken packages.

— Reply to this email directly or view it on GitHub.[ACH7XuXCcyw5inrOuTEDMhAOFhveenJxks5oTTNCgaJpZM4FCaAq.gif]

shaharmor commented 9 years ago

Apparently GCE doesn't install the multiverse repositories by default. After adding them manually it seems to work.

Thanks a lot!

jessp01 commented 9 years ago

Great, please close the issue. Will add a note to the README about needing multiverse.

Thanks,

May the source be with you,

Jess Portnoy

Join us for the Kaltura Connect Virtual Summits 2015 - Register now! virtualconnect.kaltura.com

On Sun, 14 Jun 2015, Shahar Mor wrote:

Apparently GCE doesn't install the multiverse repositories by default. After adding them manually it seems to work.

Thanks a lot!

— Reply to this email directly or view it on GitHub.[AFBqveUgoeFFXRtcDwiHw-_EEX-_EtFcks5oTTaSgaJpZM4FCaAq.gif]

shaharmor commented 9 years ago

Does this module includes the kaltura API? what should i write in the upstream part of the nginx conf? localhost:88?

jessp01 commented 9 years ago

No, it does not. For integration with the Kaltura server, you will need to install kaltura-server. It can be installed on the same machine or on a separate one. See: https://github.com/kaltura/platform-install-packages/blob/master/doc/install-kaltura-deb-based.md

gelbander commented 9 years ago

@shaharmor "Apparently GCE doesn't install the multiverse repositories by default. After adding them manually it seems to work."

How do you manually add multiverse and where?

shaharmor commented 8 years ago

@gelbander echo "deb http://gce.clouds.archive.ubuntu.com/ubuntu/ trusty multiverse" > /etc/apt/sources.list.d/multiverse.list

then apt-get update