Java app trying to start and crushed
Hi. I found out about railway and decided to deploy my pet-project. My project is just a simple api which uses a database. I use connection for database in railway and github actions for CI. My app has a docker file and I use special enviroment for connections railway database. Everthying looks fine when I try to deploy my app, but at some point my application starts cycling run, which eventually leads to crashing. I don't see any information in log, and can't understand why it's happening. Could anyone help me with this trouble ?
My project id: 7bb73243-87ec-42dd-a598-a8ee7feb1fd1
Plan: trial
My app in github: https://github.com/GenKG/simpleapi
GitHub
GitHub - GenKG/simpleapi: first CRUD api on java and Springboot
first CRUD api on java and Springboot. Contribute to GenKG/simpleapi development by creating an account on GitHub.
6 Replies
Project ID:
7bb73243-87ec-42dd-a598-a8ee7feb1fd1
what do your memory metrics look like?
there is a small memory spike when I run the application
alright no wild memory metrics, that's always a good start, but to me this is just looks like your app is crashing without any proper error logging, and unfortunately without anything to go of off there's not much the community can do for you here
I dont think that's the problem here, though it certainly won't hurt. The app crashes before spring is even done initializing. What is odd is that no exceptions are logged to the console, which java should do by default.
You said the app crashes after a while. Does the last "iteration" yield an exception? Another question: Does the app boot normal locally?
Yes, locally the application works fine, I deployed this app in heroku before, and had't problem. I tried configuration log level with debug mode, but it can't help. I don't see any help information in log and it's weird