What do these log errors mean?

14 replies [Last post]
Joined: 05/27/2009
Points: 204

Totally fresh install completes, then going to log file I see the following:
(this is before doing anything really)

2012-03-05 14:40:25 [69.46.37.111] [620392897] [API] [KalturaFrontController->errorHandler] NOTICE: /opt/kaltura/app/infra/general/myCache.class.php line 39 - Memcache::connect() [memcache.connect]: Server XXXXXXXX.net (tcp 11211, udp 0) failed with: Connection refused (111)
2012-03-05 14:40:25 [69.46.37.111] [620392897] [API] [KalturaFrontController->errorHandler] WARN: /opt/kaltura/app/infra/general/myCache.class.php line 39 - Memcache::connect() [memcache.connect]: Can't connect to XXXXXXX.net:11211, Connection refused (111)
2012-03-05 14:40:25 [69.46.37.111] [620392897] [API] [myCache->myCache] NOTICE: ERROR: Error while trying to connect to memcache. Make sure it is properly running on XXXXXXXXX.net:11211
2012-03-05 14:40:25 [69.46.37.111] [620392897] [API] [kPermissionManager::addPartnerGroupAction] NOTICE: Permission item id [571] is not of type PermissionItemType::API_ACTION_ITEM but still defined in partner group permission id [117]
2012-03-05 14:40:25 [69.46.37.111] [620392897] [API] [kPermissionManager::addPartnerGroupAction] NOTICE: Permission item id [633] is not of type PermissionItemType::API_ACTION_ITEM but still defined in partner group permission id [117]

What does this mean?
How do I begin to fix this?

*I don't see anything wrong with my kaltura install. Everything but the stats seem to work just fine, however my log file is getting huge. Kind of want to fix this problem before it becomes a real issue later.

Joined: 10/17/2009
Points: 81

It's telling you that it can't communicate with memcache.
Make sure memcached is installed and running, as well as the memcached php extension is installed.

Joined: 05/27/2009
Points: 204

I can confirm that memcache, memcached, and the php5 vs. are installed and running.

php5-memcached is already the newest version.
php5-memcache is already the newest version.

telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

stats
STAT pid 2809
STAT uptime 16688
STAT time 1330995763
STAT version 1.4.5
STAT pointer_size 64
STAT rusage_user 0.084005
STAT rusage_system 0.260016
STAT curr_connections 5
STAT total_connections 67
STAT connection_structures 8
STAT cmd_get 95
STAT cmd_set 0
STAT cmd_flush 0
STAT get_hits 0
STAT get_misses 95
STAT delete_misses 0
STAT delete_hits 0
STAT incr_misses 0
STAT incr_hits 0
STAT decr_misses 0
STAT decr_hits 0
STAT cas_misses 0
STAT cas_hits 0
STAT cas_badval 0
STAT auth_cmds 0
STAT auth_errors 0
STAT bytes_read 8854
STAT bytes_written 475
STAT limit_maxbytes 67108864
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT threads 4
STAT conn_yields 0
STAT bytes 0
STAT curr_items 0
STAT total_items 0
STAT evictions 0
STAT reclaimed 0
END

This is the first time ever for my working with memcache and while I have been reading about it all day, I have to admit that a lot of the information is a bit hard to consume and understand.

Joined: 05/27/2009
Points: 204

Well I just installed a quick perl script to check my memcache stats and it shows my memcache usage at 0%
INSTANCE USAGE HIT % CONN TIME EVICT/s READ/s WRITE/s
127.0.0.1:11211 0.0% 0.0% 5 0.7ms 0.0 2 265

Guess I need to learn some more about memcache, or how to get it working with kaltura.

ashlag.baruch1990 (not verified)
ashlag.baruch1990's picture

You’re rendering it interesting and you carry on and care for to remain it realistic. http://casinofrance.soup.io/

Joined: 07/19/2009
Points: 333

Does Kaltura tries to connect to localhost or some other ip (you message says XXXXXXXX.net - which is probably not 127.0.0.1)
Can it be firewalled or something?

Joined: 05/27/2009
Points: 204

the XXX represents the subdomain virtualhost that I installed kaltura onto i.e. subdomain-hostname.net
While I did read a whole lot about memcache yesterday I am still unaware of how to troubleshoot it from here.

I did talk to the network admin at the datacenter and he said that it would never work like this, that memcache has to be set to 127.0.0.1 and NOT my subdomain.hostname.net.

