2013-07-10 10 views
6

मेरे पास योनि में कुछ प्रावधान खोल प्रावधान स्क्रिप्ट है (कुछ कठपुतली स्थापित करने में विफल होने के लिए ..) स्क्रिप्ट:अनियमित त्रुटि `` `केवल-पढ़ने वाली फ़ाइल सिस्टम (रनटाइमर)` ``

sh prescript.sh से लेकिन आवारा प्रावधान से
#!/bin/bash 
echo 'provisioning librarian' 
gem install librarian-puppet 
librarian-puppet install 

रन ठीक विफल रहता है के साथ:

D:/HashiCorp/Vagrant/embedded/gems/gems/net-scp-1.1.0/lib/net/scp.rb:385:in `awa 
it_response_state': ☺scp: /tmp/vagrant-shell: Read-only file system (RuntimeErro 
r) 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/net-scp-1.1.0/lib/net/scp.r 
b:356:in `block (3 levels) in start_command' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c 
onnection/channel.rb:311:in `call' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c 
onnection/channel.rb:311:in `process' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c 
onnection/session.rb:217:in `block in preprocess' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c 
onnection/session.rb:217:in `each' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c 
onnection/session.rb:217:in `preprocess' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c 
onnection/session.rb:200:in `process' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c 
onnection/session.rb:164:in `block in loop' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c 
onnection/session.rb:164:in `loop' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c 
onnection/session.rb:164:in `loop' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-2.6.7/lib/net/ssh/c 
onnection/channel.rb:269:in `wait' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/net-scp-1.1.0/lib/net/scp.r 
b:279:in `upload!' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commu 
nicators/ssh/communicator.rb:105:in `block in upload' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commu 
nicators/ssh/communicator.rb:331:in `block in scp_connect' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commu 
nicators/ssh/communicator.rb:139:in `connect' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commu 
nicators/ssh/communicator.rb:329:in `scp_connect' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commu 
nicators/ssh/communicator.rb:99:in `upload' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/provi 
sioners/shell/provisioner.rb:20:in `block (2 levels) in provision' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/provi 
sioners/shell/provisioner.rb:14:in `tap' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/provi 
sioners/shell/provisioner.rb:14:in `block in provision' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/provi 
sioners/shell/provisioner.rb:78:in `with_script_file' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/provi 
sioners/shell/provisioner.rb:12:in `provision' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/builtin/provision.rb:65:in `run_provisioner' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/builtin/provision.rb:53:in `block in call' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/builtin/provision.rb:49:in `each' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/builtin/provision.rb:49:in `call' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/warden.rb:34:in `call' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/provi 
ders/virtualbox/action/check_accessible.rb:18:in `call' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/warden.rb:34:in `call' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/runner.rb:61:in `block in run' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/u 
til/busy.rb:19:in `busy' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/runner.rb:61:in `run' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/builtin/call.rb:51:in `call' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/warden.rb:34:in `call' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/runner.rb:61:in `block in run' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/u 
til/busy.rb:19:in `busy' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/runner.rb:61:in `run' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/builtin/call.rb:51:in `call' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/warden.rb:34:in `call' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/builtin/config_validate.rb:25:in `call' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/warden.rb:34:in `call' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/provi 
ders/virtualbox/action/check_virtualbox.rb:17:in `call' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/warden.rb:34:in `call' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/builder.rb:116:in `call' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/runner.rb:61:in `block in run' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/u 
til/busy.rb:19:in `busy' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a 
ction/runner.rb:61:in `run' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/m 
achine.rb:147:in `action' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/comma 
nds/provision/command.rb:26:in `block in execute' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/p 
lugin/v2/command.rb:182:in `block in with_target_vms' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/p 
lugin/v2/command.rb:180:in `each' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/p 
lugin/v2/command.rb:180:in `with_target_vms' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/comma 
nds/provision/command.rb:25:in `execute' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/c 
li.rb:46:in `execute' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/e 
nvironment.rb:467:in `cli' 
     from D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/bin/vagrant:8 
4:in `<top (required)>' 
     from D:/HashiCorp/Vagrant/bin//../embedded/../embedded/gems/bin/vagrant: 
