# Automate License error

**URL:** <https://discourse.chef.io/t/automate-license-error/12446>\
**Category:** Chef Automate\
**Created:** [January 18, 2018, 7:56am UTC](https://discourse.chef.io/t/automate-license-error/12446 "2018-01-18T07:56:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adyanthaya](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@adyanthaya](https://discourse.chef.io/u/adyanthaya)\
**Post date:** [January 18, 2018, 7:56am UTC](https://discourse.chef.io/t/automate-license-error/12446/1 "2018-01-18T07:56:02Z")

</div>

Hi,

I was playing with the liscence file in the delivery folder in my server machine and when I ran an update for the trial version license of automate server using automate-server-ctl reconfigure it’s throwing a validation error as shown below:

================================================================================  
Error executing action `validate` on resource ‘delivery\_license\_validity[license]’  
================================================================================

```
RuntimeError
------------
***************************************************
Chef Automate License Validation Error:
Error: Unable to determine Chef Automate license validity
ok
Chef Automate requires a valid license to run.
To learn more, please visit:
https://www.chef.io/automate/
Or contact your CHEF account representative.
***************************************************

Cookbook Trace:
---------------
/var/opt/delivery/embedded/cookbooks/cache/cookbooks/delivery/resources/license_validity.rb:13:in `block (2 levels) in class_from_file'
/var/opt/delivery/embedded/cookbooks/cache/cookbooks/delivery/resources/license_validity.rb:5:in `block in class_from_file'

Resource Declaration:
---------------------
# In /var/opt/delivery/embedded/cookbooks/cache/cookbooks/delivery/recipes/license_check.rb

 24: delivery_license_validity 'license' do
 25: action :validate
 26: end

Compiled Resource:
------------------
# Declared in /var/opt/delivery/embedded/cookbooks/cache/cookbooks/delivery/recipes/license_check.rb:24:in `from_file'

delivery_license_validity("license") do
  action [:validate]
  retries 0
  retry_delay 2
  default_guard_interpreter :default
  declared_type :delivery_license_validity
  cookbook_name "delivery"
  recipe_name "license_check"
end

System Info:
------------
chef_version=12.21.4
platform=ubuntu
platform_version=16.04
ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]
program_name=chef-client worker: ppid=15374;start=12:14:52;
executable=/opt/delivery/embedded/bin/chef-client

```

Thank you.
