OneBusAway new schedule

57 views
Skip to first unread message

WG

unread,
Jan 16, 2018, 5:07:03 PM1/16/18
to onebusaway-users
Hi all,

I inherited application that is using OneBusAway.  Our county changed bus scheduled, now  we are getting "no current prediction". I am trying to understand what can be done to fix it. Load new bus schedule?



Please help thank you,
William 

sjbarbeau

unread,
Jan 16, 2018, 5:18:04 PM1/16/18
to onebusaway-users
William,
Yes, you need to load a new schedule, which includes the following steps:

1. Get a new copy of your GTFS data from your agency that reflects the updated schedules
2. Build a new bundle based on the GTFS data (using the same OneBusAway software version as the version currently deployed on your server).  You can download OBA QuickStart software at http://developer.onebusaway.org/modules/onebusaway-application-modules/current/guides/quickstart-guide.html (if your OBA server software number is different than v1.1.16, just change the link to match - for example, to grab 1.1.11, use http://nexus.onebusaway.org/service/local/artifact/maven/content?r=public&g=org.onebusaway&a=onebusaway-quickstart-assembly&c=api-webapp&e=war&v=1.1.11) , and that page also has instructions for building a bundle
3. Stop your OBA Server
4. Delete your old bundle data, and replace it with the newly built bundle
3. Start your server to pick up the new bundle

Is this for RVTD?

Sean

WG

unread,
Jan 17, 2018, 9:51:47 AM1/17/18
to onebusaway-users
Hi Sean,

Thank you for your response!

This is for MO county MD. The version we have is 1.1.14

I do have new GTFS data (consists of multiple txt files agency.txt, calendar.txt, calendar_dates.txt, routes.txt, shapes.txt, stop_times.txt, stops.txt, and trips.txt)


I reloaded data from files to  org_onebusaway_transit. Anything else I need to do to restore it? 

Thank you for your help,
William

WG

unread,
Jan 17, 2018, 10:00:16 AM1/17/18
to onebusaway-users
files: NarrativeProvider.obj, 
        FrequencyBlockTripIndices.obj, 
        BlockTripIndices.obj, 
        BlockLayoverIndices.obj,
        TransitGraph.obj

folders:  StopSearchIndex
            RouteSearchIndex

Do you now how these are generated? 

I can see that these files dated from last schedule changes. But I have no Idea how to regenerate them.

After using link and war file from your previous email I was able to regenerate one file CalendarServiceData.obj.

Thank you again for your help,
William

sjbarbeau

unread,
Jan 17, 2018, 10:42:21 AM1/17/18
to onebusaway-users
Do you know what kind of database you're using?

You don't want to delete that database because it will have things like API keys and user preferences from the website (if you have that deployed).

If you're using a standalone MySQL (or something similar) database (i.e., the data isn't stored in your OBA server bundle directory using something like HSQLDB), then I usually just stop the server, delete all the old files in the bundle directory, copy in the new bundle files, and then restart the server.  The OBA server should regenerate the *.obj files when it starts and loads the new bundle.

Sean

WG

unread,
Jan 17, 2018, 11:48:53 AM1/17/18
to onebusaway-users
We are getting there!!! Thank you!


I looked everywhere and found in  data-source.xml: 

 <!-- Database Connection Configuration -->
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
    <property name="driverClassName" value="org.hsqldb.jdbcDriver" />
    <property name="url" value="jdbc:hsqldb:file:D:\OBA\bundle_webapp\org_onebusaway_database" />

When i removed all files from OBA\bundle_fed folder and copied new I got error on the page that stop could not be found

so I copied old obj files and replaced only one CalendarServiceData.obj that was created as result of running quickstart war.

Now I can see scheduled data. But I still can't see actual prediction based on gps data.

We do use orbcad too i just don't know if OnBusAway linked to it directly. Is there a way to find out?


Thank you,
William 

Sean Barbeau

unread,
Jan 17, 2018, 1:56:30 PM1/17/18
to onebusaw...@googlegroups.com
Looks like you're using HSQLDB, so your database files will be in that directory, and you don't want to delete those.

A good method is to build the new bundle, stop the server, delete all the old versions of the same bundle files that you just generated, then copy in the new files, and then start the server.  Just make sure that the server is fully stopped before swapping files to make sure it doesn't still have a handle on the old ones.  You should end up replacing/regenerating all the *.obj files.  Also make sure you're using 1.1.14 to generate the bundle:

Do you know where your GTFS-realtime feed is?

Your onebusaway-transit-data-federation-webapp data-sources.xml should be pointing to it.  Or another type of real-time feed API.

If you can see the server log, you should be getting messages such as "X  of Y trips matched", and if no real-time info is matching then X is probably 0, or very low.  Essentially, the trip_ids in your GTFS-realtime feed need to match those in your GTFS trips.txt file.  Typically these IDs change every time the schedule/GTFS data changes.  If those IDs don't match, you won't see any real-time info in OBA.

Sean

--
You received this message because you are subscribed to a topic in the Google Groups "onebusaway-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/onebusaway-users/kxh0fzT8d8I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to onebusaway-users+unsubscribe@googlegroups.com.
To post to this group, send email to onebusaway-users@googlegroups.com.
Visit this group at https://groups.google.com/group/onebusaway-users.
For more options, visit https://groups.google.com/d/optout.

WG

unread,
Jan 19, 2018, 3:12:03 PM1/19/18
to onebusaway-users
Sean,

there are multiple files. One of them that points to fed has these lines:

<bean class="org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource">
    <property name="tripUpdatesUrl" value="http://localhost:8088/trip-updates" />
    <property name="vehiclePositionsUrl" value="http://localhost:8088/vehicle-positions" />
    <property name="refreshInterval" value="10"/>
  </bean>

I can see data in the link: http://localhost:8088/trip-updates?debug
and I can see buses positions in file http://localhost:8088/vehicle-positions?debug

it is coming from orbcad. I can see the same bus in SQL database and in http://localhost:8088/vehicle-positions?debug with identical values. And when changed they are changed in both places.

 
I know we are using wiki for bus stop information.

Thank you,
William
To unsubscribe from this group and all its topics, send an email to onebusaway-use...@googlegroups.com.
To post to this group, send email to onebusaw...@googlegroups.com.

sjbarbeau

unread,
Jan 23, 2018, 2:07:33 PM1/23/18
to onebusaway-users
William,
Ok - for the next step, I'd look at http://localhost:8088/trip-updates?debug and see if the "trip_id" values that appear in that feed match the trip_id values in your schedule GTFS data in trips.txt.  If you'd not seeing real-time data in the OneBusAway app/website, it's likely that the GTFS-realtime real-time trip_ids don't match the schedule GTFS trip IDs.

You can also try to track down the logs for the OneBusAway server - for example, if it's hosted in Tomcat, look at the Tomcat logs.  In the logs you should see something like "X of Y trips matched".

If the trip IDs aren't matching, the next order of business is to figure out why.  This could be tricky, as the problem could be a missing step in your GTFS schedule data export (to make your GTFS IDs align with your real-time IDs) or in the configuration for your OrbCAD and/or GTFS-realtime feed (to make your real-time feed match the IDs in your GTFS data).

Sean
Reply all
Reply to author
Forward
0 new messages