unknown error: failed to write prefs file

575 views
Skip to first unread message

yosida....@gmail.com

unread,
Oct 1, 2018, 2:30:05 PM10/1/18
to ChromeDriver Users
I keep getting the error while running functional tests using runner with following: -selenium 2.42.591088 -Chrome Driver -Windows Server 2012 R2 Standard

Anyone have ever come across such issue? How do i fix this? Suggestions please

here is the log file

[1538418515.002][INFO]: [c50bff0052a5da7dbeaf25df0cc1fb92] COMMAND InitSession {
"capabilities": {
"alwaysMatch": {
"browserName": "chrome",
"goog:chromeOptions": {
"args": [ "--blink-settings=imagesEnabled=false", "--disable-desktop-notifications", "--disable-extensions", "user-data-dir=C:\\ChromeData", "--profile-directory=Profile 1" ],
"extensions": [ ]
},
"platformName": "any"
},
"firstMatch": [ {

} ]
},
"desiredCapabilities": {
"browserName": "chrome",
"goog:chromeOptions": {
"args": [ "--blink-settings=imagesEnabled=false", "--disable-desktop-notifications", "--disable-extensions", "user-data-dir=C:\\ChromeData", "--profile-directory=Profile 1" ],
"extensions": [ ]
},
"platform": "ANY",
"version": ""
}
}
[1538418515.096][INFO]: Populating Preferences file: {
"alternate_error_pages": {
"enabled": false
},
"autofill": {
"enabled": false
},
"browser": {
"check_default_browser": false
},
"distribution": {
"import_bookmarks": false,
"import_history": false,
"import_search_engine": false,
"make_chrome_default_for_user": false,
"skip_first_run_ui": true
},
"dns_prefetching": {
"enabled": false
},
"profile": {
"content_settings": {
"pattern_pairs": {
"https://*,*": {
"media-stream": {
"audio": "Default",
"video": "Default"
}
}
}
},
"default_content_setting_values": {
"geolocation": 1
},
"default_content_settings": {
"geolocation": 1,
"mouselock": 1,
"notifications": 1,
"popups": 1,
"ppapi-broker": 1
},
"password_manager_enabled": false
},
"safebrowsing": {
"enabled": false
},
"search": {
"suggest_enabled": false
},
"translate": {
"enabled": false
}
}
[1538418515.143][INFO]: Populating Local State file: {
"background_mode": {
"enabled": false
},
"hardware_acceleration_mode_previous": true,
"password_manager": {
"os_password_blank": false,
"os_password_last_changed": "13167296777719305"
},
"policy": {
"last_statistics_update": "13182790544628831"
},
"profile": {
"info_cache": {
"Profile 1": {
"active_time": 1538349348.895792,
"avatar_icon": "chrome://theme/IDR_PROFILE_AVATAR_17",
"background_apps": false,
"gaia_id": "",
"is_ephemeral": false,
"is_omitted_from_profile_list": false,
"is_using_default_avatar": true,
"is_using_default_name": true,
"managed_user_id": "",
"name": "ユーザー 1",
"user_name": ""
}
},
"last_active_profiles": [ "Profile 1" ],
"last_used": "Profile 1"
},
"rappor": {
"cohort_seed": 83,
"last_daily_sample": "13182792367350167",
"secret": "/l2fsXYZZ7zrNoF66CloZ5NbTlwC5nmyhIIlCLaEYYXI8I6jJglEHvb7Y7Ae6Axx"
},
"session_id_generator_last_value": "903790287",
"shutdown": {
"num_processes": 0,
"num_processes_slow": 0,
"type": 0
},
"ssl": {
"rev_checking": {
"enabled": false
}
},
"startup_metric": {
"last_startup_timestamp": "13182822944833420",
"last_startup_version": "69.0.3497.100",
"same_version_startup_count": 314
},
"subresource_filter": {
"ruleset_version": {
"content": "9.0",
"format": 20
}
},
"supervised_users": {
"whitelists": {

}
},
"tab_stats": {
"last_daily_sample": "13182790549133831",
"max_tabs_per_window": 3,
"total_tab_count_max": 3,
"window_count_max": 1
},
"uninstall_metrics": {
"installation_date2": "1538057743",
"launch_count": "314",
"page_load_count": "2400"
},
"updateclientdata": {
"apps": {
"aemomkdncapdnfajjbbcbdebjljbpmpj": {
"cohort": "",
"cohortname": "",
"dlrc": 4290,
"pf": "1d671cbc-c534-4329-93ec-d7568d7d8e0e"
},
"copjbmjbojbakpaedmpkhmiplmmehfck": {
"cohort": "1:p1x:",
"cohortname": "Auto",
"dlrc": 4290,
"pf": "af1b74a6-cdf2-4069-918f-e6d667da1eb1"
},
"gcmjkmgdlgnkkcocmoeiminaijmmjnii": {
"cohort": "1:bm1:",
"cohortname": "M54ToM99",
"dlrc": 4290,
"pf": "37d3c5b0-e18e-4f5f-b910-ea46c846bcbe"
},
"giekcmmlnklenlaomppkphknjmnnpneh": {
"cohort": "1:j5l:",
"cohortname": "Auto",
"dlrc": 4290,
"pf": "324c81ad-7283-4f8a-8389-f75e3796ab97"
},
"gkmgaooipdjhmangpemjhigmamcehddo": {
"cohort": "",
"cohortname": "",
"dlrc": 4290,
"pf": "e33cb26e-5ece-4f15-ba15-3a35d30539c5"
},
"hfnkpimlhhgieaddgfemjhofmfblmnib": {
"cohort": "1:jcl:",
"cohortname": "Auto",
"dlrc": 4290,
"pf": "1c3c4f7f-f2c2-40a2-baa5-594cc93c9e4f"
},
"hnimpnehoodheedghdeeijklkeaacbdc": {
"cohort": "",
"cohortname": "",
"dlrc": 4290,
"pf": "98eccb04-9979-4057-b2b8-921e7f2f51ac"
},
"khaoiebndkojlmppeemjhbpbandiljpe": {
"cohort": "1:cux:",
"cohortname": "Auto",
"dlrc": 4290,
"pf": "76ecbf93-bdfc-4922-bb43-dcbacc68e6a5"
},
"llkgjffcdpffmhiakmfcdcblohccpfmo": {
"dlrc": 4290,
"pf": "ee90e8f9-faed-4ce2-95cc-7d3914b0cf31"
},
"mimojjlkmoijpicakmndhoigimigcmbb": {
"cohort": "1:d0j:",
"cohortname": "Chrome [M50... M99]",
"dlrc": 4290,
"pf": "f2fcc86f-ae53-4852-8f2c-06d1a5bb8425"
},
"npdjjkjlcidkjlamlmmdelcjbcpdjocm": {
"cohort": "",
"cohortname": "",
"dlrc": 4290,
"pf": "c7b579c8-a5d2-44d4-be4d-042196eae9fc"
},
"oimompecagnajdejgnnjijobebaeigek": {
"cohort": "",
"cohortname": "",
"dlrc": 4290,
"pf": "222fcd58-1c3c-4edd-84ff-48dda208ef5f"
},
"ojjgnpkioondelmggbekfhllhdaimnho": {
"cohort": "1:0:",
"cohortname": "Auto",
"dlrc": 4290,
"pf": "d71010c3-9b13-40fa-b8da-361cfe04394c"
}
}
},
"user_experience_metrics": {
"client_id2": "ab05043f-7f46-44b9-adba-daae4455ffb4",
"client_id_timestamp": "1538057744",
"low_entropy_source2": 2510,
"session_id": 313,
"stability": {
"breakpad_registration_fail": 0,
"breakpad_registration_ok": 0,
"browser_last_live_timestamp": "13182822946489792",
"child_process_crash_count": 0,
"crash_count": 313,
"debugger_not_present": 314,
"debugger_present": 0,
"deferred_count": 0,
"discard_count": 1,
"execution_phase": 500,
"exited_cleanly": false,
"extension_renderer_crash_count": 0,
"extension_renderer_failed_launch_count": 0,
"extension_renderer_launch_count": 5,
"incomplete_session_end_count": 0,
"launch_count": 314,
"page_load_count": 2400,
"plugin_stats2": [ ],
"renderer_crash_count": 0,
"renderer_failed_launch_count": 0,
"renderer_hang_count": 0,
"renderer_launch_count": 617,
"session_end_completed": true,
"stats_buildtime": "1536987600",
"stats_version": "69.0.3497.100-64",
"system_crash_count": 0,
"version_mismatch_count": 0
}
},
"variations_crash_streak": 313,
"was": {
"restarted": false
}
}
[1538418515.346][INFO]: [c50bff0052a5da7dbeaf25df0cc1fb92] RESPONSE InitSession ERROR unknown error: failed to write prefs file
[1538418515.346][DEBUG]: Log type 'driver' lost 0 entries on destruction
[1538418515.346][DEBUG]: Log type 'browser' lost 0 entries on destruction

Caleb Rouleau

unread,
Oct 1, 2018, 2:40:29 PM10/1/18
to yosida....@gmail.com, ChromeDriver Users
Your ChromeDriver instance doesn't have permissions to access C:\\ChromeData. You should put your ChromeData somewhere in your user's home directory instead. Otherwise you can run ChromeDriver as root to get around this, but that is not recommended.

--
You received this message because you are subscribed to the Google Groups "ChromeDriver Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromedriver-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

yosida....@gmail.com

unread,
Oct 1, 2018, 2:55:34 PM10/1/18
to ChromeDriver Users
Indeed, it's a matter of file access rights.
Thanks.

2018年10月2日火曜日 3時40分29秒 UTC+9 Caleb Rouleau:
Reply all
Reply to author
Forward
0 new messages