EJBCA install to JBoss via Chef not working - jboss

in my chef recipe, i install ejbca via
# install ejbca
script "install ejbca->jboss" do
interpreter "bash"
user "#{node[:ejbca][:user]}"
code <<-EOF
cd #{node[:ejbca][:dir]}
ant install
EOF
end
and returns an error
javax.naming.NameNotFoundException: ejbca not bound
but when i ant install inside vagrant ssh, it is successfully completed. Already checked on user permissions and group.

Related

Why do I get privileges errors even though I run windows Powershell as administrator?

I want to install miktex.install package in my machine by chocolatey. I executed this command
choco install miktex.install --admin
but error occured like below.
ERROR: The running command stopped because the preference variable
"ErrorActionPreference" or common parameter is set to Stop: initexmf:
security risk: running with elevated privileges
Surely, I've run Powershell as administrator and try install command again and again. but privileges error keep going on. If anyone knows a solution to this error, please help. Thanks.
This works fine here, running the commands under the local Administrator account (note that --admin is not a Chocolatey option so I have not added it):
PS C:\Users\WDAGUtilityAccount> choco install miktex.install
Chocolatey v1.2.1
Installing the following packages:
miktex.install
By installing, you accept licenses for the packages.
Progress: Downloading miktex.install 22.10... 100%
miktex.install v22.10 [Approved]
miktex.install package files install completed. Performing other installation steps.
Extracting 64-bit C:\ProgramData\chocolatey\lib\miktex.install\tools\miktexsetup-5.2.0+b8f430f-x64.zip to C:\ProgramData\chocolatey\lib\miktex.install\tools...
Downloading a "Basic" package set to install.
WARNING: No registry key found based on 'miktex*'
Creating a temporary repository at 'C:\Users\WDAGUtilityAccount\AppData\Local\Temp\chocolatey\MiKTeX-repository'.
Installing from temporary MiKTeX repository for all users.
miktex.install may be able to be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
The install of miktex.install was successful.
Software installed to 'C:\Program Files\MiKTeX'
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
This error is a package error. The installer seesm to be failing when running from the chocolateyInstall.ps1 script, and the script is reporting back the failure.
ERROR: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: initexmf: security risk: running with elevated privileges
If you are trying to install the latest version, and you are running in an elevated session, my advice would be to contact the package maintainer by clicking 'Contact Package Maintainer' on the Chocolatey package page.

jupyterhub: command not found

I am trying to run the jupyterhub locally on Ubuntu 16.04; however, I cannot seem to run the jupyterhub command on the terminal, and I get the command not found error. I have installed jupyterhub by running the following commands:
sudo npm install -g configurable-http-proxy
pip3 install jupyterhub
pip3 install --upgrade notebook
All of the above packages install successfully. My PATH variable in /etc/environment has been set as follows:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/root/bin"
You need to start a Jupyter service, if you create environments with anaconda you can use them later inside the jupyter as kernels, so you can have a variety of library environments as you like.
There are also other functions to give resource guarantee or limits, or initial folders for your hub.
You can edit all this in your jupyterhub_config.py file.
I leave you here my github with a complete guide for the configuration and installation.
Github/Jupyter
If you can first install Anaconda.
Then install the configurable proxy.
Run commands -
conda install -c conda-forge jupyterhub # installs jupyterhub and proxy
conda install notebook # needed if running the notebook servers locally
Now try jupyterhub

How can I ensure HGFS in CentOS via Vagrant?

