I copied a remote drupal installation to my local server (WAMP) and also copied the database. The site works fine, and I can log in as administrator, but if I try clicking on any of the admin menus I get the message "The connection was reset. The connection to the server was reset while the page was loading."
Any ideas?

Remote:
Apache version 2.2.22
PHP version 5.3.14
MySQL version 5.0.95-community

Local:
Apache version 2.2.22
PHP version 5.3.13
MySQL version 5.5.24
Windows 7 x64

Comments

deruitern’s picture

Try truncating each of the cache tables in your the database by issuing SQL statements similar to the following:

truncate table cache;
truncate table cache_foo;

flightrisk’s picture

I have the exact same problem. I am on Drupal 7.12 and upgraded to a 64 bit machine. That means I also upgraded PHP, Apache, etc to new versions. Things seem slow and this appears to be a timeout despite me changing php.ini to have more memory and larger timeouts. All the pages I tried work, but if I try to select any of my many admin menu items it gives the "connection reset" page.

flightrisk’s picture

More detail:

localhost on working site:

Windows XP (32bit)
Wampserver 2.1 (32bit)
Mysql 5.5.8
PHP 5.3.5
Apache 2.2.17

localhost on broken site

Windows 8 (64bit)
Wampserver 2.2
Mysql 5.5.24
PHP 5.4.3
Apache 2.4.2

Can load all web pages, but can't execute anything on the admin menu other than "add content". In Chrome and Firefox I get "connection reset", but in IE, it spins forever.

Either it is something in the way I copied the database, or more likely one of he upgrades broke things. I've tried to up everyplace I know to flush caches and up memory limits. How can I at least debug to see what is going on? Nothing in the php, apache or mysql logs. I can't see my admin logs beause I can't access the menu.

Ndesign’s picture

I have migrated over many sites from a unix based server to windows server...After migration I was able to set clean urls and navigate my site...I was able to log in and redirect to "/users" but when I go to anything /admin... i get "The connection to the server was reset while the page was loading." timeout. The melon scratcher I have a problem with is the rest of my sites work just fine...
Please Help fellow drupalers?!

So Far caching has got me nowhere...

TRUNCATE TABLE `cache`;
TRUNCATE TABLE `cache_filter`;
TRUNCATE TABLE `cache_menu`;
TRUNCATE TABLE `cache_content`;
TRUNCATE TABLE `cache_block`;
TRUNCATE TABLE `cache_page`;

lilbebel’s picture

Hello,

I am having exactly the same issue. I flushed the cache in PHPMyAdmin on the server side but to no avail. On Firefox, it mainly keeps getting reset when I try to load the site. Occasionally, when I do get in to the site, I can't actually do anything. Meaning, if I try to, for example, run CRON or update the database, it times out and I get kicked out of the site again.

Major problem as I have a client's site that needs to go live.

Any help gratefully appreciated.

M

wusel’s picture

Apache 2.2.x and Apache 2.4.x have a different syntax in its *.conf-files.

Please read the Apache documentation of this two Apache versions and then change the settings in your *.conf-files in your new apache-conf-directories.

Good luck!

Wusel

eclecto’s picture

Had a very similar problem to this today, cropped up all of the sudden.

Then I discovered that everything worked fine in IE and Chrome, so on a whim I switched back to Firefox and cleared my cache, cookies, and logins.

Bam, now everything works.

I have no idea whether this was also a server issue (I also truncated my Drupal caches) that was somehow not propagating to my browser's offline storage or whether it was an actual browser cache entry or cookie that had some bad data in it, but I'd definitely suggest trying that if nothing else works.

lilbebel’s picture

Hello,

Thanks to Dave Myburgh, I was able to find the problem.

First of all, it is a server side issue. I am using Bluehost. Dave told me to go in to my cPanel and check the 'Log Error' page.

At the bottom, I found a repeating PHP error which showed that the server was breaking the site:

[15-Jan-2013 08:52:46] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/53/usr/lib64/php/modules/http.so' - /usr/php/53/usr/lib64/php/modules/http.so: undefined symbol: zend_ini_string_ex in Unknown on line 0
[15-Jan-2013 08:52:46] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/53/usr/lib64/php/modules/oauth.so' - /usr/php/53/usr/lib64/php/modules/oauth.so: undefined symbol: gc_remove_zval_from_buffer in Unknown on line 0
[15-Jan-2013 08:52:46] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/53/usr/lib64/php/modules/uploadprogress.so' - /usr/php/53/usr/lib64/php/modules/uploadprogress.so: undefined symbol: zend_ini_string_ex in Unknown on line 0

