Yesterday i found out an error when i tried to start my vagrant. It’s related to ruby script resolv.rb. Here’s the full error detail :
[kifni@ARCHMERGEX250 www]$ vagrant up #<Thread:0x0000557f62180b00@/opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/util/checkpoint_client.rb:76 run> terminated with exception (report_on_exception is true): Traceback (most recent call last): 2605: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/util/checkpoint_client.rb:78:in `block in check' 2604: from /opt/vagrant/embedded/gems/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint.rb:91:in `check' 2603: from /usr/lib/ruby/2.5.0/net/http.rb:1213:in `get' 2602: from /usr/lib/ruby/2.5.0/net/http.rb:1455:in `request' 2601: from /usr/lib/ruby/2.5.0/net/http.rb:909:in `start' 2600: from /usr/lib/ruby/2.5.0/net/http.rb:920:in `do_start' 2599: from /usr/lib/ruby/2.5.0/net/http.rb:935:in `connect' 2598: from /usr/lib/ruby/2.5.0/timeout.rb:103:in `timeout' ... 2593 levels... 4: from /usr/lib/ruby/2.5.0/resolv.rb:1462:in `put_name' 3: from /usr/lib/ruby/2.5.0/resolv.rb:1466:in `put_labels' 2: from /usr/lib/ruby/2.5.0/resolv.rb:1466:in `each_index' 1: from /usr/lib/ruby/2.5.0/resolv.rb:1473:in `block in put_labels' /usr/lib/ruby/2.5.0/resolv.rb:1473:in `hash': stack level too deep (SystemStackError) Traceback (most recent call last): 2605: from /opt/vagrant/embedded/gems/gems/vagrant-2.0.2/lib/vagrant/util/checkpoint_client.rb:78:in `block in check' 2604: from /opt/vagrant/embedded/gems/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint.rb:91:in `check' 2603: from /usr/lib/ruby/2.5.0/net/http.rb:1213:in `get' 2602: from /usr/lib/ruby/2.5.0/net/http.rb:1455:in `request' 2601: from /usr/lib/ruby/2.5.0/net/http.rb:909:in `start' 2600: from /usr/lib/ruby/2.5.0/net/http.rb:920:in `do_start' 2599: from /usr/lib/ruby/2.5.0/net/http.rb:935:in `connect' 2598: from /usr/lib/ruby/2.5.0/timeout.rb:103:in `timeout' ... 2593 levels... 4: from /usr/lib/ruby/2.5.0/resolv.rb:1462:in `put_name' 3: from /usr/lib/ruby/2.5.0/resolv.rb:1466:in `put_labels' 2: from /usr/lib/ruby/2.5.0/resolv.rb:1466:in `each_index' 1: from /usr/lib/ruby/2.5.0/resolv.rb:1473:in `block in put_labels' /usr/lib/ruby/2.5.0/resolv.rb:1473:in `hash': stack level too deep (SystemStackError)
Not so sure what causing this, probably because i just update my ArchMerge (now rebranded as ArcoLinux) the day before. After couple minutes of googling, i found some people report this problem on github.
One of the commenter, @chrisroberts, suggest a solution and it’s worked for me.
$ export VAGRANT_DISABLE_RESOLV_REPLACE=1
So basically by setting that environtment variable, solve my problem. To make it autorun every session, I just need to add those line in my ~/.bashrc file.
Here the original gihub issue page :
https://github.com/hashicorp/vagrant/issues/9563