I am still unsure of why kaltura is using that hostname instead of the 127.0.0.1 in all of the files. The only place I used that subdomain was during the install process when kaltura asked me for the name of my virtualhost directory that I was installing it into and also the /etc/hosts file

My /etc/hosts file says the following:
127.0.0.1 localhost
xxx.xxx.xxx.xxx(subdomain used to install kaltura onto) subdomain.hostname.net

Is there something I have set wrong in the hosts file? (it works)
Or is there some place I need to edit in kaltura to change all the instances of the subdomain.hostname.net for use with memcache?

both the network admin and myself are rather confused. Need guidance.

Joined: 02/15/2012
Points: 1

Hello,

You can edit Kaltura's memcached settings in /opt/kaltura/app/alpha/config/kConfLocal.php.
This is assuming your base dir is the default /opt/kaltura.

Should you have any more questions, please let me know.

May the source be with you,

Jess Portnoy

Joined: 05/27/2009
Points: 204

Wow, thank you so much for the link to that file. It makes things much clearer now and easier to understand where kaltura gets the information.

the only errors I am now seeing in that log are the following:

2012-03-07 10:55:22 [xxx.xxx.xxx.xxx] [1507453825] [API] [kPermissionManager::addPartnerGroupAction] NOTICE: Permission item id [571] is not of type PermissionItemType::API_ACTION_ITEM but still defined in partner group permission id [117]
2012-03-07 10:55:22 [xxx.xxx.xxx.xxx] [1507453825] [API] [kPermissionManager::addPartnerGroupAction] NOTICE: Permission item id [633] is not of type PermissionItemType::API_ACTION_ITEM but still defined in partner group permission id [117]

Is this related to memcache, or is it something different alltogether?
*googled the addPartnerGroupAction and searched forums, no joy so far

Only result is person with the same issue, but no responses to the post for guidance.
http://www.kaltura.org/fms-35-wont-play-updated-kaltura-ce5

Did some more digging around and it turns out that now when I click on the content tab for a publisher, I can't see the videos anymore.. looks like I royally screwed something up along the way.... argghhhhh

Joined: 05/27/2009
Points: 204

Now it gets even worse:
I reboot the server and when trying to login to the kmc I get a popup that says: KMC UIConf is empty.

The only change between yesterday and today was changing the memcache url from my subdomain.hostname.net to 127.0.0.1. Even reverting back and rebooting the server, I still have this problem.

Any ideas where I should be looking?
*Never had these particular problems before.

I did notice the kmc UIConf xml file has nothing in the content area. I did NOT edit this file. Is there supposed to be something in this file?

If so, could someone provide me with an original vs. so that I can edit it to try and get the system back up?
*Once again, this is just my best guess to troubleshoot the problem now.

Joined: 02/15/2012
Points: 1

Hello,

Could you please archive the files under /opt/kaltura/log [assuming your install prefix is /opt/kaltura, of course] and attach them here?

Please make sure not to include sensitive data when doing so.

I'll analyze the logs and we can then devise the shortest path towards resolution plan.

Thanks,

Jess Portnoy

Joined: 05/27/2009
Points: 204

Hi Jess
I sent you a pm with the log files.
Thank you!

Joined: 12/18/2012
Points: 66

Hi Jess,
I'm getting the same repeated error in the kaltura_api_v3.log
I have set the IP for memcache in the php class file to be 127.0.0.1 and this seemed to resolve some of the other error messages but now I just get this repeating error multiple times per second:

2012-12-19 15:12:30 [XXX.XX.XX.XX] [XXXXXXXXX] [API] [kPermissionManager::addPartnerGroupAction] NOTICE: Permission item id [571] is not of type PermissionItemType::API_ACTION_ITEM but still defined in partner group permission id [117]

It is alternating between Permission item id [571] and [633].

The only "fix" I have seen for this online is to delete something from the database which doesn't seem like a good idea.

Could you please update this thread with the details of how you resolved this?

Many thanks,
Daniel

Joined: 02/22/2012
Points: 8

Hi,

I am having the same problem. did you ever fix?

Thanks!

Joined: 11/02/2010
Points: 4

Hi guys,
I've written a short blog post about the permission erros and general errors you should fix when installing Kaltura CE5: http://ronileco.com/fixing-kaltura-ce5/

Hope you like it! feel free to raise more questions and problems you encounter.