Question: where is tmp directory now

6 posts by 2 authors in: Forums > CMS Builder
Last Post: August 7   (RSS)

We used to be able to set the tmp directory instead of using /tmp, but I can't find the setting. A couple of weeks ago, I was being hammered by several bots that filled my /tmp directory, which caused CMSB access to stop with the error message "/tmp is full".

This affected every site on the server running CMSB. When we could change it, I had tmpDir set to USERHOME/tmp. If that were still in effect, then CMSB apps would not have been impacted.

I have solved the bot problem, but I'm curious about the old setting. It appears the data/temp is not used in all cases, and /tmp is still being accessed. 

Jeff Shields
yaadev.com

By kitsguru - July 28 - edited: July 28

I deleted the emails and cleared the logs, so I'm unsure where the issue occurred in CMSB. I updated many of the older CMSB versions to 3.78.

I have taken several measures to protect /tmp from filling up with watch scripts & cron jobs, modsec rules, and robots.txt disallow.

The files were created by the user 'nobody' when the AI and SEO bots misbehaved. 

I assume you are now using the data/temp directory, which is fine by me.

I was curious, that's all.

Jeff Shields
yaadev.com

Oh okay.  No worries.  Let us know if anything comes up that you want us to look into further. 

Thanks!

Dave Edis - Senior Developer
interactivetools.com

By kitsguru - August 6 - edited: August 7

I solved my problem. It was actually my MariaDB tempDir setting. It was using /tmp, and when I was being hammered by multiple bots on all my domains simultaneously, it blew up.

I changed the tempDir setting of MariaDB to /home/mysqltemp, set the permissions. So far, so good.

Jeff Shields
yaadev.com

Hi Jeff, 

Okay, interesting.  Glad you found the cause, and thanks for letting us know!

Dave Edis - Senior Developer
interactivetools.com