PDA

View Full Version : which tasks in daily cleanup and can I disable crob jobs?


helenblog
06-23-2015, 02:02 AM
I have a forum vB4xx but sometimes it auto restarts all forum statistics (around 8 AM ) and made my VPS hosting restart

I check cron jobs on VPS, don't have anythings there, I think it comes from cron jobs in vbulletin forum.

I want to disabled all cron jobs or what will be happened if I remove this line in footer template
{vb:raw cronimage}

How to find out which made my VPS restart automatically in schedule time like that?



Please helps!

Thanks in advance

ForceHSS
06-23-2015, 02:07 AM
Check server error logs to see if there is any problems as to the cron jobs will need a list of what you have to see if any can be disabled

helenblog
06-23-2015, 02:15 AM
Check server error logs to see if there is any problems as to the cron jobs will need a list of what you have to see if any can be disabled

I checked /var/log/httpd/domains/mydomainname.com.error.log

but didn't see any abnormal things there

If I want to remove {vb:raw cronimage} in footer template

and do cron jobs manually then it's possible?

what task in hourly cleanup and daily cleanup, how can I control task in them?

ForceHSS
06-23-2015, 03:08 AM
I checked /var/log/httpd/domains/mydomainname.com.error.log

but didn't see any abnormal things there

If I want to remove {vb:raw cronimage} in footer template

and do cron jobs manually then it's possible?

what task in hourly cleanup and daily cleanup, how can I control task in them?
Can you post the error logs also the cleanups you are looking for are named Daily Cleanup and Hourly Cleanup so they are not hard to find

helenblog
06-23-2015, 03:32 AM
Can you post the error logs also the cleanups you are looking for are named Daily Cleanup and Hourly Cleanup so they are not hard to find

I Pmed you all the details for

mydomain.com.error.log


Daily Cleanup and Hourly Cleanup are cron jobs that I thought it caused auto reset my vps

ForceHSS
06-23-2015, 02:16 PM
Seen the pm yes you are missing some files just upload them and the error will go away

helenblog
06-23-2015, 02:42 PM
Seen the pm yes you are missing some files just upload them and the error will go away
Thanks for your PM

but honestly I couldn't understand why missing files made my Apache (httpd) restarted? (it looks like my site overload or by cron jobs)
Do these files have some functions and they did that?

TheLastSuperman
06-23-2015, 05:11 PM
Some of these cron jobs are actually files it calls, .php files which contain sql that is run (depending on what cron, if within said file is supposed to run and such) so it could have been a query to remove all expired user sessions or similar or completely different. Please do as force suggested and ensure all files are in place.

Not sure why it should make apache restart unless the query simply made it lose its cool per say... seems odd or perhaps that something is not setup correctly in php.ini or other, if you're not on shared hosting then ask your host to look into this if on a shared server they will more than likely NOT modify php.ini or other pertinent settings as it would affect all clients on the "shared" server where as if on a vps or dedicated it can be done but that all depends on if its something related to that, like I said initially above I don't ever recall in all my years having someone report that cron jobs made their server restart (related to vB) looks as if it can happen though.

helenblog
06-25-2015, 02:32 AM
Some of these cron jobs are actually files it calls, .php files which contain sql that is run (depending on what cron, if within said file is supposed to run and such) so it could have been a query to remove all expired user sessions or similar or completely different. Please do as force suggested and ensure all files are in place.

Not sure why it should make apache restart unless the query simply made it lose its cool per say... seems odd or perhaps that something is not setup correctly in php.ini or other, if you're not on shared hosting then ask your host to look into this if on a shared server they will more than likely NOT modify php.ini or other pertinent settings as it would affect all clients on the "shared" server where as if on a vps or dedicated it can be done but that all depends on if its something related to that, like I said initially above I don't ever recall in all my years having someone report that cron jobs made their server restart (related to vB) looks as if it can happen though.

Seem you said right, I sent you a PM and hope to have your support.

Thanks

TheLastSuperman
06-25-2015, 03:58 AM
^ I just sent a reply, going to post the gist of it here in case others are curious but I basically asked if in your pm when you said you set session to 12hours... did you mean you set:
> AdminCP > Settings > Options > Cookies and HTTP Header Options

To the seconds value that equals 12hours i.e. is your Session Timeout value still 1800 or are you telling me its now set to 43200?

Cookies and HTTP Header Options
Session Timeout
This is the time in seconds that a user must remain inactive before their login session expires. This setting also controls how long a user will remain on Who's Online after their last activity.

When you set this toooooo high it can cause severe issues, you can check the "session" table in the database via phpmyadmin to monitor the number of visitors... if you've set it to 12 hours without making changes to account for such it can cause issues. Let us know though if that's what you meant by session set to 12hours in your last pm - I'm not trying to post private pm convo simply pertinent info others may find useful in the future if a similar issue.

Edit: Also just so you know, removing cronimage from footer can cause scheduled tasks not to run i.e. cron jobs the forum has setup to run etc.

helenblog
06-25-2015, 01:50 PM
you can check the "session" table in the database via phpmyadmin to monitor the number of visitors

I checked session table in phpmyadmin it has over 1000 rows now

I have some questions

how many hours can I set with session timeout?

Are there any ways to modify or changes (in php.ini or vb codes) to make it work properly even in 12 hours or 24 hours?

what is the maximum time i can set for session timeout?

How did cron job work for session timeout and how it will be deleted from session table?

Why it make my server high load when setting session timeout tooooooo high? ( I think it consumed more CPU or RAM to delete these session rows in table, right? thus it makes my Apache (httpd) restart automatically? )


Thanks in advance.

TheLastSuperman
06-25-2015, 05:49 PM
^ Some things I do believe I've confused you on... the php.ini and other things I mentioned above were "possible" issues, I didn't know at the time you meant "session timeout" specific setting until later.

I believe from what you've told me here and via pm that I now know, you changed your Session Timeout setting to 12hours instead of 15/30mins.

So with all that being said, lets do a quick test ok?
- Change Session timeout setting to 1800 which equals 30mins a member can stay logged in.
-- Now wait and see if the server restarts (whenever it did daily etc).

*IF the issues subsides after this i.e. the server stops restarting and the odd behavior stops then you know it was in fact your (overly)high session timeout.
**IF the server continues to restart and have issues AFTER being changed to 1800 then we know it was NOT the session timeout being too high.

^ Let us know. After we know 100% that the issue was "Session Timeout" setting, then we can go from there and make changes so members can stay logged in for 12hours without issues BUT not until current problem is fixed ;).