. Advertisement .
. Advertisement .
We’re having issues starting the app, which was developed using Heroku (and was working perfectly over a period of months). We did not alter or install any files (we just added information). Sometimes we encounter this error in Heroku logs
2021-05-09T11:26:39.184283+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=sws-wiki.herokuapp.com request_id=4a1aba64-a4c0-4a1e-8bb4-231d3cc51bbb fwd="184.108.40.206" dyno= connect= service= status=503 bytes= protocol=https 2021-05-09T11:26:39.985839+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=sws-wiki.herokuapp.com request_id=44a1adc6-1f14-4434-b8f7-514216845fdd fwd="220.127.116.11" dyno= connect= service= status=503 bytes= protocol=https
Error: Cannot find module '/wiki/logs' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
Please give us some advice.
Here’s what I did:
1. I restarted the Heroku instance and it worked fine
2. I deleted all the project files
3. I exported them (before making any edits) to a new Java 8 project, which is where I’m currently in development
4. It worked just fine on Heroku, but when I deploy my code to my local machine, it’s giving me this error: “Could not find class LoadingController”. It doesn’t seem like there is anything special about its dependencies or anything. Any idea what’s going on? Also, how do you export a project from Heroku? How do you install Java?
In my case my app crashed because I was hard setting the PORT, instead of using the port that heroku dinamicaly sets, which can be accessed with process.env.PORT