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

nexus is redeployed everytime #90

Open
ramonskie opened this issue Jul 31, 2014 · 9 comments
Open

nexus is redeployed everytime #90

ramonskie opened this issue Jul 31, 2014 · 9 comments

Comments

@ramonskie
Copy link
Contributor

i noticed that every chef-run nexus is redeployed

 * artifact_file[/tmp/kitchen/cache/artifact_deploys/nexus-professional/2.8.1-01/nexus-professional-2.8.1-01-bundle.tar.gz] action create       [2014-07-31T09:37:47+00:00] INFO: Processing artifact_file[/tmp/kitchen/cache/artifact_deploys/nexus-professional/2.8.1-01/nexus-professional-2.8.1-01-bundle.tar.gz] action create (/tmp/kitchen/cache/cookbooks/artifact/providers/deploy.rb line 568)
  * remote_file[/tmp/kitchen/cache/artifact_deploys/nexus-professional/2.8.1-01/nexus-professional-2.8.1-01-bundle.tar.gz] action create       [2014-07-31T09:37:47+00:00] INFO: Processing remote_file[/tmp/kitchen/cache/artifact_deploys/nexus-professional/2.8.1-01/nexus-professional-2.8.1-01-bundle.tar.gz] action create (/tmp/kitchen/cache/cookbooks/artifact/providers/file.rb line 130)
        (up to date)
        (up to date)
  * remote_file[/tmp/kitchen/cache/artifact_deploys/nexus-professional/2.8.1-01/nexus-professional-2.8.1-01-bundle.tar.gz] action nothing       [2014-07-31T09:37:48+00:00] INFO: Processing remote_file[/tmp/kitchen/cache/artifact_deploys/nexus-professional/2.8.1-01/nexus-professional-2.8.1-01-bundle.tar.gz] action nothing (/tmp/kitchen/cache/cookbooks/artifact/providers/file.rb line 130)
        (skipped due to action :nothing)

           - evaluate block and run any associated actions
  * service[nexus] action stop       [2014-07-31T09:37:48+00:00] INFO: Processing service[nexus] action stop (/tmp/kitchen/cache/cookbooks/nexus/recipes/app.rb line 35)
       [2014-07-31T09:37:54+00:00] INFO: service[nexus] stopped

           - stop service service[nexus]


           - evaluate block and run any associated actions  * execute[extract_artifact!] action run[2014-07-31T09:37:54+00:00] INFO: Processing execute[extract_artifact!] action run (/tmp/kitchen/cache/cookbooks/artifact/providers/deploy.rb line 188)
       [2014-07-31T09:37:54+00:00] INFO: execute[extract_artifact!] ran successfully

           - execute tar xf /tmp/kitchen/cache/artifact_deploys/nexus-professional/2.8.1-01/nexus-professional-2.8.1-01-bundle.tar.gz -C /usr/local/nexus/releases/2.8.1-01

is this normal behavior or did i do something wrong

@brianwallace
Copy link

I am seeing this as well. Definitely makes running chef-client in daemon mode a non-starter.

@dzabel
Copy link
Contributor

dzabel commented Dec 29, 2014

I had the same issue using nexus cookbook from supermarket, this did not create "shared/tmp" folder and symlink to it - so generated manifest file differs each time.
Using latest cookbook version directly from this repo solved this for me.

Maybe this info help to nail down your issue.

@ramonskie
Copy link
Contributor Author

okay thanks i will check this out

@ramonskie
Copy link
Contributor Author

i have found my problem
because we are setting the memory settings in the wrapper file

nexus is trying to redeploy it self every time
and i can't seem to find where that happens

@ramonskie
Copy link
Contributor Author

i see now that it is the artifact cookbook is checking file changes
this can be solved by setting "skip_manifest_check"

but this must be set in the nexus cookbook itself :(

so the best option should be to integrate this possibility
to add the attribute

default [:nexus][:skip_manifest_check] = false

and set

skip_manifest_check  node[:nexus][:skip_manifest_check]

under line
https://github.com/RiotGamesCookbooks/nexus-cookbook/blob/master/recipes/app.rb#L23

i can make a pull request if needed

@ramonskie
Copy link
Contributor Author

pull request see #119

@fishnix
Copy link

fishnix commented Feb 5, 2015

I have this issue as well 👍

@sunruh
Copy link

sunruh commented Feb 17, 2015

As a workaround add the following in a wrapper cookbook after including the nexus recipe (e.g. nexus::app:

resources("artifact_deploy[#{node['nexus']['name']}]").skip_manifest_check true

@joerg
Copy link

joerg commented Jun 10, 2015

+1 to merge this pull request from my side. I also have to edit the wrapper to set memory sizes, which causes a nexus restart.

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

6 participants