martmaiste / rockstor

Custom Rockstor Rock-Ons
4 stars 2 forks source link

[Nextcloud rock-on] 'Tag latest not found in repository docker.io/library/mariadb' #1

Closed JohnnyCalavera closed 7 years ago

JohnnyCalavera commented 7 years ago

I tried to install the Nextcloud rock-on as described in the readme, but I ended up with the following:

[19/Apr/2017 16:47:43] ERROR [storageadmin.views.rockon_helpers:124] Error running a command. cmd = /usr/bin/docker run -d --restart=unless-stopped --name nextcloud-db -v /mnt2/nextcloud-db:/var/lib/mysql -v /etc/localtime:/etc/localtime:ro -e MYSQL_PASSWORD=password -e MYSQL_USER=nextcloud -e MYSQL_DATABASE=nextcloud -e MYSQL_RANDOM_ROOT_PASSWORD=yes mariadb. rc = 1. stdout = ['']. stderr = ["Unable to find image 'mariadb:latest' locally", 'latest: Pulling from library/mariadb', '7002a7b7c094: Pulling fs layer', 'a7cf77abbc69: Pulling fs layer', 'ce66888e52ba: Pulling fs layer', '59aa08d404ae: Pulling fs layer', 'faaf4d242612: Pulling fs layer', '8013c5e50bbd: Pulling fs layer', '2c4a7826e0a6: Pulling fs layer', '591066f0c1d8: Pulling fs layer', '9b5b79867c81: Pulling fs layer', '582c9759090b: Pulling fs layer', '303f777d1ded: Pulling fs layer', 'c5530662f2ae: Pulling fs layer', '414dfb49b9f2: Pulling fs layer', 'ebd258d0d9fa: Pulling fs layer', '8f421a6779a9: Pulling fs layer', '6c7bfd76e631: Pulling fs layer', '778fe2dfa512: Pulling fs layer', 'e699da6841e3: Pulling fs layer', 'be3b9e7eb1d3: Pulling fs layer', '05c846f9893b: Pulling fs layer', '2756f6c9cc70: Pulling fs layer', 'a7cf77abbc69: Verifying Checksum', 'a7cf77abbc69: Download complete', '2756f6c9cc70: Verifying Checksum', '2756f6c9cc70: Download complete', '59aa08d404ae: Verifying Checksum', '59aa08d404ae: Download complete', '7002a7b7c094: Verifying Checksum', '7002a7b7c094: Download complete', 'be3b9e7eb1d3: Verifying Checksum', 'be3b9e7eb1d3: Download complete', 'ce66888e52ba: Verifying Checksum', 'ce66888e52ba: Download complete', '7002a7b7c094: Pull complete', 'a7cf77abbc69: Pull complete', 'ce66888e52ba: Pull complete', '59aa08d404ae: Pull complete', 'Pulling repository docker.io/library/mariadb', 'Tag latest not found in repository docker.io/library/mariadb', ''] Traceback (most recent call last): File "/opt/rockstor/src/rockstor/storageadmin/views/rockon_helpers.py", line 121, in install generic_install)(rockon) File "/opt/rockstor/src/rockstor/storageadmin/views/rockon_helpers.py", line 219, in generic_install run_command(cmd) File "/opt/rockstor/src/rockstor/system/osi.py", line 114, in run_command raise CommandException(cmd, out, err, rc) CommandException: Error running a command. cmd = /usr/bin/docker run -d --restart=unless-stopped --name nextcloud-db -v /mnt2/nextcloud-db:/var/lib/mysql -v /etc/localtime:/etc/localtime:ro -e MYSQL_PASSWORD=password -e MYSQL_USER=nextcloud -e MYSQL_DATABASE=nextcloud -e MYSQL_RANDOM_ROOT_PASSWORD=yes mariadb. rc = 1. stdout = ['']. stderr = ["Unable to find image 'mariadb:latest' locally", 'latest: Pulling from library/mariadb', '7002a7b7c094: Pulling fs layer', 'a7cf77abbc69: Pulling fs layer', 'ce66888e52ba: Pulling fs layer', '59aa08d404ae: Pulling fs layer', 'faaf4d242612: Pulling fs layer', '8013c5e50bbd: Pulling fs layer', '2c4a7826e0a6: Pulling fs layer', '591066f0c1d8: Pulling fs layer', '9b5b79867c81: Pulling fs layer', '582c9759090b: Pulling fs layer', '303f777d1ded: Pulling fs layer', 'c5530662f2ae: Pulling fs layer', '414dfb49b9f2: Pulling fs layer', 'ebd258d0d9fa: Pulling fs layer', '8f421a6779a9: Pulling fs layer', '6c7bfd76e631: Pulling fs layer', '778fe2dfa512: Pulling fs layer', 'e699da6841e3: Pulling fs layer', 'be3b9e7eb1d3: Pulling fs layer', '05c846f9893b: Pulling fs layer', '2756f6c9cc70: Pulling fs layer', 'a7cf77abbc69: Verifying Checksum', 'a7cf77abbc69: Download complete', '2756f6c9cc70: Verifying Checksum', '2756f6c9cc70: Download complete', '59aa08d404ae: Verifying Checksum', '59aa08d404ae: Download complete', '7002a7b7c094: Verifying Checksum', '7002a7b7c094: Download complete', 'be3b9e7eb1d3: Verifying Checksum', 'be3b9e7eb1d3: Download complete', 'ce66888e52ba: Verifying Checksum', 'ce66888e52ba: Download complete', '7002a7b7c094: Pull complete', 'a7cf77abbc69: Pull complete', 'ce66888e52ba: Pull complete', '59aa08d404ae: Pull complete', 'Pulling repository docker.io/library/mariadb', 'Tag latest not found in repository docker.io/library/mariadb', '']

