Cache not being created

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Cache not being created

Postby quirkey » Sun Jul 27, 2014 7:53 pm

I have a cef3 (1750) application (using the cef2go bindings on ubuntu) and I've noticed that the cache does not survive a restart. When looking at the logs I notice:

Code: Select all
[0728/004335:ERROR:backend_impl.cc(1278)] Unable to map Index file
[0728/004335:ERROR:backend_impl.cc(1278)] Unable to map Index file
[0728/004335:ERROR:cache_creator.cc(116)] Unable to create cache


As its booting up. I tried to strace and other than it creating the directory and trying to read from the index file and failing (because it doesnt exist - I cleared it before booting) I cant see anything suspicious.

cache_path is set to wd+/cache and it looks like:
Code: Select all
total 260
-rw------- 1 vagrant vagrant 262512 Jul 28 00:43 index


Am I missing something? Specific permissions or other settings? I tried looking through the chromium source code and found the errors, but don't really understand what could cause the newly created file to be unreadable.
quirkey
Newbie
 
Posts: 5
Joined: Sun Jul 27, 2014 7:40 pm

Re: Cache not being created

Postby magreenblatt » Tue Jul 29, 2014 10:29 am

I don't know about cef2go, but whatever directory is passed to CefSettings.cache_path in the C++ code should be readable and writable by the process.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Cache not being created

Postby quirkey » Mon Sep 29, 2014 9:53 am

Want to update that the issue was that the cache was sitting on a network share and it seems that chrome/cef couldnt connect/create directories. As soon as cache_path was moved to local disk, everything worked.
quirkey
Newbie
 
Posts: 5
Joined: Sun Jul 27, 2014 7:40 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 113 guests