Try deploy
recrutaaeasy
HOBBYOP

2 years ago

When I try to deploy, this error appears:

[Region: ]

==============

Using Nixpacks

==============

context: 3c06b028851486661b570add1be5400f

Nixpacks build failed

Nixpacks was unable to generate a build plan for this app.

Please check the documentation for supported languages: https://nixpacks.com

The contents of the app directory are:

main/

test/

I went in search of what it could be and found that it might be the right path, but I changed the paths and the same error still persisted.

How do I resolve this in this case?

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

10 Replies

2 years ago

Try setting the root directory to /main in your service settings.

Going forward, please use this to download your logs so you can attach them to your comments -

https://bookmarklets.up.railway.app/log-downloader/


recrutaaeasy
HOBBYOP

2 years ago

I tried to do this, and every time I enter a destination, it gives me this error. This is what happened when I changed the path to main:

[Region: us-west1]

Using Nixpacks

context: bf9332995b4388c809a45526cf9e6962
Nixpacks build failed

Nixpacks was unable to generate a build plan for this app.
Please check the documentation for supported languages: https://nixpacks.com

The contents of the app directory are:

Java/

resources/

When I saw others deploying, they didn't have this problem. He understands? And I don't know what's going on with this one.


2 years ago

You have an insanely unconventional project structure and nixpacks doesn't know what to make of it, I would recommend you employ a much more conventional project structure.


recrutaaeasy
HOBBYOP

2 years ago

But it's not unconventional, it's just divided. A standard java code. And I'm using spring boot.

Look at the structure:

Attachments


2 years ago

I would recommend looking at some of the Spring boot templates to learn the proper directory structure.


recrutaaeasy
HOBBYOP

2 years ago

I created this code with the spring initializr tool.


recrutaaeasy
HOBBYOP

2 years ago

I would recommend looking at some of the Spring boot templates to learn the proper directory structure.

I solved the problem, but now this appears:

10 10.26 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.3.1:resources (default-resources) on project demo: filtering /app/src/main/resources/application.properties to /app/target/classes/application.properties failed with MalformedInputException: Input length = 1 -> [Help 1]


I am aslo get same error.....


How to fix this.....???


joaokbral
TRIAL

2 years ago

Hey, how did you solve that problem? I'm getting the same error.


Loading...