Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

Not able to install #32

Open
ibakayoko opened this issue Mar 18, 2015 · 12 comments
Open

Not able to install #32

ibakayoko opened this issue Mar 18, 2015 · 12 comments

Comments

@ibakayoko
Copy link

On step 3 of the installation i get the error below:

l-c0000893:common ixb$ ./create-vendor-cookbooks.sh
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/celluloid-0.16.0/lib/celluloid/cpu_counter.rb:28: warning: Insecure world writable dir /usr/local in PATH, mode 040777
Resolving cookbook dependencies...
Fetching 'alfresco' from git://github.com/maoo/chef-alfresco.git (at chef-alfresco-0.4.2)
Fetching 'artifact-deployer' from git://github.com/maoo/artifact-deployer.git (at artifact-deployer-0.7.5)
Fetching 'file' from git://github.com/jenssegers/chef-file.git (at v1.0.0)
Fetching 'openoffice' from git://github.com/dhartford/chef-openoffice.git (at master)
Fetching 'swftools' from git://github.com/dhartford/chef-swftools.git (at master)
Fetching 'tomcat' from git://github.com/maoo/tomcat.git (at chef-tomcat-0.15.12-custom-4)
Git error: command git rev-parse chef-tomcat-0.15.12-custom-4 failed. If this error persists, try removing the cache directory at '/Users/ixb/.berkshelf/.cache/git/81a17897764bb6821d02e81339b52c49cd0d65ac'.Output from the command:

fatal: ambiguous argument 'chef-tomcat-0.15.12-custom-4': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'

maoo added a commit that referenced this issue Mar 24, 2015
issue #32 , tomcat cookbook have been re-forked by github maoo account; bixed cookbook pointer into Berksfile
@maoo
Copy link
Contributor

maoo commented Mar 24, 2015

Thanks for filing the issue; could you please remove Berksfile.lock and try again? Thanks

@ibakayoko
Copy link
Author

Thank you maoo,
I was able to pass this step without any issue.
But i am facing another issue when i run vagrant up. See the log below.

https://gist.github.com/maoo/9e37ec726fbc77e08200

@maoo
Copy link
Contributor

maoo commented Mar 25, 2015

I managed to reproduce your issue and fixed it by parametrising the following line

https://github.com/maoo/tomcat/blob/master/recipes/users.rb#L31

It looks like also original cookbook, on master presents this issue, I'll make sure to submit the fix to the community cookbook

@ibakayoko
Copy link
Author

I get another error, find below

==> default: [2015-03-25T18:30:22+00:00] INFO: Processing artifact
alfresco-mmt.jar; unzip: false

*==> default: *

==> default:
================================================================================

==> default: Error executing action put on resource 'maven[alfresco-mmt]'

==> default:

==> default:

==> default:

==> default: Mixlib::ShellOut::ShellCommandFailed

==> default: ------------------------------------

==> default: Expected process to exit with [0], but received '1'

*==> default: *---- Begin output of mvn
org.apache.maven.plugins:maven-dependency-plugin:2.4:get
-DgroupId=it.session.alfresco -DartifactId=alfresco-mmt -Dversion=4.2.1.4
-Dpackaging=jar -Dclassifier=fatjar
-Ddest=/tmp/chef_maven_lwrp20150325-4636-1746kpv/alfresco-mmt.jar
-DremoteRepositories=maoo-public::::
https://repository-maoo.forge.cloudbees.com/release,public::::https://artifacts.alfresco.com/nexus/content/groups/public
-Dtransitive=false ----

==> default:

==> default: STDOUT: [INFO] Scanning for projects...

*==> default: *[INFO]

==> default:

==> default: [INFO]
------------------------------------------------------------------------

*==> default: *

==> default: [INFO] Building Maven Stub Project (No POM) 1

*==> default: *

==> default: [INFO]
------------------------------------------------------------------------

*==> default: *

*==> default: [INFO] *

*==> default: *[INFO] --- maven-dependency-plugin:2.4:get (default-cli) @
standalone-pom ---

==> default: Downloading:
http://repo.maven.apache.org/maven2/it/session/alfresco/alfresco-mmt/4.2.1.4/alfresco-mmt-4.2.1.4-fatjar.jar

Downloading:
https://repository-maoo.forge.cloudbees.com/release/it/session/alfresco/alfresco-mmt/4.2.1.4/alfresco-mmt-4.2.1.4-fatjar.jar

