Score:0

chromium cannot run with www-data user

cn flag

I'm using chromium on this php package https://github.com/symfony/panther

Install: apt-get install chromium-chromedriver

Function has been called: $this->client = Client::createChromeClient('/usr/bin/chromedriver');

When I deploy to Ubuntu server and run by database queue with supervisor, I use www-data user and received this error:

Could not start chrome. Exit code: 1 (General error).
Error output: cmd_run.go:1019: WARNING: cannot create user data directory: cannot create "/var/www/snap/chromium/1864": mkdir /var/www/snap: permission denied
/system.slice/cron.service is not a snap cgroup
Terrance avatar
id flag
Checking the user `www-data` in the /etc/passwd file it has a nologin set on it which means that it is not supposed to be used as a normal user.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.