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

Message "cannot parse UTC" in goiardi logs #72

Open
d-averkiev opened this issue Jun 3, 2020 · 4 comments
Open

Message "cannot parse UTC" in goiardi logs #72

d-averkiev opened this issue Jun 3, 2020 · 4 comments

Comments

@d-averkiev
Copy link

d-averkiev commented Jun 3, 2020

We are running goiardi in the containers in AWS ECS.
Server works well and no failures during the chef runs. But I am seeing this message in the server logs:

2020/06/03 12:27:50 [INFO] [main] parsing time "2020-06-03 12:27:50 UTC" as "2006-01-02 15:04:05 -0700": cannot parse "UTC" as "-0700"

Should I worry or do anything because of this message?

@ctdk
Copy link
Owner

ctdk commented Jun 4, 2020

It's probably not a huge deal, but I'm curious where that's coming from. Do you have any idea what might be causing it?

@rmoriz
Copy link

rmoriz commented Jun 18, 2020

I see the same log entry. It may be caused by

n.n.n.n - - [18/Jun/2020:12:19:01 +0000] "POST /data-collector HTTP/1.1" 200 0 "-" "Chef Client/16.1.16 (r
uby-2.7.1-p83; ohai-16.1.1; x86_64-linux; +https://gitlab.com/cinc-project/organization-subjects/wikis/home)" "-"

It happens when chef 16 (or cinc) starts and POSTs to this endpoint

@rmoriz
Copy link

rmoriz commented Jun 18, 2020

As far as I can see, goiardi does not implement the POST /data-collector endpoint but maps all /data to the data handler, which then produces the message.

I was able to work around the issue by disabling data collection on the chef-client in client.rb:

client.rb

data_collector.output_locations nil
data_collector.server_url nil

When using chef-client cookbook to render the client.rb one could use the following attributes to get the config settings mentioned above:

  default['chef_client']['config']['data_collector.server_url'] = nil
  default['chef_client']['config']['data_collector.output_locations']  = nil

@ctdk
Copy link
Owner

ctdk commented Jun 18, 2020

Aha, thank you for digging that up @rmoriz. I'll see what I can do about that endpoint.

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

3 participants