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

Further vagrant up issues #725

Closed
brainstorm opened this issue Jul 12, 2014 · 4 comments
Closed

Further vagrant up issues #725

brainstorm opened this issue Jul 12, 2014 · 4 comments
Labels
Type: Bug a defect

Comments

@brainstorm
Copy link

Opening an issue on its own, sorry for the duplication on issue #18.

==> default: Invalid Glassfish directory !
==> default: Enter the root directory of your Glassfish installation:
==> default: (Or ctrl-C to exit the installer):
==> default: Invalid Glassfish directory !
==> default: Enter the root directory of your
==> default: p at ./install line 751.
==> default: Use of uninitialized value $glassfish_dir in concatenation (.) or string at ./install line 751.
==> default: Use of uninitialized value $glassfish_dir in concatenation (.) or string at ./install line 746.
==> default: Use of uninitialized value $glassfish_dir in scalar chop at ./install line 751.
==> default: Use of uninitialized value $glassfish_dir in concatenation (.) or string at ./install line 751.
==> default: Use of uninitialized value $glassfish_dir in concatenation (.) or string at ./install line 746.
==> default: Use of uninitialized value $glassfish_dir in scalar chop at ./install line 751.
==> default: Use of uninitialized value $glassfish_dir in concatenation (.) or string at ./install line 751.
==> default: Use of uninitialized value $glassfish_dir in concatenation (.) or string at ./install line 746.

(...)

==> default: Use of uninitialized value $glassfish_dir in concatenation (.) or string at ./install line 746.
==> default: Use of uninitialized value $glassfish_dir in scalar chop at ./install line 751.
==> default: Use of uninitialized value $glassfish_dir in concatenation (.) or string at ./install line 751.
==> default: Use of
==> default: Forcing shutdown of VM...
==> default: Destroying VM and associated drives...
==> default: Running cleanup tasks for 'shell' provisioner...
==> default: Running cleanup tasks for 'shell' provisioner...
==> default: Running cleanup tasks for 'shell' provisioner...
==> default: Running cleanup tasks for 'shell' provisioner...
/Applications/Vagrant/embedded/gems/gems/net-ssh-2.9.1/lib/net/ssh/buffered_io.rb:99:in `send': Broken pipe - send(2) (Errno::EPIPE)
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.9.1/lib/net/ssh/buffered_io.rb:99:in `send_pending'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:244:in `block in postprocess'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:243:in `each'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:243:in `postprocess'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:211:in `process'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:169:in `block in loop'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:169:in `loop'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:169:in `loop'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.9.1/lib/net/ssh/connection/channel.rb:269:in `wait'
@pdurbin
Copy link
Member

pdurbin commented Jul 14, 2014

If you look at commits 294006e and 3954228 you'll see that I'm trying to document the fact that the Vagrant environment currently requires a one-time "download Glassfish and Solr" script to be run. Does that help?

@brainstorm
Copy link
Author

Hummm, I should check it closely, but couldn't those scripts be called from the deployment/Vagrantfile instead? Automation >>> Documentation ;)

@pdurbin
Copy link
Member

pdurbin commented Jul 23, 2014

couldn't those scripts be called from the deployment/Vagrantfile instead

Oh, probably. It would have prevented #765.

@pdurbin
Copy link
Member

pdurbin commented Jul 24, 2014

couldn't those scripts be called from the deployment/Vagrantfile instead

For now I'd prefer that people be conscious of the dependencies they're downloading. Hopefully, they've already read "Please note that before running vagrant up for the first time, you'll need to ensure that required software (GlassFish, Solr, etc.) is available within Vagrant. If you type cd downloads and ./download.sh the software should be properly downloaded." at https://github.com/IQSS/dataverse/blob/master/doc/Sphinx/source/Developers/tools.rst#vagrant

If not, now Vagrant exits early and explains what to do:

Couldn't find /dataverse/downloads/glassfish-4.0.zip! Please run the script in the
"downloads" directory followed by "vagrant destroy". Then try "vagrant up" again.

murphy:dataverse pdurbin$ cd downloads
murphy:downloads pdurbin$ ./download.sh 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 97.4M  100 97.4M    0     0  1327k      0  0:01:15  0:01:15 --:--:-- 1342k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  132M  100  132M    0     0  1634k      0  0:01:22  0:01:22 --:--:-- 1261k
murphy:downloads pdurbin$ cd ..
murphy:dataverse pdurbin$ vagrant destroy
MAIL_SERVER environment variable not specified. Using localhost by default.
To specify it in bash: export MAIL_SERVER=localhost
    default: Are you sure you want to destroy the 'default' VM? [y/N] y
==> default: Forcing shutdown of VM...
==> default: Destroying VM and associated drives...
==> default: Running cleanup tasks for 'shell' provisioner...
==> default: Running cleanup tasks for 'shell' provisioner...
==> default: Running cleanup tasks for 'shell' provisioner...
==> default: Running cleanup tasks for 'shell' provisioner...
murphy:dataverse pdurbin$ vagrant up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug a defect
Projects
None yet
Development

No branches or pull requests

2 participants