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
nginx does not start #342
Comments
Hi @crmckenzie, Thanks for your notes, and sorry if this broke something. Can you provide more context as to what broke? When we release a version 3.0 of this cookbook, it's likely to have some more detailed announcement, and will likely not work with existing code, so I do recommend pinning to a known working version. |
Here's my nginx.rb file from my cookbook:
And here is the vagrant up output:
It looks to me like the service doesn't have something it needs to start. It could also be related to the fact that I am stuck on chef 11.x for the time being. Thank you for your quick reply. |
@crmckenzie were you able to resolve this? It looks like you are using runit. If so, you can check the runit log within the Vagrant vm: /etc/sv/nginx/log/main/current by default. |
I was never able to upgrade to 2.7.5 - I've punted on this question for the time being and am sticking with 2.7.4. I have something that works now with 2.7.4. Since I can't promise an ETA on a 2.7.x test I'd close this issue and rely on me to come back to it later. Thanks for following up. :) |
This is broken for me as well. It doesn't appear to work out of the box for installing from source with runit. It's broken on 2.7.4 and 2.7.6 for us.
|
fwiw, I think it's broken for us because our nginx can't actually start until a deploy has happened, so it just spins trying to start. Probably an issue we should fix on our end... |
@aaronjensen looks like exactly the problem I had. Turns out the source recipe wasn't properly setting the nginx binary path so the service could not be started. I submitted a PR that may help you:: #378 or you can use my modified branch:: https://github.com/ecosia/nginx/tree/master |
Same problem here, the fix from @gmccue worked for me. |
Thanks for opening this issue. Just today we merged the changes from the chef_nginx fork of this cookbook back to master here. It’s a pretty huge change set and includes over a year of active development that resulted in several major releases. I think there’s a very high chance that this issue has been resolved with that work and at this point I’m going to close this issue out. I’d encourage you to checkout the master branch and please open this issue back up if you’re still having the problem there. Here’s the changes that were just merged in: #435 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
2.7.5 of the cookbook breaks my deployment. The nginx service fails to start. It doesn't even get far enough to create any message in the error log. There is no error log.
I know you said that 2.7.5 is the last release in the old cookbook format and that it was deprecated, but something changed between 2.7.4 and 2.7.5 that breaks functionality that has worked for a long time.
I would like to ask that breaking changes follow semantic versioning and/or you publish a document explaining how to migrate what worked in 2.7.4 to what will work with later editions of the cookbook.
As of this moment I can lock the version to 2.7.4 and fix my deployment, but I'm not sure what changes I'd need to make to follow your upgrade path. Obviously, I would like to be able to take advantage of future enhancements to the cookbook.
In the interest of full disclosure I am new to chef and cookbook development, so it's entirely possible I'm doing something wrong or ill-advised. If you feel that that is the case I would be happy to discuss that with you.
Thank you for the work you've done on this cookbook, and for your time.
The text was updated successfully, but these errors were encountered: