Havouza Posted July 28, 2020 Posted July 28, 2020 Hi! I now get an error when I try to go somewhere from the admin menu. this one going to cs import tab. What we have done is to update from Ubuntu 16.04 to 18.04. Backup is then restored. Looks to me like a permission problem but I tested with 777 and I get the same error All errors is about the same, only the last folder can be different Se screenshot
datakick Posted July 28, 2020 Posted July 28, 2020 delete /cache/smarty/compile and /cache/smarty/cache directories, and let tb recreate them.
Havouza Posted July 28, 2020 Author Posted July 28, 2020 Not a good idea. Now I get the error screen whatever I try to do
Havouza Posted July 28, 2020 Author Posted July 28, 2020 And now the shop is not working either. Same screen
datakick Posted July 28, 2020 Posted July 28, 2020 It's definitely a good idea. It shows the problem at hand quite nicely - the whole directory /cache/smarty is not writeable, at least for your web user
Wartin Posted July 28, 2020 Posted July 28, 2020 (edited) What about server user? Is it the same that before upgrading? Can you log in via ssh? You can try creating a folder there, or just 'touch filetest' to try creating a new file. Edited July 28, 2020 by Wartin
Havouza Posted July 28, 2020 Author Posted July 28, 2020 Same users and groups. I can create folder and files
Havouza Posted July 28, 2020 Author Posted July 28, 2020 The permission is set to 777 just for test so it must be writable.
datakick Posted July 28, 2020 Posted July 28, 2020 This can happen when there is a directory higher in the tree where you (your web server) don't have execute permission. If a parent directory has no execute permission, then user cannot stat any subdirectories (regardless of the permissions on those subdirectories and/or files). Anyway, this is not an application issue, it's server misconfiguration
lesley Posted July 28, 2020 Posted July 28, 2020 It will also throw that error when the server is out of disk space too, so clearing the cache is only a temporary solution, it will run out of space again. I would check the free space on the disk.
Havouza Posted July 28, 2020 Author Posted July 28, 2020 Well if I take away the folders cache and compile in the smarty folder. The shop go down and I have to rollback the snapshot to get it up again
Havouza Posted July 28, 2020 Author Posted July 28, 2020 18 minutes ago, lesley said: It will also throw that error when the server is out of disk space too, so clearing the cache is only a temporary solution, it will run out of space again. I would check the free space on the disk. Hi Lesley. It has about 800 Gbyte free space
Havouza Posted July 28, 2020 Author Posted July 28, 2020 40 minutes ago, lesley said: Are you on a cpanel server by chance? No I use webmin but I can give you full access if you want
lesley Posted July 28, 2020 Posted July 28, 2020 I was just curious, cpanel has some protections based on permissions that could be triggering. You might check that your tmp path as defined in php is writable.
Havouza Posted July 29, 2020 Author Posted July 29, 2020 Well this problem is now solved. A very strange error I must say. @lesley pointed me in the right direction. I can say it had nothing to do with permissions. I use webmin as CP. Somethingf happened during last update. The VPS has 1 domain and the setting has been that the domain has unlimited disk space. The shop take about 21 Gb and the disk is 1 TB. When I checked the suotes for the domain I discovered that the disk quota for the domain was set to 1 Gb. Shop works as normal. Anyway, when I set the quota to unlimited all the errors disappeared. One warning. I was advised to delete 2 folders in the Smarty folder. I tried that a couple of times and tb just chrashed. I also tested it after I fixed the problems. The same crash. They folders will not be recreated and a backup need to be restored or as I do it, roll back a snapshot
datakick Posted July 29, 2020 Posted July 29, 2020 15 minutes ago, Havouza said: One warning. I was advised to delete 2 folders in the Smarty folder. I tried that a couple of times and tb just chrashed. I also tested it after I fixed the problems. The same crash. They folders will not be recreated and a backup need to be restored or as I do it, roll back a snapshot You are right, tb does not recreate them automatically. It should, but it doesn't. Maybe somebody will fix this bug in the future. Sorry for the bad advice. The correct advice is to delete the content of /cache/smarty/compile and /cache/smarty/cache directories
Havouza Posted July 30, 2020 Author Posted July 30, 2020 On 7/29/2020 at 12:00 PM, datakick said: You are right, tb does not recreate them automatically. It should, but it doesn't. Maybe somebody will fix this bug in the future. Sorry for the bad advice. The correct advice is to delete the content of /cache/smarty/compile and /cache/smarty/cache directories Probably if I had made new folder cache and compile it had probably started again but now I know.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now