musicsync icon indicating copy to clipboard operation
musicsync copied to clipboard

installation help wanted

Open maltebaer opened this issue 3 years ago • 0 comments

Hey @maximilianvoss 👋,

for several days now I try to get your project up and running by following the instructions you give at https://github.com/maximilianvoss/musicsync#docker-image. It just sounds like the perfect missing piece for the Toniebox. So first of all, thank you for open sourcing your work!

What I did so far:

  • installed Maven
  • installed Docker
  • downloaded Oracles JDK 11 and saved it in package/docker/src/main/resources/docker/base
  • run ./build.sh in package/docker/src/main/resources/docker/base

Now, when I try to build the project with mvn clean install -Pdocker I get a build failure for Music Sync Package Docker, see (1). Checking the web, it seems as if some configurations are missing (which I didn't add yet).

So I update musicsync.json, spotify and vnc in package/docker/src/main/resources/docker/application/config. Following the instructions in https://github.com/maximilianvoss/musicsync/blob/master/plugins/spotify/README.md I need to run musicsync --spotify-apicode to retrieve a refresh token. But at this point I can't find that script. So I guess I have to build the application first?

Hence I run mvn clean install, which will output the script in package/application/target. But running the script now leads to a file not found exception, see (2).

At this point I don't really know what else to try. I'm new to Java, so there might be something obvious that I'm missing, sorry. Maybe you could help pointing me into the right direction?

Greetings, Malte.

(1):

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Music Sync 3.1:
[INFO] 
[INFO] Music Sync ......................................... SUCCESS [  0.528 s]
[INFO] Music Sync Package ................................. SUCCESS [  0.010 s]
[INFO] Music Sync Package Docker .......................... FAILURE [  0.540 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.270 s
[INFO] Finished at: 2022-01-05T19:43:34+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (Build Package) on project musicsync-package-docker: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :musicsync-package-docker

(2)

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:///home/malte/projects/musicsync/package/application/target/./modules/log4j-slf4j-impl-2.17.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/malte/projects/musicsync/package/application/target/modules/log4j-slf4j-impl-2.17.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
2022-01-05 19:58:20,169 main WARN Could not locate file file:/home/malte/projects/musicsync/package/application/target/log4j2.xml
2022-01-05 19:58:20,170 main WARN Could not locate file file:/home/malte/projects/musicsync/package/application/target/log4j2.xml
Exception in thread "main" java.io.FileNotFoundException: musicsync.json (No such file or directory)
	at java.base/java.io.FileInputStream.open0(Native Method)
	at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112)
	at rocks.voss.musicsync.application/rocks.voss.musicsync.application.Application.main(Application.java:60)

maltebaer avatar Jan 05 '22 19:01 maltebaer