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
Uncaught SyntaxError: Unexpected token < #403
Comments
This typically means that the installation was not successful, or that you have not executed kaltura-config-all.sh, so please check the installation logs, and/or run the config-all.sh script again |
Thanks for the response. I've actually done just that many times, and followed the guide exactly as instructed, but still can't get the KMC to load correctly. I've spent days on this and have never had this much trouble installing an application. In CentOS, when I rerun /opt/kaltura/bin/kaltura-config-all.sh, I also noticed that some of the prompts/questions that appear during a clean install don't appear after subsequently running that install script again. Also, there are other prompts/questions that do appear that weren't even asked the first time around. Deleting base-config.lock essentially had no effect on this. I even went as far as running POPULATE_ONLY=1 /opt/kaltura/bin/kaltura-db-config.sh, but that seems to stop when insertingContent. The insertContent.log file doesn't appear to contain anything useful other than:
In Ubuntu 14.04, everything install fine. The only issue that I was having was not being able to install Red5. No errors or anything. However, when trying to access the KMC, I still get that blank white page in the content area. The tabs are present as previously mentioned. No matter how I slice and dice this, the KMC won't load. I'm not sure what else to do. I wasn't hoping for a better experience with CentOS, but it was similar to Ubuntu. I'd prefer to stick with Ubuntu at this point since that's what I'm more comfortable with in terms of the CLI. |
Oh, and another thing I noticed in Ubuntu is that the system keeps trying to send an email to kaltura@[mydomain].org. I never entered this during the setup. An error message keeps bouncing back to me indicating that delivery to this email address was unsuccessful, and rightfully so. |
Can you please run kaltlog on the server end while making the request and paste the errors you are seeing? Also, in parallel, run an HTTP sniffer to see what calls are put out and which one generates the HTTP error 500. RE kaltura@[mydomain].org, I believe this might be a cron job running as the kaltura user and failing. Check /var/log/cron or /var/log/syslog to see what job it is. |
As for short tags, nothing in the code should use them, if you can point me to the code that does, we can fix it but on my Ubuntu box php -i|grep shortshort_open_tag => Off => Off And everything works, |
Hi Jess, The files that contains the PHP short open tags are:
Also, there's another issue with kmc1Success.php. On lines 927, 936, and 945, if $player_uiconfg_list is null, or if the array at index 0 is empty, these lines fail. If $player_uiconf_list[0] is not an object, PHP will throw an error. Thus, these lines should probably be updated to check that the object has been set. I'll take a look at the logs more and see what I can dig up. Thanks. |
Great, since you are the one who found it, can you please submit a pull May the source be with you, Jess Portnoy Join us for the Kaltura Connect Virtual Summits 2015 - Register now! On Mon, 25 May 2015, kuya1284 wrote:
|
Before doing any sniffing, I thought I'd just check kaltura_apache_errors.log first. I noticed the following:
When I go into /opt/kaltura/app, I don't see a kmc directory. Is there supposed to be one in there or is there a rewrite rule that points http://[mydomain]/kmc to a different route/path? |
Its rewrite rules. You can see it under /opt/kaltura/app/configurations/apache Regardless, none of our code should have shorttags. Thanks, May the source be with you, Jess Portnoy -------- Original message -------- Before doing any sniffing, I thought I'd just check kaltura_apache_errors.log first. I noticed the following: AH01630: client denied by server configuration: /opt/kaltura/app/kmc When I go into /opt/kaltura/app, I don't see a kmc directory. Is there supposed to be one in there or is there a rewrite rule that points http://[mydomain]/kmc to a different route/path? Reply to this email directly or view it on GitHubhttps://github.com//issues/403#issuecomment-105277188. |
Jess, I don't know if this is the problem, but in the apache config apps.conf, I see the following alias:
However, /opt/kaltura/app/kmc doesn't exist. I also noticed that after correcting all the short tag issues, I'm now getting a 404 for the Dashboard:
|
I also tried searching for dashboard.swf in /opt/kaltura/web/flash/, but nothing came up. |
Can you please run kaltlog and also a sniffer and see what's going on? |
Hello @kuya1284, |
Hi Jess, My only update was what I posted in regards to the missing dashboard.swf file. I can't spend anymore time than I already have to be honest. I was just trying to setup the app to give it a test run to see if it would suit our needs. I just don't understand why I have to jump through so many hoops just to get something basic up and running. I'm willing to give this another shot once all these kinks have been ironed out, but for no, I just don't have the time to spend on troubleshooting unfortunately. Thanks. |
Closing but please reopen should you be able to invest time collecting more data. |
I had also haad this problem with <?php and <? which I resolved via apache setting and now I have the problem with browser unable to load swf files, e.g. dashboard.swf file For example KMC page source is having this link (x.y.z is my server): When i do: find /opt/kaltura/ | grep -i dash | grep -i swf I get: Can you please help? |
tail -f /opt/kaltura/log/kaltura_apache_errors.log: [Thu Mar 10 15:36:00.732860 2016] [autoindex:error] [pid 24431] [client 82.193.207.68:14460] AH01276: Cannot serve directory /opt/kaltura/web/flash/kmc/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive |
@damir-oiv this would happen if you login to KMC with the user/email you used to create the installation. Login to the Admin Console (/admin_console/) instead and create a new publisher first. You can then login from the Admin Console to the KMC, and that way your account gets associated to the KMC account. |
You are right. Thx! Now when I login to kmc as a publisher, I get internal server error. The apache error log says: [Fri Mar 11 10:29:35.466386 2016] [authz_core:error] [pid 8167] [client 82.193.207.68:38745] AH01630: client denied by server configuration: /opt/kaltura/app/kmc, referer: http://x.y.z/index.php/kmc/kmc |
Also noticed some logs in kaltura api log related to reports |
Also tried to run scripts (as user kaltura) from /etc/cron.d/kaltura-dwh 2016-03-11 10:42:21 [require_once] INFO: Starting script |
2016-03-11 10:39:05 [0.000488] [82.193.207.68] [863993003] [40] [API] [kCoreException->__construct] ERR: exception 'kCoreException' with message 'Invalid query' in /opt/kaltura/app/alpha/apps/kaltura/lib/reports/myReportsMgr.class.php:1330 Indicates that there is some issue with your DWH DBs deployment. Basically, it cannot connect to get the stats. And indeed, you have a missing procedure: Seems like your DB deployment is incomplete. I suggest you run: kaltura-drop-db,shand then re-run kaltura-config-all.sh to redeploy it. Also, we prefer to keep general questions and troubleshooting at forum.kaltura.org and keep the Github issues section to general bug reporting. I am therefore closing this issue but feel free to post additional questions at forum.kaltura.org. Thanks, |
It says ./kaltura-config-all.sh /opt/kaltura/bin/kaltura-base-config.sh: line 69: rpm: command not found I am on Debian :) |
Alright:) On Debian, you just need to re-run the install script post May the source be with you, Jess Portnoy Kaltura Connect Virtual Summits 2015 - now on VOD! [connect.mediaspace.kaltura.com] On Fri, 11 Mar 2016, damir-oiv wrote:
|
Hi! Did: ./install_kaltura_all_in_1.sh It said: No packages will be installed, upgraded, or removed. 'non-free' distribution component is already enabled for all sources. No packages will be installed, upgraded, or removed. No packages will be installed, upgraded, or removed. No packages will be installed, upgraded, or removed. No packages will be installed, upgraded, or removed. No packages will be installed, upgraded, or removed. No packages will be installed, upgraded, or removed. No packages will be installed, upgraded, or removed. No packages will be installed, upgraded, or removed. No packages will be installed, upgraded, or removed. [ ok ] Starting kaltura-nginx (via systemctl): kaltura-nginx.service. |
Did you run kaltura-drop-db.sh beforehand? May the source be with you, Jess Portnoy Kaltura Connect Virtual Summits 2015 - now on VOD! [connect.mediaspace.kaltura.com] On Fri, 11 Mar 2016, damir-oiv wrote:
|
Yep I did! Are you absolutely certain you want this? [n/Y] Y |
Hi, What's the output for: Please run both commands using MySQL's super user. May the source be with you, Jess Portnoy Kaltura Connect Virtual Summits 2015 - now on VOD! [connect.mediaspace.kaltura.com] On Fri, 11 Mar 2016, damir-oiv wrote:
|
mysql> show databases; mysql> select user,host from mysql.user; |
Good. So the Kaltura DBs and users have been dropped. dpkg-reconfigure kaltura-db? It should detect that you do not have a DB and deploy a new one. May the source be with you, Jess Portnoy Kaltura Connect Virtual Summits 2015 - now on VOD! [connect.mediaspace.kaltura.com] On Fri, 11 Mar 2016, damir-oiv wrote:
|
dpkg-reconfigure kaltura-db Checking MySQL version.. CREATE USER kaltura; kaltura-db.postinst FAILED with: 3113 on line 180 Archving logs to /opt/kaltura/log/log_11_03_16_15_24.tar.gz... |
Right, so it is failing. My guess; you provided a hostname/service URL that is not resolvable and May the source be with you, Jess Portnoy Kaltura Connect Virtual Summits 2015 - now on VOD! [connect.mediaspace.kaltura.com] On Fri, 11 Mar 2016, damir-oiv wrote:
|
execution time for [http://xx-srv-kaltura02.xxx.iv.hr/api_v3/service/multirequest]: [0.1117959022522]
) execution time for [http://xxx-srv-kaltura02.iptv.xxx.hr/api_v3/service/multirequest]: [0.030406951904297]
) execution time for [http://xxx-srv-kaltura02.iptv.xxx.hr/api_v3/service/multirequest]: [0.021297931671143] |
api calls are failing, but not due to server unresolvable |
You need to understand why they're failing. May the source be with you, Jess Portnoy Kaltura Connect Virtual Summits 2015 - now on VOD! [connect.mediaspace.kaltura.com] On Fri, 11 Mar 2016, damir-oiv wrote:
|
When trying to view the KMC, all I'm seeing is the top navigation (with all the tabs), but the main content area is just a blank white page. When using my (Chrome) browser's developer tools, the following error message appears:
While looking at the source, it appears that PHP short open tags are used in various parts of the code. (i.e. <? instead of <?php).
In order to get past this, I went ahead and enabled short_open_tag in my php.ini, the entire page breaks as if all static content didn't get loaded (i.e. CSS, JS, etc.).
I tested this in Ubuntu 12.04, 14.04, and CentOS 7. Could you please advise me on what might be wrong? Thanks.
The text was updated successfully, but these errors were encountered: