{"action":"created","issue":{"url":"https://api.github.com/repos/scaleway/image-app-drupal/issues/3","labels_url":"https://api.github.com/repos/scaleway/image-app-drupal/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/scaleway/image-app-drupal/issues/3/comments","events_url":"https://api.github.com/repos/scaleway/image-app-drupal/issues/3/events","html_url":"https://github.com/scaleway/image-app-drupal/issues/3","id":105076883,"number":3,"title":"Missing MySQL instance due to outdated apt cache","user":{"login":"drubb","id":2177749,"avatar_url":"https://avatars.githubusercontent.com/u/2177749?v=3","gravatar_id":"","url":"https://api.github.com/users/drubb","html_url":"https://github.com/drubb","followers_url":"https://api.github.com/users/drubb/followers","following_url":"https://api.github.com/users/drubb/following{/other_user}","gists_url":"https://api.github.com/users/drubb/gists{/gist_id}","starred_url":"https://api.github.com/users/drubb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drubb/subscriptions","organizations_url":"https://api.github.com/users/drubb/orgs","repos_url":"https://api.github.com/users/drubb/repos","events_url":"https://api.github.com/users/drubb/events{/privacy}","received_events_url":"https://api.github.com/users/drubb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scaleway/image-app-drupal/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-06T07:29:02Z","updated_at":"2015-09-06T14:33:35Z","closed_at":null,"body":"I've tried several times to spin up a server using this image. The created server instances always were missing the MySQL server instance. A quick look at the init-mysql log file reveals the reason:\r\n\r\n```\r\ncat init-mysql.log\r\nReading package lists...\r\nBuilding dependency tree...\r\nReading state information...\r\nThe following extra packages will be installed:\r\n  libdbd-mysql-perl libdbi-perl libhtml-template-perl libterm-readkey-perl\r\n  mysql-client-5.5 mysql-client-core-5.5 mysql-server-core-5.5\r\nSuggested packages:\r\n  libclone-perl libmldbm-perl libnet-daemon-perl libplrpc-perl\r\n  libsql-statement-perl libipc-sharedcache-perl tinyca mailx\r\nThe following NEW packages will be installed:\r\n  libdbd-mysql-perl libdbi-perl libhtml-template-perl libterm-readkey-perl\r\n  mysql-client-5.5 mysql-client-core-5.5 mysql-server-5.5\r\n  mysql-server-core-5.5\r\n0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.\r\nNeed to get 7673 kB of archives.\r\nAfter this operation, 82.0 MB of additional disk space will be used.\r\nGet:1 http://mirror.scaleway.com/ubuntu-ports/ trusty/main libdbi-perl armhf 1.630-1 [876 kB]\r\nErr http://ports.ubuntu.com/ trusty-security/main mysql-client-core-5.5 armhf 5.5.43-0ubuntu0.14.04.1\r\n  404  Not Found [IP: 91.189.88.151 80]\r\nErr http://ports.ubuntu.com/ trusty-security/main mysql-client-5.5 armhf 5.5.43-0ubuntu0.14.04.1\r\n  404  Not Found [IP: 91.189.88.151 80]\r\nErr http://ports.ubuntu.com/ trusty-security/main mysql-server-core-5.5 armhf 5.5.43-0ubuntu0.14.04.1\r\n  404  Not Found [IP: 91.189.88.151 80]\r\nErr http://ports.ubuntu.com/ trusty-security/main mysql-server-5.5 armhf 5.5.43-0ubuntu0.14.04.1\r\n  404  Not Found [IP: 91.189.88.151 80]\r\nGet:2 http://mirror.scaleway.com/ubuntu-ports/ trusty/main libdbd-mysql-perl armhf 4.025-1 [93.5 kB]\r\nGet:3 http://mirror.scaleway.com/ubuntu-ports/ trusty/main libterm-readkey-perl armhf 2.31-1 [25.2 kB]\r\nGet:4 http://mirror.scaleway.com/ubuntu-ports/ trusty/main libhtml-template-perl all 2.95-1 [65.5 kB]\r\nFetched 1060 kB in 0s (6538 kB/s)\r\nE: Failed to fetch http://ports.ubuntu.com/pool/main/m/mysql-5.5/mysql-client-core-5.5_5.5.43-0ubuntu0.14.04.1_armhf.deb  404  Not Found [IP: 91.189.88.151 80]\r\n\r\nE: Failed to fetch http://ports.ubuntu.com/pool/main/m/mysql-5.5/mysql-client-5.5_5.5.43-0ubuntu0.14.04.1_armhf.deb  404  Not Found [IP: 91.189.88.151 80]\r\n\r\nE: Failed to fetch http://ports.ubuntu.com/pool/main/m/mysql-5.5/mysql-server-core-5.5_5.5.43-0ubuntu0.14.04.1_armhf.deb  404  Not Found [IP: 91.189.88.151 80]\r\n\r\nE: Failed to fetch http://ports.ubuntu.com/pool/main/m/mysql-5.5/mysql-server-5.5_5.5.43-0ubuntu0.14.04.1_armhf.deb  404  Not Found [IP: 91.189.88.151 80]\r\n\r\nE: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?\r\nupdate-rc.d: /etc/init.d/mysql: file does not exist\r\n/usr/local/sbin/oc-init-php-mysql: line 18: mysqladmin: command not found\r\n/usr/local/sbin/oc-init-php-mysql: line 19: mysql: command not found\r\n``` \r\nJust adding an apt-get update command should fix this issue."},"comment":{"url":"https://api.github.com/repos/scaleway/image-app-drupal/issues/comments/138089954","html_url":"https://github.com/scaleway/image-app-drupal/issues/3#issuecomment-138089954","issue_url":"https://api.github.com/repos/scaleway/image-app-drupal/issues/3","id":138089954,"user":{"login":"moul","id":94029,"avatar_url":"https://avatars.githubusercontent.com/u/94029?v=3","gravatar_id":"","url":"https://api.github.com/users/moul","html_url":"https://github.com/moul","followers_url":"https://api.github.com/users/moul/followers","following_url":"https://api.github.com/users/moul/following{/other_user}","gists_url":"https://api.github.com/users/moul/gists{/gist_id}","starred_url":"https://api.github.com/users/moul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moul/subscriptions","organizations_url":"https://api.github.com/users/moul/orgs","repos_url":"https://api.github.com/users/moul/repos","events_url":"https://api.github.com/users/moul/events{/privacy}","received_events_url":"https://api.github.com/users/moul/received_events","type":"User","site_admin":false},"created_at":"2015-09-06T14:33:35Z","updated_at":"2015-09-06T14:33:35Z","body":"We need to globally improve how we install mysql-server, we will make the image inherits from image-app-lemp too\r\n\r\nThanks for your feedback"}}