This repository was archived by the owner on Dec 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 112
This repository was archived by the owner on Dec 5, 2022. It is now read-only.
Found a strange workaround Mounting NFS shared folders not working. Need a better one. #189
Copy link
Copy link
Closed
Labels
Description
Intro
I am using vagrant cachier
plugin. It gets stuck at Mounting NFS shared folder when I do a vagrant up
and displays an error message. If I do a vagrant up
again It works.
I am looking for a better solution than this
Output
deep@deep-HP-Pavilion-Notebook:~/cachier_jugaad$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/bionic64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/bionic64' is up to date...
==> default: A newer version of the box 'ubuntu/bionic64' for provider 'virtualbox' is
==> default: available! You currently have version '20180627.0.0'. The latest is version
==> default: '20180630.0.0'. Run `vagrant box update` to update.
==> default: Setting the name of the VM: cachier_jugaad_default_1530880126674_18100
==> default: Fixed port collision for 22 => 2222. Now on port 2201.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 (guest) => 2201 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2201
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection reset. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Connection reset. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Connection reset. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Connection reset. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Connection reset. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Connection reset. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Connection reset. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Connection reset. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Connection reset. Retrying...
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> 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...
[sudo] password for deep:
==> 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,rw,vers=3,tcp,nolock 10.0.2.1:/home/deep/.vagrant.d/cache/ubuntu/bionic64 /tmp/vagrant-cache
Stdout from the command:
Stderr from the command:
mount.nfs: Connection timed out
deep@deep-HP-Pavilion-Notebook:~/cachier_jugaad$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ubuntu/bionic64' is up to date...
==> default: Configuring cache buckets...
==> default: Running provisioner: shell...
default: Running: /tmp/vagrant-shell20180706-9803-1jldzyj.sh
default: uid=0(root) gid=0(root) groups=0(root)
default:
default: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
default: Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
default: Hit:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
default: Hit:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
default: Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
default: Reading package lists...
default: Building dependency tree...
default:
default: Reading state information...
default: 8 packages can be upgraded. Run 'apt list --upgradable' to see them.
default: WARNING:
default: apt
default:
default: does not have a stable CLI interface.
default: Use with caution in scripts.
default: Reading package lists...
default: Building dependency tree...
default: Reading state information...
default: The following additional packages will be installed:
default: apache2-bin apache2-data apache2-utils libapr1 libaprutil1
default: libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0 ssl-cert
default: Suggested packages:
default: www-browser apache2-doc apache2-suexec-pristine | apache2-suexec-custom
default: openssl-blacklist
default: The following NEW packages will be installed:
default: apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1
default: libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0 ssl-cert
default: 0 upgraded, 10 newly installed, 0 to remove and 8 not upgraded.
default: Need to get 1729 kB of archives.
default: After this operation, 6978 kB of additional disk space will be used.
default: Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 libapr1 amd64 1.6.3-2 [90.9 kB]
default: Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libaprutil1 amd64 1.6.1-2 [84.4 kB]
default: Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.1-2 [10.6 kB]
default: Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 libaprutil1-ldap amd64 1.6.1-2 [8764 B]
default: Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 liblua5.2-0 amd64 5.2.4-1.1build1 [108 kB]
default: Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 apache2-bin amd64 2.4.29-1ubuntu4.2 [1071 kB]
default: Get:7 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 apache2-utils amd64 2.4.29-1ubuntu4.2 [83.5 kB]
default: Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 apache2-data all 2.4.29-1ubuntu4.2 [160 kB]
default: Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 apache2 amd64 2.4.29-1ubuntu4.2 [95.1 kB]
default: Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 ssl-cert all 1.0.39 [17.0 kB]
default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
default: Fetched 1729 kB in 4s (475 kB/s)
default: Selecting previously unselected package libapr1:amd64.
default: (Reading database ...
(Reading database ... 55%abase ... 5%
default: (Reading database ... 60%
default: (Reading database ... 65%
default: (Reading database ... 70%
default: (Reading database ... 75%
default: (Reading database ... 80%
default: (Reading database ... 85%
default: (Reading database ... 90%
default: (Reading database ... 95%
(Reading database ... 59751 files and directories currently installed.)
default: Preparing to unpack .../0-libapr1_1.6.3-2_amd64.deb ...
default: Unpacking libapr1:amd64 (1.6.3-2) ...
default: Selecting previously unselected package libaprutil1:amd64.
default: Preparing to unpack .../1-libaprutil1_1.6.1-2_amd64.deb ...
default: Unpacking libaprutil1:amd64 (1.6.1-2) ...
default: Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
default: Preparing to unpack .../2-libaprutil1-dbd-sqlite3_1.6.1-2_amd64.deb ...
default: Unpacking libaprutil1-dbd-sqlite3:amd64 (1.6.1-2) ...
default: Selecting previously unselected package libaprutil1-ldap:amd64.
default: Preparing to unpack .../3-libaprutil1-ldap_1.6.1-2_amd64.deb ...
default: Unpacking libaprutil1-ldap:amd64 (1.6.1-2) ...
default: Selecting previously unselected package liblua5.2-0:amd64.
default: Preparing to unpack .../4-liblua5.2-0_5.2.4-1.1build1_amd64.deb ...
default: Unpacking liblua5.2-0:amd64 (5.2.4-1.1build1) ...
default: Selecting previously unselected package apache2-bin.
default: Preparing to unpack .../5-apache2-bin_2.4.29-1ubuntu4.2_amd64.deb ...
default: Unpacking apache2-bin (2.4.29-1ubuntu4.2) ...
default: Selecting previously unselected package apache2-utils.
default: Preparing to unpack .../6-apache2-utils_2.4.29-1ubuntu4.2_amd64.deb ...
default: Unpacking apache2-utils (2.4.29-1ubuntu4.2) ...
default: Selecting previously unselected package apache2-data.
default: Preparing to unpack .../7-apache2-data_2.4.29-1ubuntu4.2_all.deb ...
default: Unpacking apache2-data (2.4.29-1ubuntu4.2) ...
default: Selecting previously unselected package apache2.
default: Preparing to unpack .../8-apache2_2.4.29-1ubuntu4.2_amd64.deb ...
default: Unpacking apache2 (2.4.29-1ubuntu4.2) ...
default: Selecting previously unselected package ssl-cert.
default: Preparing to unpack .../9-ssl-cert_1.0.39_all.deb ...
default: Unpacking ssl-cert (1.0.39) ...
default: Setting up libapr1:amd64 (1.6.3-2) ...
default: Processing triggers for ufw (0.35-5) ...
default: Processing triggers for ureadahead (0.100.0-20) ...
default: Setting up apache2-data (2.4.29-1ubuntu4.2) ...
default: Setting up ssl-cert (1.0.39) ...
default: Processing triggers for libc-bin (2.27-3ubuntu1) ...
default: Setting up libaprutil1:amd64 (1.6.1-2) ...
default: Processing triggers for systemd (237-3ubuntu10) ...
default: Processing triggers for man-db (2.8.3-2) ...
default: Setting up liblua5.2-0:amd64 (5.2.4-1.1build1) ...
default: Setting up libaprutil1-ldap:amd64 (1.6.1-2) ...
default: Setting up libaprutil1-dbd-sqlite3:amd64 (1.6.1-2) ...
default: Setting up apache2-utils (2.4.29-1ubuntu4.2) ...
default: Setting up apache2-bin (2.4.29-1ubuntu4.2) ...
default: Setting up apache2 (2.4.29-1ubuntu4.2) ...
default: Enabling module mpm_event.
default: Enabling module authz_core.
default: Enabling module authz_host.
default: Enabling module authn_core.
default: Enabling module auth_basic.
default: Enabling module access_compat.
default: Enabling module authn_file.
default: Enabling module authz_user.
default: Enabling module alias.
default: Enabling module dir.
default: Enabling module autoindex.
default: Enabling module env.
default: Enabling module mime.
default: Enabling module negotiation.
default: Enabling module setenvif.
default: Enabling module filter.
default: Enabling module deflate.
default: Enabling module status.
default: Enabling module reqtimeout.
default: Enabling conf charset.
default: Enabling conf localized-error-pages.
default: Enabling conf other-vhosts-access-log.
default: Enabling conf security.
default: Enabling conf serve-cgi-bin.
default: Enabling site 000-default.
default: Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service → /lib/systemd/system/apache2.service.
default: Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → /lib/systemd/system/apache-htcacheclean.service.
default: Processing triggers for libc-bin (2.27-3ubuntu1) ...
default: Processing triggers for ureadahead (0.100.0-20) ...
default: Processing triggers for systemd (237-3ubuntu10) ...
default: Processing triggers for ufw (0.35-5) ...
==> default: Configuring cache buckets...
Vagrantfile and provision script
https://github.com/d78ui98/cachier_jugaad
Vagrant version
Vagrant 2.1.2
other important details
- Tried switching from nfsv3 to nfs4 or inverse didnt work
- firewall is turned off
- nfs service is running
- If I do a
exportfs
then I can see the.vagrant.d/cache
path and private network address