quota_manager: Create directory failed for path

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.

quota_manager: Create directory failed for path

Postby bdenuit » Tue Dec 06, 2016 12:50 pm

Hi, we encountered a problem when using service workers in JCEF.

Whenever I try to get to the 'caches' in the context of a service worker in Javascript, I encounter the following error:

[1206/094424:WARNING:quota_manager.cc(1808)] Create directory failed for path

Here's some sample code that returns the error.
Code: Select all
var CACHE_NAME = 'simple-sign-v';
var APP_VERSION = 1;

var cacheName = CACHE_NAME + APP_VERSION;
var urlsToCache = [
    '/',
    '/enplug/simplesignsdk/app/i18n/translations.json',
    'fonts/Knockout-47.otf',
    'https://fonts.googleapis.com/css?family=Chewy|Rock+Salt|Source+Code+Pro|Tangerine|Rambla|Aldrich|Roboto|Poiret+One|Sigmar+One&subset=latin,greek,cyrillic,latin-ext,cyrillic-ext,greek-ext,vietnamese',
    'img/emojione.sprites.svg',
    'sw.js'
]

/**
 * Installs service worker.
 */
self.addEventListener('install', function (e) {
    e.waitUntil(caches.open(cacheName).then(cache => {
        return cache.addAll(urlsToCache).then(
            // Success
            () => {
                console.log(`Simple Sign service worker v${APP_VERSION} installed.`);
                self.skipWaiting();
            },
            // Error
            (error) => {
                console.error(`Could not install Simple Sign service worker v${APP_VERSION}.`, error);
            });
    }))
});


Is there a special flag I need to start CEF with?
bdenuit
Newbie
 
Posts: 4
Joined: Sun Aug 07, 2016 2:20 pm

Re: quota_manager: Create directory failed for path

Postby magreenblatt » Tue Dec 06, 2016 3:33 pm

You probably need to specify a CefSettings.cache_path.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: quota_manager: Create directory failed for path

Postby bdenuit » Wed Dec 07, 2016 1:06 pm

That works, thanks a lot!
bdenuit
Newbie
 
Posts: 4
Joined: Sun Aug 07, 2016 2:20 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 87 guests