radiasoft / zgoubi

Git repo for zgoubi source code
https://sourceforge.net/projects/zgoubi/
GNU General Public License v2.0
9 stars 3 forks source link

Installation via vagrant on macOS fails #41

Closed rouson closed 6 years ago

rouson commented 6 years ago

@robnagler I'm on a new system and attempting to set up the RadiaSoft environment using vagrant on a mac as described in this comment, but getting an error message regarding an unbound variable in the installation script:

$ mkdir v
$ cd v
$ curl radia.run | bash -s vagrant-sirepo-dev
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   312  100   312    0     0   2941      0 --:--:-- --:--:-- --:--:--  2943
Log: /Users/rouson/v/radia-run-install.log
curl -L -s -S https://raw.githubusercontent.com/radiasoft/download/master/installers/vagrant-sirepo-dev/radiasoft-download.sh
Source: /var/tmp/radia-run-22571-10837/20180828161852-radiasoft-download.sh
curl -L -s -S https://raw.githubusercontent.com/radiasoft/download/master/installers/vagrant-dev/radiasoft-download.sh
Source: /var/tmp/radia-run-22571-6789/20180828161852-radiasoft-download.sh
We need access to sudo on your Mac to mount NFS
Password:
Updating plugins: vagrant-persistent-storage. This may take a few minutes...
All plugins are up to date.
Updating plugins: vagrant-vbguest. This may take a few minutes...
All plugins are up to date.
/var/tmp/radia-run-22571-6789/20180828161852-radiasoft-download.sh: line 115: vagrant_dev_no_nfs_src: unbound variable
2018-08-28T23:18:52Z install_main
Unexpected error; Install failed.
If you don't know what to do, please contact support@radiasoft.net.
robnagler commented 6 years ago

@rouson Sorry about that, please try again.

The installers are in a state of transition so you may find other bugs.

robnagler commented 6 years ago

@rouson I testing a new structure to the installer that is rpm-based. It will be faster and much smaller. If you wait a day, it should be ready.

robnagler commented 6 years ago

We have a new installer that seems to work. Try again and let us know

rouson commented 6 years ago

This still doesn't work for me.

robnagler commented 6 years ago

Can you past the last few lines that possibly include the error message?

rouson commented 6 years ago

The output first differs from the first comment in this issue right after the second "All plugins are update to date.":

Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* The host path of the shared folder is missing: /Users/rouson/src

2018-09-26T19:42:46Z install_main
Unexpected error; Install failed.
If you don't know what to do, please contact support@radiasoft.net.
robnagler commented 6 years ago

Can you mkdir ~/src/ on your Mac? This is where files will be loaded, and since it doesn't exist now, should be fine to add.

rouson commented 6 years ago

@robnagler I tried mkdir ~/src/, followed again by the steps in the first comment on this issue. The output is the same until such after the second All plugins are up to date., after which the output is as follows:

2018-10-02T22:06:47Z install_main
Unexpected error; Install failed.
If you don't know what to do, please contact support@radiasoft.net.
robnagler commented 6 years ago

Can you try:

curl radia.run | bash -s debug vagrant-sirepo-dev

It will be a lot of output, but show me the last 100 or so lines.

rouson commented 6 years ago

Here's the output starting from right after the second occurrence of All plugins are up to date.:

+++ vagrant_dev_vdi_delete /Users/rouson/v/v-docker.vdi
+++ local vdi=/Users/rouson/v/v-docker.vdi
+++ [[ ! -e /Users/rouson/v/v-docker.vdi ]]
+++ return
+++ [[ ! -n '' ]]
+++ vagrant_dev_vagrantfile fedora v.radia.run 10.10.10.10 /Users/rouson/v/v-docker.vdi 1
+++ local os=fedora host=v.radia.run ip=10.10.10.10 vdi=/Users/rouson/v/v-docker.vdi first=1
+++ local vbguest= timesync=
+++ [[ -n 1 ]]
+++ vbguest='config.vbguest.auto_update = false'
+++ local box=fedora
+++ [[ fedora =~ fedora ]]
+++ [[ fedora == fedora ]]
+++ box=fedora/27-cloud-base
++++ vagrant_dev_mounts
++++ [[ -n '' ]]
++++ res=('config.vm.synced_folder ".", "/vagrant", type: "nfs", mount_options: ["rw", "vers=3", "tcp", "nolock", "fsc", "actimeo=2"]')
++++ local res
++++ [[ ! -n '' ]]
++++ res+=('config.vm.synced_folder "'"$HOME/src"'", "/home/vagrant/src", type: "nfs", mount_options: ["rw", "vers=3", "tcp", "nolock", "fsc", "actimeo=2"]')
++++ local 'IFS=
    '
++++ echo 'config.vm.synced_folder ".", "/vagrant", type: "nfs", mount_options: ["rw", "vers=3", "tcp", "nolock", "fsc", "actimeo=2"]
config.vm.synced_folder "/Users/rouson/src", "/home/vagrant/src", type: "nfs", mount_options: ["rw", "vers=3", "tcp", "nolock", "fsc", "actimeo=2"]'
+++ local 'mounts=config.vm.synced_folder ".", "/vagrant", type: "nfs", mount_options: ["rw", "vers=3", "tcp", "nolock", "fsc", "actimeo=2"]
config.vm.synced_folder "/Users/rouson/src", "/home/vagrant/src", type: "nfs", mount_options: ["rw", "vers=3", "tcp", "nolock", "fsc", "actimeo=2"]'
+++ local persistent_storage=
+++ [[ ! -n '' ]]
+++ IFS=
+++ read -r -d '' persistent_storage
+ install_err_trap
+ set +e
+ trap - EXIT
+ [[ -z 1 ]]
+ install_log 'Error trap'
++ date -u +%Y-%m-%dT%H:%M:%SZ
+ echo 2018-10-03T17:03:44Z 'Error trap'
+ [[ -n 1 ]]
+ install_msg 'Error trap'
+ echo 'Error trap'
Error trap
+ install_err 'Unexpected error; Install failed.'
+ trap - EXIT
+ [[ -n Unexpected error; Install failed. ]]
+ install_msg 'Unexpected error; Install failed.
If you don'\''t know what to do, please contact support@radiasoft.net.'
+ echo 'Unexpected error; Install failed.
If you don'\''t know what to do, please contact support@radiasoft.net.'
Unexpected error; Install failed.
If you don't know what to do, please contact support@radiasoft.net.
+ [[ -z 1 ]]
+ exit 1
robnagler commented 6 years ago

Please try again without debug. This was a bug introduced this week.

rouson commented 6 years ago

@robnagler Success! Thanks.