I am using Vagrant (1.7.4) with the VMware Fusion provider.
I have created a new VM from the centos/7 box, and configured shared folders in my Vagrantfile.
On startup, I get the message
HGFS was never found on the running virtual machine. This must be
installed either through VMware tools or Open VM Tools. HGFS is
required for shared folders to work properly. Please install either
the VMware tools or Open VM Tools and try again.
after a while, and the system starts up, but without the mounted shared volume.
I have tried installing Open VM tools, with a
sudo yum -y install open-vm-tools
in my Vagrant provisioner inline shell script
config.vm.provision "shell", inline: <<-SHELL
sudo yum -y update
sudo yum -y install open-vm-tools
SHELL
However, I still get the message at startup, and I do not see the mounted share.
I have an almost identical Ubuntu box (precise/64) that seems to work just fine.
I looked up the box https://atlas.hashicorp.com/centos/boxes/7 and from the release notes they clearly mention that virtual box guest are not installed
The VirtualBox Guest Additions are not preinstalled; if you need them for shared folders, please install the vagrant-vbguest plugin. We recommend using NFS instead of VirtualBox shared folders if possible.
I think what they should mention is that they did not install the VMWare tools neither so default sharing folder with VMWare does not work.
How to install the VMWare tools for the VM
Make sure to mount a cd
Open VMWare Fusion and make sure the VM is down - open the VM settings, select the hard drive and add a device, select the CDRom.
boot the VM from the VM menu select Install VMWare Tools
Installing VMWare Tools
login to the VM (either from VMWare or open an ssh session with vagrant ssh)
Install pre-requisites and update kernel (at least I had to run to successfully install the VMWare tools on VMWare fusion 8.0 - see here)
sudo yum install perl gcc gcc-c++ make binutils
sudo yum update kernel
reboot and run the following again
sudo yum install kernel-headers kernel-PAE-devel
mount the VMWare tools
this is found from the VMWare doc - Make sure to run the below commands with root or add sudo
To create a mount point, run:
mkdir /mnt/cdrom
To mount the CDROM, run:
mount /dev/cdrom /mnt/cdrom
To copy the Compiler gzip tar file to a temporary local directory, run:
cp /mnt/cdrom/VMwareTools-<version>.tar.gz /tmp/
Where version is the VMware Tools package version. To determine the version of VMware tools, run:
ls /mnt/cdrom
You see output similar to:
VMwareTools-5.0.0-12124.tar.gz
To change to the tmp directory and extract the contents of the tar file into a new directory called vmware-tools-distrib, run:
cd /tmp
tar -zxvf VMwareTools-version.tar.gz
To change directory to vmware-tools-distrib and run the vmware-install.pl PERL script to install VMware Tools, run:
cd vmware-tools-distrib
./vmware-install.pl
After all this, the tools were installed and shared folder is working correctly.
as a side note I can say that its much easier building a box with packer and install the tools directly from install. There are plenty of packer templates available on github for all versions of centos.

I keep getting "env: node: No such file or directory" running Grunt on Eclipse as an external tool under MacOS Yosemite

Eclipse (Luna) is clearly launching grunt as the external build tool. However, the Eclipse console keeps showing the "env: node: No such file or directory" message and the grunt tasks do not get to run.
I can successfully run grunt on the command line (outside Eclipse) after moving to the project directory.
The node installer did place it on /usr/local/bin/node but apparently grunt is expecting it somewhere else.
Suggestions?
if you are using Homebrew try
brew unlink node
then
brew link node
I discovered that grunt is apparently expecting node to live on /usr/bin, yet the installer placed it on /usr/local/bin.
Solution:
sudo ln -s /usr/local/bin/node /usr/bin/node
Hope helps.
The "External Tools Configurations" dialog has a tab for setting the environment the command will run in. In this tab, press "Select..." and select "PATH...". Once it's there you can edit the Value to append ":/usr/local/bin". After this both "node" and "npm" are found and commands work just fine.
sudo chown -R $USER /usr/local
brew unlink node
brew link node

Memcached install error

I want to install Memcached on a Windows 7 32-bit computer, but it gives this error:
C:\Memcached>memcached.exe -d install
failed to install service or service already installed
If you are using Windows Vista and Windows 7 system please be execute
the command through the administrator role. Right-click the command
item in the start menu and use “Run as Administrator”, otherwise the
Memcached would not be able to be installed successfully.
For Windows 7 system make sure you execute the command through the administrator role. Right-click the command item in the start menu and use “Run as Administrator”, otherwise the Memcached would not be able to be installed successfully.