kaltura / platform-install-packages

Official deployment packages to install the Kaltura platform on a server or cluster environments using native OS package managers
GNU Affero General Public License v3.0
520 stars 241 forks source link

error installing kaltura on ubuntu 16.04 #607

Closed DPratapSingh closed 7 years ago

DPratapSingh commented 7 years ago

dpkg: error processing package kaltura-db (-- configured) Subprocess installed post-installation script returned error exit status 11 E: Sub-processs /usr/bin/dpkg returened a error code (1)

jessp01 commented 7 years ago

What MySQL version are you using?

DPratapSingh commented 7 years ago

MySQL 5.5 - Percona deb package @jessp01

Ubuntu - 16.04 LTS

jessp01 commented 7 years ago

OK. We need to understand why the kaltura-db postinst script is failing then. Edit /var/lib/dpkg/info/kaltura-db.postinst so that:

#!/bin/bash -

becomes:

#!/bin/bash -x

then run: # apt-get install -f and post the full output here, while masking passwds, of course.

DPratapSingh commented 7 years ago

Thank You @jessp01

As you said I've made the changes and exected the command

apt-get install -f

Output -

0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up kaltura-db (12.15.0-1+b4) ...

Handle 0x0400, DMI type 4, 42 bytes Processor Information Socket Designation: Proc 1 Type: Central Processor Family: Xeon Manufacturer: Intel ID: A7 06 02 00 FF FB EB BF Signature: Type 0, Family 6, Model 42, Stepping 7 Flags: FPU (Floating-point unit on-chip) VME (Virtual mode extension) DE (Debugging extension) PSE (Page size extension) TSC (Time stamp counter) MSR (Model specific registers) PAE (Physical address extension) MCE (Machine check exception) CX8 (CMPXCHG8 instruction supported) APIC (On-chip APIC hardware supported) SEP (Fast system call) MTRR (Memory type range registers) PGE (Page global enable) MCA (Machine check architecture) CMOV (Conditional move instruction supported) PAT (Page attribute table) PSE-36 (36-bit page size extension) CLFSH (CLFLUSH instruction supported) DS (Debug store) ACPI (ACPI supported) MMX (MMX technology supported) FXSR (FXSAVE and FXSTOR instructions supported) SSE (Streaming SIMD extensions) SSE2 (Streaming SIMD extensions 2) SS (Self-snoop) HTT (Multi-threading) TM (Thermal monitor supported) PBE (Pending break enabled) Version: Intel(R) Xeon(R) CPU E31220 @ 3.10GHz Voltage: 1.4 V External Clock: 100 MHz Max Speed: 4800 MHz Current Speed: 3100 MHz Status: Populated, Enabled Upgrade: Socket LGA1366 L1 Cache Handle: 0x0710 L2 Cache Handle: 0x0720 L3 Cache Handle: 0x0730 Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Core Count: 4 Core Enabled: 4 Thread Count: 4 Characteristics: 64-bit capable'

