Fresh install won't work with 0.0.3.Alpha2 (Migration Exception)
See original GitHub issueAfterwards I tried a 0.0.3.Alpha1 fresh install which works without any problems.
Anyway, here’s the error log:
2016-08-02 03:53:28,708 ERROR [main] [org.mycontroller.standalone.db.DataBaseUtils:115] Migration exception,
org.flywaydb.core.api.FlywayException: Found non-empty schema "PUBLIC" without metadata table! Use baseline() or set baselineOnMigrate to true to initialize the metadata table.
at org.flywaydb.core.Flyway$1.execute(Flyway.java:1035) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.flywaydb.core.Flyway$1.execute(Flyway.java:1006) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.flywaydb.core.Flyway.execute(Flyway.java:1418) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.flywaydb.core.Flyway.migrate(Flyway.java:1006) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.db.DataBaseUtils.loadDatabase(DataBaseUtils.java:113) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.StartApp.startServices(StartApp.java:243) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.StartApp.startMycontroller(StartApp.java:106) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.StartApp.main(StartApp.java:93) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
2016-08-02 03:53:34,746 INFO [main] [org.mycontroller.standalone.db.DataBaseUtils:154] Application information: [Version:0.0.3.Alpha2, Database version:null]
2016-08-02 03:53:34,905 ERROR [main] [org.mycontroller.standalone.settings.SettingsUtils:131] Unable to write static json information file! location:[../www/configurations/mycontroller-configs.json]
java.lang.NullPointerException: null
at org.mycontroller.standalone.api.jaxrs.json.McGuiSettings.<init>(McGuiSettings.java:61) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.settings.SettingsUtils.updateStaticJsonInformationFile(SettingsUtils.java:128) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.StartApp.startServices(StartApp.java:246) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.StartApp.startMycontroller(StartApp.java:106) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.StartApp.main(StartApp.java:93) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
2016-08-02 03:53:34,910 ERROR [main] [org.mycontroller.standalone.StartApp:95] Unable to start application, refer error log,
java.lang.NullPointerException: null
at org.mycontroller.standalone.utils.McUtils.updateLocale(McUtils.java:278) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.StartApp.startServices(StartApp.java:249) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.StartApp.startMycontroller(StartApp.java:106) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.StartApp.main(StartApp.java:93) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
Exception in thread "MyController.org Shutdown-Hook" java.lang.NullPointerException
at Acme.Serve.Serve.stopBackground(Serve.java:684)
at org.jboss.resteasy.plugins.server.tjws.TJWSServletServer.stop(TJWSServletServer.java:184)
at org.mycontroller.standalone.StartApp.stopHTTPWebServer(StartApp.java:216)
at org.mycontroller.standalone.StartApp.stopServices(StartApp.java:288)
at org.mycontroller.standalone.AppShutdownHook$1.run(AppShutdownHook.java:34)
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
0.0.3.Final pre-release - volunteers required to test
I have reproduced a database corruption with a fresh install. start then stop within 3 seconds. On my RPI3 the db migration left...
Read more >lost/CHANGELOG.md at master · l3p-cv/lost
The backend then tried to update a db record that did not exists which caused an exception. The result was that all annotation...
Read more >Bug listing with status VERIFIED with resolution FIXED as at ...
... Bug:2362 - "gcc-3 will not install" status:VERIFIED resolution:FIXED ... Bug:6006 - "flwm does not work correctly with fltk 1.1" status:VERIFIED ...
Read more >IBM Cúram Social Program Management Platform 6.0.3.0
Introduction Installing the Application Supported Hardware and Software Improvements and Resolved Issues Notes on Deprecation Known Issues
Read more >Products.PloneFormGen 1.7.25
Existing save data adapters will be migrated when first touched by the new PFG version. This is NOT backwards compatible! So, you will...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you for your effort! I’ve manually added the gateway, sensors and stuff again, so I didn’t need to apply the backup. Now everything is working (and wow, the interface, just everything is way more polished and functional than I thought it would be in an alpha release, so great work 👍 - just didn’t want to always only mention the negative things 😉 ).
I’m not closing this issue for now as I want to do some more debugging in the next few days - the information given in your last post will be helpful I think!
Ok, so MyController will recreate the file then? Great, I think that might help me with debugging.
That’s something I will certainly try. Also I noticed I hadn’t installed a lot of updates since the Raspberry Pi (BTW, it’s a modell B rev 2.0) lied around for a while… Maybe that already helps.
But first I will need to find an empty SD-card so I don’t break my working system while experimenting…
Well, I have no idea what went wrong.
Now after my new SD-card arrived, I installed a fresh Raspbian, configured the locales etc., installed Oracle Java and followed the exact same steps in the installation instructions again. Everything works fine now… Sorry and thank you for your effort! So yes, this issue can be closed.