Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binarystore.xml - Creation fails, missing parent dir #14

Open
mojibake-umd opened this issue Aug 7, 2020 · 1 comment
Open

binarystore.xml - Creation fails, missing parent dir #14

mojibake-umd opened this issue Aug 7, 2020 · 1 comment

Comments

@mojibake-umd
Copy link
Contributor

Module version: 3.0.0
Artifactory Version 7.4.3

Issue: /var/opt/jfrog/artifactory/etc/artifactory is not created until Artifactory service is started for the first time.

Error:

Notice: /Stage[main]/Artifactory::Yum/Yumrepo[bintray-jfrog-artifactory-rpms]/ensure: created (corrective)
Info: Yumrepobintray-jfrog-artifactory-rpms: changing mode of /etc/yum.repos.d/bintray-jfrog-artifactory-rpms.repo from 600 to 644
Notice: /Stage[main]/Artifactory::Install/Package[jfrog-artifactory-oss]/ensure: created (corrective)
Info: /Stage[main]/Artifactory::Install/Package[jfrog-artifactory-oss]: Scheduling refresh of Exec[/usr/sbin/katello-package-upload]
Error: Could not set 'file' on ensure: No such file or directory @ dir_s_mkdir - /var/opt/jfrog/artifactory/etc/artifactory/binarystore.xml20200807-3546-1yaddh8.lock (file: /var/cache/puppet/environments/raughenb/modules-r10k/artifactory/manifests/config.pp, line: 238)
Error: Could not set 'file' on ensure: No such file or directory @ dir_s_mkdir - /var/opt/jfrog/artifactory/etc/artifactory/binarystore.xml20200807-3546-1yaddh8.lock (file: /var/cache/puppet/environments/raughenb/modules-r10k/artifactory/manifests/config.pp, line: 238)
Wrapped exception:
No such file or directory @ dir_s_mkdir - /var/opt/jfrog/artifactory/etc/artifactory/binarystore.xml20200807-3546-1yaddh8.lock
Error: /Stage[main]/Artifactory::Config/File[/var/opt/jfrog/artifactory/etc/artifactory/binarystore.xml]/ensure: change from 'absent' to 'file' failed: Could not set 'file' on ensure: No such file or directory @ dir_s_mkdir - /var/opt/jfrog/artifactory/etc/artifactory/binarystore.xml20200807-3546-1yaddh8.lock (file: /var/cache/puppet/environments/raughenb/modules-r10k/artifactory/manifests/config.pp, line: 238) (corrective)
Notice: /Stage[main]/Artifactory::Service/Service[artifactory]: Dependency File[/var/opt/jfrog/artifactory/etc/artifactory/binarystore.xml] has failures: true
Warning: /Stage[main]/Artifactory::Service/Service[artifactory]: Skipping because of failed dependencies

Resolution:
If you want to create binarystore.xml before starting service for first time need to create /var/opt/jfrog/artifactory/etc/artifactory after package install, and before binarystore.xml resource.

@fraenki
Copy link
Contributor

fraenki commented Aug 26, 2020

@mojibake-umd Could you confirm that #12 fixes your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants