{"action":"closed","issue":{"url":"https://api.github.com/repos/adieuadieu/serverless-chrome/issues/123","repository_url":"https://api.github.com/repos/adieuadieu/serverless-chrome","labels_url":"https://api.github.com/repos/adieuadieu/serverless-chrome/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/adieuadieu/serverless-chrome/issues/123/comments","events_url":"https://api.github.com/repos/adieuadieu/serverless-chrome/issues/123/events","html_url":"https://github.com/adieuadieu/serverless-chrome/issues/123","id":305987160,"number":123,"title":"Failed to create /home/sbx_user1051/.pki/nssdb directory.","user":{"login":"gotson","id":2139133,"avatar_url":"https://avatars0.githubusercontent.com/u/2139133?v=4","gravatar_id":"","url":"https://api.github.com/users/gotson","html_url":"https://github.com/gotson","followers_url":"https://api.github.com/users/gotson/followers","following_url":"https://api.github.com/users/gotson/following{/other_user}","gists_url":"https://api.github.com/users/gotson/gists{/gist_id}","starred_url":"https://api.github.com/users/gotson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gotson/subscriptions","organizations_url":"https://api.github.com/users/gotson/orgs","repos_url":"https://api.github.com/users/gotson/repos","events_url":"https://api.github.com/users/gotson/events{/privacy}","received_events_url":"https://api.github.com/users/gotson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-16T16:08:01Z","updated_at":"2018-03-17T10:04:00Z","closed_at":"2018-03-17T10:04:00Z","author_association":"NONE","body":"I am trying to use `serverless-chrome` together with Selenium in Java inside a Lambda.\r\nWhen running my lambda with `sam local`, i get the following error:\r\n`[1521214942.143][SEVERE]: Failed to create /home/sbx_user1051/.pki/nssdb directory.`\r\n\r\nI pass the following arguments to chrome via Selenium:\r\n```\r\n                \"--headless\",\r\n                \"--window-size=1280x1696\",\r\n                \"--no-sandbox\",\r\n                \"--user-data-dir=/tmp/user-data\",\r\n                \"--hide-scrollbars\",\r\n                \"--enable-logging\",\r\n                \"--log-level=0\",\r\n                \"--v=99\",\r\n                \"--single-process\",\r\n                \"--data-path=/tmp/data-path\",\r\n                \"--ignore-certificate-errors\",\r\n                \"--homedir=/tmp\",\r\n                \"--disk-cache-dir=/tmp/cache-dir\"\r\n```\r\n\r\nThose flags are the same as the ones from [lambdium](https://github.com/smithclay/lambdium/blob/032dd1a0d16960090a70c8aa65821f0fcab45190/lib/chromium.js#L11).\r\n\r\nIt looks like Chrome is trying to create a directory inside a directory where the user doesn't have the rights, but give the `homedir` flag Chrome should be using `/tmp`\r\n\r\nWould anyone have an idea on how to fix this ?"}}
{"actor":{"display_login":"gotson"}}