Handle 0x0400, DMI type 4, 42 bytes Processor Information Socket Designation: Proc 1 Type: Central Processor Family: Xeon Manufacturer: Intel ID: A7 06 02 00 FF FB EB BF Signature: Type 0, Family 6, Model 42, Stepping 7 Flags: FPU (Floating-point unit on-chip) VME (Virtual mode extension) DE (Debugging extension) PSE (Page size extension) TSC (Time stamp counter) MSR (Model specific registers) PAE (Physical address extension) MCE (Machine check exception) CX8 (CMPXCHG8 instruction supported) APIC (On-chip APIC hardware supported) SEP (Fast system call) MTRR (Memory type range registers) PGE (Page global enable) MCA (Machine check architecture) CMOV (Conditional move instruction supported) PAT (Page attribute table) PSE-36 (36-bit page size extension) CLFSH (CLFLUSH instruction supported) DS (Debug store) ACPI (ACPI supported) MMX (MMX technology supported) FXSR (FXSAVE and FXSTOR instructions supported) SSE (Streaming SIMD extensions) SSE2 (Streaming SIMD extensions 2) SS (Self-snoop) HTT (Multi-threading) TM (Thermal monitor supported) PBE (Pending break enabled) Version: Intel(R) Xeon(R) CPU E31220 @ 3.10GHz Voltage: 1.4 V External Clock: 100 MHz Max Speed: 4800 MHz Current Speed: 3100 MHz Status: Populated, Enabled Upgrade: Socket LGA1366 L1 Cache Handle: 0x0710 L2 Cache Handle: 0x0720 L3 Cache Handle: 0x0730 Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Core Count: 4 Core Enabled: 4 Thread Count: 4 Characteristics: 64-bit capable' ']' ++ md5sum ++ awk -F ' ' '{print $1}' ++ echo -n '#' dmidecode 3.0 Getting SMBIOS data from sysfs. SMBIOS 2.6 present. Handle 0x0400, DMI type 4, 42 bytes Processor Information Socket Designation: Proc 1 Type: Central Processor Family: Xeon Manufacturer: Intel ID: A7 06 02 00 FF FB EB BF Signature: Type 0, Family 6, Model 42, Stepping 7 Flags: FPU '(Floating-point' unit 'on-chip)' VME '(Virtual' mode 'extension)' DE '(Debugging' 'extension)' PSE '(Page' size 'extension)' TSC '(Time' stamp 'counter)' MSR '(Model' specific 'registers)' PAE '(Physical' address 'extension)' MCE '(Machine' check 'exception)' CX8 '(CMPXCHG8' instruction 'supported)' APIC '(On-chip' APIC hardware 'supported)' SEP '(Fast' system 'call)' MTRR '(Memory' type range 'registers)' PGE '(Page' global 'enable)' MCA '(Machine' check 'architecture)' CMOV '(Conditional' move instruction 'supported)' PAT '(Page' attribute 'table)' PSE-36 '(36-bit' page size 'extension)' CLFSH '(CLFLUSH' instruction 'supported)' DS '(Debug' 'store)' ACPI '(ACPI' 'supported)' MMX '(MMX' technology 'supported)' FXSR '(FXSAVE' and FXSTOR instructions 'supported)' SSE '(Streaming' SIMD 'extensions)' SSE2 '(Streaming' SIMD extensions '2)' SS '(Self-snoop)' HTT '(Multi-threading)' TM '(Thermal' monitor 'supported)' PBE '(Pending' break 'enabled)' Version: 'Intel(R)' 'Xeon(R)' CPU E31220 @ 3.10GHz Voltage: 1.4 V External Clock: 100 MHz Max Speed: 4800 MHz Current Speed: 3100 MHz Status: Populated, Enabled Upgrade: Socket LGA1366 L1 Cache Handle: 0x0710 L2 Cache Handle: 0x0720 L3 Cache Handle: 0x0730 Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Core Count: 4 Core Enabled: 4 Thread Count: 4 Characteristics: 64-bit capable

kaltura-db.postinst FAILED with: 35926 on line 126

Archving logs to /opt/kaltura/log/log_28_08_17_20_57.tar.gz... '

kaltura-db.postinst FAILED with: 35926 on line 126

