steveny2k / docker-predictionio

Docker container for PredictionIO-based machine learning services
73 stars 57 forks source link

Build error, no engine found with quickstart examples #11

Open rogierpijpers opened 6 years ago

rogierpijpers commented 6 years ago

When I follow the quickstart example for similar product in the 0.12.0 version docker container, I get


[INFO] [Engine$] Looking for an engine...
[ERROR] [Engine$] No engine found. Your build might have failed. Aborting.```

scalaVersion in engine.json is 2.11.8 and so is the default PredictionIO version.
rogierpijpers commented 6 years ago

Might be just me... but rebuilding the docker image worked for me.

steveny2k commented 6 years ago

@rogierpijpers do you mean that when you pulled the docker image of version 0.12.0 from docker registry, there was an issue; and when you rebuilt docker image from the github, the issue resolved? There have been new docker image in the docker registry, would you like to try again?

svillicana commented 6 years ago

I have the same problem when trying to build the engine.json. Actually when I ask for scala -version command is not found.

nurnisi commented 6 years ago

I had the same issue. The problem was in permissions. I downloaded the engine template to the / root folder. Checked permissions for files and folders via ls -l. Pio user had read and write privileges for Predictionio folder, but not for MyRecommendation folder where the engine template is located. Here is the output of ls -l => drwxr-xr-x 6 root root 4096 May 26 11:49 MyRecommendation drwxr-xr-x 1 pio pio 4096 May 26 17:21 PredictionIO-0.12.0-incubating

Solution Download the engine template into PredictionIO-0.12.0-incubating folder (for user pio to have read write privileges). Next, inside /PredictionIO-0.12.0-incubating/MyRecommendation folder run pio build

steveny2k commented 6 years ago

Thanks a lot for your solution @nurnisi