Errors with NFS mounting
Closed this issue · 7 comments
When i'm running vagrant up
i'm getting some errors regarding NFS. I've noticed that the VM is actually online however navigating to localhost.wealthbot.io fails.
The installation guide lacks some information such as installing VB Guest installation required or building vagrant init files. It would be nice to have more details(maybe I'll submit a PR over the enxt few days once i get things working).
Whats really interesting is that the /etc/exports/
file is referencing my /documents/github/
where wealthbot is cloned in a dir called /documents/github/wealthbot/'
. I've tried editing the /etc/exports/
file, however vagrant reload just adds in a new set of data referencing /github/
Any tips on what to do? Heres the last few lines of my console after running vagrant up
:
Installing the Window System drivers
Could not find the X.Org or XFree86 Window System, skipping.
An error occurred during installation of VirtualBox Guest Additions 4.3.28. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
stdin: is not a tty
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Installing NFS client...
==> default: Exporting NFS shared folders...
==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
==> default: Mounting NFS shared folders...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -o 'vers=3,udp' 192.168.56.1:'/Users/[username]/Documents/github' /mnt/vagrant-vflsf_nb53dgqvqvmw
Stdout from the command:
Stderr from the command:
stdin: is not a tty
mount.nfs: access denied by server while mounting 192.168.56.1:/Users/[username]/Documents/github
OK i resolved this issue by deleting the /etc/exports/
file. This defienitely got me farther along.
I got to the end, and am seeing the double elephants, and wall of green text for "READ ABOVE!"
however now when i navigate to localhost.wealthbot.io
i only see `"Index of"' then three 4 separate columns stating "Name" "Last modified" "Size" and "Description".
Any ideas on why wealthbot isn't spinning up?
looks like your webserver isn't serving up webo page, but just a directory of files (or empty directory)
it seems like your host os is OSX... if so, what is the exact version you are running?
also, have you installed the nfs plugin?
vagrant plugin install vagrant-bindfs
unfortunately it seems like a deeper issue with vagrant/os, here are some references:
hashicorp/vagrant#1941
simonswine/vagrant-hanewin-nfs#1
if you could provide some additional info, i would really like to try to help, but my knowledge in this area might be limited..
also, join our slack chat, maybe someone there will have the right knowledge about this issue.
https://webo-slack.herokuapp.com/
typically (and i've done this a "handful" of times) all you really have to do is
- clone the repo
- cd into vagrant dir
- install the nfs plugin as above
- run vagrant up
- wait quite a while while all the necessary packages are downloaded and provisioned.
- vagrant ssh to get into your virtual server
- you may edit /etc/hosts file to point your server to something like local.wealthbot.io (you can also access it by ip directly).
the default ip is set here:
https://github.com/wealthbot-io/wealthbot/blob/master/vagrant/puphpet/config.yaml#L11
(i guess it would also be important that this ip is not used by another device on your local network... if so, please change it from default .105 to any other reasonable number like .125)
hth
So i decided to remove VBox, and Vagrant and start fresh.
I've made it a bit farther however i'm getting some new errors when navigating to the app.
( ! ) Warning: require(/srv/wealthbot/app/../vendor/autoload.php): failed to open stream: No such file or directory in /srv/wealthbot/app/autoload.php on line 6
Call Stack
Time Memory Function Location
1 0.0001 236040 {main}( ) .../app_dev.php:0
2 0.0006 236472 require_once( '/srv/wealthbot/app/autoload.php' ) .../app_dev.php:29
( ! ) Fatal error: require(): Failed opening required '/srv/wealthbot/app/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/wealthbot/app/autoload.php on line 6
Call Stack
Time Memory Function Location
1 0.0001 236040 {main}( ) .../app_dev.php:0
2 0.0006 236472 require_once( '/srv/wealthbot/app/autoload.php' ) .../app_dev.php:29
Here is from my terminal:
==> default: Running provisioner: shell...
default: Running: /var/folders/s2/q4ngh3j92tb0j7jfyh1msxmm0000gp/T/vagrant-shell20150708-8602-1hmlszv.sh
==> default: stdin: is not a tty
==> default: Running files in files/exec-once
==> default: Created file /.puphpet-stuff/exec-once-ran
==> default: .... disable default vhost 80 ....
==> default: Site 10-default_vhost_80 disabled.
==> default: To activate the new configuration, you need to run:
==> default: service apache2 reload
==> default: .... disable default vhost 443 ....
==> default: Site 10-default_vhost_443 disabled.
==> default: To activate the new configuration, you need to run:
==> default: service apache2 reload
==> default: * Reloading web server apache2
==> default: *
==> default: Loading composer repositories with package information
==> default: Updating dependencies (including require-dev)
==> default: Your requirements could not be resolved to an installable set of packages.
==> default:
==> default: Problem 1
==> default: - jms/security-extra-bundle 1.2.0 requires jms/metadata 1.1.* -> satisfiable by jms/metadata[1.1.1].
==> default: - jms/security-extra-bundle 1.2.0-RC requires jms/metadata 1.1.* -> satisfiable by jms/metadata[1.1.1].
==> default: - jms/security-extra-bundle 1.2.x-dev requires jms/metadata 1.1.* -> satisfiable by jms/metadata[1.1.1].
==> default: - Conclusion: don't install jms/metadata 1.1.1
==> default: - Installation request for jms/security-extra-bundle 1.2.* -> satisfiable by jms/security-extra-bundle[1.2.0, 1.2.0-RC, 1.2.x-dev].
==> default: .... creating mongo user webo ....
==> default: MongoDB shell version: 2.4.14
==> default: connecting to: test
==> default: connection to 127.0.0.1
==> default: wealthbot
==> default: {
==> default: "user" : "webo",
==> default: "pwd" : "c84a31f9d0eed2a85f71adbb6fc8cc0e",
==> default: "roles" : [
==> default: "readWrite"
==> default: ],
==> default: "_id" : ObjectId("559d9ea627e2ec2482aa3da7")
==> default: }
==> default: bye
==> default: MongoDB shell version: 2.4.14
==> default: connecting to: test
==> default: connection to 127.0.0.1
==> default: wealthbot_test
==> default: {
==> default: "user" : "webo",
==> default: "pwd" : "c84a31f9d0eed2a85f71adbb6fc8cc0e",
==> default: "roles" : [
==> default: "readWrite"
==> default: ],
==> default: "_id" : ObjectId("559d9ea69a5a81a3b22ee92e")
==> default: }
==> default: bye
==> default: PHP Warning: require_once(/srv/wealthbot/app/bootstrap.php.cache): failed to open stream: No such file or directory in /srv/wealthbot/app/console on line 10
==> default: PHP Stack trace:
==> default: PHP 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP Fatal error: require_once(): Failed opening required '/srv/wealthbot/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/wealthbot/app/console on line 10
==> default: PHP Stack trace:
==> default:
==> default: Warning: require_once(/srv/wealthbot/app/bootstrap.php.cache): failed to open stream: No such file or directory in /srv/wealthbot/app/console on line 10
==> default:
==> default: Call Stack:
==> default: 0.0005 228960 1. {main}() /srv/wealthbot/app/console:0
==> default:
==> default:
==> default: Fatal error: require_once(): Failed opening required '/srv/wealthbot/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/wealthbot/app/console on line 10
==> default:
==> default: Call Stack:
==> default: 0.0005 228960 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP Warning: require_once(/srv/wealthbot/app/bootstrap.php.cache): failed to open stream: No such file or directory in /srv/wealthbot/app/console on line 10
==> default: PHP Stack trace:
==> default: PHP 1. {main}() /srv/wealthbot/app/console:0
==> default:
==> default: Warning: require_once(/srv/wealthbot/app/bootstrap.php.cache): failed to open stream: No such file or directory in /srv/wealthbot/app/console on line 10
==> default:
==> default: Call Stack:
==> default: 0.0005 228960 1. {main}() /srv/wealthbot/app/console:0
==> default:
==> default: Fatal error: require_once(): Failed opening required '/srv/wealthbot/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/wealthbot/app/console on line 10
==> default:
==> default: Call Stack:
==> default: 0.0005 228960 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP Fatal error: require_once(): Failed opening required '/srv/wealthbot/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/wealthbot/app/console on line 10
==> default: PHP Stack trace:
==> default: PHP 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP Warning: require_once(/srv/wealthbot/app/bootstrap.php.cache): failed to open stream: No such file or directory in /srv/wealthbot/app/console on line 10
==> default: PHP Stack trace:
==> default: PHP 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP Fatal error: require_once(): Failed opening required '/srv/wealthbot/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/wealthbot/app/console on line 10
==> default: PHP Stack trace:
==> default:
==> default: Warning: require_once(/srv/wealthbot/app/bootstrap.php.cache): failed to open stream: No such file or directory in /srv/wealthbot/app/console on line 10
==> default:
==> default: Call Stack:
==> default: 0.0004 228800 1. {main}() /srv/wealthbot/app/console:0
==> default:
==> default:
==> default: Fatal error: require_once(): Failed opening required '/srv/wealthbot/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/wealthbot/app/console on line 10
==> default:
==> default: Call Stack:
==> default: 0.0004 228800 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP Warning: require_once(/srv/wealthbot/app/bootstrap.php.cache): failed to open stream: No such file or directory in /srv/wealthbot/app/console on line 10
==> default: PHP Stack trace:
==> default: PHP 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP Fatal error: require_once(): Failed opening required '/srv/wealthbot/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/wealthbot/app/console on line 10
==> default: PHP Stack trace:
==> default:
==> default: Warning: require_once(/srv/wealthbot/app/bootstrap.php.cache): failed to open stream: No such file or directory in /srv/wealthbot/app/console on line 10
==> default:
==> default: Call Stack:
==> default: 0.0004 228640 1. {main}() /srv/wealthbot/app/console:0
==> default:
==> default:
==> default: Fatal error: require_once(): Failed opening required '/srv/wealthbot/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/wealthbot/app/console on line 10
==> default:
==> default: Call Stack:
==> default: 0.0004 228640 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP Warning: require_once(/srv/wealthbot/app/bootstrap.php.cache): failed to open stream: No such file or directory in /srv/wealthbot/app/console on line 10
==> default: PHP Stack trace:
==> default: PHP 1. {main}() /srv/wealthbot/app/console:0
==> default:
==> default: Warning: require_once(/srv/wealthbot/app/bootstrap.php.cache): failed to open stream: No such file or directory in /srv/wealthbot/app/console on line 10
==> default:
==> default: Call Stack:
==> default: 0.0004 228632 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP Fatal error: require_once(): Failed opening required '/srv/wealthbot/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/wealthbot/app/console on line 10
==> default: PHP Stack trace:
==> default: PHP 1. {main}() /srv/wealthbot/app/console:0
==> default:
==> default: Fatal error: require_once(): Failed opening required '/srv/wealthbot/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/wealthbot/app/console on line 10
==> default:
==> default: Call Stack:
==> default: 0.0004 228632 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP Warning: require_once(/srv/wealthbot/app/bootstrap.php.cache): failed to open stream: No such file or directory in /srv/wealthbot/app/console on line 10
==> default: PHP Stack trace:
==> default: PHP 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP Fatal error: require_once(): Failed opening required '/srv/wealthbot/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/wealthbot/app/console on line 10
==> default: PHP Stack trace:
==> default:
==> default: Warning: require_once(/srv/wealthbot/app/bootstrap.php.cache): failed to open stream: No such file or directory in /srv/wealthbot/app/console on line 10
==> default:
==> default: Call Stack:
==> default: 0.0004 228632 1. {main}() /srv/wealthbot/app/console:0
==> default:
==> default:
==> default: Fatal error: require_once(): Failed opening required '/srv/wealthbot/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/wealthbot/app/console on line 10
==> default:
==> default: Call Stack:
==> default: 0.0004 228632 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP 1. {main}() /srv/wealthbot/app/console:0
==> default: .... warming up cache ....
==> default: PHP Warning: require_once(/srv/wealthbot/app/bootstrap.php.cache): failed to open stream: No such file or directory in /srv/wealthbot/app/console on line 10
==> default: PHP Stack trace:
==> default: PHP 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP Fatal error: require_once(): Failed opening required '/srv/wealthbot/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/wealthbot/app/console on line 10
==> default: PHP Stack trace:
==> default:
==> default: Warning: require_once(/srv/wealthbot/app/bootstrap.php.cache): failed to open stream: No such file or directory in /srv/wealthbot/app/console on line 10
==> default:
==> default: Call Stack:
==> default: 0.0005 228792 1. {main}() /srv/wealthbot/app/console:0
==> default:
==> default:
==> default: Fatal error: require_once(): Failed opening required '/srv/wealthbot/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/wealthbot/app/console on line 10
==> default:
==> default: Call Stack:
==> default: 0.0005 228792 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP Warning: require_once(/srv/wealthbot/app/bootstrap.php.cache): failed to open stream: No such file or directory in /srv/wealthbot/app/console on line 10
==> default: PHP Stack trace:
==> default: PHP 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP Fatal error: require_once(): Failed opening required '/srv/wealthbot/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/wealthbot/app/console on line 10
==> default: PHP Stack trace:
==> default:
==> default: Warning: require_once(/srv/wealthbot/app/bootstrap.php.cache): failed to open stream: No such file or directory in /srv/wealthbot/app/console on line 10
==> default:
==> default: Call Stack:
==> default: 0.0006 228792 1. {main}() /srv/wealthbot/app/console:0
==> default:
==> default:
==> default: Fatal error: require_once(): Failed opening required '/srv/wealthbot/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/wealthbot/app/console on line 10
==> default:
==> default: Call Stack:
==> default: 0.0006 228792 1. {main}() /srv/wealthbot/app/console:0
==> default: PHP 1. {main}() /srv/wealthbot/app/console:0
==> default: Finished running files in files/exec-once
==> default: To run again, delete hashes you want rerun in /.puphpet-stuff/exec-once-ran or the whole file to rerun all
==> default: Running files in files/exec-always
==> default: Finished running files in files/exec-always
==> default: Running provisioner: shell...
default: Running: /var/folders/s2/q4ngh3j92tb0j7jfyh1msxmm0000gp/T/vagrant-shell20150708-8602-1tltzb1.sh
==> default: stdin: is not a tty
==> default: Running files in files/startup-once
==> default: Created file /.puphpet-stuff/startup-once-ran
==> default: Finished running files in files/startup-once
==> default: To run again, delete hashes you want rerun in /.puphpet-stuff/startup-once-ran or the whole file to rerun all
==> default: Running files in files/startup-always
==> default: Finished running files in files/startup-always
==> default: Running provisioner: shell...
default: Running: /var/folders/s2/q4ngh3j92tb0j7jfyh1msxmm0000gp/T/vagrant-shell20150708-8602-166ln9h.sh
==> default: Running files in files/exec-once-unprivileged
==> default: Created file /.puphpet-stuff/exec-once-unprivileged-ran
==> default: Finished running files in files/exec-once-unprivileged
==> default: To run again, delete hashes you want rerun in /.puphpet-stuff/exec-once-unprivileged-ran or the whole file to rerun all
==> default: Running files in files/exec-always-unprivileged
==> default: Finished running files in files/exec-always-unprivileged
==> default: Running provisioner: shell...
default: Running: /var/folders/s2/q4ngh3j92tb0j7jfyh1msxmm0000gp/T/vagrant-shell20150708-8602-9u8ymt.sh
==> default: Running files in files/startup-once-unprivileged
==> default: Created file /.puphpet-stuff/startup-once-unprivileged-ran
==> default: Finished running files in files/startup-once-unprivileged
==> default: To run again, delete hashes you want rerun in /.puphpet-stuff/startup-once-unprivileged-ran or the whole file to rerun all
==> default: Running files in files/startup-always-unprivileged
==> default: Finished running files in files/startup-always-unprivileged
==> default: Running provisioner: shell...
default: Running: /var/folders/s2/q4ngh3j92tb0j7jfyh1msxmm0000gp/T/vagrant-shell20150708-8602-4ufgu7.sh
==> default: stdin: is not a tty
thank you. this is an issue with composer update command, which is executed here:
https://github.com/wealthbot-io/wealthbot/blob/master/vagrant/puphpet/files/exec-once/webo_setup.sh
now, why does it fail with those dependencies, this i cannot say at the moment.. but will investigate further.
When i get off work today i can investigate it on my end to see if i can figure it out.
Thanks for looking into vlad-ko
Any update on this @vlad-ko? I took a look but couldn't figure out for the life of me.
i got it work on my latest master. i removed one composer.json entry (but i'm not sure if that matters).
try these commands:
$composer clear-cache
$composer install --prefer-source --no-interaction
(i pasted screenshot in slack of composer running successfully)