Armed with this and a detailed description of the how the site was not loading and was being reset, their tech support were able to go in and fix the problem on their end. My site is now working again.

I hope this will help the rest of you with your issue, especially if you are with BlueHost.

M

breadhead’s picture

I checked my apache error log and saw entries like... child pid 12345 exit signal Bus error (7)

Upon restarting Apache things worked fine.

I should also mention that I had to disable Drupal's overlay (pop-up) functionality within the admin interface to even see Firefox's "connection to server reset" error message. Before that, there was no indication as to what was going on (why links weren't working within the Admin interface).

ladybug_3777’s picture

I had a similar problem that I could NOT figure out for a few hours. My Google search brought me here more than once but none of the comments above helped me figure out what was going on. I finally stumbled upon this other post:

https://drupal.org/node/1597820

FINALLY a fix that worked for me. I decided to add the link to this post just in case someone else is trying to find a solution to the same problem I was having. (hopefully this isn't off topic!)

Tarraccas’s picture

Thank you so much for the lead, ladybug! The coder module was it for me as well. Not at all off-topic. Totally on-topic!

Drupal 7.x Apache 2.4.7 PHP 5.5.8

erlik28’s picture

Thank you !!!!!!!!

I worked for me, just had to add something to httpd.conf

<IfModule mpm_winnt_module>
   ThreadStackSize 8388608
</IfModule>
raidenace’s picture

Erlik28, you are a life saver!!! I had been going crazy with this issue, but your post was the exact fix I needed - everything works like a charm now! Im a happy camper - thanks loads!!!

cmak’s picture

Thanks a lot erlik28.

Your solution worked for me as well on my localhost.

Senior Drupal Developer
Skype me on : mak_chavan
Email : Makarand Chavan

Adysone’s picture

Life saver... The word is too weak!

Thanks!

CulacovPavel’s picture

Thank, this code help solve problem on wampserver. Timeout on page on click imagetoolkit

gswiss’s picture

I cannot BELIIIIIIEVE this worked -- amazing. I spent exactly 5 hours on this, @Erik28. I thought it had something to do with mod_rewrite -- I was way off. THANK YOU!

//Garrett

Mohammad Ain’s picture

After spending a lot of time this solution made my life. ty.

RWill’s picture

Thanks ladybug for posting the solution.

tanzeel’s picture

It worked (Y). Thank you LadyBug :)

Thank you,
Tanzeel

waqarit’s picture

thanks a lot @ladybug_3777 you really save my lot of time :)

Gik000’s picture

Thank you @ladybug_3777 it works in my wamp

rosaq’s picture

Big Thank you after 5 hours of this issue and found your post it worked for me and my site is up and running again! Thank you!

yesidcs’s picture

I worked for me

Dmitrii Puiandaikin’s picture

thank you

dibyadel’s picture

thanks a lot erikl

ThreadStackSize 8388608

this worked me well. thanks a lot.

billyg4585’s picture

I tried most of the ideas in this thread but with no luck. I was only having problems with the /admin pages but tried accessing the pages with ?q=admin/ and things were working good. I modified my .htaccess file and replaced the default clean URL rewrites with the following:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

This solved my problem. Note that this was a UNIX server. Hope this helps someone.

billyg4585’s picture

Also, check the the rewrite base is uncommented.

RewriteBase /

It always has to be something silly.

waqarit’s picture

tnks

gopisathya’s picture


ThreadStackSize 8388608

solved my problem. Thanks.

pinkonomy’s picture

I have the same problem but I cannot fix this.Any more suggestions?
cheers

bairlangga’s picture

First of all, thanks for Ladybug who discovered this. It solve problems! Great!

Anyway, I encountered this issue every now and then while working with Drupal on WAMP so i guess this is rather general issue not specific installation related but also in every other script executions, modules, etc.

So i guess this shall be in FAQ section, if there are any.

ravi_admec’s picture

I think it is a FF specific issue.

I had same issue with my website and I tried google chrome and my website worked fine even on firefox too.

rynebl’s picture

For me

Disabling xdebug fixed my install issues on Drupal 8. My config is as below.

xdebug.profiler_output_dir="C:\PHP\"
xdebug.profiler_append=On
xdebug.profiler_enable_trigger=On
xdebug.profiler_output_name="%R-%u.trace"
xdebug.trace_options=1
xdebug.collect_params=4
xdebug.collect_return=1
xdebug.collect_vars=0
xdebug.profiler_enable=0

regards,