Are we using MYSQL or MariaDB? I've no idea what I could have done wrong.

martmaiste commented 7 years ago

Looks like there is no "latest" tag for mariadb on the docker.io. Since it is tested with version 10 I changed the line 66 of nextcloud.json to specify the tag/version: "image": "mariadb:10", Just tested it and it should work.

JohnnyCalavera commented 7 years ago

Now it says: 'Tag 10 not found in repository docker.io/library/mariadb' Maybe my system is somehow responsible for the error and not the json file... Although I could not come up with an explanation. Thanks for your help so far. I'll reboot the machine in case something's just off and we could never guess what it is. Will report back.

EDIT: Still getting 'Tag 10 not found in repository docker.io/library/mariadb' (I'm on Rockstor 3.9.0-5 if this information is of any interest)

martmaiste commented 7 years ago

Last time I tested on 3.8.16-16 but the installation also works after upgrading to 3.9.0-5. Between installs I removed the cached images to be sure. Can you try to download the image mariadb:10 docker image manually? docker pull mariadb:10

JohnnyCalavera commented 7 years ago

[root@rockstor ~]# docker pull mariadb:10 10: Pulling from library/mariadb ebd258d0d9fa: Pull complete 8f421a6779a9: Pull complete 6c7bfd76e631: Pull complete 778fe2dfa512: Pull complete e699da6841e3: Pulling fs layer be3b9e7eb1d3: Pulling fs layer 05c846f9893b: Download complete 2756f6c9cc70: Download complete Pulling repository docker.io/library/mariadb Tag 10 not found in repository docker.io/library/mariadb

EDIT: For some reason my docker-engine wasn't up-to-date ('docker-engine-1.9.1-1.el7.centos.x86_64'). After I installed 'docker-engine.x86_64 0:1.13.1-1.el7.centos' everything works fine. So it was my system's fault all along. Now I get: 'Status: Downloaded newer image for mariadb:10' and I successfully installed the nextcloud rock-on. Thank you so much and my apologies for the confusion.