Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8653063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:27:11+00:00 2026-06-12T14:27:11+00:00

Problem: When I run puppet to provision the box the first time, I will

  • 0

Problem: When I run puppet to provision the box the first time, I will have dependency failed errors and the files with these errors (apache-solr-dataimporthandler-3.6.1.jar) are not copied to their target destination. However doing the provisioning a second time there are no longer the dependency errors and all files seem to be copied correctly.

How can the dependency errors be solved without re-provisioning? Why is this happening?

Manifest

file { '/var/lib/tomcat6/webapps/solr.war':
  ensure => present,
  owner   => root,
  group   => root,  
  mode    => 644,   
  source => 'puppet:///modules/solr/apache-solr-3.6.1.war',
  notify => Service['tomcat'],
}

file { '/usr/share/solr':
  ensure => present,
  source => 'puppet:///modules/solr/solr',
  recurse => true,
  require => File['/var/lib/tomcat6/webapps/solr.war'],
  notify => Service['tomcat'],
}

file { '/var/lib/tomcat6/webapps/solr/WEB-INF/web.xml':
  ensure => present,
  owner   => root,
  group   => root,  
  mode    => 644,   
  source => 'puppet:///modules/solr/web.xml',
  require => [ File['/var/lib/tomcat6/webapps/solr.war'], File['/usr/share/solr'] ],
}

file { '/var/lib/tomcat6/webapps/solr/WEB-INF/lib/apache-solr-dataimporthandler-3.6.1.jar':
  ensure => present,
  owner   => root,
  group   => root,  
  mode    => 644,   
  source => 'puppet:///modules/solr/apache-solr-dataimporthandler-3.6.1.jar',
  require => File['/var/lib/tomcat6/webapps/solr.war'],
  notify => Service['tomcat'],
}

Error

←[0;36mnotice: /Stage[main]/Solr/File[/var/lib/tomcat6/webapps/solr.war]/ensure: defined content as'{md5}ae7997a401f9d223b097f8a88259689e'←[0m
←[1;35merr: /Stage[main]/Solr/File[/var/lib/tomcat6/webapps/solr/WEB-INF/lib/apache-solr-dataimporthandler-3.6.1.jar]/ensure: change from absent to file failed: Could not set 'file on ensure: No such file or directory - /var/lib/tomcat6/webapps/solr/WEB-INF/lib/apache-solr-dataimporthandler-3.6.1.jar.puppettmp_4049 at /tmp/vagrant-puppet/modules-0/solr/manifests/init.pp:37←[0m
←[0;36mnotice: /Stage[main]/Solr/File[/usr/share/solr]/ensure: created←[0m
...
...
...
←[0;36mnotice: /Stage[main]/Tomcat/Service[tomcat]: Dependency File[/var/lib/tomcat6/webapps/solr/WEB-INF/lib/apache-solr-dataimporthandler-3.6.1.jar] has failures: true←[0m
←[0;33mwarning: /Stage[main]/Tomcat/Service[tomcat]: Skipping because of failed dependencies←[0m
←[0;36mnotice: /Stage[main]/Tomcat/Service[tomcat]: Triggered 'refresh' from 6 events←[0m
←[0;36mnotice: /Stage[main]/Solr/File[/var/lib/tomcat6/webapps/solr/WEB-INF/web.xml]/content: content changed '{md5}1b3a494d9ddefb9bef08caa5146cfd32' to '{md5}f3b9d07f7585ef8008f2bcf0407596f2'←[0m
←[0;36mnotice: /Stage[main]/Solr/File[/var/lib/tomcat6/webapps/solr/WEB-INF/web.xml]/owner: owner changed 'tomcat6' to 'root'←[0m
←[0;36mnotice: /Stage[main]/Solr/File[/var/lib/tomcat6/webapps/solr/WEB-INF/web.xml]/group: group changed 'tomcat6' to 'root'←[0m
←[0;36mnotice: Finished catalog run in 18.90 seconds←[0m

Directory Structure

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:27:12+00:00Added an answer on June 12, 2026 at 2:27 pm

    it seems to me that puppet complains that the directory /var/lib/tomcat6/webapps/solr/WEB-INF/lib/ does not exist when it tries to create /var/lib/tomcat6/webapps/solr/WEB-INF/lib/apache-solr-dataimporthandler-3.6.1.jar.

    I suspect that this directory is created when the new .war get detected by tomcat, but it happens too late and you have to relaunch puppet.

    So you may want to explicitely ensure creation of this dir with :

    file
    {
        '/var/lib/tomcat6/webapps/solr':
            ensure => directory,
            ;
        '/var/lib/tomcat6/webapps/solr/WEB-INF':
            ensure => directory,
            ;
        '/var/lib/tomcat6/webapps/solr/WEB-INF/lib':
            ensure => directory,
            ;
    }
    

    (omitting the “require” because it seems that puppet creates them in the order they are defined)

    I’m not a tomcat expert, but you may want to ensure that creating the dirs manually will not interfere with tomcat .war auto-detection system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Reproduce problem: run code click checkbox click on the first input box enter: 100
i have a problem when run django on apache: htdocs/blog/apps/homepage/urls.py: url(r'^$', 'index', name=h_index), url(r'^about/$',
I have this problem when I run SAS 9.2 on the command line on
I have a problem: if i run this test in NUnit ,it works Board
I have a problem when I run this snippet of code on the emulator
NOTE: I have solved the majority of this problem but have run into a
I run into this problem. I have a textarea which I only want to
I have strange problem with run .exe program in my WebApplication. It works fine
Can you think of a way to solve this problem in Puppet? I have
I have a problem to run Java application in full screen mode on openSUSE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.