No Suitable Nodes - Rackspace Hosting

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
1/25/2011 7:42:03 PM
Gravatar
Total Posts 165

No Suitable Nodes - Rackspace Hosting

Hey Everyone,

I'm hoping this is the correct area to post this... I'm running into a problem were the pages will not serve up and I get a page from my hosting company (Rackspace) that there are "No Suitable Nodes to serve up request", I opened a ticket up with them and below is what I got back.

I replyed back but have not received an answer yet.  So, I'm asking to see if someone knows why I may be getting this, it started to happen more with the latest release of MojoPortal ( 2.3.5.8b MySQL).  Here's the location of the latest log file:  http://test.dsatallahassee.org/logs/mojoportal-log-20110125193841.txt

I have a great deal of sites that I switch over to MojoPortal and the latest code and they are all having this problem.  Please help if you can.

 

 

Below is the Reply:

Hello Mark,

"No suitable nodes" is an error that occurs as a result of a script exceeding the maximum timeout value. If a client connection does not receive a response from the server after approximately 30 to 60 seconds the load balancer will close the connection and the client will immediately receive the error message.

In most cases, the script will continue to execute until it reaches completion, throws an error, or times out on the server, but the client will not see the page load as expected and will instead receive this error.

For longer running scripts in PHP you can use the 'exec' function to run scripts in the background and have the script write its status to a database or a file. Then you could use AJAX to display a loading bar and check the script's status.
Once it's completed you can then remove the loading bar and proceed to a completion page. This is just an example, but the concept is good for anything. Another option is to run the script as a cron job using PHP or Perl instead of HTTP, which circumvents the load balancer's timeout.

If you can tell us when the error is occurring we can do our best to evaluate whether there was a problem on our end that caused the error. If you're seeing timeouts intermittently I would recommend auditing your code, because that likely means it could use optimization or needs to be broken down into smaller pieces. For instance, if you were inserting several records into a database, try inserting a few at a time and then sending back a response to the client's browser.

The bottom line when it comes to code causing this error is that data must be sent back to the client's browser to keep the connection alive So regardless of what sort of processing a page is doing it must return data frequently or the load balancer will assume the connection has been dropped and will forcefully terminate it.

Another common cause is that your site is trying to load files that don't exist (404 errors). This dramatically slows a site down and in rare cases can cause a timeout. More commonly a site that is loading data from an external location can see load issues causing a timeout.

For instance, if your site relies on Google Analytics, Authorize.net, or PayPal and for some reason these corresponding services go down or begin responding slowly, your site will see a performance hit that in some cases can cause the page not to load or to load intermittently. Keep in mind that all sorts of plugins for content management systems like Wordpress and Joomla use third-party services behind the scenes, such as bit.ly and Twitter.

It's also a possibility that the script simply uses a heavy amount of resources. If this is a PHP site you may need to try increasing the memory limit--which defaults to 32M--to something more appropriate for your site, such as 64M or even 128M in extreme cases.
There is a knowledge base article on that here:
http://cloudsites.rackspacecloud.com/index.php/.htaccess_Frequently_Asked_Questions#How_do_I_change_the_PHP_memory_limit_value.3F

If you're not familiar with using an .htaccess file--as the article above requires--you may take a look at these articles:
http://cloudsites.rackspacecloud.com/index.php/.htaccess_Frequently_Asked_Questions#What_is_a_.htaccess_file.3F
http://cloudsites.rackspacecloud.com/index.php/.htaccess_Frequently_Asked_Questions#How_do_I_use_a_.htaccess_file.3F

In extremely rare cases you can see this message due to an invalid cookie being stored by your browser, which will cause you to see the error message on pages that initiate a session on your site (such as login or member pages--or sometimes even your homepage). All though rare, it's a good idea to clear your browser cache and try the page again to verify that this is not the case.

Please let us know if there's anything else we can assist you with!

Regards,
Matt Wheeler
Technical Support
The Rackspace Hosting Cloud