23:in `load' 
     from D:/HashiCorp/Vagrant/bin//../embedded/../embedded/gems/bin/vagrant: 
23:in `<main>' 

सलाह here निम्नलिखित मैं पहले से ही बदल (sublimetext2 का प्रयोग करके) विंडोज़ संयुक्त राष्ट्र को खत्म होने वाली लाइन झ। लेकिन अभी भी किसी भी विचार

उत्तर

7

कुछ संभावनाओं में विफल रहता है:

आप हो सकता है VirtualBox में एक साझा फ़ोल्डर का उपयोग कर कि सिमलिंक का समर्थन नहीं करता है (जब तक कि निर्धारित किया गया है) हो।

config.vm.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"] 

अधिक संभावनाएं के लिए देखें:: वहाँ माना जाता है कि एक VBoxManage अब इसे ठीक करने के आदेश, जैसे

VBoxManage setextradata VM_NAME VBoxInternal2/SharedFoldersEnableSymlinksCreate/SHARE_NAME 1 
Vagrant फ़ाइल में

या यह कुछ है (यह मानते हुए SHARE_NAME इस एक में वी-जड़ है) https://www.virtualbox.org/ticket/10085#comment:12 या https://github.com/mitchellh/vagrant/issues/713

पर एक लंबा फोरम एक और संभावना यह है कि आप बूट प्रक्रिया में इतनी जल्दी स्क्रिप्ट चला रहे हैं कि रूट (या संभवतः केवल/tmp) फाइल सिस्टम को रिमोट नहीं किया गया है पढ़ने/लिखने के तरीके में, कहें, अगर स्क्रिप्ट को /etc/rc.2/S(num)(name) स्क्रिप्ट से चलाया जा रहा है और (num) बहुत कम है।

+0

मुझे विश्वास है कि यह होना चाहिए: '' config.vb.customize''' है ना? – alonisser

+0

मुझे यकीन नहीं है कि यह सही जवाब है, लेकिन चूंकि जानकार और संभवतः सही दिशा में अंक हैं, इसलिए मैं इस खोज के लिए बकाया राशि दूंगा – alonisser

+0

@alonisser सही हो सकता है, इसे अपडेट करने के लिए स्वतंत्र महसूस करें :-) यह हो सकता है एक से अधिक तरीकों से भी उपलब्ध है, मेरे पास विशिष्ट जानकारी नहीं है। –

0

मैं इस त्रुटि में भाग गया जबकि vagrant up आईएनजी एक आभासी मशीन। मेरे मामले में, समस्या यह प्रतीत होती है कि वर्चुअल मशीन की पिछली प्रति पृष्ठभूमि में चल रही थी। कुछ इतिहास:

  • एक यह एक ही परियोजना के लिए वीएम पहले दुर्घटनाग्रस्त हो गया था (घंटे पहले) और मैं टर्मिनल विंडो (MacOS) को बंद करने और वी एम (vagrant halt + vagrant up उपयोग करते हुए) को पुनः आरंभ करने के लिए किया था।
  • यह चीजों को ठीक करने के लिए दिखाई दिया और मैं सामान्य रूप से आगे बढ़ गया और इसके बारे में भूल गया।
  • बाद में, मैंने वाग्रेंटफाइल में बदलाव करने के बाद और यह सुनिश्चित करना चाहता था कि सबकुछ काम करता है, मैंने वीएम और vagrant up को एक नया संस्करण नष्ट कर दिया, केवल इस त्रुटि में भागने के लिए।
  • @ एलेक्सनर्थ-कीज़ द्वारा उत्तर पढ़ने के बाद, मुझे इस तथ्य को याद आया कि वीएम पहले दुर्घटनाग्रस्त हो गया था इसलिए मैंने अपने कंप्यूटर को पुनरारंभ करने का फैसला किया और फिर सब कुछ काम किया। मुझे पूरा यकीन है कि क्रैश किए गए वीएम की एक प्रति पृष्ठभूमि में चल रही होनी चाहिए और परियोजना फ़ोल्डरों का साझाकरण समस्याएं पैदा कर रहा था।

जाहिर है यह सिर्फ एक अनुमान है, लेकिन होस्ट मशीन को पुनरारंभ करने से समस्या ठीक हो गई है।

संबंधित मुद्दे