==> default:

Downloading:
https://artifacts.alfresco.com/nexus/content/groups/public/it/session/alfresco/alfresco-mmt/4.2.1.4/alfresco-mmt-4.2.1.4-fatjar.jar
https://artifacts.alfresco.com/nexus/content/groups/public/it/session/alfresco/alfresco-mmt/4.2.1.4/alfresco-mmt-4.2.1.4-fatjar.jar

[INFO]

==> default: [INFO] BUILD FAILURE

==> default: [INFO]

==> default:

==> default: [INFO] Total time: 30.958s

*==> default: *

==> default: [INFO] Finished at: Wed Mar 25 18:30:55 UTC 2015

*==> default: *[INFO] Final Memory: 13M/111M

==> default: [INFO]

==> default:

==> default: [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-dependency-plugin:2.4:get (default-cli) on
project standalone-pom: Couldn't download artifact: Could not find artifact
it.session.alfresco:alfresco-mmt:jar:fatjar:4.2.1.4 in central
(http://repo.maven.apache.org/maven2 http://repo.maven.apache.org/maven2)

*==> default: *

*==> default: [ERROR] *

*==> default: *[ERROR] Try downloading the file manually from the project
website.

==> default: [ERROR]

==> default: [ERROR] Then, install it using the command:

==> default:

==> default: [ERROR] mvn install:install-file
-DgroupId=it.session.alfresco -DartifactId=alfresco-mmt -Dversion=4.2.1.4
-Dclassifier=fatjar -Dpackaging=jar -Dfile=/path/to/file

*==> default: *

*==> default: [ERROR] *

*==> default: *[ERROR] Alternatively, if you host your own repository you
can deploy the file there:

==> default: [ERROR] mvn deploy:deploy-file -DgroupId=it.session.alfresco
-DartifactId=alfresco-mmt -Dversion=4.2.1.4 -Dclassifier=fatjar
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

==> default:

*==> default: [ERROR] *

*==> default: *[ERROR]

==> default: [ERROR] it.session.alfresco:alfresco-mmt:jar:4.2.1.4

==> default: [ERROR]

==> default:

==> default: [ERROR] from the specified remote repositories:

*==> default: *

==> default: [ERROR] central (http://repo.maven.apache.org/maven2
http://repo.maven.apache.org/maven2, releases=true, snapshots=false),

*==> default: *[ERROR] maoo-public (
https://repository-maoo.forge.cloudbees.com/release, releases=true,
snapshots=true),

==> default: [ERROR] public (
https://artifacts.alfresco.com/nexus/content/groups/public, releases=true,
snapshots=true)

==> default:

==> default: [ERROR] -> [Help 1]

*==> default: *

*==> default: [ERROR] *

*==> default: *

==> default: [ERROR] To see the full stack trace of the errors, re-run
Maven with the -e switch.

*==> default: *

==> default: [ERROR] Re-run Maven using the -X switch to enable full debug
logging.

*==> default: *[ERROR]

==> default:

==> default: [ERROR] For more information about the errors and possible
solutions, please read the following articles:

*==> default: *[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

==> default:

*==> default: STDERR: *

*==> default: *---- End output of mvn
org.apache.maven.plugins:maven-dependency-plugin:2.4:get
-DgroupId=it.session.alfresco -DartifactId=alfresco-mmt -Dversion=4.2.1.4
-Dpackaging=jar -Dclassifier=fatjar
-Ddest=/tmp/chef_maven_lwrp20150325-4636-1746kpv/alfresco-mmt.jar
-DremoteRepositories=maoo-public::::
https://repository-maoo.forge.cloudbees.com/release,public::::https://artifacts.alfresco.com/nexus/content/groups/public
-Dtransitive=false ----

==> default:

==> default: Ran mvn
org.apache.maven.plugins:maven-dependency-plugin:2.4:get
-DgroupId=it.session.alfresco -DartifactId=alfresco-mmt -Dversion=4.2.1.4
-Dpackaging=jar -Dclassifier=fatjar
-Ddest=/tmp/chef_maven_lwrp20150325-4636-1746kpv/alfresco-mmt.jar
-DremoteRepositories=maoo-public::::https://repository-maoo.forge.cloudbees.com/release,public::::https://artifacts.alfresco.com/nexus/content/groups/public
https://repository-maoo.forge.cloudbees.com/release,public::::https://artifacts.alfresco.com/nexus/content/groups/public
-Dtransitive=false returned 1

*==> default: *

*==> default: *

==> default: Cookbook Trace:

==> default: ---------------

==> default:
/tmp/vagrant-chef-solo/c5edfafae5da87e8407f43ac0322153d/cookbooks/maven/providers/default.rb:55:in
`block in get_mvn_artifact'

*==> default: */tmp/vagrant-chef-solo/c5edfafae5da87e8407f43ac0322153d/cookbooks/maven/providers/default.rb:53:in
`get_mvn_artifact'

==> default:

==> default:
/tmp/vagrant-chef-solo/c5edfafae5da87e8407f43ac0322153d/cookbooks/maven/providers/default.rb:85:in
`block (2 levels) in class_from_file'

*==> default: *

==> default:
/tmp/vagrant-chef-solo/c5edfafae5da87e8407f43ac0322153d/cookbooks/maven/providers/default.rb:84:in
`block in class_from_file'

*==> default: *

*==> default: *

==> default: Resource Declaration:

==> default: ---------------------

*==> default: *

==> default: # In
/tmp/vagrant-chef-solo/c5edfafae5da87e8407f43ac0322153d/cookbooks/artifact-deployer/recipes/artifacts.rb

*==> default: *

*==> default: *

*==> default: * 55: maven "#{artifactName}" do

==> default: 56: artifact_id artifact_id

==> default: 57: group_id group_id

==> default:

==> default: 58: version version

*==> default: *

==> default: 59: if classifier != ''

*==> default: * 60: classifier classifier

==> default: 61: end

==> default: 62: action :put

==> default:

==> default:

==> default: Compiled Resource:

==> default: ------------------

==> default: # Declared in
/tmp/vagrant-chef-solo/c5edfafae5da87e8407f43ac0322153d/cookbooks/artifact-deployer/recipes/artifacts.rb:55:in
`block in from_file'

*==> default: *

*==> default: *

*==> default: *

==> default: maven("alfresco-mmt") do

*==> default: * action [:put]

==> default: retries 0

==> default:

==> default: retry_delay 2

*==> default: * guard_interpreter :default

==> default: artifact_id "alfresco-mmt"

==> default:

==> default: repositories
["maoo-public::::https://repository-maoo.forge.cloudbees.com/release
https://repository-maoo.forge.cloudbees.com/release",
"public::::https://artifacts.alfresco.com/nexus/content/groups/public
https://artifacts.alfresco.com/nexus/content/groups/public"]

*==> default: *

==> default: cookbook_name :"artifact-deployer"

*==> default: * recipe_name "artifacts"

==> default: group_id "it.session.alfresco"

==> default:

==> default: version "4.2.1.4"

*==> default: *

==> default: dest "/var/chef/cache"

*==> default: *

==> default: owner "root"

*==> default: * packaging "jar"

==> default: classifier "fatjar"

==> default:

==> default: end

*==> default: *

==> default:

==> default: [2015-03-25T18:30:56+00:00] INFO: Running queued delayed
notifications before re-raising exception

==> default: [2015-03-25T18:30:56+00:00] INFO:
template[/etc/default/tomcat7] sending restart action to servicetomcat7

==> default: [2015-03-25T18:33:15+00:00] INFO: service[tomcat7] restarted

==> default: [2015-03-25T18:33:15+00:00] INFO: service[tomcat7] sending
run action to executewait for tomcat7

==> default: [2015-03-25T18:33:20+00:00] INFO: execute[wait for tomcat7]
ran successfully

==> default: [2015-03-25T18:33:20+00:00] INFO:
template[/etc/tomcat7/tomcat-users.xml] sending restart action to
servicetomcat7

==> default: [2015-03-25T18:34:23+00:00] INFO: service[tomcat7] restarted

==> default: [2015-03-25T18:34:23+00:00] INFO: service[tomcat7] sending
run action to executewait for tomcat7

==> default: [2015-03-25T18:34:28+00:00] INFO: execute[wait for tomcat7]
ran successfully

==> default: [2015-03-25T18:34:28+00:00] ERROR: Running exception handlers

==> default: [2015-03-25T18:34:28+00:00] ERROR: Exception handlers
complete

==> default: [2015-03-25T18:35:57+00:00] FATAL: Stacktrace dumped to
/tmp/vagrant-chef-solo/chef-stacktrace.out

==> default: [2015-03-25T18:35:57+00:00] ERROR: maven[alfresco-mmt](artifact-deployer::artifacts line 55) had an error:
Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0],
but received '1'

==> default: ---- Begin output of mvn
org.apache.maven.plugins:maven-dependency-plugin:2.4:get
-DgroupId=it.session.alfresco -DartifactId=alfresco-mmt -Dversion=4.2.1.4
-Dpackaging=jar -Dclassifier=fatjar
-Ddest=/tmp/chef_maven_lwrp20150325-4636-1746kpv/alfresco-mmt.jar
-DremoteRepositories=maoo-public::::https://repository-maoo.forge.cloudbees.com/release,public::::https://artifacts.alfresco.com/nexus/content/groups/public
https://repository-maoo.forge.cloudbees.com/release,public::::https://artifacts.alfresco.com/nexus/content/groups/public
-Dtransitive=false ----

==> default: STDOUT: [INFO] Scanning for projects...

*==> default: [INFO]
*

==> default: [INFO]
------------------------------------------------------------------------

==> default: [INFO] Building Maven Stub Project (No POM) 1

==> default: [INFO]
------------------------------------------------------------------------

*==> default: [INFO] *

==> default: [INFO] --- maven-dependency-plugin:2.4:get (default-cli) @
standalone-pom ---

==> default: Downloading:
http://repo.maven.apache.org/maven2/it/session/alfresco/alfresco-mmt/4.2.1.4/alfresco-mmt-4.2.1.4-fatjar.jar
http://repo.maven.apache.org/maven2/it/session/alfresco/alfresco-mmt/4.2.1.4/alfresco-mmt-4.2.1.4-fatjar.jar

Downloading:
https://repository-maoo.forge.cloudbees.com/release/it/session/alfresco/alfresco-mmt/4.2.1.4/alfresco-mmt-4.2.1.4-fatjar.jar
https://repository-maoo.forge.cloudbees.com/release/it/session/alfresco/alfresco-mmt/4.2.1.4/alfresco-mmt-4.2.1.4-fatjar.jar

Downloading:
https://artifacts.alfresco.com/nexus/content/groups/public/it/session/alfresco/alfresco-mmt/4.2.1.4/alfresco-mmt-4.2.1.4-fatjar.jar
https://artifacts.alfresco.com/nexus/content/groups/public/it/session/alfresco/alfresco-mmt/4.2.1.4/alfresco-mmt-4.2.1.4-fatjar.jar

[INFO]
------------------------------------------------------------------------

==> default: [INFO] BUILD FAILURE

==> default: [INFO]
------------------------------------------------------------------------

==> default: [INFO] Total time: 30.958s

==> default: [INFO] Finished at: Wed Mar 25 18:30:55 UTC 2015

==> default: [INFO] Final Memory: 13M/111M

==> default: [INFO]
------------------------------------------------------------------------

==> default: [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-dependency-plugin:2.4:get (default-cli) on
project standalone-pom: Couldn't download artifact: Could not find artifact
it.session.alfresco:alfresco-mmt:jar:fatjar:4.2.1.4 in central
(http://repo.maven.apache.org/maven2 http://repo.maven.apache.org/maven2)

*==> default: [ERROR] *

==> default: [ERROR] Try downloading the file manually from the project
website.

*==> default: [ERROR] *

==> default: [ERROR] Then, install it using the command:

==> default: [ERROR] mvn install:install-file
-DgroupId=it.session.alfresco -DartifactId=alfresco-mmt -Dversion=4.2.1.4
-Dclassifier=fatjar -Dpackaging=jar -Dfile=/path/to/file

*==> default: [ERROR] *

==> default: [ERROR] Alternatively, if you host your own repository you
can deploy the file there:

==> default: [ERROR] mvn deploy:deploy-file -DgroupId=it.session.alfresco
-DartifactId=alfresco-mmt -Dversion=4.2.1.4 -Dclassifier=fatjar
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

*==> default: [ERROR] *

*==> default: [ERROR] *

==> default: [ERROR] it.session.alfresco:alfresco-mmt:jar:4.2.1.4

*==> default: [ERROR] *

==> default: [ERROR] from the specified remote repositories:

==> default: [ERROR] central (http://repo.maven.apache.org/maven2
http://repo.maven.apache.org/maven2, releases=true, snapshots=false),

==> default: [ERROR] maoo-public
(https://repository-maoo.forge.cloudbees.com/release
https://repository-maoo.forge.cloudbees.com/release, releases=true,
snapshots=true),

==> default: [ERROR] public
(https://artifacts.alfresco.com/nexus/content/groups/public
https://artifacts.alfresco.com/nexus/content/groups/public,
releases=true, snapshots=true)

==> default: [ERROR] -> [Help 1]

*==> default: [ERROR] *

==> default: [ERROR] To see the full stack trace of the errors, re-run
Maven with the -e switch.

==> default: [ERROR] Re-run Maven using the -X switch to enable full debug
logging.

*==> default: [ERROR] *

==> default: [ERROR] For more information about the errors and possible
solutions, please read the following articles:

==> default: [ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

*==> default: STDERR: *

==> default: ---- End output of mvn
org.apache.maven.plugins:maven-dependency-plugin:2.4:get
-DgroupId=it.session.alfresco -DartifactId=alfresco-mmt -Dversion=4.2.1.4
-Dpackaging=jar -Dclassifier=fatjar
-Ddest=/tmp/chef_maven_lwrp20150325-4636-1746kpv/alfresco-mmt.jar
-DremoteRepositories=maoo-public::::https://repository-maoo.forge.cloudbees.com/release,public::::https://artifacts.alfresco.com/nexus/content/groups/public
https://repository-maoo.forge.cloudbees.com/release,public::::https://artifacts.alfresco.com/nexus/content/groups/public
-Dtransitive=false ----

==> default: Ran mvn
org.apache.maven.plugins:maven-dependency-plugin:2.4:get
-DgroupId=it.session.alfresco -DartifactId=alfresco-mmt -Dversion=4.2.1.4
-Dpackaging=jar -Dclassifier=fatjar
-Ddest=/tmp/chef_maven_lwrp20150325-4636-1746kpv/alfresco-mmt.jar
-DremoteRepositories=maoo-public::::https://repository-maoo.forge.cloudbees.com/release,public::::https://artifacts.alfresco.com/nexus/content/groups/public
https://repository-maoo.forge.cloudbees.com/release,public::::https://artifacts.alfresco.com/nexus/content/groups/public
-Dtransitive=false returned 1

==> default: [2015-03-25T18:35:57+00:00] FATAL:
Chef::Exceptions::ChildConvergeError: Chef run process exited
unsuccessfully (exit code 1)

Chef never successfully completed! Any errors should be visible in the

output above. Please fix your recipes so that they properly complete.

On Wed, Mar 25, 2015 at 10:26 AM, Maurizio Pillitu <[email protected]

wrote:

I managed to reproduce your issue and fixed it by parametrising the
following line

https://github.com/maoo/tomcat/blob/master/recipes/users.rb#L31

It looks like also original cookbook, on master
https://github.com/opscode-cookbooks/tomcat/blob/master/recipes/users.rb
presents this issue, I'll make sure to submit the fix to the community
cookbook


Reply to this email directly or view it on GitHub
#32 (comment).

@maoo
Copy link
Contributor

maoo commented Mar 26, 2015

I'm very sorry for all these issues; I'm going to fix the issue and run deep tests before getting back to you; today I'm working on it, hopefully I'll have an answer by the end of the day.

Thanks,
mao

@ibakayoko
Copy link
Author

Cool, thanks.

The install on centos64 is also giving an error, find the log below.

BOX_OS=centos64 vagrant up

==> default: ================================================================================
==> default: Error executing action install on resource 'package[libreoffice-headless]'
==> default: ================================================================================
==> default:
==> default: Chef::Exceptions::Exec
==> default: ----------------------
==> default: returned 1, expected 0
==> default:
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In /tmp/vagrant-chef-solo/c5edfafae5da87e8407f43ac0322153d/cookbooks/openoffice/recipes/headless.rb
==> default:
==> default: 23: package pkg
==> default: 24: end
==> default:
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in /tmp/vagrant-chef-solo/c5edfafae5da87e8407f43ac0322153d/cookbooks/openoffice/recipes/headless.rb:23:in `block in from_file'
==> default:
==> default: package("libreoffice-headless") do
==> default: action :install
==> default: retries 0
==> default: retry_delay 2
==> default: guard_interpreter :default
==> default: package_name "libreoffice-headless"
==> default: version "4.0.4.2-14.el6"
==> default: timeout 900
==> default: cookbook_name :openoffice
==> default: recipe_name "headless"
==> default: end
==> default:
==> default: [2015-03-25T17:26:47+00:00] INFO: Running queued delayed notifications before re-raising exception
==> default: [2015-03-25T17:26:47+00:00] INFO: template[/etc/sysconfig/tomcat] sending restart action to servicetomcat
==> default: [2015-03-25T17:26:49+00:00] INFO: service[tomcat] restarted
==> default: [2015-03-25T17:26:49+00:00] INFO: service[tomcat] sending run action to executewait for tomcat
==> default: [2015-03-25T17:26:54+00:00] INFO: execute[wait for tomcat] ran successfully
==> default: [2015-03-25T17:26:54+00:00] INFO: template[/etc/tomcat/tomcat-users.xml] sending restart action to servicetomcat
==> default: [2015-03-25T17:27:01+00:00] INFO: service[tomcat] restarted
==> default: [2015-03-25T17:27:01+00:00] INFO: service[tomcat] sending run action to executewait for tomcat
==> default: [2015-03-25T17:27:07+00:00] INFO: execute[wait for tomcat] ran successfully
==> default: [2015-03-25T17:27:07+00:00] ERROR: Running exception handlers
==> default: [2015-03-25T17:27:07+00:00] ERROR: Exception handlers complete
==> default: [2015-03-25T17:27:07+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-solo/chef-stacktrace.out
==> default: [2015-03-25T17:27:07+00:00] ERROR: package[libreoffice-headless](openoffice::headless line 23) had an error: Chef::Exceptions::Exec: returned 1, expected 0
==> default: [2015-03-25T17:27:07+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

@maoo
Copy link
Contributor

maoo commented Mar 28, 2015

Sorry for the delay; I've performed a major refactoring of https://github.com/maoo/chef-alfresco

  1. Introduced tomcat multi-homed configuration (one tomcat instance for each alfresco webapp)
  2. fixed mmt jar fetching (the issue you were facing)
  3. Added Kitchen for quick runs and tests

To test with Vagrant, I'd advise you to directly fetch https://github.com/maoo/chef-alfresco and run kitchen converge

Alternatively, change common/Berksfile of alfresco-boxes to point to chef-alfresco master branch.
Thanks!
mao

@ibakayoko
Copy link
Author

I did the following

1 - git clone https://github.com/maoo/alfresco-boxes.git
2 - Updated Berkfile to checkout git://github.com/maoo/chef-alfresco.git (at master)
2 - cd alfresco-boxes/common
3 - ./create-vendor-cookbooks.sh

I got the error below

Fetching cookbook index from https://api.berkshelf.com...
Unable to satisfy constraints on package artifact-deployer due to solution constraint (artifact-deployer = 0.7.5). Solution constraints that may result in a constraint on artifact-deployer: [(alfresco = 0.4.2) -> (artifact-deployer = 0.8.6)], [(artifact-deployer = 0.7.5)]
Demand that cannot be met: (artifact-deployer = 0.7.5)
Artifacts for which there are conflicting dependencies: artifact-deployer = 0.7.5 -> [(maven >= 0.0.0), (file >= 0.0.0)]Unable to find a solution for demands: 7-zip (= 1.0.2), alfresco (0.4.2), apache2 (= 3.0.1), apt (= 2.6.1), ark (= 0.9.0), artifact-deployer (0.7.5), aws (= 2.6.0), build-essential (= 2.1.3), chef-sugar (= 2.5.0), chef_handler (= 1.1.6), database (= 2.3.0), file (2.0.0), imagemagick (= 0.2.3), iptables (= 0.14.0), java (= 1.28.0), logrotate (= 1.8.0), maven (= 1.2.0), mysql (= 5.5.4), mysql-chef_gem (= 0.0.5), openoffice (0.2.4), openssl (= 2.0.0), postgresql (= 3.4.14), resolver (= 1.2.0), swftools (0.2.6), tar (= 0.6.0), tomcat (0.17.3), windows (= 1.36.1), xfs (= 1.1.0), yum (= 3.5.2), yum-centos (= 0.2.2), yum-epel (= 0.6.0), yum-mysql-community (= 0.1.12), yum-repoforge (= 0.5.0)

Thanks

@ibakayoko
Copy link
Author

When i do the 1st option i also get an error.

1 - git clone https://github.com/maoo/chef-alfresco
2 - cd chef-alfresco
3 - kitchen converge ( Is failling)

The box at this url http://opscode-vm-bento.s3.amazonaws.com/vagrant/vmware/opscode_centos-7.0_chef-provisionerless.box does not exist.

you can see it here https://www.snip2code.com/Snippet/296761/https---github-com-opscode-bento

Thank you for the work.

maoo added a commit that referenced this issue Mar 28, 2015
@michaeldunstan
Copy link
Contributor

I've just tried a fresh install of alfresco-boxes with vagrant:

git clone https://github.com/maoo/chef-alfresco
cd chef-alfresco/common
edit Berksfile # See simple syntax error https://github.com/maoo/alfresco-boxes/pull/33
sh create-vendor-cookbooks.sh
cd ../vagrant
vagrant up

And that fails with:

undefined method `initial_root_password' for Chef::Resource::MysqlService

I think that is because of recent changes to the alfresco Cookbook and corresponding changes not made to https://github.com/maoo/alfresco-boxes/blob/master/common/Berksfile. Some different versions of various cookbooks can be spotted in https://github.com/maoo/chef-alfresco/blob/master/Berksfile.lock as well as some Cookbooks not even listed such as mysql2_chef_gem, mariadb, python, rbac, smf.

I tried updating my local Berksfile to match versions listed in Berksfile.lock from chef-alfresco but have yet to have any luck getting vagrant up to succeed. Got past the MysqlService error above. But ran into other problems with the tomcat Cookbook - "No version specified, and no candidate version available for tomcat-native".

@maoo can you look at updating Berksfile? Run berks list and see what versions you have locally.

@michaeldunstan
Copy link
Contributor

I've just noticed that my command sample above is wrong. I should have written alfresco-boxes instead of chef-alfresco. Sorry about that.

Anyway now that there has been some work on various cookbook dependancy versions I've tried a fresh install of alfresco-boxes again. This time I've opened a specific issue for the failure I'm seeing. #36.

maoo added a commit that referenced this issue Nov 15, 2015
issue #32 , tomcat cookbook have been re-forked by github maoo account; bixed cookbook pointer into Berksfile

Former-commit-id: 2b7302abb0975efa0c812041caecd8fb746a66bd [formerly 2b7302abb0975efa0c812041caecd8fb746a66bd [formerly 0287a9c]]
Former-commit-id: f27d173
Former-commit-id: 7506e13
Former-commit-id: 9a0bc7b
maoo added a commit that referenced this issue Nov 15, 2015
…id version clash

Former-commit-id: 367e1490a86b8e38095f6a9d13c1f583b910a254 [formerly 367e1490a86b8e38095f6a9d13c1f583b910a254 [formerly e55fed9]]
Former-commit-id: 439bd71
Former-commit-id: 28b0858
Former-commit-id: 3100304
maoo added a commit that referenced this issue Nov 15, 2015
issue #32 , tomcat cookbook have been re-forked by github maoo account; bixed cookbook pointer into Berksfile

Former-commit-id: 2b7302abb0975efa0c812041caecd8fb746a66bd [formerly 2b7302abb0975efa0c812041caecd8fb746a66bd [formerly 2b7302abb0975efa0c812041caecd8fb746a66bd [formerly 0287a9c]]]
Former-commit-id: f27d173
Former-commit-id: 7506e13
Former-commit-id: 9a0bc7b
Former-commit-id: 5c67ac1
maoo added a commit that referenced this issue Nov 15, 2015
…id version clash

Former-commit-id: 367e1490a86b8e38095f6a9d13c1f583b910a254 [formerly 367e1490a86b8e38095f6a9d13c1f583b910a254 [formerly 367e1490a86b8e38095f6a9d13c1f583b910a254 [formerly e55fed9]]]
Former-commit-id: 439bd71
Former-commit-id: 28b0858
Former-commit-id: 3100304
Former-commit-id: caf18c4
@maoo
Copy link
Contributor

maoo commented Nov 24, 2015

Can we close this issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants