rackspace-cookbooks/magentostack

Deploy method of "none" fails

Closed this issue · 1 comments

Here's the trace:

  * execute[/var/chef/cache/magentostack.sh] action run

    ================================================================================
    Error executing action `run` on resource 'execute[/var/chef/cache/magentostack.sh]'
    ================================================================================

    Mixlib::ShellOut::ShellCommandFailed
    ------------------------------------
    Expected process to exit with [0], but received '1'
    ---- Begin output of /var/chef/cache/magentostack.sh ----
    STDOUT: 
    STDERR: PHP Warning:  require(app/Mage.php): failed to open stream: No such file or directory in /var/www/html/magento/check-magento-installed.php on line 6
    PHP Fatal error:  require(): Failed opening required 'app/Mage.php' (include_path='/var/www/html/magento:.:/usr/share/pear:/usr/share/php') in /var/www/html/magento/check-magento-installed.php on line 6
    ---- End output of /var/chef/cache/magentostack.sh ----
    Ran /var/chef/cache/magentostack.sh returned 1

    Resource Declaration:
    ---------------------
    # In /var/chef/cache/cookbooks/magentostack/recipes/_magento_installer.rb

     65: execute setup_script do
     66:   cwd node['magentostack']['web']['dir']
     67:   user node['apache']['user']
     68:   group node['apache']['group']
     69:   not_if { File.exist?(node.run_state['magentostack_installer_magento_configured_file']) }
     70: end

    Compiled Resource:
    ------------------
    # Declared in /var/chef/cache/cookbooks/magentostack/recipes/_magento_installer.rb:65:in `from_file'

    execute("/var/chef/cache/magentostack.sh") do
      action "run"
      retries 0
      retry_delay 2
      default_guard_interpreter :execute
      command "/var/chef/cache/magentostack.sh"
      backup 5
      cwd "/var/www/html/magento"
      group "apache"
      returns 0
      user "apache"
      declared_type :execute
      cookbook_name "magentostack"
      recipe_name "_magento_installer"
      not_if { #code block }
    end

none doesn't mean deployment without magento; it was intended to mean this cookbook won't be doing it. It still expects magento to get on the server. It looks like this error is happening because it can't find magento source file app/Mage.php. If you're calling magentostack::magento_configure (or using one of the all in one recipes that calls all the steps), magento must be present -- we can't configure magento without it.