I have a Drupal site loaded up on Azure Websites but it timeouts and wont load, the database connection is fine as if I navigate to /install.php it says that there is already a installation.
Now I tested my configuration with a vanilla install of Drupal and it works fine, no error message comes up just a blank page.
The logs suggest the following
[08-Dec-2014 09:38:55 Australia/Brisbane] PHP Fatal error: Maximum execution time of 300 seconds exceeded in D:\home\site\wwwroot\includes\database\database.inc on line 2171
Check how much php memory is allocated to your site. 300 seconds are enough for loading a drupal site.
Also, make sure, your website is not calling an external API which is taking a while to respond.
Related
Following the announcement found here https://azure.github.io/AppService/2022/08/08/Announcing-GA-WordPress-on-Azure-App-Service.html
I've decided to migrate my website from a Ubuntu Server VM on Azure to this App Service configuration.
First, I've created new resources using the "Wordpress" template/configuration which I found on Azure portal. So, the deployment process created an App Service (plan P1), a MySQL database and a CDN Endpoint.
Everything seems to working quite fine. Then I've moved my website files from the VM to the App Service and I've created a new database in MySQL server where I've imported my website database without problems.
I've kept the wp-admin and wp-includes folders which were deployed by Azure and the wp-config.php file.
As final step, I've changed the configurations in the App Service to connect to the right database.
Then I tried to visit my website, but it is super slow (about 10 seconds to load the home page and I was forced to disable some plugins which was causing a fatal error).
I've checked the Wordpress Health Status using the plugin in the admin center, and it reports some issues.
Two of them are reporting a message like this:
cURL error 28: Resolving timed out
I've seen another post on SO ("cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux) with a similar issue and it suggested to change resolv.conf DNS to 8.8.8.8 (previously was 127.0.0.11). The author of the post wrote that this change improved page load time to max 1-2 seconds.
I've made this change but then the website stopped working returning "Error establishing a database connection" (maybe because MySQL db and app service are on the VNET created by Azure Wordpress template and there are some restriction to connect to database).
I've also tried to disable the CDN, changing the CDN_ENABLED to false in the App Service configuration. Obviously I've created the correct custom domains in the App Service and changed the domain DNS which is managed outside Azure.
Also, and I don't know if it is all related to this issue, I've noticed that Google Page Speed is unable to reach the website reporting the error "Lighthouse encountered an error loading the requested page".
What can I do to resolve the reported cURL error 28 and maybe these performance issues?
I am beginner in web development. And I am working in an ASP.Net MVC 5 application and stuck with a very weird issue.
Issue:
Sometimes my web site just won't load in the browser. When I run in the local dev machine, website loads properly (localhost). But in LIVE the browser will keep on loading the website but nothing would load.
Also
After half an hour or so, website again kicks back in and starts opening properly.
Action I took:
Sometimes restarting the WebSite from IIS fixes the issue, BUT NOT ALL THE TIME. Sometimes even restarting did not fix the issue.
Also, I checked the Chrome Debugger, I do not see any error there (when the website was not loading).
I know something called ELMAH exists. Or some error logging in IIS. Can some one tell me how can I track this issue, in step by step process. Why my website will keep on trying to load in browser but will never load But after some time it loads. Is it IIS issue?
KINDLY NOTE: Once it starts loding fine, then even if I close the website and reopens it, It opens superfast like a flash. So the hiccups comes sometimes only.
I am willing to put more details, in this question. but I am not sure what to put. as far as IIS is concerned, all I know is how to restart and stop my website. that's it.
EDIT
Step 1: So, I searched event viewer as a whole in windows search and found something like below.
Edit 3
I checked the windows log, I do not see any issue related to my web app.
I know something called ELMAH exists.
Elmah is alogging framework. With just installing the NuGet package you already have an effective error logging mechanism in place. All unhandled exceptions will be logged with all the related information. It provides a page to visualize your logs and you can configure almost everything from security, to different back-end storages.
If you need a cloud base error logger with more advanced features you can use elmah.io.
Take a look at this post for a step by step guide on how to integrate elmah.
I have created an site on Umbraco 7.1.6 it was working perfect in Visual studio 2012; when I deployed it to my hosting space I found a problem that it redirects me to login screen again and again just after some seconds. I have set keep user login to true and increased timeout but no improvement.
When I searched for that problem I found some links:
https://github.com/umbraco/Umbraco-CMS/compare/release-7.1.6...7.2.0
http://issues.umbraco.org/issue/U4-3845
https://github.com/Umbraco/Umbraco-CMS/commit/c936aaa51753862914591b753f7f2d7be7749cf7
First link provide me file but I do not know how to updated my current site.
In console I am getting an error.
GET http://example.com/umbraco/backoffice/UmbracoApi/Authentication/GetRemainingTimeoutSeconds 401 (Unauthorized) angular.min.js:106(anonymous function) angular.min.js:106o angular.min.js:102g angular.min.js:100i angular.min.js:79i angular.min.js:79(anonymous function) angular.min.js:80e.$eval angular.min.js:92e.$digest angular.min.js:90e.$apply angular.min.js:92safeApply umbraco.services.js:58(anonymous function) umbraco.services.js:6773(anonymous function) angular.min.js:108e angular.min.js:31(anonymous function)
I just experienced the exact same symptoms. A site ran just fine locally, using IIS Express, worked fine when deployed to Azure WebSites, but when I ran on a Windows Shared Hosting environment, the back office session would timeout somewhere between a couple seconds and a couple minutes.
I'd get a pop-up authentication window often but not always on the GetRemainingTimeoutSeconds url.
I filed a ticket, and the provider was able to replicate the issue. They said the site was running in full trust.
After enabling 32 bit application support - the issue is resolved.
Thanks to everyone, especially to #Morten Oc who commented.
It's properly something on the hosting. Have you tried other Umbraco installations on hosterpk? Also, try to set the login time (in webconfig) to 0.
I found out a solution that it was due to hosting environment (permissions), I deployed on client's hosting and it works perfectly.
Additionally if you do not have full trust hosting then it would not be able to maintain its session, you would have to configure session to managed in database.
For more info how to configure please refer to this post:
https://www.saotn.org/configure-sqlserver-sessionstate-for-umbraco/
I got this very odd situation on my application which not all the time most of scripts I include in the <head> is not loaded, but some times they are. If I will refresh the page (either f5 or refresh button), sometimes it loads sometimes it's not. But if I enter the URL directly to the address bar, the page loads as expected. This happens not only in one page but in most pages but intermittently. My application is deployed on my local IIS version 5.1 (i'm using XP SP3). Mostly this situation happens if I rebuild my solution or I restart my IIS to refresh my IIS cache or to restart my Application. My guess is that my IIS don't have enough memory to process all the request at a time that it forgot to load all of the included scripts. Can anyone shed some light on where I should look to solve this kind of problem? At first it only happen on my machine, but lately I've noticed that it happens to our dev server also, I don't want it to go our test server or worse at the production server.
EDIT:
Here's how I determine the scripts that are not loaded.
I don't have any changes on any scripts, css what so ever that is directly seen on the client side. I only change a bit of code behind logic that wont change a bit on what the client user can see on UI. When I build it and test it on browser directly using the local IIS, my display has been corrupted, some scripts will not function and some page methods errors shown.
If I refresh the page, once or many times, the page will displace normally. As soon as I notice this, I already know that this is a cache problem.
I've used firefox and seen the same thing, so I've viewed the source. At first I didn't notice anything suspicious and everything seems normal until I clicked each include on the pages, css and scripts. Some of it are not read instead it returned an html containing The page cannot be displayed, There are too many people accessing the Web site at this time.
Once I noticed the return of some include scripts and css on the source which they return The page cannot be displayed, There are too many people accessing the Web site at this time. which is 403 error or Access forbidden, I wonder why access is forbidden, so I've done some research on my own and found out that IIS 5.1 on XP system only allows a maximum of 10 concurrent keep-alive connection, so if the page is not cached yet or part of the page, it requests to the IIS and there are times that the first request is not done and another request is being made which stuck up to 10 concurrent request, the IIS will return an 403 error to those last requests until, the first request is done and opens another connection.
For IIS5.1 in XP system, I can't do anything but to accept the fact that it only accepts 10 concurrent request, but for IIS6+, I found this article that it can handle up to 3,000 concurrent connections easily and could go more without limits depending on the Hardware resource of the machine, and some tweaks on the settings.
We have installed a web site written by others which is compiled with Visual Studio 2008 and hosted in Windows server 2008 R2.
The IIS connection timeout is set to 120 seconds. But for some pages, the first page loading fails with HTTP 404 error but sequential refresh can bring the page up. The same problem happens for some images which fail to load in web pages. We are not very sure it is network related issue or hosting issue. Anyone encountered this before?
Thanks
Have you checked the IIS logs to see if you can see the dead requests in there. If not then it's likely a network issue. If you can see them look in the event log for errors, likely IO related