Tuurlijk / TYPO3.Homestead

One-stop Neos and TYPO3 development and review environment. Effortlessly test one site against multiple PHP versions and hhvm.
99 stars 17 forks source link

TASK: [hhvm | Install HHVM] fails #19

Closed zoosky closed 9 years ago

zoosky commented 9 years ago
  TASK: [hhvm | Add HHVM key] *************************************************** 
  changed: [default]

  TASK: [hhvm | Add HHVM repository] ******************************************** 
  changed: [default]

  TASK: [hhvm | Install HHVM] *************************************************** 
  failed: [default] => {"failed": true}
  stderr: invoke-rc.d: unknown initscript, /etc/init.d/hhvm not found.
  dpkg: error processing archive /var/cache/apt/archives/hhvm_3.7.1~trusty_amd64.deb (--unpack):
   subprocess new pre-installation script returned error exit status 100
  Errors were encountered while processing:
   /var/cache/apt/archives/hhvm_3.7.1~trusty_amd64.deb
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  stdout: Reading package lists...
  Building dependency tree...
  Reading state information...
  The following extra packages will be installed:
    imagemagick-common libboost-context1.54.0 libboost-filesystem1.54.0
    libboost-program-options1.54.0 libboost-regex1.54.0 libboost-system1.54.0
    libboost-thread1.54.0 libc-client2007e libfftw3-double3 libgd3 libgflags2
    libgoogle-glog0 libjemalloc1 liblqr-1-0 libltdl7 libmagickcore5
    libmagickwand5 libmemcached10 libonig2 libtbb2 libunwind8 libvpx1 libxslt1.1
    mlock
  Suggested packages:
    uw-mailutils libfftw3-bin libfftw3-dev libgd-tools libmagickcore5-extra
  The following NEW packages will be installed:
    hhvm imagemagick-common libboost-context1.54.0 libboost-filesystem1.54.0
    libboost-program-options1.54.0 libboost-regex1.54.0 libboost-system1.54.0
    libboost-thread1.54.0 libc-client2007e libfftw3-double3 libgd3 libgflags2
    libgoogle-glog0 libjemalloc1 liblqr-1-0 libltdl7 libmagickcore5
    libmagickwand5 libmemcached10 libonig2 libtbb2 libunwind8 libvpx1 libxslt1.1
    mlock
  0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded.
  Need to get 21.4 MB of archives.
  After this operation, 18.8 MB of additional disk space will be used.
  Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main imagemagick-common all 8:6.7.7.10-6ubuntu3 [37.2 kB]
  Get:2 http://dl.hhvm.com/ubuntu/ trusty/main hhvm amd64 3.7.1~trusty [16.5 MB]
  Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe libboost-context1.54.0 amd64 1.54.0-4ubuntu3.1 [8028 B]
  Get:4 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-system1.54.0 amd64 1.54.0-4ubuntu3.1 [10.1 kB]
  Get:5 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-filesystem1.54.0 amd64 1.54.0-4ubuntu3.1 [34.2 kB]
  Get:6 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-program-options1.54.0 amd64 1.54.0-4ubuntu3.1 [115 kB]
  Get:7 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-regex1.54.0 amd64 1.54.0-4ubuntu3.1 [261 kB]
  Get:8 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-thread1.54.0 amd64 1.54.0-4ubuntu3.1 [26.5 kB]
  Get:9 http://archive.ubuntu.com/ubuntu/ trusty/main libfftw3-double3 amd64 3.3.3-7ubuntu3 [702 kB]
  Get:10 http://archive.ubuntu.com/ubuntu/ trusty/main libvpx1 amd64 1.3.0-2 [556 kB]
  Get:11 http://archive.ubuntu.com/ubuntu/ trusty/main libgd3 amd64 2.1.0-3 [147 kB]
  Get:12 http://archive.ubuntu.com/ubuntu/ trusty/main libgflags2 amd64 2.0-1.1ubuntu1 [65.9 kB]
  Get:13 http://archive.ubuntu.com/ubuntu/ trusty/main libunwind8 amd64 1.1-2.2ubuntu3 [48.3 kB]
  Get:14 http://archive.ubuntu.com/ubuntu/ trusty/main libgoogle-glog0 amd64 0.3.3-1 [61.3 kB]
  Get:15 http://archive.ubuntu.com/ubuntu/ trusty/main liblqr-1-0 amd64 0.4.1-2ubuntu1 [23.4 kB]
  Get:16 http://archive.ubuntu.com/ubuntu/ trusty/main libltdl7 amd64 2.4.2-1.7ubuntu1 [35.0 kB]
  Get:17 http://archive.ubuntu.com/ubuntu/ trusty/main libmagickcore5 amd64 8:6.7.7.10-6ubuntu3 [1469 kB]
  Get:18 http://archive.ubuntu.com/ubuntu/ trusty/main libmagickwand5 amd64 8:6.7.7.10-6ubuntu3 [266 kB]
  Get:19 http://archive.ubuntu.com/ubuntu/ trusty/main libmemcached10 amd64 1.0.8-1ubuntu2 [83.4 kB]
  Get:20 http://archive.ubuntu.com/ubuntu/ trusty/main libxslt1.1 amd64 1.1.28-2build1 [145 kB]
  Get:21 http://archive.ubuntu.com/ubuntu/ trusty/universe libjemalloc1 amd64 3.5.1-2 [76.8 kB]
  Get:22 http://archive.ubuntu.com/ubuntu/ trusty/universe mlock amd64 8:2007f~dfsg-2 [12.2 kB]
  Get:23 http://archive.ubuntu.com/ubuntu/ trusty/universe libc-client2007e amd64 8:2007f~dfsg-2 [575 kB]
  Get:24 http://archive.ubuntu.com/ubuntu/ trusty/universe libonig2 amd64 5.9.1-1ubuntu1 [89.1 kB]
  Get:25 http://archive.ubuntu.com/ubuntu/ trusty/universe libtbb2 amd64 4.2~20130725-1.1ubuntu1 [94.7 kB]
  Fetched 21.4 MB in 44s (484 kB/s)
  Selecting previously unselected package imagemagick-common.
  (Reading database ... 67359 files and directories currently installed.)
  Preparing to unpack .../imagemagick-common_8%3a6.7.7.10-6ubuntu3_all.deb ...
  Unpacking imagemagick-common (8:6.7.7.10-6ubuntu3) ...
  Selecting previously unselected package libboost-context1.54.0:amd64.
  Preparing to unpack .../libboost-context1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
  Unpacking libboost-context1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
  Selecting previously unselected package libboost-system1.54.0:amd64.
  Preparing to unpack .../libboost-system1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
  Unpacking libboost-system1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
  Selecting previously unselected package libboost-filesystem1.54.0:amd64.
  Preparing to unpack .../libboost-filesystem1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
  Unpacking libboost-filesystem1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
  Selecting previously unselected package libboost-program-options1.54.0:amd64.
  Preparing to unpack .../libboost-program-options1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
  Unpacking libboost-program-options1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
  Selecting previously unselected package libboost-regex1.54.0:amd64.
  Preparing to unpack .../libboost-regex1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
  Unpacking libboost-regex1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
  Selecting previously unselected package libboost-thread1.54.0:amd64.
  Preparing to unpack .../libboost-thread1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
  Unpacking libboost-thread1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
  Selecting previously unselected package libfftw3-double3:amd64.
  Preparing to unpack .../libfftw3-double3_3.3.3-7ubuntu3_amd64.deb ...
  Unpacking libfftw3-double3:amd64 (3.3.3-7ubuntu3) ...
  Selecting previously unselected package libvpx1:amd64.
  Preparing to unpack .../libvpx1_1.3.0-2_amd64.deb ...
  Unpacking libvpx1:amd64 (1.3.0-2) ...
  Selecting previously unselected package libgd3:amd64.
  Preparing to unpack .../libgd3_2.1.0-3_amd64.deb ...
  Unpacking libgd3:amd64 (2.1.0-3) ...
  Selecting previously unselected package libgflags2.
  Preparing to unpack .../libgflags2_2.0-1.1ubuntu1_amd64.deb ...
  Unpacking libgflags2 (2.0-1.1ubuntu1) ...
  Selecting previously unselected package libunwind8.
  Preparing to unpack .../libunwind8_1.1-2.2ubuntu3_amd64.deb ...
  Unpacking libunwind8 (1.1-2.2ubuntu3) ...
  Selecting previously unselected package libgoogle-glog0.
  Preparing to unpack .../libgoogle-glog0_0.3.3-1_amd64.deb ...
  Unpacking libgoogle-glog0 (0.3.3-1) ...
  Selecting previously unselected package liblqr-1-0:amd64.
  Preparing to unpack .../liblqr-1-0_0.4.1-2ubuntu1_amd64.deb ...
  Unpacking liblqr-1-0:amd64 (0.4.1-2ubuntu1) ...
  Selecting previously unselected package libltdl7:amd64.
  Preparing to unpack .../libltdl7_2.4.2-1.7ubuntu1_amd64.deb ...
  Unpacking libltdl7:amd64 (2.4.2-1.7ubuntu1) ...
  Selecting previously unselected package libmagickcore5:amd64.
  Preparing to unpack .../libmagickcore5_8%3a6.7.7.10-6ubuntu3_amd64.deb ...
  Unpacking libmagickcore5:amd64 (8:6.7.7.10-6ubuntu3) ...
  Selecting previously unselected package libmagickwand5:amd64.
  Preparing to unpack .../libmagickwand5_8%3a6.7.7.10-6ubuntu3_amd64.deb ...
  Unpacking libmagickwand5:amd64 (8:6.7.7.10-6ubuntu3) ...
  Selecting previously unselected package libmemcached10:amd64.
  Preparing to unpack .../libmemcached10_1.0.8-1ubuntu2_amd64.deb ...
  Unpacking libmemcached10:amd64 (1.0.8-1ubuntu2) ...
  Selecting previously unselected package libxslt1.1:amd64.
  Preparing to unpack .../libxslt1.1_1.1.28-2build1_amd64.deb ...
  Unpacking libxslt1.1:amd64 (1.1.28-2build1) ...
  Selecting previously unselected package libjemalloc1.
  Preparing to unpack .../libjemalloc1_3.5.1-2_amd64.deb ...
  Unpacking libjemalloc1 (3.5.1-2) ...
  Selecting previously unselected package mlock.
  Preparing to unpack .../mlock_8%3a2007f~dfsg-2_amd64.deb ...
  Unpacking mlock (8:2007f~dfsg-2) ...
  Selecting previously unselected package libc-client2007e.
  Preparing to unpack .../libc-client2007e_8%3a2007f~dfsg-2_amd64.deb ...
  Unpacking libc-client2007e (8:2007f~dfsg-2) ...
  Selecting previously unselected package libonig2.
  Preparing to unpack .../libonig2_5.9.1-1ubuntu1_amd64.deb ...
  Unpacking libonig2 (5.9.1-1ubuntu1) ...
  Selecting previously unselected package libtbb2.
  Preparing to unpack .../libtbb2_4.2~20130725-1.1ubuntu1_amd64.deb ...
  Unpacking libtbb2 (4.2~20130725-1.1ubuntu1) ...
  Selecting previously unselected package hhvm.
  Preparing to unpack .../hhvm_3.7.1~trusty_amd64.deb ...
  Processing triggers for man-db (2.6.7.1-1ubuntu1) ...

  msg: '/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold"   install 'hhvm'' failed: invoke-rc.d: unknown initscript, /etc/init.d/hhvm not found.
  dpkg: error processing archive /var/cache/apt/archives/hhvm_3.7.1~trusty_amd64.deb (--unpack):
   subprocess new pre-installation script returned error exit status 100
  Errors were encountered while processing:
   /var/cache/apt/archives/hhvm_3.7.1~trusty_amd64.deb
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  FATAL: all hosts have already failed -- aborting

  PLAY RECAP ******************************************************************** 
             to retry, use: --limit @/Users/andreas/site.retry

  default                    : ok=58   changed=43   unreachable=0    failed=1   

  Ansible failed to complete successfully. Any error output should be
  visible above. Please fix these errors and try again.
zoosky commented 9 years ago

I connected to the box vagrant ssh and tried to install hhvm manually.

~ $ apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold"   install 'hhvm'
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
~ $ sudo apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold"   install 'hhvm'                                       ⏎
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  hhvm
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
24 not fully installed or removed.
Need to get 0 B/16.5 MB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 67782 files and directories currently installed.)
Preparing to unpack .../hhvm_3.7.1~trusty_amd64.deb ...
invoke-rc.d: unknown initscript, /etc/init.d/hhvm not found.
dpkg: error processing archive /var/cache/apt/archives/hhvm_3.7.1~trusty_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 100
Errors were encountered while processing:
 /var/cache/apt/archives/hhvm_3.7.1~trusty_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Tuurlijk commented 9 years ago

The packaged version no longer seems to ship with the init.d/hhvm file.

Pleas try the lates version containing this commit: https://github.com/Tuurlijk/TYPO3.Homestead/commit/bf51deca02d9fd4f0bde0332e21defefdd9b7e3d