overture-stack / composer

0 stars 0 forks source link

[Score Server] - Development Environment Setup #23

Open MitchellShiell opened 3 weeks ago

MitchellShiell commented 3 weeks ago

Summary

Using this thread to track issues as I troubleshoot through the Score development environment setup

[!NOTE]
All details and solutions will be outlined in the comments below

Steps to reproduce

1. Set up complementary services

git clone -b conductor https://github.com/overture-stack/composer.git
cd composer

2. Run the conductor for Songs dev environment, this command will set up all complementary services for Song development.

make scoreDev

3. Clone Score

git clone https://github.com/overture-stack/score.git
cd score

4. Run the build

./mvnw clean install -DskipTests

5. Update the application.yaml, the specific application.yaml i am using can be found here

6. Change directory to the score-server and run the server

cd score-server/
mvn spring-boot:run -Dspring-boot.run.profiles=default,s3,secure,dev
MitchellShiell commented 2 weeks ago

Unsatisfied dependency for downloadController

When trying to start the application:

mvn spring-boot:run -Dspring-boot.run.profiles=default,s3,secure,dev

I'm encountering the following error:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'downloadController': Unsatisfied dependency expressed through field 'downloadService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 's3DownloadService': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 's3.download.expiration' in value "${s3.download.expiration}"

It seems the application is unable to find the property s3.download.expiration.

leoraba commented 2 weeks ago

Added the missing environment variable on application.yml on this commit