Comments (5)
My wild guess: the 404 happens while Tomcat is deploying new application. I'd sugest trying to find out Tomcat specific problems as I believe this is not OpenGrok specific.
E.g. http://stackoverflow.com/questions/15772419/avoid-temporary-404-errors-during-deployment-with-tomcat
PS: greetz to fellow OpenBSD user !
from opengrok.
Wow, Google does work very nicely -- I've created that question on StackOverflow just a couple of hours ago, and here you are, already referencing it!
Someone on SO suggests that tomcat7 has a feature called Parallel Deployments, but the concept sounds sketchy, and might be incompatible with OpenGrok due to the listening TCP socket for configuration updates.
Perhaps some other servers implement this in a more robust and certain way?
from opengrok.
Time to try Weblogic or similar I guess :-)
from opengrok.
My knowledge about Java application servers is very limited but I am not sure this is actually solvable within single instance given the webapp needs to be undeployed and deployed again.
The solution might be to run 2 application servers in clustered configuration (with a smart load balancer in front of them ?) and switch whenever webapp redeploy needs to be done. The setup with 2 app servers and single indexer was recently disussed on the mailing list so more clues are there.
Thinking of this further it's not clear what is the use case. If 404 error which probably happens in very small time frame is an issue then the whole server is probably running stable version of the OS. On the instance I am taking care of we run long term support version of Solaris 11 with only occassional patching (the reboots to new boot environment are usually quick thanks to fastreboot skipping BIOS/PROM/controller setup and only switching kernels) and the same goes for OpenGrok which is running there (redeploy is relatively quick as the machine is pretty beefed up but anyway there has been only a handful of redeploys over many months).
from opengrok.
Not sure if more value can be added to this discussion; it does not seem to be OpenGrok specific. Also it duplicates the one on stackoverflow, closing.
from opengrok.
Related Issues (20)
- Installing opengrok-tools.tar.gz fails from 1.12.24 HOT 2
- configuration.xml gets truncated in 1.12.26 HOT 1
- Support retrieving function definitions for a project path HOT 5
- genre check for hasAnnotation() is not enough HOT 2
- Test Python Package fails HOT 8
- `READONLY_CONFIG_FILE` doesn't work in docker containers HOT 1
- make the "is-annotatable" check more precise
- Opengrok web application isn't accessible during reindex HOT 8
- OpenGrok Indexer. FileNotFoundException while indexing directories HOT 8
- Fix typo in CONTRIBUTING.md file HOT 1
- cannot remove suggester data for extended period of time due to pending rebuilds
- binary data in logs again due to annotation processing HOT 1
- indexer might degrade to serial processing for the trailing project HOT 1
- limit addFile() processing time HOT 2
- Opengrok not showing projects - indexer is working.
- Dockerfile requests a vulnerable version of Apache Tomcat HOT 1
- Support GitHub repos that only allow checkout through web URLs
- History based reindex is on, however history is off. History has to be enabled for history based reindex
- `opengrok-reindex-project` Triggers API-Ratelimit that doesn't reset
- Perforce Error in Project /& Git Repo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opengrok.