1/25/2011 11:12:49 PM
Gravatar
Total Posts 165

Re: No Suitable Nodes - Rackspace Hosting

Well, Rackspace got back with me and their suggestion is below... However their suggestion is already in the web.config. So, I'm still looking for solutions.

 

 

 

Hello Mark,

 

We Typically find this issue occurs when the load balancers hit that 30 second time out. So if it's making an external call  it very well could be a timing issue with getting data back from the database as you suggested.

The following link has examples of how to modify the web.config file to extend the execution timeout
http://www.websupergoo.com/helpupload50/source/2-tech_notes/3-web.config.htm

 

  <httpRuntime
    maxRequestLength="1048576"
    executionTimeout="3600"
  />

Please modify this in the web.config to resolve the issue.

 

Thank you,
Tony Martinez
Tech Support
Rackspace Cloud

1/26/2011 7:39:10 AM
Gravatar
Total Posts 18439

Re: No Suitable Nodes - Rackspace Hosting

I moved this thread to the Installation Forum it has nothing to do with Accessibility or Usability.

The main problem I see in your log is that the application is restarting over and over multiple times per minute. That security error is expected to be logged in medium trust whenever the app restarts but yours is restarting way too frequently and only your host can help solve that or figure out why that is happening. Typically in shared hosting when I see that kind of problem my first guess would be that too low a memory limit has been set on the application pool and it reaches this level right away and restarts over and over.

Hope it helps,

Joe

1/26/2011 6:42:24 PM
Gravatar
Total Posts 165

Re: No Suitable Nodes - Rackspace Hosting

Hey Joe,

I forward your comments over to Rackspace and the reply is below.  I just can't afford to switch hosting companies at this time, I'm going to try (at more cost to me) to use the MSSQL database engine to see if that helps.

 

Thanks,

At the end of the day we don't really have the skills or resources necessary to find out which part of mojoportal would be causing the problem. As we are not developers ourselves. But if we can find out which part is causing slow load times then we can look into possible hardware causes for it. Which is what we are experts in here. In particular if you can narrow it down to a database call or another section of code we can replicate that with a test script and really diagnose the problem at hand.

It may be a bit frustrating but we have several monitoring programs and system administrators watching over these systems. All of our resources here are indicating the system is working as it should. Please be assured if we had any indication of something going wrong we would notify you, and fix it ourselves.

I would love to have solved this problem for you myself, if i had a fix it button I would certainly have pushed it for you. You have been great in helping us out so far. Just let us know how we can assist you here. If you have any questions about how our system works or what No Suitable Nodes means I would be happy to elaborate for you here.

Gene A. Guido III
System Administrator 1
Rackspace Cloud

1/27/2011 9:15:49 AM
Gravatar
Total Posts 165

Re: No Suitable Nodes - Rackspace Hosting

Hey Joe,

More information from Rackspace below.  I'm installing the MS SQL version of the code right now, I'll post on how that goes... I'm hoping that all this information helps other folks with mojoPortal if they are with Rackspace or a different hosting company that may have the same issues.

 

Hello again,

No suitable Nodes message is the result of a timeout error. With hundreds of thousands of websites on our system and this message being in place for over a year or two, It's not really a surprise.

However NSN's in no way point out a particular problem. It could be anything that happens when you make a request through the load balancer and your website does not respond fast enough. After 30 seconds you will get that message regardless of the actual problem. And the not knowing, and frustration of not knowing how to look into it is what spurs people to make so many comments about this.

But I have exhausted everything I could to help you out here. For test.dsatallahassee.org:

Average Response Time across the nodes in your IIS cluster is 0.03 seconds  after hitting the front page multiple times across each node I was not able to reproduce the error. (eliminating the possibility that only one node was bad) 