Archving logs to /opt/kaltura/log/log_28_08_17_20_57.tar.gz... ++ mkdir -p /tmp/tmpdir_kaltura ++ cp /opt/kaltura/log/generate.php.log /opt/kaltura/log/kaltura_apache_access.log /opt/kaltura/log/kaltura_apache_errors.log /opt/kaltura/log/kaltura_api_v3_analytics.log /opt/kaltura/log/kaltura_api_v3.log /opt/kaltura/log/kaltura_api_v3_tests.log /opt/kaltura/log/kaltura_populate.log /tmp/tmpdir_kaltura ++ cd /tmp/tmpdir_kaltura ++ tar zcf /opt/kaltura/log/log_28_08_17_20_57.tar.gz generate.php.log kaltura_apache_access.log kaltura_apache_errors.log kaltura_api_v3_analytics.log kaltura_api_v3.log kaltura_api_v3_tests.log kaltura_populate.log ++ '[' -r /opt/kaltura/bin/contact.rc ']' ++ . /opt/kaltura/bin/contact.rc +++ USER_CONSENT=1 +++ CONTACT_MAIL=User@gmail.com ++ send_install_becon kaltura-db.postinst install_fail 126,1.0.33 ++ trap - ERR ++ '[' -r /opt/kaltura/bin/contact.rc ']' ++ . /opt/kaltura/bin/contact.rc +++ USER_CONSENT=1 +++ CONTACT_MAIL=digvijay.chandel@gmail.com ++ '[' -z 1 -o 1 = 0 ']' ++ ROLE=kaltura-db.postinst ++ TIMEZONE=install_fail ++ ACTION=126,1.0.33 ++ ERR_LINE=126,1.0.33 ++ '[' -n ']' ++ ERR_LINE= ++ RC_FILE=/etc/kaltura.d/system.ini ++ '[' -r /etc/kaltura.d/system.ini ']' ++ . /etc/kaltura.d/system.ini +++ WEB_DIR=/opt/kaltura/web +++ LOG_DIR=/opt/kaltura/log +++ APP_DIR=/opt/kaltura/app +++ BASE_DIR=/opt/kaltura +++ PHP_BIN=/usr/bin/php +++ OS_KALTURA_USER=kaltura +++ MAILTO=User@gmail.com +++ ADMIN_CONSOLE_ADMIN_MAIL=User@gmail.com +++ DB1_HOST=localhost +++ DB1_NAME=kaltura +++ DB1_USER=kaltura +++ DB1_PASS=1aD933XIm6KEF7d +++ DWH_HOST=localhost +++ DWH_PORT=3306 +++ DWH_USER=etl +++ DWH_PASS=1aD933XIm6KEF7d +++ SERVICE_URL=http://192.168.0.6:80 +++ SPHINX_HOST=127.0.0.1 +++ DB1_PORT=3306 +++ SUPER_USER=root +++ SUPER_USER_PASSWD=** +++ KALTURA_VIRTUAL_HOST_NAME=192.168.0.6 +++ RED5_HOST= ++ which dmidecode +++ dmidecode -t 4 ++ UNIQ='# dmidecode 3.0 Getting SMBIOS data from sysfs. SMBIOS 2.6 present.

