Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run after pulling from Docker Hub #173

Closed
fBedecarrats opened this issue Dec 1, 2019 · 4 comments
Closed

Cannot run after pulling from Docker Hub #173

fBedecarrats opened this issue Dec 1, 2019 · 4 comments
Assignees

Comments

@fBedecarrats
Copy link

Hello,
Describe the bug
The link to Docker Hub on the arcadeanalytics README page is broken. I searched directly on Docker hub and found arcadeanalytics/arcadeanalytics (but last updated 8 months ago, while there are frequent commits on github?). It pulled correctly but I get errors when I try launch the app. I saw similar issues #91 and #141, but could not solve the my problem with these answers

To Reproduce
Steps to reproduce the behavior
0. Click on "Docker images of Arcade and demo databases are available on Docker hub" on the README page and get an error

  1. Run: docker pull arcadeanalytics/arcadeanalytics
  2. Run: docker run arcadeanalytics/arcadeanalytics
  3. Get a long log with errors (copied below)
  4. Run: docker-compose -f src/main/docker/app-single.yml up
  5. Get: ERROR: .FileNotFoundError: [Errno 2] No such file or directory: '.\src/main/docker/app-single.yml'
  6. Run: docker-compose -f src/main/docker/app.yml up
  7. Get: ERROR: .FileNotFoundError: [Errno 2] No such file or directory: '.\src/main/docker/app.yml'

Desktop (please complete the following information):

  • OS: Windows 10
  • Docker Desktop version 2.1.0.5

Full log
Error Arcadeanalytics.log

Thanks in advance for your feedback!

@andelhie
Copy link

andelhie commented Dec 4, 2019

Yah I am seeing the same error from what I can see from the app.yml it pointing to some other yaml files that are missing from the directory. This is the file that missing with out loading the sample data orientdb2.yml but even the app.yml file point to 3 other yaml files that are not in the local directory.

All this stuff is missing

  arcadeanalytics-orientdb:
    extends:
      file: orientdb2.yml
      service: arcadeanalytics-orientdb
# uncomment to startup demo database
#  arcadeanalytics-orientdb-tp3:
#    extends:
#      file: orientdb-tp3.yml
#      service: arcadeanalytics-orientdb-tp3
#  arcadeanalytics-postgresql-dvd-rental:
#    extends:
#      file: postgresql-dvd-rental.yml
#      service: arcadeanalytics-postgresql-dvd-rental
#  arcadeanalytics-mysql-sakila:
#    extends:
#      file: mysql-sakila.yml
#      service: arcadeanalytics-mysql-sakila

@fBedecarrats
Copy link
Author

While this gets resolved, is there a alternative docker image one can pull and run that works (or a workaround to get this one running)? I need to evaluate different solution and I don't want to discard Arcade Analytics just because there is a bug on the latest release.

@fBedecarrats
Copy link
Author

OK, I figured out this workaround to obtain and run a working Arcade Analytics container.

Step 1: download the files available on github, unzip, rename folder and remove zip:

curl -LJO http://github.com/ArcadeData/arcadeanalytics/archive/master.zip 
unzip arcadeanalytics-master.zip
mv arcadeanalytics-master arcadeanalytics
rm arcadeanalytics-master.zip

Step 2: download the 'recipe' files

curl -LJO https://github.com/ArcadeData/arcadeanalytics-recipes/archive/master.zip 
unzip arcadeanalytics-recipes-master.zip
mv arcadeanalytics-recipes-master arcadeanalytics-recipes
rm arcadeanalytics-recipes-master.zip

Step 3: Move the orientdb3 yml in the arcade analytics docker folder

mv arcadeanalytics-recipes/recipes/orientdb3.yml arcadeanalytics/src/main/docker/orientdb3.yml

Step 4: point to the orientdb3 yml in the app.yml. To do that, open the app.yml by typing

nano arcadeanalytics/src/main/docker/app.yml

Modify the line 43 replacing file: orientdb2.yml by file: orientdb3.yml (ie. erase 2 and write 3 instead). On the next line, replace service: arcadeanalytics-orientdb by service: arcadeanalytics-orientdb3(ie. write 3 at the end of the line)
Type Ctrl+x to exit nano text editor, and then y and press Enter to save the changes.

Step 5: run orientdb3. Docker will automatically pull it first from Docker Hub if orientdb is not already present on the machine, which will take a few more minutes

 docker run arcadeanalytics/orientdb3

This will keep the current terminal busy (using the -d options to run in the background fails).

Step 6: Launch arcadeanalytics in another terminal
Open a new terminal without closing the other one and type:

docker-compose -f src/main/docker/app.yml up

Then open your browser and type http://localhost:8080 and login as user with password user. The terminal also displays another IP to access the application from other machines. See the official Arcade Analytics readme for further instructions.

I can't believe it has to be so complicated. There must be a much simpler way, but I'm not very familiar with docker. Any suggestion to make this more straightforward (using only docker hub for instance) would be most welcome.

@arcade-player
Copy link
Contributor

We moved the compose files to a separate repository time ago, please refer to: https://github.com/ArcadeData/arcadeanalytics-recipes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants