Web-app not available on every 10th call - apache

I have an odd problem. My Web-app is not available on every 10th call or so, if i click refresh its again available.
If i keep hitting the refresh button, sometimes it shows me again that my Page is not Available. I'm getting HTTP Status 404.
Does anyone know where the problem is ?

There wasn't a error with my Code. I deleted the Web-apps from "work/cathalina/localhost" and restarted Tomcat and now everything is working fine.

Related

CKAN homepage redirection issue

Issue:
I am having a website developed in CKAN framework. I am struggling with a sporadic issue which is happening on my machine only. When i do some manual changes into CKAN database and tries to click on any menu or a link it is redirecting me to homepage.
After updating the database, i run the command for re-indexing the datasets using production.ini file, so that everything should be updated on the application, but nothing happened.
Temporary Solution
Following steps gives me temporary solution for this issue:
On the website, i need to press F12 button.
Then on the browser, i need to do right click on reload button.
Select the third option ie. "Empty cache and hard reset" will refresh the page and issue get resolved.
This is the temporary solution. If i came back on next day and try to click on other menu then again it redirected me to homepage.
Note: This issue is happening only on Chrome browser.
Please help me get a permanent solution to get rid of this caching issue.
Comments are appreciable.

Tomcat sometimes doesn't render the page and shows plain HTML

I have a J2EE App and I've been running it for a couple of years...
recently there's chance that whatever page I want to visit, it may show up as just Plain HTML and may not be rendered...
No Logs are written about this behavior as if it's a normal thing...
usually I click to visit a page, the Browser shows some cue about sending the request to the server... I can check that everything works just fine back there... Now there's 2 ways I can see this error :
1. I wait and wait and wait... and the browser is still waiting for a response... If I lose patience and press F5, the page shows up as PlainText HTML.
2. I wait till the end and the Browser may or may not load the page... if it loads the page, it's only partial and some parts of the Javascript or HTML may not load at all.
Pressing F5 usually fixes the problem but after a while, this may happen again...
This used to happen with Tomcat 6.x every once in a while but became worse after using Tomcat 7.x .
at first I thought it's related to my App but then I noticed this pattern happening even in Tomcat's own Admin pages such as its Session Manager.
What can I do ? I'm using Tomcat 7.0.54. upgrading it to newer versions didn't help...
Thank you...

Website changes not reflected

After changing something in my website and uploading to the server, I don't see the changes in my browser upon reload. The website loads from cache. It gets reflected after I refresh the page twice or thrice.
I need help in figuring out what's wrong.
Did you cleaned your browser cache. Restart it. Clean cookies and reset your browser to fix it, This may a problem local to your own Laptop/computer, people who will be accessing your web must be getting updated content that you pushed.

Sporadic 400 Bad Request Error nginx/0.7.67 with Heroku and Rails 3

UPDATE: This bug appears to be Browser Specific to Chrome. I've clicked the link about 50 times each in Firefox and IE and I can't seem to cause it. Also, once it is occurring, I can switch to FF or IE and it'll work fine on those two.
I have a particular page in my Rails 3 application on heroku that loads fine for awhile. I can click the same page and it loads without a problem. But after a certain number of loads, it suddenly starts to give me a 400 Bad Request Error with nginx/0.7.67 below it.
After it occurs once, everytime I load the page I get the 400 error. But if I leave the application alone for awhile, overnight for example, the page works again in the morning for a short while. But if I click the page a few times, it begins giving me that error again.
It's not something that occurs locally so it seems like it must be a heroku issue.
I also tried restarting heroku but that doesn't help. The only thing that seems to help is giving it some time off.
The heroku logs don't give me any new info as far as errors. Everything appears to be working fine and then I get a line that ends 727 | https | 400 and it just stops.
I'm using https if that helps.
The full error heroku log is:
[33m2011-07-02T15:25:59+00:00 heroku[nginx]: <-[0m GET /matters/show/34 HTTP/1.1 | 10.212.125.194 | 727 | https | 400
Let me know what code from this page would help solve this problem if you have an idea.
So after a long back and forth with the Heroku Support staff we finally found the issue. I was using Datatables in various places around my site and using cookies to store user state settings. That cookie was getting longer and longer and longer as a user navigated around the site until my header surpassed the maximum header size allowed by NGINX (8K).
The solution was to remove/simplify that cookie or switch from nginx Heroku (bamboo) to a Heroku stack that didn't use nginx (cedar).

My server intermittently won't serve pages to Safari 4... Need help!

I just upgraded my browser to Safari 4 and find that our website is having some major issues specific to that browser version. As I click through pages on our site it takes one or two clicks before the browser window simply goes blank. When the window goes blank, there is no source to view and no matter how many times I try to reload or if I try to load other pages of the site, I still get the blank window. It's as if the server takes the request and simply returns a blank page.
If I wait over 15 seconds and then hit refresh again, the page loads fine. Not sure why it starts working again... Maybe a cache issue???
It's a PHP site and I've tried turning on error_reporting(E_ALL);, but that doesn't give any information. I also tried putting an echo statement at the very beginning of the index.php file and verified that the page still goes blank without echoing that statement, so I'm thinking the problem is not php code specific. The Apache error log does not show any issues. I have the same site on my local development server and it doesn't have the problem.
Safari 4 is the only browser that shows this problem. Does anyone have any ideas how to debug/fix this?
My webserver is ubuntu Hardy running Apache 2 an Mysql 5.
We have an nginx load balancer in front of the apache server and I just figured out that Safari 4 requires the nginx keepalive_timeout setting to be 0. Took all day to figure that one out...
I've been having the same issue with Safari 4 on my site but found that when reloading pages that return blanks, the request never even makes it to the server. No entry shows up in Apache's logs.
The keepalive setting for your LB sounds like a direction I could sniff in. Not sure what leeway I will have though, being on shared hosting.
Mike
This looks to be a safari bug. We experience it too, and I have read other reports.
http://discussions.apple.com/thread.jspa?threadID=2064488&start=0&tstart=0