Handle 0x0400, DMI type 4, 42 bytes Processor Information Socket Designation: Proc 1 Type: Central Processor Family: Xeon Manufacturer: Intel ID: A7 06 02 00 FF FB EB BF Signature: Type 0, Family 6, Model 42, Stepping 7 Flags: FPU (Floating-point unit on-chip) VME (Virtual mode extension) DE (Debugging extension) PSE (Page size extension) TSC (Time stamp counter) MSR (Model specific registers) PAE (Physical address extension) MCE (Machine check exception) CX8 (CMPXCHG8 instruction supported) APIC (On-chip APIC hardware supported) SEP (Fast system call) MTRR (Memory type range registers) PGE (Page global enable) MCA (Machine check architecture) CMOV (Conditional move instruction supported) PAT (Page attribute table) PSE-36 (36-bit page size extension) CLFSH (CLFLUSH instruction supported) DS (Debug store) ACPI (ACPI supported) MMX (MMX technology supported) FXSR (FXSAVE and FXSTOR instructions supported) SSE (Streaming SIMD extensions) SSE2 (Streaming SIMD extensions 2) SS (Self-snoop) HTT (Multi-threading) TM (Thermal monitor supported) PBE (Pending break enabled) Version: Intel(R) Xeon(R) CPU E31220 @ 3.10GHz Voltage: 1.4 V External Clock: 100 MHz Max Speed: 4800 MHz Current Speed: 3100 MHz Status: Populated, Enabled Upgrade: Socket LGA1366 L1 Cache Handle: 0x0710 L2 Cache Handle: 0x0720 L3 Cache Handle: 0x0730 Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Core Count: 4 Core Enabled: 4 Thread Count: 4 Characteristics: 64-bit capable' ++ '[' 0 -ne 0 ']' ++ grep -q 'No SMBIOS nor DMI entry' ++ echo '#' dmidecode 3.0 Getting SMBIOS data from sysfs. SMBIOS 2.6 present. Handle 0x0400, DMI type 4, 42 bytes Processor Information Socket Designation: Proc 1 Type: Central Processor Family: Xeon Manufacturer: Intel ID: A7 06 02 00 FF FB EB BF Signature: Type 0, Family 6, Model 42, Stepping 7 Flags: FPU '(Floating-point' unit 'on-chip)' VME '(Virtual' mode 'extension)' DE '(Debugging' 'extension)' PSE '(Page' size 'extension)' TSC '(Time' stamp 'counter)' MSR '(Model' specific 'registers)' PAE '(Physical' address 'extension)' MCE '(Machine' check 'exception)' CX8 '(CMPXCHG8' instruction 'supported)' APIC '(On-chip' APIC hardware 'supported)' SEP '(Fast' system 'call)' MTRR '(Memory' type range 'registers)' PGE '(Page' global 'enable)' MCA '(Machine' check 'architecture)' CMOV '(Conditional' move instruction 'supported)' PAT '(Page' attribute 'table)' PSE-36 '(36-bit' page size 'extension)' CLFSH '(CLFLUSH' instruction 'supported)' DS '(Debug' 'store)' ACPI '(ACPI' 'supported)' MMX '(MMX' technology 'supported)' FXSR '(FXSAVE' and FXSTOR instructions 'supported)' SSE '(Streaming' SIMD 'extensions)' SSE2 '(Streaming' SIMD extensions '2)' SS '(Self-snoop)' HTT '(Multi-threading)' TM '(Thermal' monitor 'supported)' PBE '(Pending' break 'enabled)' Version: 'Intel(R)' 'Xeon(R)' CPU E31220 @ 3.10GHz Voltage: 1.4 V External Clock: 100 MHz Max Speed: 4800 MHz Current Speed: 3100 MHz Status: Populated, Enabled Upgrade: Socket LGA1366 L1 Cache Handle: 0x0710 L2 Cache Handle: 0x0720 L3 Cache Handle: 0x0730 Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Core Count: 4 Core Enabled: 4 Thread Count: 4 Characteristics: 64-bit capable ++ '[' -n '# dmidecode 3.0 Getting SMBIOS data from sysfs. SMBIOS 2.6 present.

