conveyal / gtfs-editor

A web-based GTFS editing framework. THIS PROJECT IS DEPRECATED. See https://github.com/ibi-group/datatools-ui for current version.
https://github.com/ibi-group/datatools-ui
MIT License
134 stars 63 forks source link

Cannot run GTFS-Editor after 'git pull' #212

Closed JWJoubert closed 9 years ago

JWJoubert commented 9 years ago

After encountering issue #210 I thought it might be time for an update... and reading a few things about mapdb being implemented in February, I thought: "right, it IS time for an upgrade".

So I did.

Now I cannot even get GTFS-Editor running, I get a ExceptionInInitializerError occured : null error, with a reference to

In /app/controllers/Application.java (around line 43)

39:     
40:  @Before
41:    static void initSession() throws Throwable {
42: 
43:        GlobalTx tx = VersionedDataStore.getGlobalTx();

On refreshing/reloading the page, the error changes to NoClassDefFoundError occured : Could not initialize class datastore.VersionedDataStore

I try to look into the the VersionedDataStore but I'm a bit lost, other than realising that GlobalTx is a mapdb-related object. Still, I think a major problem is the fact that the original GTFS feed was created in Postgresql , and I guess mapdb does not play very nicely. This might also be why issue #210 does not want to save alignment edits?

Is there a way to fix it, i.e. just get GTFS-Editor running again? I have a copy of the GTFS feed which I can import (but only if I get the editor running of course).

markjd84 commented 9 years ago

What do you have in your application.conf ? I have been changing line 114 to db=fs (and uncommenting) which lets it use a file as a database, as I understand it.

JWJoubert commented 9 years ago

Thanks Mark. Mine was commented out as well. I added db=fs, restarted the editor, but same error. Should I also comment out all the postgresql lines in the application.conf file? I still have the following:

db.url=jdbc:postgresql://127.0.0.1/gtfs-editor
db.driver=org.postgresql.Driver
db.user=postgres
JWJoubert commented 9 years ago

Tried commenting the postgres three lines out, same error.

JWJoubert commented 9 years ago

I've been able to get a local version running by simply overwriting the application.conf file with the application.conf.template ... but it does not import the GTFS feed that was exported using the postgresql version of the editor I used.

Is there a way to fetch a working GIT SHA-1 commit? Or rather, to which SHA-1 should I revert to get my old version back?

JWJoubert commented 9 years ago

I had to start from scratch and re-installed gtfs-editor completely... so I guess I can close this issue. Maybe I just messed up the transition to the new database type. If someone stumbles across this issue again, they can consider re-opening it.