Comments (12)
@jorhett What version of the supermarket package was being installed? On what platform? I'm trying to replicate.
from supermarket-omnibus-cookbook.
So far, I've been unable to replicate the error with the test-kitchen config for this cookbook. But I still suspect there is a problem given that I had to set HOME in the service startup scripts after upgrading some components in the omnibus install.
from supermarket-omnibus-cookbook.
Initial analysis is that it isn't a bug in this cookbook, but points to the omnibus-supermarket::database
recipe embedded in the omnibus here and possibly deeper to that rake task.
from supermarket-omnibus-cookbook.
Yes, true. The problem probably lay in the cookbooks internal to the omnibus install. I've been trying to replicate the problem from up on high in this cookbook however.
from supermarket-omnibus-cookbook.
supermarket 2.7.4-1 on Ubuntu 14.04. I can send you the entire log in chef-success slack if you like...
from supermarket-omnibus-cookbook.
Looking into this now.
from supermarket-omnibus-cookbook.
Steps I've currently take to replicate this (this is based on how we currently spin up supermarket nodes in Chef):
- Spun up new Ubuntu 14.04 node in AWS
- Bootstrap new node with knife bootstrap
$ (my-workstation) knife node bootstrap node_public_ip -i my_ssh_key_path -N supermarket-node2 -x ubuntu --sudo
- Add the default recipe of our Supermarket wrapper cookbook to the node run list
$ (my-workstation) knife node run list add supermarket-node2 'recipe[supermarket-wrapper::default]'
- SSH'd into the new node
$ (my-workstation) ssh -i my_aws_key ubuntu@node_ip
- Ran chef client on the node
$ (supermarket-node2) sudo chef-client
It configured successfully and installed supermarket 2.7.4
6) Tried running chef-client again
$ (supermarket-node2) sudo chef-client
- Ran successfully
@jorhett could you detail the steps you took to install Supermarket? And I would love to see the log, you can send it to me on Chef Success Slack @nshamrell
from supermarket-omnibus-cookbook.
Hi @jorhett! Closing this for now because we haven't heard back from you. If this is still a problem, feel free to re-open this with some more detailed steps about when you see this error, this will help us replicate it. Thanks!
from supermarket-omnibus-cookbook.
Sorry, I provided all the information in the chef-success slack channel as mentioned above, as some internal corporate details were in the data. Could you tell me what else you were looking for?
from supermarket-omnibus-cookbook.
@nellshamrell And your test case was invalid, for the reasons I specified in the first sentence of the problem report. If you run Chef by hand then the process is provided with a HOME environment variable and succeeds. This error occurs when the node boots and runs Chef as a daemon without a human being involved (you know, automation...)
from supermarket-omnibus-cookbook.
@jorhett Please remember that you're commenting on a community-supported Open Source project, and snarky comments (or those interpreted as such) don't elicit generosity in those who are in a position to help you. Please take a look at the Chef Community Guidelines as a reference.
Despite that, we want to make sure you're successful. I dug into the issue and here's what I found:
- The error comes from a Ruby library (rb-readline) which assumes a
$HOME
environment variable is set. This has been an open issue since 2013: ConnorAtherton/rb-readline#8 - We've worked around it in ChefDK on Windows (where we wouldn't expect
$HOME
to be set) but appears to be invokable manually
The issue you're hitting is one that I've personally dealt with, as will likely most people who automate. Running CI agent that don't set a HOME
for jobs will cause you endless problems, and you should consider:
- Alter the CI agent's environment to always set a HOME
- changing the way you invoke those jobs so that HOME is set. If you're using Delivery with a build cookbook, see: https://docs.chef.io/environment_variables.html
As this isn't a problem with this cookbook, nor the Supermarket omnibus package, I have to agree with Nell that this isn't the right place to report the issue (and is also an invalid issue because the issue goes way below any software that Chef maintains)
from supermarket-omnibus-cookbook.
I'm honestly sorry. That wasn't intended as snark, although (in retrospect) I see why you thought it that way. It was more tired self-amusement if anything, meant in a "you know" way.
I disagree with your assessment, however, in that I am using a Chef-supported and maintained cookbook and process which is intended to be a black box for us. I am using the cookbook and setting attributes as documented. The only way to fix this problem is to abandon your provided cookbook, or to retroactively modify resources in your cookbook. Is that not a bug?
The bug is that your supported cookbook is failing to set the HOME environment when calling that process. My bug report is that you are failing to use your own advice above. Again, I've no attempt or desire to be snarky here. I'm being entirely serious and straightforward.
from supermarket-omnibus-cookbook.
Related Issues (20)
- incorrect yum repo file created for "chef-stable" repo on AWS Linux HOT 1
- Remove dependency on fancy_execute HOT 3
- add encrypted data_bag or chef_vault docs HOT 5
- Upload this cookbook version 1.1.0 to supermarket and override the existing one HOT 1
- Add ability to pin a Supermarket version HOT 2
- Make Supermarket Upgrade Process Delightful HOT 2
- Custom repository "option" non-functional due to malformed attribute HOT 3
- Can't install onto RDS HOT 5
- Need to be able to downgrade Supermarket
- upgrade/downgrade should restart services HOT 3
- Constant :reconfigure action HOT 2
- Error on Setting up Private Super Market HOT 1
- Cannot configure supermarket's sysctl attributes
- Private supermarket installation fails on Amazon Linux 2017.03 HOT 1
- Supermarket fails to install on Amazon Linux 2017.09 HOT 1
- supermarket.json permissions 644, should be 600 HOT 3
- supermarket-omnibus rpm is always downloaded
- support using instance metadata for S3 access HOT 1
- Chef Client 17 Deprecations HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supermarket-omnibus-cookbook.