ERROR: chef-server-ctl command not found - bash

After installation of chef-server .
I run the chef-server-ctl command but I'm getting
ERROR: bash: chef-server-ctl: command not found...

That happened to me once. As coderanger commented above, that error is usually caused by installing the wrong package.
For example:
If you installed the Chef Client package accidentally instead of the chef server package, you will see ERROR: bash: chef-server-ctl: command not found... when running command chef-server-ctl
Go to Chef-server package download page and install the correct chef-server package.

Related

Solana start solana-test-validator on Linux / Ubuntu blockstore error

When trying to start the solana-test-validator on my Ubuntu machine I received the following error:
Error: failed to start validator: Failed to create ledger at test-ledger: blockstore error
When taking a detailed look at the error logs I noticed the following issue:
[0m[38;5;8m[[0m2021-12-11T10:29:28.942979023Z [0m[1m[31mERROR[0m solana_ledger::blockstore[0m[38;5;8m][0m tar stderr: /bin/sh: 1: bzip2: not found
The issue can be fixed by installing bzip2.
The following line should fix the issue:
sudo apt-get install bzip2

gcloud crashed (NotADirectoryError): (Errno 20) Not a directory: 'xdg-settings' appeared after type: gcloud init

I got problem with command line: "gcloud init" after installed successfully the google cloud SDK in local machine. The error appeared as below:
cloud init
Welcome! This command will take you through the configuration of gcloud.
Your current configuration has been set to: [default]
You can skip diagnostics next time by using the following flag:
gcloud init --skip-diagnostics
Network diagnostic detects and fixes local network connection issues.
Checking network connection...done.
Reachability Check passed.
Network diagnostic passed (1/1 checks passed).
You must log in to continue. Would you like to log in (Y/n)? Y
ERROR: gcloud crashed (NotADirectoryError): [Errno 20] Not a directory: 'xdg-settings'
If you would like to report this issue, please run the following command:
gcloud feedback
To check gcloud for common problems, please run the following command:
gcloud info --run-diagnostics "
I tried to fix by using this link but it did not work in my environment. Please let me know if you have any idea and want me to provide anything, feel free to ask me.
Best Regards,
PNV
I solved it by doing the steps here:
brew install libxslt xmlto
export XML_CATALOG_FILES="/usr/local/etc/xml/catalog"
git clone git://anongit.freedesktop.org/xdg/xdg-utils
cd xdg-utils
./configure --prefix=/usr/local
make
make install
Note that I also had to install lynx using brew install lynx cause I was getting this issue:
Note: Writing xdg-settings.1
/usr/local/bin/xmlto txt desc/xdg-desktop-menu.xml
No way to convert HTML to text found.
Try either installing text web browser(lynx/w3m/links) or use option --with-fop
make[1]: *** [xdg-desktop-menu.txt] Error 1
make: *** [scripts] Error 2

Open suse adding repository

Hi I'm trying to add repository to install Termintor on my linux machine (SUSE Linux Enterprise Server 12 SP3). However after running this command
sudo zypper -v addrepo https://download.opensuse.org/repositories/openSUSE:Factory/standard/openSUSE:Factory.repo
I get 503 error.
Download (curl) error for 'https://download.opensuse.org/repositories/openSUSE:Factory/standard/openSUSE:Factory.repo':
Error code: HTTP response: 0
Error message: The requested URL returned error: 503
Apparently the source is not available. Is there a way to find the current repo for installing Terminator via zypper?
The correct repository for SLE12 is:
sudo zypper addrepo https://download.opensuse.org/repositories/X11:/terminals/SLE_12/X11:terminals.repo
You can find all the available SUSE builds for 'Terminator' here: https://software.opensuse.org/package/terminator

Install Ejabberd XMPP Server on AWS failing

I am trying to install Ejabberd on EC2.
I tried doing the following
sudo Downloads/ejabberd-16.09-linux-x86_64-installer.run
ran this command,getting this error
Downloads/ejabberd-16.09-linux-x86_64-installer.run: line 1: syntax error near unexpected token newline'.
Downloads/ejabberd-16.09-linux-x86_64-installer.run: line 1:'
The message indicates a syntax error. You can use the following code to install the downloaded file.
cd Downloads
sudo ./ejabberd-16.09-linux-x86_64-installer.run

Knife Solo Cook Error

I installed Vagrant, Virtualbox, Chef-solo and Knife in my local environment (Ubuntu 14.04). Everything was installed properly. But when I run this command "knife solo cook my.dev", it's returning an error:
could not extract the package.xml file from "/build/buildd/php5-5.5.9+dfsg/pear-build-download/MDB2-2.5.0b5.tgz"
Download of "pear/MDB2" succeeded, but it is not a valid package archive
Error: cannot download "pear/MDB2"
Download failed
install failed
These are the commands i did before that:
vagrant up
vagrant ssh-config --host my.dev >> ~/.ssh/config
knife solo cook my.dev //Error occurs here//
ssh my.dev
If I had to guess (and this is the internet so I do) something is interfering with the download of metadata from PEAR. Try installing by hand and see what the error looks like there.

Resources