-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot touch '/.local/share/applications/mimeapps.list': Permission denied after volume change #401
Comments
The user executing chrome doesn't have permission to access Related to #106 |
added noSandbox property, error has changed but still throwing.
|
|
set 777 permissions on file:
Error persists:
|
It still can't touch the file. It's an issue with chrome, not the lib. There are several results on Google of people reporting this same issue, some of them solved it by changing the permissions of that file and folder with either chmod or chown. |
as stated I have given full 777 permissions on that file. All google searches for phrases in these errors directs to this git, if you have a useful source please post it. |
php reports that it is either operating under the centos or apache user. setting chown to either of those users does not fix the problem. Is there anyway to determine what user chrome is trying to run under? |
It will probably run under the same user as the php is running. |
I have set chown to apache. The error still occurs |
The chrome process is created using use Symfony\Component\Process\Process;
$return = exec('whoami');
echo $return."\n";
$process = new Process('whoami');
$process->run();
echo $process->getOutput(); I'm not even sure that the permission error on |
Running your suggested code yields the following results
However
What is the problem then? |
There are failures to read |
In attempting to identify the udev problems I stumbled across the following This gives me alot more detail on all the problems and how to address them Issues seem to be caused by SELinux having lost alot of config during the volume expansion. Playing whack-a-mole with |
After months of trying, I finally managed to resolve the issue. The permissions issue was caused by the permissions of the Linux user running the PHP script. On the server, it was necessary to guarantee full shell access to the user running the script. Tjis is not root level access neither sudo. Must be normal access to server shell (I tried jailed shell without success). This solved my problem. |
Our application is hosted on AWS, after expanding the storage volume used for the instance we receive the following error from the library
Code used
Code worked before the move. ENV settings
reinstalling google-chrome and chrome-php does not resolve the issue.
The text was updated successfully, but these errors were encountered: