Skip to content

ServerSetupTroubleshooting

Robert Marianski edited this page Jul 19, 2011 · 2 revisions

Troubleshooting

Note: This page is still only a stub listing only several of many possible bugs and solutions.

Described solutions worked for Ubuntu Lucid Lynx and they might require modifications for other server distributions or platforms.

Tomcat reports Date as undefined - Location & server time setting synchronization

The server is starting without error reports, but the routing doesn't work with a firebug report similar to

"exception Planner.newTripPlan: exception TypeError: Date.dayNamesday is undefined"

It is possible that your server uses time that is different from the timezone of the location of your OTP project (e.g. if your server is collocated in the US but your map covers a different region).

One possible solution to this is to change server time so it is synchronized with the time of your project. On linux-based servers, use type tzselect command to the command line to chose timezone of your server. The application will guide you through couple of simple steps to set up the correct time.

All setup successfully finished but OTP site is inaccessible - Port 8080 closed

In case that you went through all the steps above without errors and you can't see anything at your project url, it is possible that the port 8080 used by the project is closed. If so, open it:

iptables -A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT

Alternatively, on production sites you can use a proxy so only port 80 is open.

Tomcat reports that Graph.obj can not be read - Wrong permissions on data file

If during server startup the server reports that it can not access Graph.obj file, it probably means that you have wrong permissions set on the file or one of the folders in which it is located.

Check what permissions are assigned:

ls -ld /PATH_TO_YOUR_XX_FOLDER/Graph.obj

ls -ld /PATH_TO_YOUR_XX_FOLDER

Fix them if they are wrong (don't permit Tomcat to read the Graph.obj file):

chmod 755 /PATH_TO_YOUR_XX_FOLDER/Graph.obj

chmod 755 /PATH_TO_YOUR_XX_FOLDER

etc... (change permissions of all superior folders)

The site is not working as it should

Check Tomcat's log file for error reports that might help you figure out what's wrong:

nano /var/log/tomcat6/catalina.out

The documentation on this wiki is outdated and should not be used

unless you are intentionally working with legacy versions of OpenTripPlanner. Please consult the current documentation at readthedocs

Clone this wiki locally