Unable to Access Target Directory or JAR File

mrasilbekprogramming
HOBBY

5 months ago

I am facing an issue with deploying my Spring Boot project. The target directory contains the compiled JAR file KinoOlamiBot-0.0.1-SNAPSHOT.jar, but the deployment server gives the following error:

vbnet
Копировать
Редактировать
Error: Unable to access jarfile target/KinoOlamiBot-0.0.1-SNAPSHOT.jar
Here are some details:

GitHub Repository:
I have uploaded the repository to GitHub, including the target folder with the JAR file.

Link to repository: [GitHub Repo Link]
What I've Tried:

Confirmed the JAR file exists in target/ locally.
Verified file path and file permissions on the server using ls and chmod.
Rebuilt the project using Maven (mvn clean package).
Ensured target folder is correctly included in the GitHub repository.
Environment:

Java Version: 21
Spring Boot Version: 3.4.0
Operating System: [Your OS and Server OS]
Issue Summary:
Despite all checks, the server cannot access the target/KinoOlamiBot-0.0.1-SNAPSHOT.jar file during deployment.

Any guidance or suggestions on how to resolve this would be greatly appreciated.

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

0 Replies

Unable to Access Target Directory or JAR File - Railway Help Station