CodeIgniter Forums
Cant figure out this intermitten problem DNS 500 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Cant figure out this intermitten problem DNS 500 (/showthread.php?tid=68788)



Cant figure out this intermitten problem DNS 500 - ciadvantage - 08-25-2017

I migrated to CI 3.1.5 and for the same function it works at time and other it gives DNS 500 error .  Compared 
for CI 2.2.x , it worked flawlessly.

I used files for session storage and I wonder this can be the cause but it doesnt make any sense if it does
and I wonder what else can contribute to this intermitten DNS 500 error.

Any opinion? 

Thanks


RE: Cant figure out this intermitten problem DNS 500 - dave friend - 08-25-2017

Some things to try
  • Look for matching error messages in the Web server log files
  • Check server load statistics (for CPU, memory and disk) and examine the logs for network timeouts
  • Check the .htaccess, web.config or similar configuration files for any recent modifications that may have introduced logic errors
  • Check the site's file and folder permissions (particularly if the errors occur only for requests to certain pieces of content)



RE: Cant figure out this intermitten problem DNS 500 - ciadvantage - 08-26-2017

(08-25-2017, 01:07 PM)dave friend Wrote: Some things to try
  • Look for matching error messages in the Web server log files
  • Check server load statistics (for CPU, memory and disk) and examine the logs for network timeouts
  • Check the .htaccess, web.config or similar configuration files for any recent modifications that may have introduced logic errors
  • Check the site's file and folder permissions (particularly if the errors occur only for requests to certain pieces of content)

I checked the error log and found the db dropping connections quite often versus the old CI 2.2.x and I can't figure why
The manual suggests to do $this->db->reconnect() to keep it alive.  I guess I give it a try

Thanks Dave


RE: Cant figure out this intermitten problem DNS 500 - Shawn - 08-27-2017

(08-26-2017, 09:17 AM)ciadvantage Wrote:
(08-25-2017, 01:07 PM)dave friend Wrote: Some things to try
  • Look for matching error messages in the Web server log files
  • Check server load statistics (for CPU, memory and disk) and examine the logs for network timeouts
  • Check the .htaccess, web.config or similar configuration files for any recent modifications that may have introduced logic errors
  • Check the site's file and folder permissions (particularly if the errors occur only for requests to certain pieces of content)

I checked the error log and found the db dropping connections quite often versus the old CI 2.2.x and I can't figure why
The manual suggests to do $this->db->reconnect() to keep it alive.  I guess I give it a try

Thanks Dave

You shouldn't need to use a reconnect(), unless a lot of processing is occurring between accesses to the database. Perhaps you are calling separate models from your controller to process each submit/query?


RE: Cant figure out this intermitten problem DNS 500 - ciadvantage - 08-30-2017

it is quite lot of db processing but still cant figure why the old CI works well when new CI 3.x having problem of keeping connection
alive!