-
Notifications
You must be signed in to change notification settings - Fork 209
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
service postgresql is running externally and cannot be managed #733
Comments
I was able to get past this error by preserving Once I saved those files in addition to the contents of |
👍 |
Hello @jeremymv2, Recipe: private-chef::bootstrap
Thanks in advance! |
Error executing action |
any work around for this issue? |
Been trying to resolve this issue for a week and when I rebuild a frontend I get:
After this I can never reconfigure the node as I get
If I understand Jeremy above he copied front end config data to backends and fixed it? That seems like a bad fix for me. I'm afraid I'm going to have to destroy my backend cluster and start all over. |
Everyone, it boils down to this:
https://docs.chef.io/install_server_ha.html#adding-more-frontends |
Thank you a million times over for explaining in detail. My issue is we had one frontend node which was dead and unrecoverable. I was able to install a new one by just doing.
I did this after a cleanse and then ran a reconfigure without issues. I don't have a migration-level file anywhere but it wasn't needed for adding this first node. I may have to create one later from a fresh install I suppose when I add more front end nodes. |
Awesome! Correct, not every upgrade includes migrations, but when it does, it will save them in |
If you would like to insert pub key into DB manually? Please follow up below instructions:
I hope these instructions should help to fix your issue. |
Thanks sakkemsu1. I do not think that is necessary in this use case. I think because i was rebuilding the frontend it needs the boostrapped file in order to not run local cookbooks and try to configure postgresdb locally. By just touching that file as I said above I was able to get things working. |
This is an issue with Chef Server Core 12.4.1-1
Scenario:
Use an external postgresql DB; if the backend Chef Server node should die I want to spin up a new instance of it, point at the existing DB and continue on.
Steps to reproduce:
1.) install and configure an external standalone PostgreSQL database.
2.) newly installed Chef Server via
dpkg
package install3.) configure the
chef-server.rb
with just this for content:4.) run
chef-server-ctl reconfigure
on this node. Completes successfully using external PostgreSQL DB from step 1.5.) tar up
/etc/opscode
, destroy the backend node and spin up a new one, expand the tarfile back onto/etc/opscode
6.) run
chef-server-ctl reconfigure
which produces this error:Here is the stracktrace:
7.) I attempted to work around by modifying line 38 of
/opt/opscode/embedded/cookbooks/private-chef/recipes/bootstrap.rb
removing the 'postgresql' entry from the array so that the result was:With stacktrace:
The text was updated successfully, but these errors were encountered: