Skip to content
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

If you have permissions issue #914

Closed
andrewlimaza opened this issue Dec 8, 2020 · 2 comments
Closed

If you have permissions issue #914

andrewlimaza opened this issue Dec 8, 2020 · 2 comments

Comments

@andrewlimaza
Copy link
Contributor

andrewlimaza commented Dec 8, 2020

There's a couple of issues I have, they're not major just creating admin for me.

  1. It seems whenever there's an update I get "Whoops there's an error" on the Manage > System page. To remove this error I run the php artisan freescout:clear-cache command and that resolves it. I then can get to my system settings page.

  2. However, I get a warning about the storage/framework/cache/data/ needing permissions (every time error 1 happens). I run the sudo chown -R www-data:www-data /var/www/html and then it goes to "OK", right up until another update is available then I have to repeat the two steps.

Error log from App Logs

failed to open stream: No such file or directory {"userId":1,"email":"redacted","exception":"[object] (ErrorException(code: 0): file_put_contents(/var/www/html/storage/framework/cache/data/05/9e/059ea079daf978c13b5020b85da476768ea94d82): failed to open stream: No such file or directory at /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122)

This is on Digital Ocean, running on NGINX.

@freescout-helpdesk
Copy link
Collaborator

freescout-helpdesk commented Dec 8, 2020

Permissions issue is the most common issue. Usually failed to open stream or File /modules/modulename/js/laroute.js does not exist errors mean that you have permissions issue.

Here is the instruction: https://github.com/freescout-helpdesk/freescout/wiki/Installation-Guide#-permissions-issue

Make sure that www-data is the primary group of the freescout user:

sudo  usermod -g www-data freescout

Also make sure that the cron task user is not messing up file permissions.

@freescout-helpdesk freescout-helpdesk changed the title Always have to run sudo chown -R www-data:www-data /var/www/html If you have permissions issue Dec 8, 2020
@freescout-helpdesk freescout-helpdesk pinned this issue Dec 8, 2020
@andrewlimaza
Copy link
Contributor Author

Thanks I've run that script for the user, I'll keep an eye on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants