Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Havouza

error when going to different menus in BO

Recommended Posts

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

 

screenshot error tb.png

Share this post


Link to post
Share on other sites

delete /cache/smarty/compile and /cache/smarty/cache directories, and let tb recreate them.

Share this post


Link to post
Share on other sites

Not a good idea. Now I get the error screen whatever I try to do

Share this post


Link to post
Share on other sites

And now the shop is not working either. Same screen

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Posted (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 by Wartin

Share this post


Link to post
Share on other sites

Same users and groups. I can create folder and files

 

Share this post


Link to post
Share on other sites

The permission is set to 777 just for test so it must be writable.

Share this post


Link to post
Share on other sites

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 

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Are you on a cpanel server by chance? 

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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. 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...