You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
msg={bad_param,{"rows","1000?q=groups:support AND action:remove"}}
Chef Version
Chef: 14.3.37
Platform Version
CentOS Linux release 7.7.1908 (Core)
Linux 3.10.0-1062.1.1.el7.x86_64 chef/chef#1 SMP Fri Sep 13 22:55:44 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Replication Case
Able to replicate it when ran search query with 1000 threads from chef-shell
threads = []
1000.times do |x|
threads << Thread.new do
sleep [1,2,3,4,5].sample
max_retries = 5
p 'Starting' + x.to_s
users = begin
search('users', 'groups:support AND NOT action:remove')
rescue Net::HTTPServerException => e
if e.response.code == '400'
retries ||= 0
if retries < max_retries
retries += 1
puts "XXXX #{x.to_s} 400 bad request - Retrying #{retries/max_retries}"
retry
else
raise e
end
else
raise e
end
end
end
end
threads.each(&:join)
Client Output
[2019-09-27T07:53:36+00:00] INFO: Processing users_manage[l3support] action remove (base::users line 123)
[2019-09-27T07:53:56+00:00] ERROR: Error connecting to https://chef12-server.com/organizations/dev/search/users?q=groups:l3support%20AND%20action:remove&start=0&rows=1000?q=groups:l3support%20AND%20action:remove&start=0&rows=1000, retry 1/5
[2019-09-27T07:54:01+00:00] INFO: Running queued delayed notifications before re-raising exception
[2019-09-27T07:54:01+00:00] INFO: file[/etc/ssh/ssh_host_dsa_key] sending restart action to service[sshd] (delayed)
[2019-09-27T07:54:01+00:00] INFO: Processing service[sshd] action restart (base::audit line 47)
[2019-09-27T07:54:02+00:00] INFO: service[sshd] restarted
[2019-09-27T07:54:02+00:00] INFO: bash[Reconnect Agent to the manager] sending restart action to service[ossec-hids] (delayed)
[2019-09-27T07:54:02+00:00] INFO: Processing service[ossec-hids] action restart (ossec::common line 83)
[2019-09-27T07:54:04+00:00] INFO: service[ossec-hids] restarted
[2019-09-27T07:54:04+00:00] ERROR: Running exception handlers
[2019-09-27T07:54:05+00:00] INFO: Exported Chef run data to InfluxDB Server
[2019-09-27T07:54:05+00:00] ERROR: Creating Airbrake exception report
[2019-09-27T07:54:06+00:00] ERROR: Exception handlers complete
[2019-09-27T07:54:06+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2019-09-27T07:54:06+00:00
Apologies, this got missed. We see that you are on Chef 14 which is unsupported currently. If you can reproduce this on Chef 17, please reopen the ticket.
Description
We are getting intermittent issues on search query which is running from users cookbook , here and here
We are getting 400 bad request and found that query string which is created by chef-client for search is replicated twice in the URL
Example -
Logs from chef-server -
Actual error -
Chef Version
Platform Version
Replication Case
Able to replicate it when ran search query with 1000 threads from chef-shell
Client Output
Stacktrace
The text was updated successfully, but these errors were encountered: