-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL apache configuration failing on installation at InsertContent #367
Comments
My information: TIME_ZONE="Europe/London" php -v MySQL 5.1 Configured yum proxy, user proxy and no_proxy locations curl -I -v $SERVICE_URL/kmc apachectl -t -DDUMP_VHOSTS Installation completed successfully (with correct paths and ports entered into the template files) - I had to change this because the /opt/kaltura/bin/kaltura-config-all.sh kept adding in double port numbers e.g. */443:443 and the @value@ were not being populated. https://mediaserver.company.co.uk/admin_console/index.php/user/login Error: An error occurred (error code: API:-1) |
Hi Andrew, You are right, this is indeed a bug. Please edit the template file: And remove: This is actually a fix that needs to happen here: If you'd like to submit a pull request then we can also credit you for the finding. Thanks, |
. /etc/profile.d/kaltura_base.sh kaltlog [Wed Apr 01 15:34:22 2015] [error] [client 10.9.4.174] File does not exist: /opt/kaltura/app/alpha/web/opt, referer: https://mediaserver.company.co.uk/admin_console/index.php/user/login [2015-04-01 15:23:45]failed to connect [1] [0.0042300224304199] mysql:host=127.0.0.1;port=3306;dbname=kaltura_sphinx_log; #0 /opt/kaltura/app/vendor/propel/Propel.php(532): Propel::initConnection(Array, 'sphinx_log')2015-04-01 15:40:15 [0.006070] [127.0.0.1] [1841975520] [PS2] [sfView->initialize] INFO: {sfView} initialize view for "kmc/kmc" 2015-04-01 15:40:15 [0.003094] [127.0.0.1] [1841975520] [PS2] [sfRenderingFilter->execute] INFO: {sfFilter} render to client2015-04-01 15:26:09 [1512025366] [addPermissionsAndItems.php] [addItemToPermissions] ALERT: exception 'Exception' with message 'ERROR - Permission name [] for partner [0] not found in database - skipping!' in /opt/kaltura/app/infra/log/KalturaLog.php:64 |
Thanks Jess. II'd be happy to submit a pull request but am new to the GitHUb. I'm not sure on how to complete a pull. I'll test this out shortly. |
Hi, Your DB obviously is corrupted cause of the SSL bug. Thanks, May the source be with you, Jess Portnoy Join us for the Kaltura Connect Virtual Summits 2015 - Register now! On Wed, 1 Apr 2015, acheckley wrote:
|
Hi Jess, I've re-run the scripts and still get a fail. Reloading httpd: not reloading due to configuration syntax error Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zzzkaltura.conf: Include directory '/etc/httpd/@APP_DIR@/configurations/apache/conf.d' not found. nano /configurations/apache/conf.d/zzzkaltura.conf (left arrow) VirtualHost *:@KALTURA_VIRTUAL_HOST_PORT@ (right arrow)
(left arrow)/ VirtualHost (right arrow) However nano /configurations/apache/conf.d/zzzkaltura.ssl.conf looks fine. |
I've since updated my original ssl.conf from the httpd/conf.d and changed the location of my server .crt and .key file. This enables me to restart apache successfully and access the web address. The crt and key file are password protected. When logging in, I obtain the error: An error occurred For testing, I've now refilled the kaltura.conf.template with fixed values, dropped the MySQL tables and re-run the main configuration script. I'll post results shortly. RESULTS: Same error :-( |
/opt/kaltura/bin/kaltura-sanity.sh [root@sslkaltura apache]# /opt/kaltura/bin/kaltura-sanity.sh Lots of: Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it.. [Check httpd daemon is started by Monit] [FAILED, RC: 1] - [63.161998757] Lots of: Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it.. [Check kaltura-sphinx daemon is started by Monit] [PASSED, RC: 0] - [14.265003346] Lots of: Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it.. [check daemon kaltura-batch init status] [PASSED, RC: 0] - [.008007310] Lots of: Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it.. [Check memcached daemon is started by Monit] [PASSED, RC: 0] - [7.403934970] PHP Warning: file_get_contents(https://mediaserver.company.co.uk:443/kmc): failed to open stream: Connection refused in /opt/kaltura/bin/get_kmc_swfs.php on line 9 [Get KMC SWFs] [FAILED, RC: 255] - [.165930357] Thank you for running Kaltura! To keep Kaltura viable, stable and well tested, please join the community and help by contributing sanity tests that verify overall platform stability: http://bit.ly/kaltura-ci , and by contributing to the project roadmap by solving simple tasks and challenges: http://bit.ly/kaltura-tasks. |
Hello, Not sure I understand the current situation.. just to confirm:
and the tokens were not replaced? Thanks, |
Correct. Tokens were not replaced in /configurations/apache/conf.d/zzzkaltura.conf and this interfered with the installation. |
Can you rerun the kaltura-base-config.sh with an answer file and log all bash -x /opt/kaltura/bin/kaltura-base-config.sh /path/to/answer/file 2>/tmp/base.log And send me the output to jess.portnoy@kaltura.com? The answer file is auto generated in /tmp/kaltura*.ans Thanks, May the source be with you, Jess Portnoy Join us for the Kaltura Connect Virtual Summits 2015 - Register now! On Thu, 2 Apr 2015, acheckley wrote:
|
Will do. I'll run and post shortly. |
Hi Jess, I've run the following: /opt/kaltura/bin/kaltura-config-all.sh bash -x /opt/kaltura/bin/kaltura-base-config.sh /tmp/kaltura_02_04_10_32.ans 2> /tmp/base.log Welcome to Kaltura Server 10.7.0 post install setup. ERROR: Missing the following params in /tmp/kaltura_02_04_10_32.ans PROTOCOL Then nano /tmp/base.log and can see this at the end. However, I'll email the whole log over shortly. I'll complete an install from a fresh instance (I'm using Virtual Box for cloning).
|
Hi there, Please add: Thanks, May the source be with you, Jess Portnoy Join us for the Kaltura Connect Virtual Summits 2015 - Register now! On Thu, 2 Apr 2015, acheckley wrote:
|
Thanks Jess. If I re-run /opt/kaltura/bin/kaltura-config-all.sh A new answer file will be generated. Is there a method of using a previous answer file to configure Kaltura? |
Yes, you can put it anywhere you'd like and pass it as an argument to the May the source be with you, Jess Portnoy Join us for the Kaltura Connect Virtual Summits 2015 - Register now! On Thu, 2 Apr 2015, acheckley wrote:
|
Great, I've just ran a complete fresh install and the https isn't appearing as an issue on a fresh installation (only a re-installation over the top of the old installation). I'm going to double check and see if I can identify any errors on the initial installation by cloning my fresh VB and re-running the installation. (I'll have a clean log). I'll email the log over to you. |
Great. So first, can you please submit a pull request to fix: As per our discussion? I would like for the report to be attributed to Next, I would like to find the reason why a reconfig fails for you as it Thanks a lot, May the source be with you, Jess Portnoy Join us for the Kaltura Connect Virtual Summits 2015 - Register now! On Thu, 2 Apr 2015, acheckley wrote:
|
Thanks Jess, I have created a pull request: |
Generating client libs...
Running FrontEnd config... base-config completed successfully, if you ever want to re-configure your system (e.g. change DB hostname) run the following script: rm /opt/kaltura/app/base-config.lock/opt/kaltura/bin/kaltura-base-config.shkaltura-front-10.7.0-1.noarch Enter pass phrase for /etc/pki/tls/private/server.key: Please select one of the following options [0]:
Kaltura install answer file written to /tmp/kaltura_02_04_12_19.ans - Please save it! This answers file can be used to silently-install re-install this machine or deploy other hosts in your cluster.Stopping httpd: [ OK ] Server mediaserver.company.co.uk:443 (RSA) OK: Pass Phrase Dialog successful. kaltura-sphinx-2.2.1-16.x86_64 rm /opt/kaltura/app/base-config.lock/opt/kaltura/bin/kaltura-base-config.shStarting monit: Starting monit daemon with http interface at [*:2812] Configuring your Kaltura DB... Checking MySQL version.. CREATE USER kaltura; kaltura-batch-10.7.0-1.noarch rm /opt/kaltura/app/base-config.lock/opt/kaltura/bin/kaltura-base-config.shReloading httpd: not reloading due to configuration syntax error
ERROR: /opt/kaltura/bin/kaltura-batch-config.sh failed:( You can re-run it when the issue is fixed. |
cd /tmp/ contains two answer files: kaltura_02_04_12_17.ans kaltura_02_04_12_19.ans |
Yup, just concat the smaller one into the bigger one:) Thanks, May the source be with you, Jess Portnoy Join us for the Kaltura Connect Virtual Summits 2015 - Register now! On Thu, 2 Apr 2015, acheckley wrote:
|
Hi Jess, I've emailed over. I'm going to have a look through myself to see if I can spot the error. |
Hey Andrew, Got it, looking. Please also sign our CLA so we can merge your pull. May the source be with you, Jess Portnoy Join us for the Kaltura Connect Virtual Summits 2015 - Register now! On Thu, 2 Apr 2015, acheckley wrote:
|
Closing this one as @acheckley confirmed it fixes the issue. And the next version [10.8.0] should include the merged pull by @acheckley. |
Checking MySQL version.. CREATE USER kaltura; On configuring All in one Kaltura server Docker container I am getting this error. |
Hi @dannie96. Please see https://forum.kaltura.org/t/self-hosted-all-in-one-instance-from-v6-uninstall-to-v13-5-0-1-new-install/8055/13. |
Hi Everyone,
I had problems installing the latest version of Kaltura (Centos 6.5 Minimal) so rolled back to 10.7.
Version 10.7 http install works perfectly.
The httpS installation fails at the InsertContent stage.
Upon checking the virtual host files, the kaltura.conf only contains template locations. Both the kaltura.ssl.conf and the kaltura.conf substitute in double port numbers e.g. */443:433 and https://mysite.com:443:433.
I've followed the prompts on the install to no avail and had greater success commenting out the http configuration and entering my own values manually or by pre-populating the kaltura.conf.template and running the script. I've then had to go in and delete the double ports.
Thanks,
Andrew
The text was updated successfully, but these errors were encountered: