sous-chefs / maven

Development repository for the maven cookbook
https://supermarket.chef.io/cookbooks/maven
Apache License 2.0
36 stars 153 forks source link

Recipe not able to create a symlink #86

Closed saif-17 closed 7 years ago

saif-17 commented 7 years ago

Cookbook version

5.0.1

Chef-client version

13.3.42

Platform Details

Ubuntu: 14.04LTS

Scenario:

Trying to Install Maven.

Steps to Reproduce:

1) Knife site the cookbook 2) Upload the cookbook to the server 3) Configure the run-list to run Maven 4) Run the Chef-Client

Expected Result:

Maven to be installed on the given System

Actual Result:

Starting Chef Client, version 13.3.42 resolving cookbooks for run list: ["maven"] Synchronizing Cookbooks:

Running handlers: [2017-09-04T14:53:03+05:30] ERROR: Running exception handlers Running handlers complete [2017-09-04T14:53:03+05:30] ERROR: Exception handlers complete Chef Client failed. 0 resources updated in 01 seconds [2017-09-04T14:53:03+05:30] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [2017-09-04T14:53:03+05:30] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report [2017-09-04T14:53:03+05:30] ERROR: ark[maven] (maven::default line 26) had an error: Errno::EISDIR: link[/usr/local/maven] (/var/chef/cache/cookbooks/ark/resources/default.rb line 96) had an error: Errno::EISDIR: Is a directory @ unlink_internal - /usr/local/maven [2017-09-04T14:53:03+05:30] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

iennae commented 7 years ago

This error is telling you that a directory already exists in that location. Take a look at /usr/local/maven as it already exists as a directory so Chef can't manage.

saif-17 commented 7 years ago

Yeah Thanks a ton!!. I actually figured that out yesterday, after posting the issue. But thanks anyways!

iennae commented 7 years ago

Glad you figured it out. Thanks for updating the issue.