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

Error on vagrant up #38

Open
MrMchaD opened this issue Nov 13, 2017 · 2 comments
Open

Error on vagrant up #38

MrMchaD opened this issue Nov 13, 2017 · 2 comments

Comments

@MrMchaD
Copy link

MrMchaD commented Nov 13, 2017

I have an older site with crafty-vagrant (php 7.0-feature release when master was not on php 7) which still works fine - as expected. Now i have downloaded the current master, installed and it seemed to work fine until 'vagrant up' ... reinstalled a few times, but always the same:

==> default: Error: Could not set 'present' on ensure: Read-only file system @ unlink_internal - /tmp/puppet20171113-3000-r565af at 13:/tmp/vagrant-puppet/modules-961959991cb09e9183b4d6ee0fad7346/tools/manifests/init.pp
==> default: Error: Could not set 'present' on ensure: Read-only file system @ unlink_internal - /tmp/puppet20171113-3000-r565af at 13:/tmp/vagrant-puppet/modules-961959991cb09e9183b4d6ee0fad7346/tools/manifests/init.pp
==> default: Wrapped exception:
==> default: Read-only file system @ unlink_internal - /tmp/puppet20171113-3000-r565af
==> default: Error: /Stage[main]/Tools/Package[htop]/ensure: change from purged to present failed: Could not set 'present' on ensure: Read-only file system @ unlink_internal - /tmp/puppet20171113-3000-r565af at 13:/tmp/vagrant-puppet/modules-961959991cb09e9183b4d6ee0fad7346/tools/manifests/init.pp
==> default: Error: /Package[sendmail]: Could not evaluate: Read-only file system @ dir_s_rmdir - /tmp/puppet20171113-3000-170mzwk.lock
==> default: Error: /Package[libapache2-mod-php7.0]: Could not evaluate: Read-only file system @ dir_s_rmdir - /tmp/puppet20171113-3000-1rnlnbb.lock
==> default: Error: /Package[php7.0-mysql]: Could not evaluate: Read-only file system @ dir_s_rmdir - /tmp/puppet20171113-3000-1jusgdv.lock
==> default: Error: /Package[mysql-server]: Could not evaluate: Read-only file system @ dir_s_rmdir - /tmp/puppet20171113-3000-10amet1.lock
==> default: Error: /Package[php-imagick]: Could not evaluate: Read-only file system @ dir_s_rmdir - /tmp/puppet20171113-3000-14n50h8.lock
==> default: Error: /Package[php-mcrypt]: Could not evaluate: Read-only file system @ dir_s_rmdir - /tmp/puppet20171113-3000-eavzfp.lock
==> default: Error: /Package[php-curl]: Could not evaluate: Read-only file system @ dir_s_rmdir - /tmp/puppet20171113-3000-9lkmok.lock
==> default: Error: /Package[apache2]: Could not evaluate: Read-only file system @ dir_s_rmdir - /tmp/puppet20171113-3000-oidh6y.lock
==> default: Notice: /Stage[main]/Apache/File[/etc/apache2/sites-enabled]: Dependency Package[apache2] has failures: true
==> default: Warning: /Stage[main]/Apache/File[/etc/apache2/sites-enabled]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Apache/Exec[a2enmod php7.0]: Dependency Package[apache2] has failures: true
==> default: Warning: /Stage[main]/Apache/Exec[a2enmod php7.0]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Apache/File[/etc/apache2/mods-enabled/rewrite.load]: Dependency Package[apache2] has failures: true
==> default: Warning: /Stage[main]/Apache/File[/etc/apache2/mods-enabled/rewrite.load]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Apache/File[/etc/apache2/sites-available/vagrant_webroot.conf]: Dependency Package[apache2] has failures: true
==> default: Warning: /Stage[main]/Apache/File[/etc/apache2/sites-available/vagrant_webroot.conf]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Apache/Exec[a2dismod mpm_event && a2enmod mpm_prefork]: Dependency Package[apache2] has failures: true
==> default: Warning: /Stage[main]/Apache/Exec[a2dismod mpm_event && a2enmod mpm_prefork]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Apache/File[/etc/apache2/sites-enabled/vagrant_webroot.conf]: Dependency Package[apache2] has failures: true
==> default: Warning: /Stage[main]/Apache/File[/etc/apache2/sites-enabled/vagrant_webroot.conf]: Skipping because of failed dependencies
==> default: Error: Could not set 'directory' on ensure: Read-only file system @ dir_s_mkdir - /etc/mysql/conf.d at 29:/tmp/vagrant-puppet/modules-961959991cb09e9183b4d6ee0fad7346/mysql/manifests/init.pp
==> default: Error: Could not set 'directory' on ensure: Read-only file system @ dir_s_mkdir - /etc/mysql/conf.d at 29:/tmp/vagrant-puppet/modules-961959991cb09e9183b4d6ee0fad7346/mysql/manifests/init.pp
==> default: Wrapped exception:
==> default: Read-only file system @ dir_s_mkdir - /etc/mysql/conf.d
==> default: Error: /Stage[main]/Mysql/File[/etc/mysql/conf.d]/ensure: change from absent to directory failed: Could not set 'directory' on ensure: Read-only file system @ dir_s_mkdir - /etc/mysql/conf.d at 29:/tmp/vagrant-puppet/modules-961959991cb09e9183b4d6ee0fad7346/mysql/manifests/init.pp
==> default: Notice: /Stage[main]/Mysql/File[/etc/mysql/mysql.conf.d/mysqld.crafty.cnf]: Dependency File[/etc/mysql/conf.d] has failures: true
==> default: Warning: /Stage[main]/Mysql/File[/etc/mysql/mysql.conf.d/mysqld.crafty.cnf]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mysql/Service[mysql]: Dependency File[/etc/mysql/conf.d] has failures: true
==> default: Notice: /Stage[main]/Mysql/Service[mysql]: Dependency Package[mysql-server] has failures: true
==> default: Warning: /Stage[main]/Mysql/Service[mysql]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mysql/Exec[set-mysql-password]: Dependency File[/etc/mysql/conf.d] has failures: true
==> default: Notice: /Stage[main]/Mysql/Exec[set-mysql-password]: Dependency Package[mysql-server] has failures: true
==> default: Warning: /Stage[main]/Mysql/Exec[set-mysql-password]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Mysql/Exec[create-database]: Dependency File[/etc/mysql/conf.d] has failures: true
==> default: Notice: /Stage[main]/Mysql/Exec[create-database]: Dependency Package[mysql-server] has failures: true
==> default: Warning: /Stage[main]/Mysql/Exec[create-database]: Skipping because of failed dependencies
==> default: Error: /Package[php7.0-mbstring]: Could not evaluate: Read-only file system @ dir_s_rmdir - /tmp/puppet20171113-3000-a498n0.lock
==> default: Error: /Package[php7.0]: Could not evaluate: Read-only file system @ dir_s_rmdir - /tmp/puppet20171113-3000-1vd0c27.lock
==> default: Notice: /Stage[main]/Apache/Service[apache2]: Dependency Package[apache2] has failures: true
==> default: Notice: /Stage[main]/Apache/Service[apache2]: Dependency Package[php7.0] has failures: true
==> default: Notice: /Stage[main]/Apache/Service[apache2]: Dependency Package[php-imagick] has failures: true
==> default: Notice: /Stage[main]/Apache/Service[apache2]: Dependency Package[php7.0-mbstring] has failures: true
==> default: Notice: /Stage[main]/Apache/Service[apache2]: Dependency Package[php7.0-mysql] has failures: true
==> default: Notice: /Stage[main]/Apache/Service[apache2]: Dependency Package[php-mcrypt] has failures: true
==> default: Notice: /Stage[main]/Apache/Service[apache2]: Dependency Package[php-curl] has failures: true
==> default: Notice: /Stage[main]/Apache/Service[apache2]: Dependency Package[libapache2-mod-php7.0] has failures: true
==> default: Warning: /Stage[main]/Apache/Service[apache2]: Skipping because of failed dependencies
==> default: Error: Failed to apply catalog: Read-only file system @ dir_s_rmdir - /var/lib/puppet/state/state.yaml20171113-3000-zq2nj1.lock
==> default: Error: Could not run command from postrun_command: Read-only file system @ dir_s_rmdir - /tmp/puppet20171113-3000-1pkiil4.lock
==> default: Error: Could not save last run local report: Read-only file system @ dir_s_rmdir - /var/lib/puppet/state/last_run_summary.yaml20171113-3000-68cc8f.lock
==> default: Error: Could not set 'directory' on ensure: Read-only file system @ dir_s_mkdir - /var/lib/puppet/rrd
==> default: Error: Could not set 'directory' on ensure: Read-only file system @ dir_s_mkdir - /var/lib/puppet/rrd
==> default: Wrapped exception:
==> default: Read-only file system @ dir_s_mkdir - /var/lib/puppet/rrd
==> default: Error: /File[/var/lib/puppet/rrd]/ensure: change from absent to directory failed: Could not set 'directory' on ensure: Read-only file system @ dir_s_mkdir - /var/lib/puppet/rrd
==> default: Error: Could not send report: Got 1 failure(s) while initializing: File[/var/lib/puppet/rrd]: change from absent to directory failed: Could not set 'directory' on ensure: Read-only file system @ dir_s_mkdir - /var/lib/puppet/rrd
==> default: [BUG] Bus Error at 0x007f39a47c3120
==> default: ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
==> default:
==> default: -- Machine register context ------------------------------------------------
==> default: RIP: 0x00007f39a47c3120 RBP: 0x00007ffe6255bc00 RSP: 0x00007ffe6255b978
==> default: RAX: 0x00007f39a47c3120 RBX: 0x0000000003a0db40 RCX: 0x0000000000000000
==> default: RDX: 0x0000000000000000 RDI: 0x00007f39a4a1f508 RSI: 0x0000000000000000
==> default: R8: 0x0000000000000000 R9: 0x00007f39ab39c808 R10: 0x00007f39a4a1e000
==> default: R11: 0x00007f39ab00f2d0 R12: 0x00007f39a4a16650 R13: 0x00000000ffffffff
==> default: R14: 0x00007ffe6255b980 R15: 0x0000000000000027 EFL: 0x0000000000010202
==> default:
==> default: -- C level backtrace information -------------------------------------------
==> default: bash: line 4: 3000 Bus error FACTER_user='craft' FACTER_pass='123' FACTER_dbname='craft' puppet apply --modulepath '/tmp/vagrant-puppet/modules-961959991cb09e9183b4d6ee0fad7346:/etc/puppet/modules' --detailed-exitcodes /tmp/vagrant-puppet/manifests-846018e2aa141a5eb79a64b4015fc5f3/default.pp
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Pleeease help, I have no idea what's going on since on my old project crafty vagrant / virtual box and everything works like a charm. :(

PS: I work on high sierra, newest version of virtual box.

@clarknelson
Copy link

clarknelson commented Nov 13, 2017 via email

@MrMchaD
Copy link
Author

MrMchaD commented Nov 13, 2017

Thx for your quick reply. I guess you are more experienced than me and you may be right – haven't looked into the issue for now but managed to fix it on my machine changing this:

config.vm.box = "geerlingguy/ubuntu1604"
config.vm.box_url = "https://app.vagrantup.com/geerlingguy/boxes/ubuntu1604"

in the vagrantfile. Instead i used:

config.vm.box = "boxcutter/ubuntu1604"
config.vm.box_url = "https://vagrantcloud.com/boxcutter/boxes/ubuntu1604"

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

2 participants