Handle 0x0400, DMI type 4, 42 bytes Processor Information Socket Designation: Proc 1 Type: Central Processor Family: Xeon Manufacturer: Intel ID: A7 06 02 00 FF FB EB BF Signature: Type 0, Family 6, Model 42, Stepping 7 Flags: FPU (Floating-point unit on-chip) VME (Virtual mode extension) DE (Debugging extension) PSE (Page size extension) TSC (Time stamp counter) MSR (Model specific registers) PAE (Physical address extension) MCE (Machine check exception) CX8 (CMPXCHG8 instruction supported) APIC (On-chip APIC hardware supported) SEP (Fast system call) MTRR (Memory type range registers) PGE (Page global enable) MCA (Machine check architecture) CMOV (Conditional move instruction supported) PAT (Page attribute table) PSE-36 (36-bit page size extension) CLFSH (CLFLUSH instruction supported) DS (Debug store) ACPI (ACPI supported) MMX (MMX technology supported) FXSR (FXSAVE and FXSTOR instructions supported) SSE (Streaming SIMD extensions) SSE2 (Streaming SIMD extensions 2) SS (Self-snoop) HTT (Multi-threading) TM (Thermal monitor supported) PBE (Pending break enabled) Version: Intel(R) Xeon(R) CPU E31220 @ 3.10GHz Voltage: 1.4 V External Clock: 100 MHz Max Speed: 4800 MHz Current Speed: 3100 MHz Status: Populated, Enabled Upgrade: Socket LGA1366 L1 Cache Handle: 0x0710 L2 Cache Handle: 0x0720 L3 Cache Handle: 0x0730 Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Core Count: 4 Core Enabled: 4 Thread Count: 4 Characteristics: 64-bit capable' ']' +++ md5sum +++ awk -F ' ' '{print $1}' +++ echo -n '#' dmidecode 3.0 Getting SMBIOS data from sysfs. SMBIOS 2.6 present. Handle 0x0400, DMI type 4, 42 bytes Processor Information Socket Designation: Proc 1 Type: Central Processor Family: Xeon Manufacturer: Intel ID: A7 06 02 00 FF FB EB BF Signature: Type 0, Family 6, Model 42, Stepping 7 Flags: FPU '(Floating-point' unit 'on-chip)' VME '(Virtual' mode 'extension)' DE '(Debugging' 'extension)' PSE '(Page' size 'extension)' TSC '(Time' stamp 'counter)' MSR '(Model' specific 'registers)' PAE '(Physical' address 'extension)' MCE '(Machine' check 'exception)' CX8 '(CMPXCHG8' instruction 'supported)' APIC '(On-chip' APIC hardware 'supported)' SEP '(Fast' system 'call)' MTRR '(Memory' type range 'registers)' PGE '(Page' global 'enable)' MCA '(Machine' check 'architecture)' CMOV '(Conditional' move instruction 'supported)' PAT '(Page' attribute 'table)' PSE-36 '(36-bit' page size 'extension)' CLFSH '(CLFLUSH' instruction 'supported)' DS '(Debug' 'store)' ACPI '(ACPI' 'supported)' MMX '(MMX' technology 'supported)' FXSR '(FXSAVE' and FXSTOR instructions 'supported)' SSE '(Streaming' SIMD 'extensions)' SSE2 '(Streaming' SIMD extensions '2)' SS '(Self-snoop)' HTT '(Multi-threading)' TM '(Thermal' monitor 'supported)' PBE '(Pending' break 'enabled)' Version: 'Intel(R)' 'Xeon(R)' CPU E31220 @ 3.10GHz Voltage: 1.4 V External Clock: 100 MHz Max Speed: 4800 MHz Current Speed: 3100 MHz Status: Populated, Enabled Upgrade: Socket LGA1366 L1 Cache Handle: 0x0710 L2 Cache Handle: 0x0720 L3 Cache Handle: 0x0730 Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Core Count: 4 Core Enabled: 4 Thread Count: 4 Characteristics: 64-bit capable ++ MACHINE_ID=da46bb48cfca6e0ed9afb96217d739f4 +++ date +%s ++ EPOCH=1503934067 +++ md5sum +++ awk -F ' ' '{print $1}' +++ echo '#' dmidecode 3.0 Getting SMBIOS data from sysfs. SMBIOS 2.6 present. Handle 0x0400, DMI type 4, 42 bytes Processor Information Socket Designation: Proc 1 Type: Central Processor Family: Xeon Manufacturer: Intel ID: A7 06 02 00 FF FB EB BF Signature: Type 0, Family 6, Model 42, Stepping 7 Flags: FPU '(Floating-point' unit 'on-chip)' VME '(Virtual' mode 'extension)' DE '(Debugging' 'extension)' PSE '(Page' size 'extension)' TSC '(Time' stamp 'counter)' MSR '(Model' specific 'registers)' PAE '(Physical' address 'extension)' MCE '(Machine' check 'exception)' CX8 '(CMPXCHG8' instruction 'supported)' APIC '(On-chip' APIC hardware 'supported)' SEP '(Fast' system 'call)' MTRR '(Memory' type range 'registers)' PGE '(Page' global 'enable)' MCA '(Machine' check 'architecture)' CMOV '(Conditional' move instruction 'supported)' PAT '(Page' attribute 'table)' PSE-36 '(36-bit' page size 'extension)' CLFSH '(CLFLUSH' instruction 'supported)' DS '(Debug' 'store)' ACPI '(ACPI' 'supported)' MMX '(MMX' technology 'supported)' FXSR '(FXSAVE' and FXSTOR instructions 'supported)' SSE '(Streaming' SIMD 'extensions)' SSE2 '(Streaming' SIMD extensions '2)' SS '(Self-snoop)' HTT '(Multi-threading)' TM '(Thermal' monitor 'supported)' PBE '(Pending' break 'enabled)' Version: 'Intel(R)' 'Xeon(R)' CPU E31220 @ 3.10GHz Voltage: 1.4 V External Clock: 100 MHz Max Speed: 4800 MHz Current Speed: 3100 MHz Status: Populated, Enabled Upgrade: Socket LGA1366 L1 Cache Handle: 0x0710 L2 Cache Handle: 0x0720 L3 Cache Handle: 0x0730 Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Core Count: 4 Core Enabled: 4 Thread Count: 4 Characteristics: 64-bit capable : 1503934067 ++ INSTALL_ID=a79abf90d2a48c993410b348dc68b67b ++ echo http://192.168.0.6:80 ++ grep -q https:// ++ IS_SSL=false ++ '[' -n '' ']' ++ SUBSCRIBE4UPDATES=0 ++ '[' deb = rpm ']' ++ '[' deb = deb ']' +++ dpkg-query -W '-f${Version}' kaltura-base +++ awk -F - '{print $1}' ++ KALTURA_VERSION=13.1.0 +++ dpkg-query -W '-f${Version}' kaltura-base +++ awk -F + '{print $2}' ++ KALTURA_REVISION=b1 +++ lsb_release -r +++ awk '{print $NF}' ++ REVISION=16.04 +++ lsb_release -i +++ awk '{print $NF}' ++ CODENAME=Ubuntu ++ RELEASE=Ubuntu-16.04 +++ date +%s +++ uname -r +++ uname -m ++ curl --data 'event_type=126,1.0.33&server_role=kaltura-db.postinst&user_email=user@gmail.com&machine_id=da46bb48cfca6e0ed9afb96217d739f4&installation_id=a79abf90d2a48c993410b348dc68b67b&timestamp=1503934067&kernel_version=4.4.0-87-generic&machine_arch=x86_64&linux_flavor=Ubuntu-16.04&service_url=http://192.168.0.6:80&install_err_line=&timezone=install_fail&package_type=deb&kaltura_version=13.1.0&package_revision=b1&subscribed_for_ce_updates=0' https://installytics.kaltura.org/report/add_rec.php