It did seem at first that the website had not been accessed in a while. IIS will unload the application and this can take several seconds to reload. So those first few hits will take a long time (sometimes up to 30 seconds causing NSN's) But I assume you know about this and you are talking about after you have been browsing around for a while(without switching browsers). If you switch browsers you will often hit a new node however if not then you will almost always be talking to only one node.

Currently when doing operations against your mysql node it only takes: 0.182 seconds for mysql50-58 for us to
- Connect to your MySQL server successfully.
- Connect to your database successfully.
- Creat table
- Insert row
- Select row
- Drop table

I know asp and .net is working because your site is showing up regularly along with the hundreds of other websites on that IIS cluster. I am pretty sure this does not have to do with the physical connection to your mysql database because we have monitoring setup for that which is reporting nothing outrageous going on. However we can put up a script to test that connection if you so desire to see it for yourself.

I would love to investigate this further with you, I just don't have anything to go off of without your help here. I am literally out of ideas because I don't know how the software on your website works. So you may have to get a developer to take a look at the site to see if you can catch more information about the error or locate the cause of the slowness.

If you get any more information or steps to replicate the issue let us know here. We can take that information and probably find out what's going on here. I can even send you over to our L2 Windows tech here. But right now i don't have anything to give him.


Gene A. Guido III
Linux Administrator 1
Rackspace Cloud

1/27/2011 9:27:17 AM
Gravatar
Total Posts 18439

Re: No Suitable Nodes - Rackspace Hosting

Did you point out to them that the app is recycling over and over multiple times per minute according to your log?

Did you ask them to look at the memory limits on your app pool and determine if that could be causing the app pool to recycle frequently?

There are no errors of concern in your log, but it is very concerning that your app pool recycles continuously and that is likely a configuration issue on the app pool forcing it to recycle.

Hope it helps,

Joe

1/27/2011 1:44:31 PM
Gravatar
Total Posts 165

Re: No Suitable Nodes - Rackspace Hosting

Hey Joe,

I did, however I just added your questions again.

Just as a side note, I just installed the MS SQL version of mojo and so far I have not ran into those problems... I have a tester testing it now to see if that is really true.

Now, one thing I have noticed... When loading sql.dsatallahassee.org in IE 7, 8 or 9 it never completely loads, it always says there one more thing to load.  But in Chrome and FireFox it says it loads just fine.  So, I have no clue what that is.

I'll keep you posted.

2/3/2011 8:59:16 AM
Gravatar
Total Posts 165

Re: No Suitable Nodes - Rackspace Hosting

Joe,

Below are items from Rackspace, they have really been trying to find the issue, and this is what they have found: 

 

Hello Mark,

I'm appending more data to what was posted above. We investigated the worker process on the server while clicking on a few links on
http://test.dsatallahassee.org.asp1-16.websitetestlink.com/

At some point, the site causes a dw20.exe to run against your app pool and your app pool restarts again. Once a new worker process starts, the site has a slow initialization due to recompile and it is possible for you to get a no suitable node messge due to time out. This can be caused by an error in the site application.  Unfortunately, the site is not showing the error. You sould take a look at your site code to see if something is loading, but not closing correctly.

I have attached some failed request tracing for your site to show the requests in its entire transit through IIS for your analysis.

Another option of troubleshooting your code is to load the code locally and attempt to crash the application. Something that your code may be doing is similar to this blog post:
http://improve.dk/blog/2008/04/07/spawning-threads-in-aspnet-can-be-dangerous

Feel free to let us know how your troubleshooting goes.

Kind Regards,

David Tsai
Rackspace Cloud Sites

The file from Rackspace is freb1.zip (the name is the link to the file)

Hi Mark,

We are having a weird issue with your site test.dsatallahassee.org. Your code seems to trigger a kernel call that is waiting on a resource and never completes.  Since it never completes, the process cannot be killed off or recycled. This then starts a chain of new worker processes, ending up consuming all the memory on the server(s). I looked at the stack which I will paste

RetAddr           : Args to Child                                                           : Call Site
00000000`7557e9d4 : 00000000`1c43f5f0 00000000`fff00000 00000000`00000000 00000000`7556e334 : ntdll!NtQueryFullAttributesFile+0xa
00000000`7556a996 : 00000000`1c43eb24 00000000`1c43f5dc 00000000`1c43ea48 00000000`fff00000 : wow64!whNtQueryFullAttributesFile+0x3c
00000000`75873688 : 00000000`016d6474 fffff680`c0000011 00000000`00416c98 00000000`00000000 : wow64!Wow64SystemServiceEx+0xca
00000000`7556ab46 : 00000000`77860000 00000000`1c11fd20 00000000`2f774c5a 00000000`1c11f060 : wow64cpu!ServiceNoTurbo+0x28
00000000`7556a14c : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : wow64!RunCpuSimulation+0xa
00000000`778d05a8 : 00000000`00000000 00000000`00000000 00000000`fffdf000 00000000`00000000 : wow64!Wow64LdrpInitialize+0x4b4
00000000`778868de : 00000000`1c11f060 00000000`00000000 00000000`fffdf000 00000000`00000000 : ntdll! ?? ::FNODOBFM::`string'+0x20aa1
00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!LdrInitializeThunk+0xe

The last call is ntqueryfullattributes and it never completes. I have verified this as I looked at the threads and they are in a waitstate. Can you please take a  look at your code to see if anything pops out at you. We need to find a resolution, else you can consume all the memory. If you want a .dmp of your worker process, feel free to ask and we can also supply you it.

2/3/2011 9:37:10 AM
Gravatar
Total Posts 18439

Re: No Suitable Nodes - Rackspace Hosting

Hi Mark,

That doesn't really give me much to go on given that mojoPortal is installed in lots of hosting environments and this issue is not happening elsewhere and no specific error is being logged.

Only suggestions of things to try that come to mind are:

  • Don't use any AppKeepAlive task if you are using one disable it
  • try commenting out <add name="UrlRoutingModule" type="mojoPortal.Web.Routing.RoutingModule, mojoPortal.Web"/> in Web.config in the httpModules section and in the modules section. This is new and not really being used yet. I have no reason to suspect it is part of the problem other than it is a new thing in mojoPortal.
  • Building the search index is done on a background thread, you could try disabling it <add key="DisableSearchIndex" value="true"/> and just using google or bing for site search but as I've said it works fine in lots of other hosting environments.

Wish I could be more help but that is all I have right now.

Hope it helps,

Joe

2/3/2011 10:52:32 AM
Gravatar
Total Posts 165

Re: No Suitable Nodes - Rackspace Hosting

Hey Joe,

Based on your comments (cloned below) I commented those two areas out and I'm not sure which one fixed it, but the sites are no longer giving the NSN errors.

I'm going to do some additional testing by putting the UrlRouting back in and watching it and then switch it and turn search index back on and see what happens.

I'll keep you posted.  Thanks for all your help.

try commenting out <add name="UrlRoutingModule" type="mojoPortal.Web.Routing.RoutingModule, mojoPortal.Web"/> in Web.config in the httpModules section and in the modules section. This is new and not really being used yet. I have no reason to suspect it is part of the problem other than it is a new thing in mojoPortal.
Building the search index is done on a background thread, you could try disabling it <add key="DisableSearchIndex" value="true"/> and just using google or bing for site search but as I've said it works fine in lots of other hosting environments.
 

2/6/2011 8:45:08 AM
Gravatar
Total Posts 18439

Re: No Suitable Nodes - Rackspace Hosting

It would be good to know which suggestion solved it.

Thanks,

Joe

2/8/2011 6:18:01 PM
Gravatar
Total Posts 165

Re: No Suitable Nodes - Rackspace Hosting

Hey Joe,

So far, my testing has shown that by setting the 'DisableSearchIndex value to true has fixed the problem.

I have a few more test to run, but currently that has fixed the problem of NSN.

Mark

 

2/16/2011 6:12:36 AM
Gravatar
Total Posts 165

Re: No Suitable Nodes - Rackspace Hosting

Hey Joe,

By marking the 'DisableSearchIndex' to true has helped a great deal.  I'm still getting a few NSN errors when login as admin and doing updates.

Question for you, in the web.config there is the following lines:

    <!-- comment this out for Mono -->
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />

When it says for Mono, does that mean when running only one site?  Also, do you think this may create an issue in a medium trust cloud hosting?

Thanks,

Mark

2/16/2011 6:16:12 AM
Gravatar
Total Posts 165

Re: No Suitable Nodes - Rackspace Hosting

Joe,

In additional to my question in my last post, Rackspace just supplied the following:

Hello Mark,

Thanks for your update. As discussed before, we do not necessarily audit code or do code fixes, but I can attempt to see what your worker process is doing. Your site could be going slow because of dynamic compiled code. There is about 20 MB of dlls in your /bin directory getting compiled on runtime. Evidence I see of this is the csc.exe process is running under your user name.

I tried to search for a solution for your issue and this seems pretty close:
http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/cba32a0f-9648-454f-a4d8-7605a5ce0054

It says to uncheck this option in your Visual Studio: "Allow this precompiled site to be updatable"
Perhaps if you precompile the site, the timeout for the nsn will happen less often.

An extreme example of a lot of assemblies getting compiled is something like this link, but your site is only in the 30s and not 1000s:
http://blogs.msdn.com/b/alikl/archive/2008/10/08/asp-net-performance-dynamically-loaded-assemblies-cause-application-recycles-problem-and-solution.aspx

Hope this info helps your debugging.

Kind Regards,

David Tsai
Rackspace Cloud Sites

2/16/2011 10:04:00 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: No Suitable Nodes - Rackspace Hosting

Hi Mark, Mono is an emulation layer for running .NET applications on Linux, so it won't apply to you.

2/18/2011 6:52:35 PM
Gravatar
Total Posts 165

Re: No Suitable Nodes - Rackspace Hosting

First let me say Thanks to Jamie for his reply.

Now more from Rackspace:

Hi,

After checking - service hosting environment aspnet compatiblity isn't enabled for cloud sites.
If you must have this functionality please consider using a cloud server which you can customize to meet individual needs.

Regards
Rackspace Cloud Sites

 So, based on that, do I need to make that read <serviceHostingEnvironment aspNetCompatibilityEnabled="false" /> in my web.config?

Mark

 


 

2/18/2011 7:08:21 PM
Gravatar
Total Posts 18439

Re: No Suitable Nodes - Rackspace Hosting

Hi Mark,

I get the sense that you have kept your old web.config file when upgrading rather than using the new one. It is possible you have a number of things out of synch that could be affecting your installations.

You should back up your web.config and use the one that ships with the version of mojoPortal installed and restore any customizations, especially things like your custom machine key need to remain the same so you need to restore that to the new web.config.

In the latest version of mojoPortal the entire <system.web.servicemodel section is commented out.

You can safely remove it entirely from your web.config file, it is not needed

That section defines some web services that can be used to authenticate from Silverlight, it works and some people are using it for custom features, but so far we are not using it in mojoPortal directly. I implemented that and used it some proof of concept things only so far.

Hope it helps,

Joe

2/21/2011 7:50:20 PM
Gravatar
Total Posts 165

Re: No Suitable Nodes - Rackspace Hosting

Hey Joe...

I'm using the web.config that came with 2.3.5.8 and this is the area that is committed out in the web.config

<add name="svc-ISAPI-2.0" path="*.svc" verb="*" modules="IsapiModule" scriptProcessor="%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
            <add name="svc-Integrated" path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" resourceType="Unspecified" preCondition="integratedMode" />
   

Is this the area you are speaking about, because below is the line in the web.config I was asking about. 

Following line of code is set to true in the web.config:  <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> and I'm told by Rackspace they do not use serviceHostingEnvironment, so I believe I need to set this to false. 

Also, you talk about serviceModel, the following section is not commtted out, should it be:

  <system.serviceModel>
    <services>
      <service name="System.Web.ApplicationServices.AuthenticationService" behaviorConfiguration="AuthenticationServiceTypeBehaviors">
        <endpoint contract="System.Web.ApplicationServices.AuthenticationService" binding="basicHttpBinding" bindingConfiguration="userHttp" bindingNamespace="http://asp.net/ApplicationServices/v200" />
      </service>
      <service name="System.Web.ApplicationServices.RoleService" behaviorConfiguration="RoleServiceTypeBehaviors">
        <endpoint contract="System.Web.ApplicationServices.RoleService" binding="basicHttpBinding" bindingConfiguration="userHttp" bindingNamespace="http://asp.net/ApplicationServices/v200" />
      </service>

    </services>
    <bindings>
      <basicHttpBinding>
        <binding name="userHttp">
          <!-- if you have an ssl certificate set this to Transport -->
          <security mode="None" />
        </binding>
      </basicHttpBinding>
    </bindings>
    <behaviors>
      <serviceBehaviors>
        <behavior name="AuthenticationServiceTypeBehaviors">
          <serviceMetadata httpGetEnabled="true" />
        </behavior>
        <behavior name="RoleServiceTypeBehaviors">
          <serviceMetadata httpGetEnabled="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <!-- comment this out for Mono -->
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />

  </system.serviceModel>

Thanks, and sorry for all the questions and back and forth, just really trying to find my solution to the NSN issue and THANK You and the rest of the group for helping.

I truly love this product and want to make it work with Rackspace.

2/22/2011 6:30:51 AM
Gravatar
Total Posts 18439

Re: No Suitable Nodes - Rackspace Hosting

Hi Mark,

You can safely remove both of those things you posted. That first one is no longer included in our latest Web.config and the second one is commented out by default in the latest version of our web.config, and it is also not needed in your current version.

So if removing that solves problems for you that would be great!

Hope it helps,

Joe

2/24/2011 7:52:03 AM
Gravatar
Total Posts 165

Re: No Suitable Nodes - Rackspace Hosting

Joe, Thank you for the reply... Now the Update...

Since I removed those areas and made service hosting environment aspnet compatiblity  = false, I no longer get the NSN when a normal user visits the site.  However I still get NSN when we are login as a editor / admin to edit the site.  When trying to edit the content or edit the page design or page settings, I still get NSNs.

I'm still digging.

Thanks,

Mark

2/25/2011 7:22:13 AM
Gravatar
Total Posts 18439

Re: No Suitable Nodes - Rackspace Hosting

Do you still have the search index disabled? If not then each time you edit it is trying to update the search index and it sounds like the search index does not work well in the Rackspace cloud.

Hope it helps,

Joe

2/25/2011 7:45:16 AM
Gravatar
Total Posts 165

Re: No Suitable Nodes - Rackspace Hosting

Hey Joe,

I still have  <add key="DisableSearchIndex" value="true" /> in the web.config.

Mark

3/8/2011 1:10:15 PM
Gravatar
Total Posts 18439

Re: No Suitable Nodes - Rackspace Hosting

Hi Mark,

One more thing I thought of that you could try.

The SearchIndex uses XmlSerialization as does our TaskQueue system, basically objects are serialized to xml string and stored in the database then processed and de-serialized from xml back into objects.

In .NET XmlSerialization temporary classes are compiled, by default they would be compiled down below the Windows directory but in some hosting environments that poses a problem. There is a way that you can make it compile temporary classes in the /Data folder instead by this which is commented out at the very bottom of Web.config

<!-- the below example can be useful if you encounter the error described in this post
  http://www.mojoportal.com/Forums/Thread.aspx?thread=6741&mid=34&pageid=5&ItemID=3&pagenumber=1#post27613
  -->
  <!--
  <system.xml.serialization>
    <xmlSerializer tempFilesLocation="D:\__projects\mojoportal\__code\joedev\Web\Data"/>
  </system.xml.serialization>
  -->

but to use it you would need to know the server file system path that maps to /Data in your site. I'm not sure if it is possible with Rackspace Cloud but if it is and if you can find out the path, you could try uncommenting that and put in the path. If that gets rid of all the node not available errors then you could try re-enabliing the search index.

Hope it helps,

Joe

3/13/2011 4:29:56 PM
Gravatar
Total Posts 165

Re: No Suitable Nodes - Rackspace Hosting

Hey Joe,

Rackspace supplied me with the path for the correct location, however when I un-comment that section in the web.config and place in the updated path and loadup it to the site, it supplies a .net config error and the site will not load.

Mark

4/5/2011 8:44:43 PM
Gravatar
Total Posts 165

Re: No Suitable Nodes - Rackspace Hosting

Hey Joe,

Some new information from Rackspace:  When I get the No Suitable Nodes message they have found that the code is locking one of the worker processes.  They are still researching it, but wanted you to know.

Mark

4/6/2011 7:16:31 AM
Gravatar
Total Posts 18439

Re: No Suitable Nodes - Rackspace Hosting

Let me know if you get more details.

One thing I would recommend is don't use the AppKeepAlive with RackSpace Cloud. I updated this article yesterday with a link to a free service that monitors site uptime and this can also serve the same purpose to keep the site awake. The AppKeepAlive could be a factor in the problems you've had so eliminating it would be good.

Best,

Joe

4/8/2011 12:21:29 PM
Gravatar
Total Posts 165

Re: No Suitable Nodes - Rackspace Hosting

Hey Joe,

Wanted to give you an update, I turned off the keepalive in the config and added the web service you talked about.  However after I removed the keepalive and added the web service I started to receive the following on three of the pages:  (it has stopped, just does not make since)

It was happening on the contact-us, and the sign in page.

 

Server Error in '/' Application.
------------------------------------

--------------------------------------------

Execution permission cannot be acquired.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Security.Policy.PolicyException: Execution permission cannot be acquired.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario. 

Stack Trace:


[PolicyException: Execution permission cannot be acquired.]
   System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +7606504
   System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +57

[FileLoadException: Could not load file or assembly 'Brettle.Web.NeatHtmlTools, Version=1.0.2979.14781, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418)]
   System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
   System.Reflection.Assembly.Load(String assemblyString) +28
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: Could not load file or assembly 'Brettle.Web.NeatHtmlTools, Version=1.0.2979.14781, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418)]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105
   System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +29
   System.Web.Compilation.CompilationUtil.GetTypeFromAssemblies(AssemblyCollection assembliesCollection, String typeName, Boolean ignoreCase) +132
   System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +291
   System.Web.UI.Page.get_ScriptManagerType() +44
   System.Web.UI.Page.get_IsPartialRenderingSupported() +61
   System.Web.UI.WebControls.ValidationSummary.OnPreRender(EventArgs e) +257
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6741
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
   System.Web.UI.Page.ProcessRequest() +80
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.default_aspx.ProcessRequest(HttpContext context) +4
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4209 

 

4/10/2011 2:34:23 PM
Gravatar
Total Posts 165

Re: No Suitable Nodes - Rackspace Hosting

Hey Joe,

Here's some additional information from Rackspace:

 

There appears to be a condition in which your application pool crashes, but does not end. The worker process locks up, spawns another process, but the old worker does not end. If you have tested you app in your local environment, you may see the same warning for Event ID 5011

We have not been able to recreate the condition to have stray worker processes, but it looks like it could be in the code of one or more of the apps on the sites. If you have a way to replicate the issue more reliably, then we can run a few tests before crash time to see what might be the cause.

Also, you may want to load the code into visual studio so it can debug any errors before uploading the code.

Let us know if you have any other troubleshooting steps for your site.

Kind Regards,

David Tsai
Rackspace Cloud Sites

4/10/2011 3:33:40 PM
Gravatar
Total Posts 245
mojoPortal Community Expert

Re: No Suitable Nodes - Rackspace Hosting

Hi Mark

but it looks like it could be in the code

No Way!  This is an "I don't know, so I'll blame the code response".  I've heard it before.

Take no offense to my response here.  I admire your fighting spirit!!!

But...  you have been fighting this for 75 days now.  How much is your time worth?

I have hosted a dozen mojoPortal Websites with 4 different hosting companies in the last 2 years and they worked perfect with all.  I also write custom mojoPortal features for my employer using mojoPortal ASP.NET C# code.  MojoPortal code does not have a code problem and if it does, Joe could fix it in 5 minutes.

Get a refund from Rackspace and then click one of the links at the bottom of this page for i7media or Arvixe.

Your mojoPortal Website will then be up and running perfect in a few hours and you will be a happy man.

Just my 2 cents worth.

Rick

4/11/2011 7:22:09 AM
Gravatar
Total Posts 18439

Re: No Suitable Nodes - Rackspace Hosting

I don't doubt that the Rackspace guys are trying very hard to help, but I'm not encountering event id 5011 in logs on my server nor my local machine nor do I encounter such errors while debugging.

I think the bottom line is that the "Rackspace Cloud" is a form of Web Farm and mojoPortal is not currently designed for Web Farms in general and I have never claimed it was web farm ready. There are lots of variations on web farm implementation and clouds these days and I recognize that there is small but growing demand from mojoPortal users to be able to use mojoPortal in a variety of Web Farm scenarios. It is a goal for the project to be able to do this but we simply are not there yet and I'm not sure how soon we will be there, so using mojoPortal in a web farm today is not officially supported though in some cases people manage to do it.

When I do get to focusing on and working on Web Farm support I will start with targeting more traditional style web farms using the Microsoft Web Farm Framework and probably follow up after that with support for Windows Azure. I think solving the challenges for those environments will probably also make it possible to use other environments since some of the challenges are similar across different styles of web farms, but there can still be some differences or issues in any variation of web farm environment beyond those that we actually test. I don't currently know anything about the architecture of the Rackspace Cloud.

I would say though that the vast majority of web sites do not need a web farm environment and the vast majority of mojoPortal users will never use a web farm therefore it has not been my top priority. Web Farm hosting is generally more expensive and is a more complex environment. I would not currently recommend anyone to install mojoPortal in a web farm since it is not designed for that currently, but especially for sites that do not get that much traffic you are better off with more traditional hosting that mojoPortal is designed for and it is less expensive and less complex and you will not encounter the problems like you are encountering with trying to use mojoPortal in the Rackspace cloud.

Best,

Joe

4/11/2011 8:29:11 AM
Gravatar
Total Posts 165

Re: No Suitable Nodes - Rackspace Hosting

First let me address Rick... I was not saying mojoPortal was the issue, Joe and I have been working back and forth on this issue and he asked that I supply him with all information that came out of my research with Rackspace.  I agree with you Rick, Joe is the best at address something that is truly a mojoPortal issue, if one is found.

Second,  Joe...

Thank you for your information about the web farms, I like being on the cutting edge, ok may be not, but right now Rackspace is what I have, currently there is no place that can bet the pricing I have with them for what I receive, and I do get great support with them, they have not closed the ticket on the issues and are still working with me on a daily bases to find a solution.

Thanks again and like always will keep you posted on the updates.

Mark

4/11/2011 9:23:02 AM
Gravatar
Total Posts 18439

Re: No Suitable Nodes - Rackspace Hosting

Hi Mark,

It is difficult to diagnose what is happening without knowing where the error is happening. 

If it is possible for you to provision a site for me on Rackspace for a test environment, then I could deploy a debug build and possibly get a stack trace when an error happens. Or by trial and error I could try adding logging statements here and there in places or disabling things that might be problem spots for their environment to gather clues.

I can't promise that this will make it possible for me to find the problem or a solution, but I am willing to try.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.