On following the instructions in http://stucco.github.io/
I am getting the following traceback on terminal:
TASK [smola.java : Install Java packages] **************************************
failed: [stucco] (item=[u'java_packages']) => {"failed": true, "item":
["java_packages"], "msg": "No package matching 'java_packages' is
available"}
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
Any idea on how I can fix this error?
This playbooks are two years old. They use abandoned Ansible syntax. For example here:
- name: Install Java packages
apt: pkg={{ item }} state=latest
with_items: java_packages
You can't use bare variables in with_ with modern Ansible versions (latest version to support this with giant deprecation warning was 2.1).
From Stucco Dev-Setup manual:
Download Ansible. (Tested with version 1.7.x.). (Ansible requires Python 2.6.)
Related
When I run from TestNG or Maven test from locally all the test cases are working fine but in pipeline it gives me this "cannot access org.testng.Assert".
I am attaching the error screenshot of Azure Pipeline:
enter image description here
enter image description here
The error message: class file has wrong version 55.0, should be 52.0.
You should update Java version to at least Java 11.
Try adding task Java Tool Installer task.
- task: JavaToolInstaller#0
inputs:
versionSpec: '11'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
I think you are facing this issue because of JDK version on the Azure pipeline.
If you can check first if you have JDK and second what is the version.
java -version
Locally the tests work because the JDK version is the proper one.
We are trying to setup corda and run the cordapp-example on our macbook using Intellij. I am getting an error which says that the NodeDriver.main() failed but unable to debug as to what the failure is.
This is only explanation of the error:
Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/bin/java'' finished with non-zero exit value 132
I am following the setup instructions on https://docs.corda.net/docs/corda-os/4.4/getting-set-up.html and the run instructions from https://docs.corda.net/docs/corda-os/4.4/tutorial-cordapp.html.
Gradle version: 5.4.1
JDK: 1.8.251
The error mostly comes because of the conflicting version of Java. I guess it is because a higher version of Java may be installed on your machine which the system might be defaulting to.
I suggest you should try to check and remove any conflicting Java versions or set Java 1.8 as default.
I'm trying to install java jdk 8 onto an ubuntu 16.04 instance using chef-run. Although when it attempts to install I get Failed to converge target, when I open the logs I have the following:
[2018-06-21T20:24:34+01:00] ERROR: Remote chef-client error follows:
[2018-06-21T20:24:34+01:00] ERROR: SyntaxError: /var/chef-workstation/cache/cookbooks/windows/resources/share.rb:275: syntax error, unexpected end-of-input, expecting keyword_end
I have the following structure in my chef-repo:
cookbooks
-- jdk
-- attributes
-- default.rb
-- recipes
-- default.rb
metadata.rb
Within attributes/default.rb:
default['java']['install_flavor'] = 'openjdk'
default['java']['jdk'] = '8'
Within recipes/default.rb:
include_recipe 'java'
Within metadata.rb:
name 'name'
maintainer 'maintainer'
maintainer_email 'maintainer_email#email.com'
license 'MIT'
description 'Installs/Configures java'
long_description 'Installs/Configures java'
version '0.1.0'
chef_version '>= 12.14' if respond_to?(:chef_version)
depends 'java', '~> 2.1.0'
I can't see what the error is being caused by. Any help on this would be appreciated.
Edit:
If it helps the command i'm using with arguments is the following:
chef-run -i ~/.ssh/key jack#host jdk
This issue should be resolved in the latest stable version 0.1.139.
This is a bug in ChefDK 3.0 when using policy tarball exports. It will be fixed in ChefDK 3.1 next week. In the mean time, add this to your knife.rb config file:
require "mixlib/archive/lib_archive"
Mixlib::Archive::LibArchive.define_singleton_method(:new) { raise LoadError }
Just make sure you remove it when you upgrade to 3.1.
I'm trying to run Linked Norbert example from this repo.
I have java 7 on Ubuntu 16.06.
When I try to run test/package in sbt, it always failed to compile with 6 error
errors message
Any one knows what's the reason?
are you running the instructions? https://github.com/linkedin/norbert#building
I'm trying my hand at Scala for the first time, and I've chosen to do so using SBT 0.13.9 on a Linux machine running a new install of Ubuntu 14.04LTS.
I've been following the instructions given on the SBT website to the letter, and I'm now trying to run the "Hello!" example script, which is as follows:
object Hi {
def main(args: Array[String]) = println("Hi!")
}
When I try to run, I get the following output:
[trace] Stack trace suppressed: run last compile:compileIncremental for the full output.
[error] (compile:compileIncremental) java.lang.NullPointerException
[error] Total time: 1 s, completed 22 Aug 2015, 2:30:09 PM
Being completely new to Scala and SBT (and also relatively new to Linux) I'm sure I've just overlooked something obvious. No amount of Googling has yielded any answers so far though.
What should I check first? I'd really appreciate any advice anyone can offer.
I had the same error, on exactly the same code snippet! ie the first one in the scala sbt getting started hello.html
My problem was resolved when i uninstalled the java 9 sdk and installed the java 8 sdk.
Doing this required that i also had to then re-install scala and sbt.
These I installed with the instructions from HERE but replacing the version numbers in the commands with scala-2.11.7.deb and sbt-0.13.9.deb (my dev machine being on ubuntu 14.04)