++ trap 'my_trap_handler ${LINENO} ${$?}' ERR ++ exit 11 dpkg: error processing package kaltura-db (--configure): subprocess installed post-installation script returned error exit status 11 Errors were encountered while processing: kaltura-db E: Sub-process /usr/bin/dpkg returned an error code (1)

Thanks

jessp01 commented 7 years ago

Your problem is here: mysql -hlocalhost -uroot -p$PASSWD -P3306 -N ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

You need to check why you cannot connect to MySQL as root with the password you supplied.

DPratapSingh commented 7 years ago

Can u please help me out with this....how to do that...

jessp01 commented 7 years ago

This really has nothing to do with Kaltura at all other than the fact that obviously, in order to deploy the Kaltura Server, you must supply the correct, root passwd and MySQL hostname and port.

You can learn about resetting your MySQL passwd here: https://support.rackspace.com/how-to/mysql-resetting-a-lost-mysql-root-password/

After you are able to manually login to the MySQL server with:

# mysql -hlocalhost -uroot -p$PASSWD -P3306 -N

where $PASSWD is the actual passwd you inputted when prompted by the kaltura-base and kaltura-db postinst scripts, you can purge the kaltura-db package with:

# apt-get purge kaltura-db

then rerun the install script.

be sure to also run mysql_secure_installation as described in the Kaltura CE deployment document.

I am closing this issue because we'd rather use the repo's issues section for general bug reports and not for specific deployment issues/questions such as the ones you had. Please deploy from scratch bearing in mind my previous comments and if, after doing so, you have issues, post on forum.kaltura.org providing all the relevant output.