hilverd / vagrant-ubuntu-oracle-xe

Install Oracle 11g XE in a Vagrant virtual machine running Ubuntu 12.04.
MIT License
288 stars 90 forks source link

Problem with desploy #11

Closed JohnPortella closed 10 years ago

JohnPortella commented 10 years ago

Hello, I did all the steps you mentioned until the connection. I can't connect to the DB.

$ vagrant reload --provision ==> default: Attempting graceful shutdown of VM... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 1521 => 1521 (adapter 1) default: 22 => 2222 (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:2222 default: SSH username: vagrant default: SSH auth method: private key default: Error: Connection timout. Retrying... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... default: The guest additions on this VM do not match the installed version of default: VirtualBox! In most cases this is fine, but in rare cases it can default: prevent things such as shared folders from working properly. If you see default: shared folder errors, please make sure the guest additions within the default: virtual machine match the version of VirtualBox you have installed on default: your host and reload your VM. default: default: Guest Additions Version: 4.2.0 default: VirtualBox Version: 4.1 ==> default: Setting hostname... ==> default: Mounting shared folders... default: /vagrant => /home/jportella/Virtualizacion/vagrant_scripts/vagrant-ubuntu-oracle-xe default: /tmp/vagrant-puppet-1/manifests => /home/jportella/Virtualizacion/vagrant_scripts/vagrant-ubuntu-oracle-xe/manifests default: /tmp/vagrant-puppet-1/modules-0 => /home/jportella/Virtualizacion/vagrant_scripts/vagrant-ubuntu-oracle-xe/modules ==> default: Running provisioner: shell... default: Running: inline script /etc/profile.d/oracle-env.sh: line 3: /u01/app/oracle/product/11.2.0/xe/bin/nls_lang.sh: No such file or directory stdin: is not a tty America/New_York

Current default time zone: 'America/New_York' Local time is now: Wed Mar 12 21:45:38 EDT 2014. Universal Time is now: Thu Mar 13 01:45:38 UTC 2014.

==> default: Running provisioner: puppet... Running Puppet with base.pp... /etc/profile.d/oracle-env.sh: line 3: /u01/app/oracle/product/11.2.0/xe/bin/nls_lang.sh: No such file or directory stdin: is not a tty warning: Could not retrieve fact fqdn warning: Host is missing hostname and/or domain: oracle info: Applying configuration version '1394675141' notice: /Stage[main]/Oracle::Server/Exec[apt-update]/returns: executed successfully notice: /Stage[main]/Oracle::Xe/File[/tmp/oracle-env.sh]/ensure: defined content as '{md5}c874e5a7a4cc6b15ff68055335c136fb' notice: /Stage[main]/Oracle::Xe/File[/tmp/xe.rsp.orig]/ensure: defined content as '{md5}b79c95d12321f3eb55d855082d1d6831' notice: /Stage[main]/Oracle::Server/File[/tmp/60-oracle.conf]/ensure: defined content as '{md5}61b22d59fdc07f9fa6929ab74f5b6e99' info: /Stage[main]/Oracle::Server/File[/tmp/60-oracle.conf]: Scheduling refresh of Exec[procps] notice: /Stage[main]/Oracle::Server/File[/tmp/S01shm_load]/ensure: defined content as '{md5}4bc498d6cd7b4de9e417f4eeb8bd0cff' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/parameter.rb:165:in fail' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/type/exec.rb:125:insync' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:114:in apply_parameter' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:62:inperform_changes' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:60:in each' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:60:inperform_changes' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:133:in evaluate' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:49:inapply' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:84:in eval_resource' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:104:inevaluate' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util.rb:493:in thinmark' /opt/vagrant_ruby/lib/ruby/1.8/benchmark.rb:308:inrealtime' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util.rb:492:in thinmark' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:104:inevaluate' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:386:in traverse' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:99:inevaluate' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/resource/catalog.rb:141:in apply' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/configurer.rb:122:inretrieve_and_apply_catalog' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util.rb:161:in benchmark' /opt/vagrant_ruby/lib/ruby/1.8/benchmark.rb:308:inrealtime' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util.rb:160:in benchmark' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/configurer.rb:121:inretrieve_and_apply_catalog' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/configurer.rb:152:in run' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application/apply.rb:229:inmain' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application/apply.rb:149:in run_command' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:309:inrun' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:416:in hook' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:309:inrun' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:407:in exit_on_fail' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:309:inrun' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util/command_line.rb:69:in execute' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/bin/puppet:4 /opt/vagrant_ruby/bin/puppet:19:inload' /opt/vagrant_ruby/bin/puppet:19 err: /Stage[main]/Oracle::Xe/Exec[unzip xe]/returns: change from notrun to 0 failed: /usr/bin/unzip -o oracle-xe-11.2.0-1.0.x86_64.rpm.zip returned 2 instead of one of [0] at /tmp/vagrant-puppet-1/modules-0/oracle/manifests/init.pp:154 notice: /Stage[main]/Oracle::Xe/Exec[alien xe]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Exec[alien xe]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Xe/Package[oracle-xe]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Package[oracle-xe]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Server/File[/tmp/chkconfig]/ensure: defined content as '{md5}8c59ff9592660f1de08162729d19373e' notice: /Stage[main]/Oracle::Xe/Exec[dos2unix xe.rsp]/returns: executed successfully notice: /Stage[main]/Oracle::Xe/Exec[configure xe]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Exec[configure xe]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Xe/Service[oracle-xe]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Service[oracle-xe]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Xe/Exec[run chkconfig]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Exec[run chkconfig]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Server/Exec[procps]: Triggered 'refresh' from 1 events notice: /Stage[main]//Node[oracle]/User[vagrant]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]//Node[oracle]/User[vagrant]: Skipping because of failed dependencies notice: Finished catalog run in 49.50 seconds The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed!

puppet apply --verbose --trace --modulepath '/tmp/vagrant-puppet-1/modules-0:/etc/puppet/modules' --manifestdir /tmp/vagrant-puppet-1/manifests --detailed-exitcodes /tmp/vagrant-puppet-1/manifests/base.pp || [ $? -eq 2 ]

Stdout from the command:

warning: Could not retrieve fact fqdn warning: Host is missing hostname and/or domain: oracle info: Applying configuration version '1394675141' notice: /Stage[main]/Oracle::Server/Exec[apt-update]/returns: executed successfully notice: /Stage[main]/Oracle::Xe/File[/tmp/oracle-env.sh]/ensure: defined content as '{md5}c874e5a7a4cc6b15ff68055335c136fb' notice: /Stage[main]/Oracle::Xe/File[/tmp/xe.rsp.orig]/ensure: defined content as '{md5}b79c95d12321f3eb55d855082d1d6831' notice: /Stage[main]/Oracle::Server/File[/tmp/60-oracle.conf]/ensure: defined content as '{md5}61b22d59fdc07f9fa6929ab74f5b6e99' info: /Stage[main]/Oracle::Server/File[/tmp/60-oracle.conf]: Scheduling refresh of Exec[procps] notice: /Stage[main]/Oracle::Server/File[/tmp/S01shm_load]/ensure: defined content as '{md5}4bc498d6cd7b4de9e417f4eeb8bd0cff' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/parameter.rb:165:in fail' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/type/exec.rb:125:insync' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:114:in apply_parameter' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:62:inperform_changes' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:60:in each' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:60:inperform_changes' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction/resource_harness.rb:133:in evaluate' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:49:inapply' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:84:in eval_resource' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:104:inevaluate' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util.rb:493:in thinmark' /opt/vagrant_ruby/lib/ruby/1.8/benchmark.rb:308:inrealtime' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util.rb:492:in thinmark' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:104:inevaluate' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:386:in traverse' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/transaction.rb:99:inevaluate' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/resource/catalog.rb:141:in apply' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/configurer.rb:122:inretrieve_and_apply_catalog' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util.rb:161:in benchmark' /opt/vagrant_ruby/lib/ruby/1.8/benchmark.rb:308:inrealtime' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util.rb:160:in benchmark' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/configurer.rb:121:inretrieve_and_apply_catalog' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/configurer.rb:152:in run' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application/apply.rb:229:inmain' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application/apply.rb:149:in run_command' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:309:inrun' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:416:in hook' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:309:inrun' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:407:in exit_on_fail' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/application.rb:309:inrun' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/lib/puppet/util/command_line.rb:69:in execute' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/puppet-2.7.19/bin/puppet:4 /opt/vagrant_ruby/bin/puppet:19:inload' /opt/vagrant_ruby/bin/puppet:19 err: /Stage[main]/Oracle::Xe/Exec[unzip xe]/returns: change from notrun to 0 failed: /usr/bin/unzip -o oracle-xe-11.2.0-1.0.x86_64.rpm.zip returned 2 instead of one of [0] at /tmp/vagrant-puppet-1/modules-0/oracle/manifests/init.pp:154 notice: /Stage[main]/Oracle::Xe/Exec[alien xe]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Exec[alien xe]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Xe/Package[oracle-xe]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Package[oracle-xe]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Server/File[/tmp/chkconfig]/ensure: defined content as '{md5}8c59ff9592660f1de08162729d19373e' notice: /Stage[main]/Oracle::Xe/Exec[dos2unix xe.rsp]/returns: executed successfully notice: /Stage[main]/Oracle::Xe/Exec[configure xe]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Exec[configure xe]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Xe/Service[oracle-xe]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Service[oracle-xe]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Xe/Exec[run chkconfig]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]/Oracle::Xe/Exec[run chkconfig]: Skipping because of failed dependencies notice: /Stage[main]/Oracle::Server/Exec[procps]: Triggered 'refresh' from 1 events notice: /Stage[main]//Node[oracle]/User[vagrant]: Dependency Exec[unzip xe] has failures: true warning: /Stage[main]//Node[oracle]/User[vagrant]: Skipping because of failed dependencies notice: Finished catalog run in 49.50 seconds

Stderr from the command:

/etc/profile.d/oracle-env.sh: line 3: /u01/app/oracle/product/11.2.0/xe/bin/nls_lang.sh: No such file or directory stdin: is not a tty

$vagrant ssh : Welcome to your Vagrant-built virtual machine. Last login: Wed Mar 12 21:37:39 2014 from 10.0.2.2 -bash: /u01/app/oracle/product/11.2.0/xe/bin/nls_lang.sh: No such file or directory

$ls: Disk1 oracle-xe-11.2.0-1.0.x86_64.rpm.zip postinstall.sh

Error: Error de E/S: Connection reset.

I hope you can help me find the error.

hilverd commented 10 years ago

Hi, it looks like unzipping the Oracle RPM file (oracle-xe-11.2.0-1.0.x86_64.rpm.zip) failed. I am not sure why. Maybe the file is corrupted? You could try re-downloading this file and then going through the steps again. Please let me know if that works.

JohnPortella commented 10 years ago

Yes, you right. My file was corrupted. I tried again, and is working perfectly. Thank you.